pulumi_wasm_providers_aws_mini::ec2::network_interface

Struct NetworkInterfaceArgsBuilder

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

source

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

Finish building and return the requested object

source

pub fn attachments( self, value: impl Into<Output<Option<Vec<NetworkInterfaceAttachment>>>>, ) -> NetworkInterfaceArgsBuilder<SetAttachments<S>>
where S::Attachments: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::NetworkInterfaceAttachment>>,
> as Default>::default()

Configuration block to define the attachment of the ENI. See Attachment below for more details!

source

pub fn maybe_attachments( self, value: Option<impl Into<Output<Option<Vec<NetworkInterfaceAttachment>>>>>, ) -> NetworkInterfaceArgsBuilder<SetAttachments<S>>
where S::Attachments: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::NetworkInterfaceAttachment>>,
> as Default>::default()

Configuration block to define the attachment of the ENI. See Attachment below for more details!

source

pub fn description( self, value: impl Into<Output<Option<String>>>, ) -> NetworkInterfaceArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

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

Description for the network interface.

source

pub fn maybe_description( self, value: Option<impl Into<Output<Option<String>>>>, ) -> NetworkInterfaceArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

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

Description for the network interface.

source

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.

source

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.

source

pub fn interface_type( self, value: impl Into<Output<Option<String>>>, ) -> NetworkInterfaceArgsBuilder<SetInterfaceType<S>>
where S::InterfaceType: IsUnset,

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

Type of network interface to create. Set to efa for Elastic Fabric Adapter. Changing interface_type will cause the resource to be destroyed and re-created.

source

pub fn maybe_interface_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> NetworkInterfaceArgsBuilder<SetInterfaceType<S>>
where S::InterfaceType: IsUnset,

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

Type of network interface to create. Set to efa for Elastic Fabric Adapter. Changing interface_type will cause the resource to be destroyed and re-created.

source

pub fn ipv4_prefix_count( self, value: impl Into<Output<Option<i32>>>, ) -> NetworkInterfaceArgsBuilder<SetIpv4PrefixCount<S>>
where S::Ipv4PrefixCount: IsUnset,

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

Number of IPv4 prefixes that AWS automatically assigns to the network interface.

source

