Class Device


  • public class Device
    extends com.pulumi.resources.CustomResource
    Manages a Network Manager Device. Use this resource to create a device in a global network. If you specify both a site ID and a location, the location of the site is used for visualization in the Network Manager console. ## Example Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.networkmanager.Device;
     import com.pulumi.aws.networkmanager.DeviceArgs;
     import java.util.ArrayList;
     import java.util.Arrays;
     import java.util.Map;
     import java.io.File;
     import java.nio.file.Files;
     import java.nio.file.Paths;
     
     public class App {
         public static void main(String[] args) {
             Pulumi.run(App::stack);
         }
     
         public static void stack(Context ctx) {
             var example = new Device("example", DeviceArgs.builder()
                 .globalNetworkId(exampleAwsNetworkmanagerGlobalNetwork.id())
                 .siteId(exampleAwsNetworkmanagerSite.id())
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import `aws.networkmanager.Device` using the device ARN. For example: ```sh $ pulumi import aws:networkmanager/device:Device example arn:aws:networkmanager::123456789012:device/global-network-0d47f6t230mz46dy4/device-07f6fd08867abc123 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Constructor Summary

      Constructors 
      Constructor Description
      Device​(java.lang.String name)  
      Device​(java.lang.String name, DeviceArgs args)  
      Device​(java.lang.String name, DeviceArgs args, com.pulumi.resources.CustomResourceOptions options)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> arn()  
      com.pulumi.core.Output<java.util.Optional<DeviceAwsLocation>> awsLocation()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      static Device get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DeviceState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> globalNetworkId()  
      com.pulumi.core.Output<java.util.Optional<DeviceLocation>> location()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> model()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> serialNumber()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> siteId()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> type()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> vendor()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Device

        public Device​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • Device

        public Device​(java.lang.String name,
                      DeviceArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • Device

        public Device​(java.lang.String name,
                      DeviceArgs args,
                      @Nullable
                      com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        ARN of the device.
      • awsLocation

        public com.pulumi.core.Output<java.util.Optional<DeviceAwsLocation>> awsLocation()
        Returns:
        AWS location of the device. Documented below.
      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        Description of the device.
      • globalNetworkId

        public com.pulumi.core.Output<java.lang.String> globalNetworkId()
        Returns:
        ID of the global network. The following arguments are optional:
      • location

        public com.pulumi.core.Output<java.util.Optional<DeviceLocation>> location()
        Returns:
        Location of the device. Documented below.
      • model

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> model()
        Returns:
        Model of device.
      • serialNumber

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> serialNumber()
        Returns:
        Serial number of the device.
      • siteId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> siteId()
        Returns:
        ID of the site.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Key-value tags for the device. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
        Returns:
        Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
      • type

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> type()
        Returns:
        Type of device.
      • vendor

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> vendor()
        Returns:
        Vendor of the device.
      • get

        public static Device get​(java.lang.String name,
                                 com.pulumi.core.Output<java.lang.String> id,
                                 @Nullable
                                 DeviceState state,
                                 @Nullable
                                 com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.