pub struct NetworkInterfaceArgs {Show 21 fields
pub attachments: Output<Option<Vec<NetworkInterfaceAttachment>>>,
pub description: Output<Option<String>>,
pub enable_primary_ipv6: Output<Option<bool>>,
pub interface_type: Output<Option<String>>,
pub ipv4_prefix_count: Output<Option<i32>>,
pub ipv4_prefixes: Output<Option<Vec<String>>>,
pub ipv6_address_count: Output<Option<i32>>,
pub ipv6_address_list_enabled: Output<Option<bool>>,
pub ipv6_address_lists: Output<Option<Vec<String>>>,
pub ipv6_addresses: Output<Option<Vec<String>>>,
pub ipv6_prefix_count: Output<Option<i32>>,
pub ipv6_prefixes: Output<Option<Vec<String>>>,
pub private_ip: Output<Option<String>>,
pub private_ip_list_enabled: Output<Option<bool>>,
pub private_ip_lists: Output<Option<Vec<String>>>,
pub private_ips: Output<Option<Vec<String>>>,
pub private_ips_count: Output<Option<i32>>,
pub security_groups: Output<Option<Vec<String>>>,
pub source_dest_check: Output<Option<bool>>,
pub subnet_id: Output<String>,
pub tags: Output<Option<HashMap<String, String>>>,
}
Fields§
§attachments: Output<Option<Vec<NetworkInterfaceAttachment>>>
Configuration block to define the attachment of the ENI. See Attachment below for more details!
description: Output<Option<String>>
Description for the network interface.
enable_primary_ipv6: Output<Option<bool>>
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.
interface_type: Output<Option<String>>
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.
ipv4_prefix_count: Output<Option<i32>>
Number of IPv4 prefixes that AWS automatically assigns to the network interface.
ipv4_prefixes: Output<Option<Vec<String>>>
One or more IPv4 prefixes assigned to the network interface.
ipv6_address_count: Output<Option<i32>>
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.
ipv6_address_list_enabled: Output<Option<bool>>
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
.
ipv6_address_lists: Output<Option<Vec<String>>>
List of private IPs to assign to the ENI in sequential order.
ipv6_addresses: Output<Option<Vec<String>>>
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
.
ipv6_prefix_count: Output<Option<i32>>
Number of IPv6 prefixes that AWS automatically assigns to the network interface.
ipv6_prefixes: Output<Option<Vec<String>>>
One or more IPv6 prefixes assigned to the network interface.
private_ip: Output<Option<String>>
§private_ip_list_enabled: Output<Option<bool>>
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
.
private_ip_lists: Output<Option<Vec<String>>>
List of private IPs to assign to the ENI in sequential order. Requires setting private_ip_list_enabled
to true
.
private_ips: Output<Option<Vec<String>>>
List of private IPs to assign to the ENI without regard to order.
private_ips_count: Output<Option<i32>>
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.
security_groups: Output<Option<Vec<String>>>
List of security group IDs to assign to the ENI.
source_dest_check: Output<Option<bool>>
Whether to enable source destination checking for the ENI. Default true.
subnet_id: Output<String>
Subnet ID to create the ENI in.
The following arguments are optional:
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.
Implementations§
source§impl NetworkInterfaceArgs
impl NetworkInterfaceArgs
sourcepub fn builder() -> NetworkInterfaceArgsBuilder
pub fn builder() -> NetworkInterfaceArgsBuilder
Create an instance of NetworkInterfaceArgs
using the builder syntax
Trait Implementations§
source§impl Clone for NetworkInterfaceArgs
impl Clone for NetworkInterfaceArgs
source§fn clone(&self) -> NetworkInterfaceArgs
fn clone(&self) -> NetworkInterfaceArgs
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 NetworkInterfaceArgs
impl RefUnwindSafe for NetworkInterfaceArgs
impl Send for NetworkInterfaceArgs
impl Sync for NetworkInterfaceArgs
impl Unpin for NetworkInterfaceArgs
impl UnwindSafe for NetworkInterfaceArgs
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
)