NetworkInterfaceState constructor
- Input<
String?> ? arn, - Input<
List< ? attachments,NetworkInterfaceAttachment> ?> - Input<
String?> ? description, - Input<
NetworkInterfaceEnaSrdSpecification?> ? enaSrdSpecification, - Input<
bool?> ? enablePrimaryIpv6, - Input<
String?> ? interfaceType, - Input<
int?> ? ipv4PrefixCount, - Input<
List< ? ipv4Prefixes,String> ?> - Input<
int?> ? ipv6AddressCount, - Input<
bool?> ? ipv6AddressListEnabled, - Input<
List< ? ipv6AddressLists,String> ?> - Input<
List< ? ipv6Addresses,String> ?> - Input<
int?> ? ipv6PrefixCount, - Input<
List< ? ipv6Prefixes,String> ?> - Input<
String?> ? macAddress, - Input<
String?> ? outpostArn, - Input<
String?> ? ownerId, - Input<
String?> ? privateDnsName, - Input<
String?> ? privateIp, - Input<
bool?> ? privateIpListEnabled, - Input<
List< ? privateIpLists,String> ?> - Input<
List< ? privateIps,String> ?> - Input<
int?> ? privateIpsCount, - Input<
String?> ? region, - Input<
List< ? securityGroups,String> ?> - Input<
bool?> ? sourceDestCheck, - Input<
String?> ? subnetId, - Input<
Map< ? tags,String, String> ?> - Input<
Map< ? tagsAll,String, String> ?>
Creates a new NetworkInterfaceState.
arn ARN of the network interface.
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.
macAddress MAC address of the network interface.
outpostArn Optional.
ownerId AWS account ID of the owner of the network interface.
privateDnsName Private DNS name of the network interface (IPv4).
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.
tagsAll Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
Implementation
const NetworkInterfaceState({
this.arn,
this.attachments,
this.description,
this.enaSrdSpecification,
this.enablePrimaryIpv6,
this.interfaceType,
this.ipv4PrefixCount,
this.ipv4Prefixes,
this.ipv6AddressCount,
this.ipv6AddressListEnabled,
this.ipv6AddressLists,
this.ipv6Addresses,
this.ipv6PrefixCount,
this.ipv6Prefixes,
this.macAddress,
this.outpostArn,
this.ownerId,
this.privateDnsName,
this.privateIp,
this.privateIpListEnabled,
this.privateIpLists,
this.privateIps,
this.privateIpsCount,
this.region,
this.securityGroups,
this.sourceDestCheck,
this.subnetId,
this.tags,
this.tagsAll,
});