pub fn maybe_ipv4_prefix_count( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> NetworkInterfaceArgsBuilder<SetIpv4PrefixCount<S>>
where S::Ipv4PrefixCount: IsUnset,

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

Number of IPv4 prefixes that AWS automatically assigns to the network interface.

source

pub fn ipv4_prefixes( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> NetworkInterfaceArgsBuilder<SetIpv4Prefixes<S>>
where S::Ipv4Prefixes: IsUnset,

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

One or more IPv4 prefixes assigned to the network interface.

source

pub fn maybe_ipv4_prefixes( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> NetworkInterfaceArgsBuilder<SetIpv4Prefixes<S>>
where S::Ipv4Prefixes: IsUnset,

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

One or more IPv4 prefixes assigned to the network interface.

source

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.

source

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.

source

pub fn ipv6_address_list_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> NetworkInterfaceArgsBuilder<SetIpv6AddressListEnabled<S>>
where S::Ipv6AddressListEnabled: IsUnset,

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

Whether ipv6_address_list is allowed and controls the IPs to assign to the ENI and ipv6_addresses and ipv6_address_count become read-only. Default is false.

source

pub fn maybe_ipv6_address_list_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> NetworkInterfaceArgsBuilder<SetIpv6AddressListEnabled<S>>
where S::Ipv6AddressListEnabled: IsUnset,

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

Whether ipv6_address_list is allowed and controls the IPs to assign to the ENI and ipv6_addresses and ipv6_address_count become read-only. Default is false.

source

pub fn ipv6_address_lists( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> NetworkInterfaceArgsBuilder<SetIpv6AddressLists<S>>
where S::Ipv6AddressLists: IsUnset,

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

List of private IPs to assign to the ENI in sequential order.

source

pub fn maybe_ipv6_address_lists( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> NetworkInterfaceArgsBuilder<SetIpv6AddressLists<S>>
where S::Ipv6AddressLists: IsUnset,

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

List of private IPs to assign to the ENI in sequential order.

source

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.

source

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.

source

pub fn ipv6_prefix_count( self, value: impl Into<Output<Option<i32>>>, ) -> NetworkInterfaceArgsBuilder<SetIpv6PrefixCount<S>>
where S::Ipv6PrefixCount: IsUnset,

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

Number of IPv6 prefixes that AWS automatically assigns to the network interface.

source

pub fn maybe_ipv6_prefix_count( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> NetworkInterfaceArgsBuilder<SetIpv6PrefixCount<S>>
where S::Ipv6PrefixCount: IsUnset,

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

Number of IPv6 prefixes that AWS automatically assigns to the network interface.

source

pub fn ipv6_prefixes( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> NetworkInterfaceArgsBuilder<SetIpv6Prefixes<S>>
where S::Ipv6Prefixes: IsUnset,

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

One or more IPv6 prefixes assigned to the network interface.

source

pub fn maybe_ipv6_prefixes( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> NetworkInterfaceArgsBuilder<SetIpv6Prefixes<S>>
where S::Ipv6Prefixes: IsUnset,

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

One or more IPv6 prefixes assigned to the network interface.

source

pub fn private_ip( self, value: impl Into<Output<Option<String>>>, ) -> NetworkInterfaceArgsBuilder<SetPrivateIp<S>>
where S::PrivateIp: IsUnset,

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

source

pub fn maybe_private_ip( self, value: Option<impl Into<Output<Option<String>>>>, ) -> NetworkInterfaceArgsBuilder<SetPrivateIp<S>>
where S::PrivateIp: IsUnset,

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

source

pub fn private_ip_list_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> NetworkInterfaceArgsBuilder<SetPrivateIpListEnabled<S>>
where S::PrivateIpListEnabled: IsUnset,

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

Whether private_ip_list is allowed and controls the IPs to assign to the ENI and private_ips and private_ips_count become read-only. Default is false.

source

pub fn maybe_private_ip_list_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> NetworkInterfaceArgsBuilder<SetPrivateIpListEnabled<S>>
where S::PrivateIpListEnabled: IsUnset,

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

Whether private_ip_list is allowed and controls the IPs to assign to the ENI and private_ips and private_ips_count become read-only. Default is false.

source

pub fn private_ip_lists( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> NetworkInterfaceArgsBuilder<SetPrivateIpLists<S>>
where S::PrivateIpLists: IsUnset,

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

List of private IPs to assign to the ENI in sequential order. Requires setting private_ip_list_enabled to true.

source

pub fn maybe_private_ip_lists( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> NetworkInterfaceArgsBuilder<SetPrivateIpLists<S>>
where S::PrivateIpLists: IsUnset,

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

List of private IPs to assign to the ENI in sequential order. Requires setting private_ip_list_enabled to true.

source

pub fn private_ips( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> NetworkInterfaceArgsBuilder<SetPrivateIps<S>>
where S::PrivateIps: IsUnset,

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

List of private IPs to assign to the ENI without regard to order.

source

pub fn maybe_private_ips( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> NetworkInterfaceArgsBuilder<SetPrivateIps<S>>
where S::PrivateIps: IsUnset,

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

List of private IPs to assign to the ENI without regard to order.

source

pub fn private_ips_count( self, value: impl Into<Output<Option<i32>>>, ) -> NetworkInterfaceArgsBuilder<SetPrivateIpsCount<S>>
where S::PrivateIpsCount: IsUnset,

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

Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default.

source

pub fn maybe_private_ips_count( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> NetworkInterfaceArgsBuilder<SetPrivateIpsCount<S>>
where S::PrivateIpsCount: IsUnset,

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

Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + private_ips_count, as a primary private IP will be assiged to an ENI by default.

source

pub fn security_groups( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> NetworkInterfaceArgsBuilder<SetSecurityGroups<S>>
where S::SecurityGroups: IsUnset,

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

List of security group IDs to assign to the ENI.

source

pub fn maybe_security_groups( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> NetworkInterfaceArgsBuilder<SetSecurityGroups<S>>
where S::SecurityGroups: IsUnset,

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

List of security group IDs to assign to the ENI.

source

pub fn source_dest_check( self, value: impl Into<Output<Option<bool>>>, ) -> NetworkInterfaceArgsBuilder<SetSourceDestCheck<S>>
where S::SourceDestCheck: IsUnset,

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

Whether to enable source destination checking for the ENI. Default true.

source

pub fn maybe_source_dest_check( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> NetworkInterfaceArgsBuilder<SetSourceDestCheck<S>>
where S::SourceDestCheck: IsUnset,

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

Whether to enable source destination checking for the ENI. Default true.

source

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:

source

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

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.

source

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

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.

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.