Interface CfnNetworkInterfaceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnNetworkInterfaceProps.Jsii$Proxy
CfnNetworkInterface
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; CfnNetworkInterfaceProps cfnNetworkInterfaceProps = CfnNetworkInterfaceProps.builder() .subnetId("subnetId") // the properties below are optional .description("description") .groupSet(List.of("groupSet")) .interfaceType("interfaceType") .ipv4PrefixCount(123) .ipv4Prefixes(List.of(Ipv4PrefixSpecificationProperty.builder() .ipv4Prefix("ipv4Prefix") .build())) .ipv6AddressCount(123) .ipv6Addresses(List.of(InstanceIpv6AddressProperty.builder() .ipv6Address("ipv6Address") .build())) .ipv6PrefixCount(123) .ipv6Prefixes(List.of(Ipv6PrefixSpecificationProperty.builder() .ipv6Prefix("ipv6Prefix") .build())) .privateIpAddress("privateIpAddress") .privateIpAddresses(List.of(PrivateIpAddressSpecificationProperty.builder() .primary(false) .privateIpAddress("privateIpAddress") .build())) .secondaryPrivateIpAddressCount(123) .sourceDestCheck(false) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnNetworkInterfaceProps
static final class
An implementation forCfnNetworkInterfaceProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
A description for the network interface.The security group IDs associated with this network interface.default String
The type of network interface.default Number
The number of IPv4 prefixes to be automatically assigned to the network interface.default Object
The IPv4 delegated prefixes that are assigned to the network interface.default Number
The number of IPv6 addresses to assign to a network interface.default Object
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface.default Number
The number of IPv6 prefixes to be automatically assigned to the network interface.default Object
The IPv6 delegated prefixes that are assigned to the network interface.default String
Assigns a single private IP address to the network interface, which is used as the primary private IP address.default Object
Assigns private IP addresses to the network interface.default Number
The number of secondary private IPv4 addresses to assign to a network interface.default Object
Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.The ID of the subnet to associate with the network interface.getTags()
An arbitrary set of tags (key-value pairs) for this network interface.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSubnetId
The ID of the subnet to associate with the network interface.- See Also:
-
getDescription
A description for the network interface.- See Also:
-
getGroupSet
The security group IDs associated with this network interface.- See Also:
-
getInterfaceType
The type of network interface.The default is
interface
. The supported values areefa
andtrunk
.- See Also:
-
getIpv4PrefixCount
The number of IPv4 prefixes to be automatically assigned to the network interface.When creating a network interface, you can't specify a count of IPv4 prefixes if you've specified one of the following: specific IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
- See Also:
-
getIpv4Prefixes
The IPv4 delegated prefixes that are assigned to the network interface.When creating a network interface, you can't specify IPv4 prefixes if you've specified one of the following: a count of IPv4 prefixes, specific private IPv4 addresses, or a count of private IPv4 addresses.
- See Also:
-
getIpv6AddressCount
The number of IPv6 addresses to assign to a network interface.Amazon EC2 automatically selects the IPv6 addresses from the subnet range. To specify specific IPv6 addresses, use the
Ipv6Addresses
property and don't specify this property.When creating a network interface, you can't specify a count of IPv6 addresses if you've specified one of the following: specific IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
- See Also:
-
getIpv6Addresses
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface.If you're specifying a number of IPv6 addresses, use the
Ipv6AddressCount
property and don't specify this property.When creating a network interface, you can't specify IPv6 addresses if you've specified one of the following: a count of IPv6 addresses, specific IPv6 prefixes, or a count of IPv6 prefixes.
- See Also:
-
getIpv6PrefixCount
The number of IPv6 prefixes to be automatically assigned to the network interface.When creating a network interface, you can't specify a count of IPv6 prefixes if you've specified one of the following: specific IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
- See Also:
-
getIpv6Prefixes
The IPv6 delegated prefixes that are assigned to the network interface.When creating a network interface, you can't specify IPv6 prefixes if you've specified one of the following: a count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses.
- See Also:
-
getPrivateIpAddress
Assigns a single private IP address to the network interface, which is used as the primary private IP address.If you want to specify multiple private IP address, use the
PrivateIpAddresses
property.- See Also:
-
getPrivateIpAddresses
Assigns private IP addresses to the network interface.You can specify a primary private IP address by setting the value of the
Primary
property totrue
in thePrivateIpAddressSpecification
property. If you want EC2 to automatically assign private IP addresses, use theSecondaryPrivateIpAddressCount
property and do not specify this property.When creating a network interface, you can't specify private IPv4 addresses if you've specified one of the following: a count of private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
- See Also:
-
getSecondaryPrivateIpAddressCount
The number of secondary private IPv4 addresses to assign to a network interface.When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't specify this option and specify more than one private IP address using
privateIpAddresses
.When creating a Network Interface, you can't specify a count of private IPv4 addresses if you've specified one of the following: specific private IPv4 addresses, specific IPv4 prefixes, or a count of IPv4 prefixes.
- See Also:
-
getSourceDestCheck
Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.If the value is
true
, source/destination checks are enabled; otherwise, they are disabled. The default value istrue
. You must disable source/destination checks if the instance runs services such as network address translation, routing, or firewalls.- See Also:
-
getTags
An arbitrary set of tags (key-value pairs) for this network interface.- See Also:
-
builder
- Returns:
- a
CfnNetworkInterfaceProps.Builder
ofCfnNetworkInterfaceProps
-