pulumi_wasm_providers_aws_mini::ec2::subnet

Struct SubnetArgsBuilder

source
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>

source

pub fn build_struct(self) -> SubnetArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn assign_ipv6_address_on_creation( self, value: impl Into<Output<Option<bool>>>, ) -> SubnetArgsBuilder<SetAssignIpv6AddressOnCreation<S>>
where S::AssignIpv6AddressOnCreation: 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 specified subnet should be assigned an IPv6 address. Default is false

source

pub fn maybe_assign_ipv6_address_on_creation( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SubnetArgsBuilder<SetAssignIpv6AddressOnCreation<S>>
where S::AssignIpv6AddressOnCreation: 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 specified subnet should be assigned an IPv6 address. Default is false

source

pub fn availability_zone( self, value: impl Into<Output<Option<String>>>, ) -> SubnetArgsBuilder<SetAvailabilityZone<S>>
where S::AvailabilityZone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

AZ for the subnet.

source

pub fn maybe_availability_zone( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SubnetArgsBuilder<SetAvailabilityZone<S>>
where S::AvailabilityZone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

AZ for the subnet.

source

pub fn availability_zone_id( self, value: impl Into<Output<Option<String>>>, ) -> SubnetArgsBuilder<SetAvailabilityZoneId<S>>
where S::AvailabilityZoneId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

AZ ID of the subnet. This argument is not supported in all regions or partitions. If necessary, use availability_zone instead.

source

pub fn maybe_availability_zone_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SubnetArgsBuilder<SetAvailabilityZoneId<S>>
where S::AvailabilityZoneId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

AZ ID of the subnet. This argument is not supported in all regions or partitions. If necessary, use availability_zone instead.

source

pub fn cidr_block( self, value: impl Into<Output<Option<String>>>, ) -> SubnetArgsBuilder<SetCidrBlock<S>>
where S::CidrBlock: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The IPv4 CIDR block for the subnet.

source

pub fn maybe_cidr_block( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SubnetArgsBuilder<SetCidrBlock<S>>
where S::CidrBlock: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The IPv4 CIDR block for the subnet.

source

pub fn customer_owned_ipv4_pool( self, value: impl Into<Output<Option<String>>>, ) -> SubnetArgsBuilder<SetCustomerOwnedIpv4Pool<S>>
where S::CustomerOwnedIpv4Pool: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_customer_owned_ipv4_pool( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SubnetArgsBuilder<SetCustomerOwnedIpv4Pool<S>>
where S::CustomerOwnedIpv4Pool: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn enable_dns64( self, value: impl Into<Output<Option<bool>>>, ) -> SubnetArgsBuilder<SetEnableDns64<S>>
where S::EnableDns64: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

pub fn maybe_enable_dns64( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SubnetArgsBuilder<SetEnableDns64<S>>
where S::EnableDns64: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

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).

source

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).

source

pub fn enable_resource_name_dns_a_record_on_launch( self, value: impl Into<Output<Option<bool>>>, ) -> SubnetArgsBuilder<SetEnableResourceNameDnsARecordOnLaunch<S>>
where S::EnableResourceNameDnsARecordOnLaunch: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Indicates whether to respond to DNS queries for instance hostnames with DNS A records. Default: false.

source

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,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Indicates whether to respond to DNS queries for instance hostnames with DNS A records. Default: false.

source

pub fn enable_resource_name_dns_aaaa_record_on_launch( self, value: impl Into<Output<Option<bool>>>, ) -> SubnetArgsBuilder<SetEnableResourceNameDnsAaaaRecordOnLaunch<S>>
where S::EnableResourceNameDnsAaaaRecordOnLaunch: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. Default: false.

source

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,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. Default: false.

source

pub fn ipv6_cidr_block( self, value: impl Into<Output<Option<String>>>, ) -> SubnetArgsBuilder<SetIpv6CidrBlock<S>>
where S::Ipv6CidrBlock: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.

source

pub fn maybe_ipv6_cidr_block( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SubnetArgsBuilder<SetIpv6CidrBlock<S>>
where S::Ipv6CidrBlock: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.

source

pub fn ipv6_native( self, value: impl Into<Output<Option<bool>>>, ) -> SubnetArgsBuilder<SetIpv6Native<S>>
where S::Ipv6Native: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Indicates whether to create an IPv6-only subnet. Default: false.

source

pub fn maybe_ipv6_native( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SubnetArgsBuilder<SetIpv6Native<S>>
where S::Ipv6Native: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Indicates whether to create an IPv6-only subnet. Default: false.

source

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.

source

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.

source

pub fn map_public_ip_on_launch( self, value: impl Into<Output<Option<bool>>>, ) -> SubnetArgsBuilder<SetMapPublicIpOnLaunch<S>>
where S::MapPublicIpOnLaunch: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Specify true to indicate that instances launched into the subnet should be assigned a public IP address. Default is false.

source

pub fn maybe_map_public_ip_on_launch( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SubnetArgsBuilder<SetMapPublicIpOnLaunch<S>>
where S::MapPublicIpOnLaunch: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Specify true to indicate that instances launched into the subnet should be assigned a public IP address. Default is false.

source

pub fn outpost_arn( self, value: impl Into<Output<Option<String>>>, ) -> SubnetArgsBuilder<SetOutpostArn<S>>
where S::OutpostArn: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The Amazon Resource Name (ARN) of the Outpost.

source

pub fn maybe_outpost_arn( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SubnetArgsBuilder<SetOutpostArn<S>>
where S::OutpostArn: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The Amazon Resource Name (ARN) of the Outpost.

source

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.

source

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.

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> SubnetArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

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.

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> SubnetArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

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.

source

pub fn vpc_id( self, value: impl Into<Output<String>>, ) -> SubnetArgsBuilder<SetVpcId<S>>
where S::VpcId: IsUnset,

Required.

The VPC ID.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.