pub struct NetworkInterfaceArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> NetworkInterfaceArgsBuilder<S>
impl<S: State> NetworkInterfaceArgsBuilder<S>
sourcepub fn build_struct(self) -> NetworkInterfaceArgswhere
S: IsComplete,
pub fn build_struct(self) -> NetworkInterfaceArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn attachments(
self,
value: impl Into<Output<Option<Vec<NetworkInterfaceAttachment>>>>,
) -> NetworkInterfaceArgsBuilder<SetAttachments<S>>where
S::Attachments: IsUnset,
pub fn attachments(
self,
value: impl Into<Output<Option<Vec<NetworkInterfaceAttachment>>>>,
) -> NetworkInterfaceArgsBuilder<SetAttachments<S>>where
S::Attachments: IsUnset,
sourcepub fn maybe_attachments(
self,
value: Option<impl Into<Output<Option<Vec<NetworkInterfaceAttachment>>>>>,
) -> NetworkInterfaceArgsBuilder<SetAttachments<S>>where
S::Attachments: IsUnset,
pub fn maybe_attachments(
self,
value: Option<impl Into<Output<Option<Vec<NetworkInterfaceAttachment>>>>>,
) -> NetworkInterfaceArgsBuilder<SetAttachments<S>>where
S::Attachments: IsUnset,
sourcepub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkInterfaceArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkInterfaceArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn enable_primary_ipv6(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkInterfaceArgsBuilder<SetEnablePrimaryIpv6<S>>where
S::EnablePrimaryIpv6: IsUnset,
pub fn enable_primary_ipv6(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkInterfaceArgsBuilder<SetEnablePrimaryIpv6<S>>where
S::EnablePrimaryIpv6: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Enables assigning a primary IPv6 Global Unicast Address (GUA) to the network interface (ENI) in dual-stack or IPv6-only subnets. This ensures the instance attached to the ENI retains a consistent IPv6 address. Once enabled, the first IPv6 GUA becomes the primary IPv6 address and cannot be disabled. The primary IPv6 address remains assigned until the instance is terminated or the ENI is detached. Enabling and subsequent disabling forces recreation of the ENI.
sourcepub fn maybe_enable_primary_ipv6(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkInterfaceArgsBuilder<SetEnablePrimaryIpv6<S>>where
S::EnablePrimaryIpv6: IsUnset,
pub fn maybe_enable_primary_ipv6(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkInterfaceArgsBuilder<SetEnablePrimaryIpv6<S>>where
S::EnablePrimaryIpv6: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Enables assigning a primary IPv6 Global Unicast Address (GUA) to the network interface (ENI) in dual-stack or IPv6-only subnets. This ensures the instance attached to the ENI retains a consistent IPv6 address. Once enabled, the first IPv6 GUA becomes the primary IPv6 address and cannot be disabled. The primary IPv6 address remains assigned until the instance is terminated or the ENI is detached. Enabling and subsequent disabling forces recreation of the ENI.
sourcepub fn interface_type(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkInterfaceArgsBuilder<SetInterfaceType<S>>where
S::InterfaceType: IsUnset,
pub fn interface_type(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkInterfaceArgsBuilder<SetInterfaceType<S>>where
S::InterfaceType: IsUnset,
sourcepub fn maybe_interface_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetInterfaceType<S>>where
S::InterfaceType: IsUnset,
pub fn maybe_interface_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetInterfaceType<S>>where
S::InterfaceType: IsUnset,
sourcepub fn ipv4_prefix_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv4PrefixCount<S>>where
S::Ipv4PrefixCount: IsUnset,
pub fn ipv4_prefix_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv4PrefixCount<S>>where
S::Ipv4PrefixCount: IsUnset,
sourcepub fn maybe_ipv4_prefix_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv4PrefixCount<S>>where
S::Ipv4PrefixCount: IsUnset,
pub fn maybe_ipv4_prefix_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv4PrefixCount<S>>where
S::Ipv4PrefixCount: IsUnset,
sourcepub fn ipv4_prefixes(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv4Prefixes<S>>where
S::Ipv4Prefixes: IsUnset,
pub fn ipv4_prefixes(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv4Prefixes<S>>where
S::Ipv4Prefixes: IsUnset,
sourcepub fn maybe_ipv4_prefixes(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv4Prefixes<S>>where
S::Ipv4Prefixes: IsUnset,
pub fn maybe_ipv4_prefixes(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv4Prefixes<S>>where
S::Ipv4Prefixes: IsUnset,
sourcepub fn ipv6_address_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6AddressCount<S>>where
S::Ipv6AddressCount: IsUnset,
pub fn ipv6_address_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6AddressCount<S>>where
S::Ipv6AddressCount: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
Number of IPv6 addresses to assign to a network interface. You can’t use this option if specifying specific ipv6_addresses
. If your subnet has the AssignIpv6AddressOnCreation attribute set to true
, you can specify 0
to override this setting.
sourcepub fn maybe_ipv6_address_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6AddressCount<S>>where
S::Ipv6AddressCount: IsUnset,
pub fn maybe_ipv6_address_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6AddressCount<S>>where
S::Ipv6AddressCount: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
Number of IPv6 addresses to assign to a network interface. You can’t use this option if specifying specific ipv6_addresses
. If your subnet has the AssignIpv6AddressOnCreation attribute set to true
, you can specify 0
to override this setting.
sourcepub fn ipv6_address_list_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6AddressListEnabled<S>>where
S::Ipv6AddressListEnabled: IsUnset,
pub fn ipv6_address_list_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6AddressListEnabled<S>>where
S::Ipv6AddressListEnabled: IsUnset,
sourcepub fn maybe_ipv6_address_list_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6AddressListEnabled<S>>where
S::Ipv6AddressListEnabled: IsUnset,
pub fn maybe_ipv6_address_list_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6AddressListEnabled<S>>where
S::Ipv6AddressListEnabled: IsUnset,
sourcepub fn ipv6_address_lists(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6AddressLists<S>>where
S::Ipv6AddressLists: IsUnset,
pub fn ipv6_address_lists(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6AddressLists<S>>where
S::Ipv6AddressLists: IsUnset,
sourcepub fn maybe_ipv6_address_lists(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6AddressLists<S>>where
S::Ipv6AddressLists: IsUnset,
pub fn maybe_ipv6_address_lists(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6AddressLists<S>>where
S::Ipv6AddressLists: IsUnset,
sourcepub fn ipv6_addresses(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6Addresses<S>>where
S::Ipv6Addresses: IsUnset,
pub fn ipv6_addresses(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6Addresses<S>>where
S::Ipv6Addresses: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default()
.
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Addresses are assigned without regard to order. You can’t use this option if you’re specifying ipv6_address_count
.
sourcepub fn maybe_ipv6_addresses(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6Addresses<S>>where
S::Ipv6Addresses: IsUnset,
pub fn maybe_ipv6_addresses(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6Addresses<S>>where
S::Ipv6Addresses: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default()
.
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Addresses are assigned without regard to order. You can’t use this option if you’re specifying ipv6_address_count
.
sourcepub fn ipv6_prefix_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6PrefixCount<S>>where
S::Ipv6PrefixCount: IsUnset,
pub fn ipv6_prefix_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6PrefixCount<S>>where
S::Ipv6PrefixCount: IsUnset,
sourcepub fn maybe_ipv6_prefix_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6PrefixCount<S>>where
S::Ipv6PrefixCount: IsUnset,
pub fn maybe_ipv6_prefix_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6PrefixCount<S>>where
S::Ipv6PrefixCount: IsUnset,
sourcepub fn ipv6_prefixes(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6Prefixes<S>>where
S::Ipv6Prefixes: IsUnset,
pub fn ipv6_prefixes(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6Prefixes<S>>where
S::Ipv6Prefixes: IsUnset,
sourcepub fn maybe_ipv6_prefixes(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6Prefixes<S>>where
S::Ipv6Prefixes: IsUnset,
pub fn maybe_ipv6_prefixes(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetIpv6Prefixes<S>>where
S::Ipv6Prefixes: IsUnset,
sourcepub fn private_ip(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIp<S>>where
S::PrivateIp: IsUnset,
pub fn private_ip(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIp<S>>where
S::PrivateIp: IsUnset,
sourcepub fn maybe_private_ip(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIp<S>>where
S::PrivateIp: IsUnset,
pub fn maybe_private_ip(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIp<S>>where
S::PrivateIp: IsUnset,
sourcepub fn private_ip_list_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIpListEnabled<S>>where
S::PrivateIpListEnabled: IsUnset,
pub fn private_ip_list_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIpListEnabled<S>>where
S::PrivateIpListEnabled: IsUnset,
sourcepub fn maybe_private_ip_list_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIpListEnabled<S>>where
S::PrivateIpListEnabled: IsUnset,
pub fn maybe_private_ip_list_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIpListEnabled<S>>where
S::PrivateIpListEnabled: IsUnset,
sourcepub fn private_ip_lists(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIpLists<S>>where
S::PrivateIpLists: IsUnset,
pub fn private_ip_lists(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIpLists<S>>where
S::PrivateIpLists: IsUnset,
sourcepub fn maybe_private_ip_lists(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIpLists<S>>where
S::PrivateIpLists: IsUnset,
pub fn maybe_private_ip_lists(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIpLists<S>>where
S::PrivateIpLists: IsUnset,
sourcepub fn private_ips(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIps<S>>where
S::PrivateIps: IsUnset,
pub fn private_ips(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIps<S>>where
S::PrivateIps: IsUnset,
sourcepub fn maybe_private_ips(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIps<S>>where
S::PrivateIps: IsUnset,
pub fn maybe_private_ips(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIps<S>>where
S::PrivateIps: IsUnset,
sourcepub fn private_ips_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIpsCount<S>>where
S::PrivateIpsCount: IsUnset,
pub fn private_ips_count(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIpsCount<S>>where
S::PrivateIpsCount: IsUnset,
sourcepub fn maybe_private_ips_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIpsCount<S>>where
S::PrivateIpsCount: IsUnset,
pub fn maybe_private_ips_count(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkInterfaceArgsBuilder<SetPrivateIpsCount<S>>where
S::PrivateIpsCount: IsUnset,
sourcepub fn security_groups(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetSecurityGroups<S>>where
S::SecurityGroups: IsUnset,
pub fn security_groups(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> NetworkInterfaceArgsBuilder<SetSecurityGroups<S>>where
S::SecurityGroups: IsUnset,
sourcepub fn maybe_security_groups(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetSecurityGroups<S>>where
S::SecurityGroups: IsUnset,
pub fn maybe_security_groups(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> NetworkInterfaceArgsBuilder<SetSecurityGroups<S>>where
S::SecurityGroups: IsUnset,
sourcepub fn source_dest_check(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkInterfaceArgsBuilder<SetSourceDestCheck<S>>where
S::SourceDestCheck: IsUnset,
pub fn source_dest_check(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkInterfaceArgsBuilder<SetSourceDestCheck<S>>where
S::SourceDestCheck: IsUnset,
sourcepub fn maybe_source_dest_check(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkInterfaceArgsBuilder<SetSourceDestCheck<S>>where
S::SourceDestCheck: IsUnset,
pub fn maybe_source_dest_check(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkInterfaceArgsBuilder<SetSourceDestCheck<S>>where
S::SourceDestCheck: IsUnset,
sourcepub fn subnet_id(
self,
value: impl Into<Output<String>>,
) -> NetworkInterfaceArgsBuilder<SetSubnetId<S>>where
S::SubnetId: IsUnset,
pub fn subnet_id(
self,
value: impl Into<Output<String>>,
) -> NetworkInterfaceArgsBuilder<SetSubnetId<S>>where
S::SubnetId: IsUnset,
Required.
Subnet ID to create the ENI in.
The following arguments are optional:
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<std::collections::HashMap<String, String>>,
> as Default>::default()
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()
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.