NetworkInterfaceArgs class

The set of arguments for NetworkInterface. The set of arguments for NetworkInterface.

Constructors

NetworkInterfaceArgs({Input<List<NetworkInterfaceAttachment>?>? attachments, Input<String?>? description, Input<NetworkInterfaceEnaSrdSpecification?>? enaSrdSpecification, Input<bool?>? enablePrimaryIpv6, Input<String?>? interfaceType, Input<int?>? ipv4PrefixCount, Input<List<String>?>? ipv4Prefixes, Input<int?>? ipv6AddressCount, Input<bool?>? ipv6AddressListEnabled, Input<List<String>?>? ipv6AddressLists, Input<List<String>?>? ipv6Addresses, Input<int?>? ipv6PrefixCount, Input<List<String>?>? ipv6Prefixes, Input<String?>? privateIp, Input<bool?>? privateIpListEnabled, Input<List<String>?>? privateIpLists, Input<List<String>?>? privateIps, Input<int?>? privateIpsCount, Input<String?>? region, Input<List<String>?>? securityGroups, Input<bool?>? sourceDestCheck, required Input<String> subnetId, Input<Map<String, String>?>? tags})
Creates a new NetworkInterfaceArgs. attachments Configuration block to define the attachment of the ENI. See Attachment below for more details! description Description for the network interface. enaSrdSpecification Configures ENA Express for the network interface. The ENI must be attached to an instance to configure ENA Express. See ENA SRD Specification below for more details. enablePrimaryIpv6 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. interfaceType Type of network interface to create. Set to efa for Elastic Fabric Adapter. Changing interfaceType will cause the resource to be destroyed and re-created. ipv4PrefixCount Number of IPv4 prefixes that AWS automatically assigns to the network interface. ipv4Prefixes One or more IPv4 prefixes assigned to the network interface. ipv6AddressCount Number of IPv6 addresses to assign to a network interface. You can't use this option if specifying specific ipv6Addresses. If your subnet has the AssignIpv6AddressOnCreation attribute set to true, you can specify 0 to override this setting. ipv6AddressListEnabled Whether ipv6AddressList is allowed and controls the IPs to assign to the ENI and ipv6Addresses and ipv6AddressCount become read-only. Default is false. ipv6AddressLists List of private IPs to assign to the ENI in sequential order. ipv6Addresses 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 ipv6AddressCount. ipv6PrefixCount Number of IPv6 prefixes that AWS automatically assigns to the network interface. ipv6Prefixes One or more IPv6 prefixes assigned to the network interface. privateIp Optional. privateIpListEnabled Whether privateIpList is allowed and controls the IPs to assign to the ENI and privateIps and privateIpsCount become read-only. Default is false. privateIpLists List of private IPs to assign to the ENI in sequential order. Requires setting privateIpListEnabled to true. privateIps List of private IPs to assign to the ENI without regard to order. privateIpsCount Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + privateIpsCount, as a primary private IP will be assiged to an ENI by default. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. securityGroups List of security group IDs to assign to the ENI. sourceDestCheck Whether to enable source destination checking for the ENI. Default true. subnetId Subnet ID to create the ENI in. tags Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
const
NetworkInterfaceArgs.fromMap(Map<String, dynamic> map)
factory

Properties

attachments → Input<List<NetworkInterfaceAttachment>?>?
Configuration block to define the attachment of the ENI. See Attachment below for more details!
final
description → Input<String?>?
Description for the network interface.
final
enablePrimaryIpv6 → Input<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.
final
enaSrdSpecification → Input<NetworkInterfaceEnaSrdSpecification?>?
Configures ENA Express for the network interface. The ENI must be attached to an instance to configure ENA Express. See ENA SRD Specification below for more details.
final
hashCode int
The hash code for this object.
no setterinherited
interfaceType → Input<String?>?
Type of network interface to create. Set to efa for Elastic Fabric Adapter. Changing interfaceType will cause the resource to be destroyed and re-created.
final
ipv4PrefixCount → Input<int?>?
Number of IPv4 prefixes that AWS automatically assigns to the network interface.
final
ipv4Prefixes → Input<List<String>?>?
One or more IPv4 prefixes assigned to the network interface.
final
ipv6AddressCount → Input<int?>?
Number of IPv6 addresses to assign to a network interface. You can't use this option if specifying specific ipv6Addresses. If your subnet has the AssignIpv6AddressOnCreation attribute set to true, you can specify 0 to override this setting.
final
ipv6Addresses → Input<List<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 ipv6AddressCount.
final
ipv6AddressListEnabled → Input<bool?>?
Whether ipv6AddressList is allowed and controls the IPs to assign to the ENI and ipv6Addresses and ipv6AddressCount become read-only. Default is false.
final
ipv6AddressLists → Input<List<String>?>?
List of private IPs to assign to the ENI in sequential order.
final
ipv6PrefixCount → Input<int?>?
Number of IPv6 prefixes that AWS automatically assigns to the network interface.
final
ipv6Prefixes → Input<List<String>?>?
One or more IPv6 prefixes assigned to the network interface.
final
privateIp → Input<String?>?
final
privateIpListEnabled → Input<bool?>?
Whether privateIpList is allowed and controls the IPs to assign to the ENI and privateIps and privateIpsCount become read-only. Default is false.
final
privateIpLists → Input<List<String>?>?
List of private IPs to assign to the ENI in sequential order. Requires setting privateIpListEnabled to true.
final
privateIps → Input<List<String>?>?
List of private IPs to assign to the ENI without regard to order.
final
privateIpsCount → Input<int?>?
Number of secondary private IPs to assign to the ENI. The total number of private IPs will be 1 + privateIpsCount, as a primary private IP will be assiged to an ENI by default.
final
region → Input<String?>?
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
securityGroups → Input<List<String>?>?
List of security group IDs to assign to the ENI.
final
sourceDestCheck → Input<bool?>?
Whether to enable source destination checking for the ENI. Default true.
final
subnetId → Input<String>
Subnet ID to create the ENI in.
final
tags → Input<Map<String, String>?>?
Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited