NetworkInterfaceArgs class
The set of arguments for NetworkInterface. The set of arguments for NetworkInterface.
Constructors
-
NetworkInterfaceArgs({Input<
List< ? attachments, Input<NetworkInterfaceAttachment> ?>String?> ? description, Input<NetworkInterfaceEnaSrdSpecification?> ? enaSrdSpecification, Input<bool?> ? enablePrimaryIpv6, Input<String?> ? interfaceType, Input<int?> ? ipv4PrefixCount, Input<List< ? ipv4Prefixes, Input<String> ?>int?> ? ipv6AddressCount, Input<bool?> ? ipv6AddressListEnabled, Input<List< ? ipv6AddressLists, Input<String> ?>List< ? ipv6Addresses, Input<String> ?>int?> ? ipv6PrefixCount, Input<List< ? ipv6Prefixes, Input<String> ?>String?> ? privateIp, Input<bool?> ? privateIpListEnabled, Input<List< ? privateIpLists, Input<String> ?>List< ? privateIps, Input<String> ?>int?> ? privateIpsCount, Input<String?> ? region, Input<List< ? securityGroups, Input<String> ?>bool?> ? sourceDestCheck, required Input<String> subnetId, Input<Map< ? tags})String, String> ?> -
Creates a new NetworkInterfaceArgs.
attachmentsConfiguration block to define the attachment of the ENI. See Attachment below for more details!descriptionDescription for the network interface.enaSrdSpecificationConfigures 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.enablePrimaryIpv6Enables 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.interfaceTypeType of network interface to create. Set toefafor Elastic Fabric Adapter. ChanginginterfaceTypewill cause the resource to be destroyed and re-created.ipv4PrefixCountNumber of IPv4 prefixes that AWS automatically assigns to the network interface.ipv4PrefixesOne or more IPv4 prefixes assigned to the network interface.ipv6AddressCountNumber of IPv6 addresses to assign to a network interface. You can't use this option if specifying specificipv6Addresses. If your subnet has the AssignIpv6AddressOnCreation attribute set totrue, you can specify0to override this setting.ipv6AddressListEnabledWhetheripv6AddressListis allowed and controls the IPs to assign to the ENI andipv6Addressesandipv6AddressCountbecome read-only. Default isfalse.ipv6AddressListsList of private IPs to assign to the ENI in sequential order.ipv6AddressesOne 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 specifyingipv6AddressCount.ipv6PrefixCountNumber of IPv6 prefixes that AWS automatically assigns to the network interface.ipv6PrefixesOne or more IPv6 prefixes assigned to the network interface.privateIpOptional.privateIpListEnabledWhetherprivateIpListis allowed and controls the IPs to assign to the ENI andprivateIpsandprivateIpsCountbecome read-only. Default isfalse.privateIpListsList of private IPs to assign to the ENI in sequential order. Requires settingprivateIpListEnabledtotrue.privateIpsList of private IPs to assign to the ENI without regard to order.privateIpsCountNumber 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.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.securityGroupsList of security group IDs to assign to the ENI.sourceDestCheckWhether to enable source destination checking for the ENI. Default true.subnetIdSubnet ID to create the ENI in.tagsMap of tags to assign to the resource. If configured with a providerdefaultTagsconfiguration 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
efafor Elastic Fabric Adapter. ChanginginterfaceTypewill 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 totrue, you can specify0to 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
ipv6AddressListis allowed and controls the IPs to assign to the ENI andipv6Addressesandipv6AddressCountbecome read-only. Default isfalse.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
privateIpListis allowed and controls the IPs to assign to the ENI andprivateIpsandprivateIpsCountbecome read-only. Default isfalse.final -
privateIpLists
→ Input<
List< ?String> ?> -
List of private IPs to assign to the ENI in sequential order. Requires setting
privateIpListEnabledtotrue.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
-
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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