We recommend new projects start with resources from the AWS provider.
aws-native.ec2.Subnet
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Specifies a subnet for the specified VPC. For an IPv4 only subnet, specify an IPv4 CIDR block. If the VPC has an IPv6 CIDR block, you can create an IPv6 only subnet or a dual stack subnet instead. For an IPv6 only subnet, specify an IPv6 CIDR block. For a dual stack subnet, specify both an IPv4 CIDR block and an IPv6 CIDR block. For more information, see Subnets for your VPC in the Amazon VPC User Guide.
Create Subnet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Subnet(name: string, args: SubnetArgs, opts?: CustomResourceOptions);@overload
def Subnet(resource_name: str,
           args: SubnetArgs,
           opts: Optional[ResourceOptions] = None)
@overload
def Subnet(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           vpc_id: Optional[str] = None,
           ipv6_cidr_block: Optional[str] = None,
           ipv4_netmask_length: Optional[int] = None,
           cidr_block: Optional[str] = None,
           enable_dns64: Optional[bool] = None,
           ipv6_ipam_pool_id: Optional[str] = None,
           ipv4_ipam_pool_id: Optional[str] = None,
           availability_zone_id: Optional[str] = None,
           assign_ipv6_address_on_creation: Optional[bool] = None,
           enable_lni_at_device_index: Optional[int] = None,
           ipv6_native: Optional[bool] = None,
           ipv6_netmask_length: Optional[int] = None,
           map_public_ip_on_launch: Optional[bool] = None,
           outpost_arn: Optional[str] = None,
           private_dns_name_options_on_launch: Optional[PrivateDnsNameOptionsOnLaunchPropertiesArgs] = None,
           tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
           availability_zone: Optional[str] = None)func NewSubnet(ctx *Context, name string, args SubnetArgs, opts ...ResourceOption) (*Subnet, error)public Subnet(string name, SubnetArgs args, CustomResourceOptions? opts = null)
