Package com.pulumi.aws.ec2
Class NetworkInterfaceArgs
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.aws.ec2.NetworkInterfaceArgs
-
public final class NetworkInterfaceArgs extends com.pulumi.resources.ResourceArgs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNetworkInterfaceArgs.Builder
-
Field Summary
Fields Modifier and Type Field Description static NetworkInterfaceArgsEmpty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<com.pulumi.core.Output<java.util.List<NetworkInterfaceAttachmentArgs>>>attachments()static NetworkInterfaceArgs.Builderbuilder()static NetworkInterfaceArgs.Builderbuilder(NetworkInterfaceArgs defaults)java.util.Optional<com.pulumi.core.Output<NetworkInterfaceConnectionTrackingSpecificationArgs>>connectionTrackingSpecification()java.util.Optional<com.pulumi.core.Output<java.lang.String>>description()java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>enablePrimaryIpv6()java.util.Optional<com.pulumi.core.Output<NetworkInterfaceEnaSrdSpecificationArgs>>enaSrdSpecification()java.util.Optional<com.pulumi.core.Output<java.lang.String>>interfaceType()java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>ipv4PrefixCount()java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>>ipv4Prefixes()java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>ipv6AddressCount()java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>>ipv6Addresses()java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>ipv6AddressListEnabled()java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>>ipv6AddressLists()java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>ipv6PrefixCount()java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>>ipv6Prefixes()java.util.Optional<com.pulumi.core.Output<java.lang.String>>privateIp()java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>privateIpListEnabled()java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>>privateIpLists()java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>>privateIps()java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>privateIpsCount()java.util.Optional<com.pulumi.core.Output<java.lang.String>>region()java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>>securityGroups()java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>sourceDestCheck()com.pulumi.core.Output<java.lang.String>subnetId()java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>>tags()
-
-
-
Field Detail
-
Empty
public static final NetworkInterfaceArgs Empty
-
-
Method Detail
-
attachments
public java.util.Optional<com.pulumi.core.Output<java.util.List<NetworkInterfaceAttachmentArgs>>> attachments()
- Returns:
- Configuration block to define the attachment of the ENI. See Attachment below for more details!
-
connectionTrackingSpecification
public java.util.Optional<com.pulumi.core.Output<NetworkInterfaceConnectionTrackingSpecificationArgs>> connectionTrackingSpecification()
- Returns:
- Configures the [connection tracking timeouts](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#connection-tracking-timeouts) for the network interface. See Connection Tracking Specification below for more details.
-
description
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()
- Returns:
- Description for the network interface.
-
enaSrdSpecification
public java.util.Optional<com.pulumi.core.Output<NetworkInterfaceEnaSrdSpecificationArgs>> enaSrdSpecification()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> enablePrimaryIpv6()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> interfaceType()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> ipv4PrefixCount()
- Returns:
- Number of IPv4 prefixes that AWS automatically assigns to the network interface.
-
ipv4Prefixes
public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> ipv4Prefixes()
- Returns:
- One or more IPv4 prefixes assigned to the network interface.
-
ipv6AddressCount
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> ipv6AddressCount()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> ipv6AddressListEnabled()
- Returns:
- Whether `ipv6AddressList` is allowed and controls the IPs to assign to the ENI and `ipv6Addresses` and `ipv6AddressCount` become read-only. Default is `false`.
-
ipv6AddressLists
public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> ipv6AddressLists()
- Returns:
- List of private IPs to assign to the ENI in sequential order.
-
ipv6Addresses
public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> ipv6Addresses()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> ipv6PrefixCount()
- Returns:
- Number of IPv6 prefixes that AWS automatically assigns to the network interface.
-
ipv6Prefixes
public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> ipv6Prefixes()
- Returns:
- One or more IPv6 prefixes assigned to the network interface.
-
privateIp
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> privateIp()
-
privateIpListEnabled
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> privateIpListEnabled()
- Returns:
- Whether `privateIpList` is allowed and controls the IPs to assign to the ENI and `privateIps` and `privateIpsCount` become read-only. Default is `false`.
-
privateIpLists
public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> privateIpLists()
- Returns:
- List of private IPs to assign to the ENI in sequential order. Requires setting `privateIpListEnabled` to `true`.
-
privateIps
public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> privateIps()
- Returns:
- List of private IPs to assign to the ENI without regard to order.
-
privateIpsCount
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> privateIpsCount()
- Returns:
- 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 assigned to an ENI by default.
-
region
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
securityGroups
public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> securityGroups()
- Returns:
- List of security group IDs to assign to the ENI.
-
sourceDestCheck
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> sourceDestCheck()
- Returns:
- Whether to enable source destination checking for the ENI. Default true.
-
subnetId
public com.pulumi.core.Output<java.lang.String> subnetId()
- Returns:
- Subnet ID to create the ENI in. The following arguments are optional:
-
tags
public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- 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.
-
builder
public static NetworkInterfaceArgs.Builder builder()
-
builder
public static NetworkInterfaceArgs.Builder builder(NetworkInterfaceArgs defaults)
-
-