Class DefaultVpcDhcpOptions


  • public class DefaultVpcDhcpOptions
    extends com.pulumi.resources.CustomResource
    Provides a resource to manage the [default AWS DHCP Options Set](http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html#AmazonDNS) in the current region. Each AWS region comes with a default set of DHCP options. **This is an advanced resource**, and has special caveats to be aware of when using it. Please read this document in its entirety before using this resource. The `aws.ec2.DefaultVpcDhcpOptions` behaves differently from normal resources, in that this provider does not _create_ this resource, but instead "adopts" it into management. ## Example Usage Basic usage with tags:
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.ec2.DefaultVpcDhcpOptions;
     import com.pulumi.aws.ec2.DefaultVpcDhcpOptionsArgs;
     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 default_ = new DefaultVpcDhcpOptions("default", DefaultVpcDhcpOptionsArgs.builder()
                 .tags(Map.of("Name", "Default DHCP Option Set"))
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import VPC DHCP Options using the DHCP Options `id`. For example: ```sh $ pulumi import aws:ec2/defaultVpcDhcpOptions:DefaultVpcDhcpOptions default_options dopt-d9070ebb ```
    • 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
    • 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.lang.String> domainName()  
      com.pulumi.core.Output<java.lang.String> domainNameServers()  
      static DefaultVpcDhcpOptions get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, DefaultVpcDhcpOptionsState 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> ipv6AddressPreferredLeaseTime()  
      com.pulumi.core.Output<java.lang.String> netbiosNameServers()  
      com.pulumi.core.Output<java.lang.String> netbiosNodeType()  
      com.pulumi.core.Output<java.lang.String> ntpServers()  
      com.pulumi.core.Output<java.lang.String> ownerId()  
      com.pulumi.core.Output<java.lang.String> region()  
      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()  
      • 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

      • DefaultVpcDhcpOptions

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

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

        public DefaultVpcDhcpOptions​(java.lang.String name,
                                     @Nullable
                                     DefaultVpcDhcpOptionsArgs 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:
        The ARN of the DHCP Options Set.
      • domainName

        public com.pulumi.core.Output<java.lang.String> domainName()
      • domainNameServers

        public com.pulumi.core.Output<java.lang.String> domainNameServers()
      • ipv6AddressPreferredLeaseTime

        public com.pulumi.core.Output<java.lang.String> ipv6AddressPreferredLeaseTime()
      • netbiosNameServers

        public com.pulumi.core.Output<java.lang.String> netbiosNameServers()
        Returns:
        List of NETBIOS name servers.
      • netbiosNodeType

        public com.pulumi.core.Output<java.lang.String> netbiosNodeType()
        Returns:
        The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see [RFC 2132](http://www.ietf.org/rfc/rfc2132.txt).
      • ntpServers

        public com.pulumi.core.Output<java.lang.String> ntpServers()
      • ownerId

        public com.pulumi.core.Output<java.lang.String> ownerId()
        Returns:
        The ID of the AWS account that owns the DHCP options set.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the [provider configuration](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#aws-configuration-reference).
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        A map of tags to assign to the resource.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
      • get

        public static DefaultVpcDhcpOptions get​(java.lang.String name,
                                                com.pulumi.core.Output<java.lang.String> id,
                                                @Nullable
                                                DefaultVpcDhcpOptionsState 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.