pub struct SubnetArgs {Show 17 fields
pub assign_ipv6_address_on_creation: Output<Option<bool>>,
pub availability_zone: Output<Option<String>>,
pub availability_zone_id: Output<Option<String>>,
pub cidr_block: Output<Option<String>>,
pub customer_owned_ipv4_pool: Output<Option<String>>,
pub enable_dns64: Output<Option<bool>>,
pub enable_lni_at_device_index: Output<Option<i32>>,
pub enable_resource_name_dns_a_record_on_launch: Output<Option<bool>>,
pub enable_resource_name_dns_aaaa_record_on_launch: Output<Option<bool>>,
pub ipv6_cidr_block: Output<Option<String>>,
pub ipv6_native: Output<Option<bool>>,
pub map_customer_owned_ip_on_launch: Output<Option<bool>>,
pub map_public_ip_on_launch: Output<Option<bool>>,
pub outpost_arn: Output<Option<String>>,
pub private_dns_hostname_type_on_launch: Output<Option<String>>,
pub tags: Output<Option<HashMap<String, String>>>,
pub vpc_id: Output<String>,
}
Fields§
§assign_ipv6_address_on_creation: Output<Option<bool>>
Specify true to indicate
that network interfaces created in the specified subnet should be
assigned an IPv6 address. Default is false
availability_zone: Output<Option<String>>
AZ for the subnet.
availability_zone_id: Output<Option<String>>
AZ ID of the subnet. This argument is not supported in all regions or partitions. If necessary, use availability_zone
instead.
cidr_block: Output<Option<String>>
The IPv4 CIDR block for the subnet.
customer_owned_ipv4_pool: Output<Option<String>>
The customer owned IPv4 address pool. Typically used with the map_customer_owned_ip_on_launch
argument. The outpost_arn
argument must be specified when configured.
enable_dns64: Output<Option<bool>>
Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations. Default: false
.
enable_lni_at_device_index: Output<Option<i32>>
Indicates the device position for local network interfaces in this subnet. For example, 1 indicates local network interfaces in this subnet are the secondary network interface (eth1). A local network interface cannot be the primary network interface (eth0).
enable_resource_name_dns_a_record_on_launch: Output<Option<bool>>
Indicates whether to respond to DNS queries for instance hostnames with DNS A records. Default: false
.
enable_resource_name_dns_aaaa_record_on_launch: Output<Option<bool>>
Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. Default: false
.
ipv6_cidr_block: Output<Option<String>>
The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.
ipv6_native: Output<Option<bool>>
Indicates whether to create an IPv6-only subnet. Default: false
.
map_customer_owned_ip_on_launch: Output<Option<bool>>
Specify true
to indicate that network interfaces created in the subnet should be assigned a customer owned IP address. The customer_owned_ipv4_pool
and outpost_arn
arguments must be specified when set to true
. Default is false
.
map_public_ip_on_launch: Output<Option<bool>>
Specify true to indicate
that instances launched into the subnet should be assigned
a public IP address. Default is false
.
outpost_arn: Output<Option<String>>
The Amazon Resource Name (ARN) of the Outpost.
private_dns_hostname_type_on_launch: Output<Option<String>>
The type of hostnames to assign to instances in the subnet at launch. For IPv6-only subnets, an instance DNS name must be based on the instance ID. For dual-stack and IPv4-only subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name
, resource-name
.
A map of tags to assign to the resource. .If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
vpc_id: Output<String>
The VPC ID.
Implementations§
source§impl SubnetArgs
impl SubnetArgs
sourcepub fn builder() -> SubnetArgsBuilder
pub fn builder() -> SubnetArgsBuilder
Create an instance of SubnetArgs
using the builder syntax
Trait Implementations§
source§impl Clone for SubnetArgs
impl Clone for SubnetArgs
source§fn clone(&self) -> SubnetArgs
fn clone(&self) -> SubnetArgs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for SubnetArgs
impl RefUnwindSafe for SubnetArgs
impl Send for SubnetArgs
impl Sync for SubnetArgs
impl Unpin for SubnetArgs
impl UnwindSafe for SubnetArgs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)