pub struct SubnetArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> SubnetArgsBuilder<S>
impl<S: State> SubnetArgsBuilder<S>
sourcepub fn build_struct(self) -> SubnetArgswhere
S: IsComplete,
pub fn build_struct(self) -> SubnetArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn assign_ipv6_address_on_creation(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetAssignIpv6AddressOnCreation<S>>where
S::AssignIpv6AddressOnCreation: IsUnset,
pub fn assign_ipv6_address_on_creation(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetAssignIpv6AddressOnCreation<S>>where
S::AssignIpv6AddressOnCreation: IsUnset,
sourcepub fn maybe_assign_ipv6_address_on_creation(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetAssignIpv6AddressOnCreation<S>>where
S::AssignIpv6AddressOnCreation: IsUnset,
pub fn maybe_assign_ipv6_address_on_creation(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetAssignIpv6AddressOnCreation<S>>where
S::AssignIpv6AddressOnCreation: IsUnset,
sourcepub fn availability_zone(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetAvailabilityZone<S>>where
S::AvailabilityZone: IsUnset,
pub fn availability_zone(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetAvailabilityZone<S>>where
S::AvailabilityZone: IsUnset,
sourcepub fn maybe_availability_zone(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetAvailabilityZone<S>>where
S::AvailabilityZone: IsUnset,
pub fn maybe_availability_zone(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetAvailabilityZone<S>>where
S::AvailabilityZone: IsUnset,
sourcepub fn availability_zone_id(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetAvailabilityZoneId<S>>where
S::AvailabilityZoneId: IsUnset,
pub fn availability_zone_id(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetAvailabilityZoneId<S>>where
S::AvailabilityZoneId: IsUnset,
sourcepub fn maybe_availability_zone_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetAvailabilityZoneId<S>>where
S::AvailabilityZoneId: IsUnset,
pub fn maybe_availability_zone_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetAvailabilityZoneId<S>>where
S::AvailabilityZoneId: IsUnset,
sourcepub fn cidr_block(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetCidrBlock<S>>where
S::CidrBlock: IsUnset,
pub fn cidr_block(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetCidrBlock<S>>where
S::CidrBlock: IsUnset,
sourcepub fn maybe_cidr_block(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetCidrBlock<S>>where
S::CidrBlock: IsUnset,
pub fn maybe_cidr_block(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetCidrBlock<S>>where
S::CidrBlock: IsUnset,
sourcepub fn customer_owned_ipv4_pool(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetCustomerOwnedIpv4Pool<S>>where
S::CustomerOwnedIpv4Pool: IsUnset,
pub fn customer_owned_ipv4_pool(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetCustomerOwnedIpv4Pool<S>>where
S::CustomerOwnedIpv4Pool: IsUnset,
sourcepub fn maybe_customer_owned_ipv4_pool(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetCustomerOwnedIpv4Pool<S>>where
S::CustomerOwnedIpv4Pool: IsUnset,
pub fn maybe_customer_owned_ipv4_pool(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetCustomerOwnedIpv4Pool<S>>where
S::CustomerOwnedIpv4Pool: IsUnset,
sourcepub fn enable_dns64(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetEnableDns64<S>>where
S::EnableDns64: IsUnset,
pub fn enable_dns64(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetEnableDns64<S>>where
S::EnableDns64: IsUnset,
sourcepub fn maybe_enable_dns64(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetEnableDns64<S>>where
S::EnableDns64: IsUnset,
pub fn maybe_enable_dns64(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetEnableDns64<S>>where
S::EnableDns64: IsUnset,
sourcepub fn enable_lni_at_device_index(
self,
value: impl Into<Output<Option<i32>>>,
) -> SubnetArgsBuilder<SetEnableLniAtDeviceIndex<S>>where
S::EnableLniAtDeviceIndex: IsUnset,
pub fn enable_lni_at_device_index(
self,
value: impl Into<Output<Option<i32>>>,
) -> SubnetArgsBuilder<SetEnableLniAtDeviceIndex<S>>where
S::EnableLniAtDeviceIndex: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
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).
sourcepub fn maybe_enable_lni_at_device_index(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> SubnetArgsBuilder<SetEnableLniAtDeviceIndex<S>>where
S::EnableLniAtDeviceIndex: IsUnset,
pub fn maybe_enable_lni_at_device_index(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> SubnetArgsBuilder<SetEnableLniAtDeviceIndex<S>>where
S::EnableLniAtDeviceIndex: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
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).
sourcepub fn enable_resource_name_dns_a_record_on_launch(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetEnableResourceNameDnsARecordOnLaunch<S>>where
S::EnableResourceNameDnsARecordOnLaunch: IsUnset,
pub fn enable_resource_name_dns_a_record_on_launch(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetEnableResourceNameDnsARecordOnLaunch<S>>where
S::EnableResourceNameDnsARecordOnLaunch: IsUnset,
sourcepub fn maybe_enable_resource_name_dns_a_record_on_launch(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetEnableResourceNameDnsARecordOnLaunch<S>>where
S::EnableResourceNameDnsARecordOnLaunch: IsUnset,
pub fn maybe_enable_resource_name_dns_a_record_on_launch(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetEnableResourceNameDnsARecordOnLaunch<S>>where
S::EnableResourceNameDnsARecordOnLaunch: IsUnset,
sourcepub fn enable_resource_name_dns_aaaa_record_on_launch(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetEnableResourceNameDnsAaaaRecordOnLaunch<S>>where
S::EnableResourceNameDnsAaaaRecordOnLaunch: IsUnset,
pub fn enable_resource_name_dns_aaaa_record_on_launch(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetEnableResourceNameDnsAaaaRecordOnLaunch<S>>where
S::EnableResourceNameDnsAaaaRecordOnLaunch: IsUnset,
sourcepub fn maybe_enable_resource_name_dns_aaaa_record_on_launch(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetEnableResourceNameDnsAaaaRecordOnLaunch<S>>where
S::EnableResourceNameDnsAaaaRecordOnLaunch: IsUnset,
pub fn maybe_enable_resource_name_dns_aaaa_record_on_launch(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetEnableResourceNameDnsAaaaRecordOnLaunch<S>>where
S::EnableResourceNameDnsAaaaRecordOnLaunch: IsUnset,
sourcepub fn ipv6_cidr_block(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetIpv6CidrBlock<S>>where
S::Ipv6CidrBlock: IsUnset,
pub fn ipv6_cidr_block(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetIpv6CidrBlock<S>>where
S::Ipv6CidrBlock: IsUnset,
sourcepub fn maybe_ipv6_cidr_block(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetIpv6CidrBlock<S>>where
S::Ipv6CidrBlock: IsUnset,
pub fn maybe_ipv6_cidr_block(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetIpv6CidrBlock<S>>where
S::Ipv6CidrBlock: IsUnset,
sourcepub fn ipv6_native(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetIpv6Native<S>>where
S::Ipv6Native: IsUnset,
pub fn ipv6_native(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetIpv6Native<S>>where
S::Ipv6Native: IsUnset,
sourcepub fn maybe_ipv6_native(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetIpv6Native<S>>where
S::Ipv6Native: IsUnset,
pub fn maybe_ipv6_native(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetIpv6Native<S>>where
S::Ipv6Native: IsUnset,
sourcepub fn map_customer_owned_ip_on_launch(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetMapCustomerOwnedIpOnLaunch<S>>where
S::MapCustomerOwnedIpOnLaunch: IsUnset,
pub fn map_customer_owned_ip_on_launch(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetMapCustomerOwnedIpOnLaunch<S>>where
S::MapCustomerOwnedIpOnLaunch: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
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
.
sourcepub fn maybe_map_customer_owned_ip_on_launch(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetMapCustomerOwnedIpOnLaunch<S>>where
S::MapCustomerOwnedIpOnLaunch: IsUnset,
pub fn maybe_map_customer_owned_ip_on_launch(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetMapCustomerOwnedIpOnLaunch<S>>where
S::MapCustomerOwnedIpOnLaunch: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
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
.
sourcepub fn map_public_ip_on_launch(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetMapPublicIpOnLaunch<S>>where
S::MapPublicIpOnLaunch: IsUnset,
pub fn map_public_ip_on_launch(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetArgsBuilder<SetMapPublicIpOnLaunch<S>>where
S::MapPublicIpOnLaunch: IsUnset,
sourcepub fn maybe_map_public_ip_on_launch(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetMapPublicIpOnLaunch<S>>where
S::MapPublicIpOnLaunch: IsUnset,
pub fn maybe_map_public_ip_on_launch(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetArgsBuilder<SetMapPublicIpOnLaunch<S>>where
S::MapPublicIpOnLaunch: IsUnset,
sourcepub fn outpost_arn(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetOutpostArn<S>>where
S::OutpostArn: IsUnset,
pub fn outpost_arn(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetOutpostArn<S>>where
S::OutpostArn: IsUnset,
sourcepub fn maybe_outpost_arn(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetOutpostArn<S>>where
S::OutpostArn: IsUnset,
pub fn maybe_outpost_arn(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetOutpostArn<S>>where
S::OutpostArn: IsUnset,
sourcepub fn private_dns_hostname_type_on_launch(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetPrivateDnsHostnameTypeOnLaunch<S>>where
S::PrivateDnsHostnameTypeOnLaunch: IsUnset,
pub fn private_dns_hostname_type_on_launch(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetArgsBuilder<SetPrivateDnsHostnameTypeOnLaunch<S>>where
S::PrivateDnsHostnameTypeOnLaunch: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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
.
sourcepub fn maybe_private_dns_hostname_type_on_launch(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetPrivateDnsHostnameTypeOnLaunch<S>>where
S::PrivateDnsHostnameTypeOnLaunch: IsUnset,
pub fn maybe_private_dns_hostname_type_on_launch(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetArgsBuilder<SetPrivateDnsHostnameTypeOnLaunch<S>>where
S::PrivateDnsHostnameTypeOnLaunch: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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
.
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<std::collections::HashMap<String, String>>,
> as Default>::default()
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.
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<std::collections::HashMap<String, String>>,
> as Default>::default()
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.