public Subnet(String name, SubnetArgs args)
public Subnet(String name, SubnetArgs args, CustomResourceOptions options)
type: aws-native:ec2:Subnet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SubnetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SubnetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SubnetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubnetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SubnetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Subnet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Subnet resource accepts the following input properties:
- VpcId string
- The ID of the VPC the subnet is in.
If you update this property, you must also update the CidrBlockproperty.
- AssignIpv6Address boolOn Creation 
- Indicates whether a network interface created in this subnet receives an IPv6 address. The default value is false. If you specifyAssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.
- AvailabilityZone string
- The Availability Zone of the subnet.
If you update this property, you must also update the CidrBlockproperty.
- AvailabilityZone stringId 
- The AZ ID of the subnet.
- CidrBlock string
- The IPv4 CIDR block assigned to the subnet. If you update this property, we create a new subnet, and then delete the existing one.
- EnableDns64 bool
- Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
You must first configure a NAT gateway in a public subnet (separate from the subnet containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a 0.0.0.0/0route pointing to the internet gateway. For more information, see Configure DNS64 and NAT64 in the User Guide.
- EnableLni intAt Device Index 
- Indicates the device position for local network interfaces in this subnet. For example, 1indicates local network interfaces in this subnet are the secondary network interface (eth1).
- Ipv4IpamPool stringId 
- An IPv4 IPAM pool ID for the subnet.
- Ipv4NetmaskLength int
- An IPv4 netmask length for the subnet.
- Ipv6CidrBlock string
- The IPv6 CIDR block.
If you specify AssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.
- Ipv6IpamPool stringId 
- An IPv6 IPAM pool ID for the subnet.
- Ipv6Native bool
- Indicates whether this is an IPv6 only subnet. For more information, see Subnet basics in the User Guide.
- Ipv6NetmaskLength int
- An IPv6 netmask length for the subnet.
- MapPublic boolIp On Launch 
- Indicates whether instances launched in this subnet receive a public IPv4 address. The default value is false. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the VPC pricing page.
- OutpostArn string
- The Amazon Resource Name (ARN) of the Outpost.
- PrivateDns Pulumi.Name Options On Launch Aws Native. Ec2. Inputs. Private Dns Name Options On Launch Properties 
- The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries to the instances should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.
Available options:- EnableResourceNameDnsAAAARecord (true | false)
- EnableResourceNameDnsARecord (true | false)
- HostnameType (ip-name | resource-name)
 
- 
List<Pulumi.Aws Native. Inputs. Tag> 
- Any tags assigned to the subnet.
- VpcId string
- The ID of the VPC the subnet is in.
If you update this property, you must also update the CidrBlockproperty.
- AssignIpv6Address boolOn Creation 
- Indicates whether a network interface created in this subnet receives an IPv6 address. The default value is false. If you specifyAssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.
- AvailabilityZone string
- The Availability Zone of the subnet.
If you update this property, you must also update the CidrBlockproperty.
- AvailabilityZone stringId 
- The AZ ID of the subnet.
- CidrBlock string
- The IPv4 CIDR block assigned to the subnet. If you update this property, we create a new subnet, and then delete the existing one.
- EnableDns64 bool
- Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
You must first configure a NAT gateway in a public subnet (separate from the subnet containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a 0.0.0.0/0route pointing to the internet gateway. For more information, see Configure DNS64 and NAT64 in the User Guide.
- EnableLni intAt Device Index 
- Indicates the device position for local network interfaces in this subnet. For example, 1indicates local network interfaces in this subnet are the secondary network interface (eth1).
- Ipv4IpamPool stringId 
- An IPv4 IPAM pool ID for the subnet.
- Ipv4NetmaskLength int
- An IPv4 netmask length for the subnet.
- Ipv6CidrBlock string
- The IPv6 CIDR block.
If you specify AssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.
- Ipv6IpamPool stringId 
- An IPv6 IPAM pool ID for the subnet.
- Ipv6Native bool
- Indicates whether this is an IPv6 only subnet. For more information, see Subnet basics in the User Guide.
- Ipv6NetmaskLength int
- An IPv6 netmask length for the subnet.
- MapPublic boolIp On Launch 
- Indicates whether instances launched in this subnet receive a public IPv4 address. The default value is false. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the VPC pricing page.
- OutpostArn string
- The Amazon Resource Name (ARN) of the Outpost.
- PrivateDns PrivateName Options On Launch Dns Name Options On Launch Properties Args 
- The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries to the instances should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.
Available options:- EnableResourceNameDnsAAAARecord (true | false)
- EnableResourceNameDnsARecord (true | false)
- HostnameType (ip-name | resource-name)
 
- 
TagArgs 
- Any tags assigned to the subnet.
- vpcId String
- The ID of the VPC the subnet is in.
If you update this property, you must also update the CidrBlockproperty.
- assignIpv6Address BooleanOn Creation 
- Indicates whether a network interface created in this subnet receives an IPv6 address. The default value is false. If you specifyAssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.
- availabilityZone String
- The Availability Zone of the subnet.
If you update this property, you must also update the CidrBlockproperty.
- availabilityZone StringId 
- The AZ ID of the subnet.
- cidrBlock String
- The IPv4 CIDR block assigned to the subnet. If you update this property, we create a new subnet, and then delete the existing one.
- enableDns64 Boolean
- Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
You must first configure a NAT gateway in a public subnet (separate from the subnet containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a 0.0.0.0/0route pointing to the internet gateway. For more information, see Configure DNS64 and NAT64 in the User Guide.
- enableLni IntegerAt Device Index 
- Indicates the device position for local network interfaces in this subnet. For example, 1indicates local network interfaces in this subnet are the secondary network interface (eth1).
- ipv4IpamPool StringId 
- An IPv4 IPAM pool ID for the subnet.
- ipv4NetmaskLength Integer
- An IPv4 netmask length for the subnet.
- ipv6CidrBlock String
- The IPv6 CIDR block.
If you specify AssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.
- ipv6IpamPool StringId 
- An IPv6 IPAM pool ID for the subnet.
- ipv6Native Boolean
- Indicates whether this is an IPv6 only subnet. For more information, see Subnet basics in the User Guide.
- ipv6NetmaskLength Integer
- An IPv6 netmask length for the subnet.
- mapPublic BooleanIp On Launch 
- Indicates whether instances launched in this subnet receive a public IPv4 address. The default value is false. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the VPC pricing page.
- outpostArn String
- The Amazon Resource Name (ARN) of the Outpost.
- privateDns PrivateName Options On Launch Dns Name Options On Launch Properties 
- The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries to the instances should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.
Available options:- EnableResourceNameDnsAAAARecord (true | false)
- EnableResourceNameDnsARecord (true | false)
- HostnameType (ip-name | resource-name)
 
- List<Tag>
- Any tags assigned to the subnet.
- vpcId string
- The ID of the VPC the subnet is in.
If you update this property, you must also update the CidrBlockproperty.
- assignIpv6Address booleanOn Creation 
- Indicates whether a network interface created in this subnet receives an IPv6 address. The default value is false. If you specifyAssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.
- availabilityZone string
- The Availability Zone of the subnet.
If you update this property, you must also update the CidrBlockproperty.
- availabilityZone stringId 
- The AZ ID of the subnet.
- cidrBlock string
- The IPv4 CIDR block assigned to the subnet. If you update this property, we create a new subnet, and then delete the existing one.
- enableDns64 boolean
- Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
You must first configure a NAT gateway in a public subnet (separate from the subnet containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a 0.0.0.0/0route pointing to the internet gateway. For more information, see Configure DNS64 and NAT64 in the User Guide.
- enableLni numberAt Device Index 
- Indicates the device position for local network interfaces in this subnet. For example, 1indicates local network interfaces in this subnet are the secondary network interface (eth1).
- ipv4IpamPool stringId 
- An IPv4 IPAM pool ID for the subnet.
- ipv4NetmaskLength number
- An IPv4 netmask length for the subnet.
- ipv6CidrBlock string
- The IPv6 CIDR block.
If you specify AssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.
- ipv6IpamPool stringId 
- An IPv6 IPAM pool ID for the subnet.
- ipv6Native boolean
- Indicates whether this is an IPv6 only subnet. For more information, see Subnet basics in the User Guide.
- ipv6NetmaskLength number
- An IPv6 netmask length for the subnet.
- mapPublic booleanIp On Launch 
- Indicates whether instances launched in this subnet receive a public IPv4 address. The default value is false. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the VPC pricing page.
- outpostArn string
- The Amazon Resource Name (ARN) of the Outpost.
- privateDns PrivateName Options On Launch Dns Name Options On Launch Properties 
- The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries to the instances should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.
Available options:- EnableResourceNameDnsAAAARecord (true | false)
- EnableResourceNameDnsARecord (true | false)
- HostnameType (ip-name | resource-name)
 
- Tag[]
- Any tags assigned to the subnet.
- vpc_id str
- The ID of the VPC the subnet is in.
If you update this property, you must also update the CidrBlockproperty.
- assign_ipv6_ booladdress_ on_ creation 
- Indicates whether a network interface created in this subnet receives an IPv6 address. The default value is false. If you specifyAssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.
- availability_zone str
- The Availability Zone of the subnet.
If you update this property, you must also update the CidrBlockproperty.
- availability_zone_ strid 
- The AZ ID of the subnet.
- cidr_block str
- The IPv4 CIDR block assigned to the subnet. If you update this property, we create a new subnet, and then delete the existing one.
- enable_dns64 bool
- Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
You must first configure a NAT gateway in a public subnet (separate from the subnet containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a 0.0.0.0/0route pointing to the internet gateway. For more information, see Configure DNS64 and NAT64 in the User Guide.
- enable_lni_ intat_ device_ index 
- Indicates the device position for local network interfaces in this subnet. For example, 1indicates local network interfaces in this subnet are the secondary network interface (eth1).
- ipv4_ipam_ strpool_ id 
- An IPv4 IPAM pool ID for the subnet.
- ipv4_netmask_ intlength 
- An IPv4 netmask length for the subnet.
- ipv6_cidr_ strblock 
- The IPv6 CIDR block.
If you specify AssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.
- ipv6_ipam_ strpool_ id 
- An IPv6 IPAM pool ID for the subnet.
- ipv6_native bool
- Indicates whether this is an IPv6 only subnet. For more information, see Subnet basics in the User Guide.
- ipv6_netmask_ intlength 
- An IPv6 netmask length for the subnet.
- map_public_ boolip_ on_ launch 
- Indicates whether instances launched in this subnet receive a public IPv4 address. The default value is false. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the VPC pricing page.
- outpost_arn str
- The Amazon Resource Name (ARN) of the Outpost.
- private_dns_ Privatename_ options_ on_ launch Dns Name Options On Launch Properties Args 
- The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries to the instances should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.
Available options:- EnableResourceNameDnsAAAARecord (true | false)
- EnableResourceNameDnsARecord (true | false)
- HostnameType (ip-name | resource-name)
 
- 
Sequence[TagArgs] 
- Any tags assigned to the subnet.
- vpcId String
- The ID of the VPC the subnet is in.
If you update this property, you must also update the CidrBlockproperty.
- assignIpv6Address BooleanOn Creation 
- Indicates whether a network interface created in this subnet receives an IPv6 address. The default value is false. If you specifyAssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.
- availabilityZone String
- The Availability Zone of the subnet.
If you update this property, you must also update the CidrBlockproperty.
- availabilityZone StringId 
- The AZ ID of the subnet.
- cidrBlock String
- The IPv4 CIDR block assigned to the subnet. If you update this property, we create a new subnet, and then delete the existing one.
- enableDns64 Boolean
- Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.
You must first configure a NAT gateway in a public subnet (separate from the subnet containing the IPv6-only workloads). For example, the subnet containing the NAT gateway should have a 0.0.0.0/0route pointing to the internet gateway. For more information, see Configure DNS64 and NAT64 in the User Guide.
- enableLni NumberAt Device Index 
- Indicates the device position for local network interfaces in this subnet. For example, 1indicates local network interfaces in this subnet are the secondary network interface (eth1).
- ipv4IpamPool StringId 
- An IPv4 IPAM pool ID for the subnet.
- ipv4NetmaskLength Number
- An IPv4 netmask length for the subnet.
- ipv6CidrBlock String
- The IPv6 CIDR block.
If you specify AssignIpv6AddressOnCreation, you must also specify an IPv6 CIDR block.
- ipv6IpamPool StringId 
- An IPv6 IPAM pool ID for the subnet.
- ipv6Native Boolean
- Indicates whether this is an IPv6 only subnet. For more information, see Subnet basics in the User Guide.
- ipv6NetmaskLength Number
- An IPv6 netmask length for the subnet.
- mapPublic BooleanIp On Launch 
- Indicates whether instances launched in this subnet receive a public IPv4 address. The default value is false. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the VPC pricing page.
- outpostArn String
- The Amazon Resource Name (ARN) of the Outpost.
- privateDns Property MapName Options On Launch 
- The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries to the instances should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.
Available options:- EnableResourceNameDnsAAAARecord (true | false)
- EnableResourceNameDnsARecord (true | false)
- HostnameType (ip-name | resource-name)
 
- List<Property Map>
- Any tags assigned to the subnet.
Outputs
All input properties are implicitly available as output properties. Additionally, the Subnet resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv6CidrBlocks List<string>
- The IPv6 CIDR blocks that are associated with the subnet.
- NetworkAcl stringAssociation Id 
- The ID of the network ACL that is associated with the subnet's VPC, such as acl-5fb85d36.
- SubnetId string
- The ID of the subnet.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv6CidrBlocks []string
- The IPv6 CIDR blocks that are associated with the subnet.
- NetworkAcl stringAssociation Id 
- The ID of the network ACL that is associated with the subnet's VPC, such as acl-5fb85d36.
- SubnetId string
- The ID of the subnet.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6CidrBlocks List<String>
- The IPv6 CIDR blocks that are associated with the subnet.
- networkAcl StringAssociation Id 
- The ID of the network ACL that is associated with the subnet's VPC, such as acl-5fb85d36.
- subnetId String
- The ID of the subnet.
- id string
- The provider-assigned unique ID for this managed resource.
- ipv6CidrBlocks string[]
- The IPv6 CIDR blocks that are associated with the subnet.
- networkAcl stringAssociation Id 
- The ID of the network ACL that is associated with the subnet's VPC, such as acl-5fb85d36.
- subnetId string
- The ID of the subnet.
- id str
- The provider-assigned unique ID for this managed resource.
- ipv6_cidr_ Sequence[str]blocks 
- The IPv6 CIDR blocks that are associated with the subnet.
- network_acl_ strassociation_ id 
- The ID of the network ACL that is associated with the subnet's VPC, such as acl-5fb85d36.
- subnet_id str
- The ID of the subnet.
- id String
- The provider-assigned unique ID for this managed resource.
- ipv6CidrBlocks List<String>
- The IPv6 CIDR blocks that are associated with the subnet.
- networkAcl StringAssociation Id 
- The ID of the network ACL that is associated with the subnet's VPC, such as acl-5fb85d36.
- subnetId String
- The ID of the subnet.
Supporting Types
PrivateDnsNameOptionsOnLaunchProperties, PrivateDnsNameOptionsOnLaunchPropertiesArgs              
- EnableResource boolName Dns ARecord 
- Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- EnableResource boolName Dns Aaaa Record 
- Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.
- HostnameType string
- The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
- EnableResource boolName Dns ARecord 
- Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- EnableResource boolName Dns Aaaa Record 
- Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.
- HostnameType string
- The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
- enableResource BooleanName Dns ARecord 
- Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- enableResource BooleanName Dns Aaaa Record 
- Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.
- hostnameType String
- The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
- enableResource booleanName Dns ARecord 
- Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- enableResource booleanName Dns Aaaa Record 
- Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.
- hostnameType string
- The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
- enable_resource_ boolname_ dns_ a_ record 
- Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- enable_resource_ boolname_ dns_ aaaa_ record 
- Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.
- hostname_type str
- The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
- enableResource BooleanName Dns ARecord 
- Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- enableResource BooleanName Dns Aaaa Record 
- Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.
- hostnameType String
- The type of hostname for EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.
Tag, TagArgs  
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.