@Stability(value=Stable) public static final class CfnNetworkInterfaceProps.Builder extends Object implements software.amazon.jsii.Builder<CfnNetworkInterfaceProps>
CfnNetworkInterfaceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder subnetId(String subnetId)
CfnNetworkInterfaceProps.getSubnetId()subnetId - The ID of the subnet to associate with the network interface. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder description(String description)
CfnNetworkInterfaceProps.getDescription()description - A description for the network interface.this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder groupSet(List<String> groupSet)
CfnNetworkInterfaceProps.getGroupSet()groupSet - The security group IDs associated with this network interface.this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder interfaceType(String interfaceType)
CfnNetworkInterfaceProps.getInterfaceType()interfaceType - The type of network interface.
The default is interface . The supported values are efa and trunk .this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder ipv6AddressCount(Number ipv6AddressCount)
CfnNetworkInterfaceProps.getIpv6AddressCount()ipv6AddressCount - 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.this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder ipv6Addresses(IResolvable ipv6Addresses)
CfnNetworkInterfaceProps.getIpv6Addresses()ipv6Addresses - 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.this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder ipv6Addresses(List<? extends Object> ipv6Addresses)
CfnNetworkInterfaceProps.getIpv6Addresses()ipv6Addresses - 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.this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder privateIpAddress(String privateIpAddress)
CfnNetworkInterfaceProps.getPrivateIpAddress()privateIpAddress - 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.this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder privateIpAddresses(IResolvable privateIpAddresses)
CfnNetworkInterfaceProps.getPrivateIpAddresses()privateIpAddresses - Assigns private IP addresses to the network interface.
You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder privateIpAddresses(List<? extends Object> privateIpAddresses)
CfnNetworkInterfaceProps.getPrivateIpAddresses()privateIpAddresses - Assigns private IP addresses to the network interface.
You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder secondaryPrivateIpAddressCount(Number secondaryPrivateIpAddressCount)
CfnNetworkInterfaceProps.getSecondaryPrivateIpAddressCount()secondaryPrivateIpAddressCount - 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 .
The number of IP addresses you can assign to a network interface varies by instance type. For more information, see IP Addresses Per ENI Per Instance Type in the Amazon Virtual Private Cloud User Guide .
this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder sourceDestCheck(Boolean sourceDestCheck)
CfnNetworkInterfaceProps.getSourceDestCheck()sourceDestCheck - 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 is true . You must disable source/destination checks if the instance runs services such as network address translation, routing, or firewalls.this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder sourceDestCheck(IResolvable sourceDestCheck)
CfnNetworkInterfaceProps.getSourceDestCheck()sourceDestCheck - 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 is true . You must disable source/destination checks if the instance runs services such as network address translation, routing, or firewalls.this@Stability(value=Stable) public CfnNetworkInterfaceProps.Builder tags(List<? extends CfnTag> tags)
CfnNetworkInterfaceProps.getTags()tags - An arbitrary set of tags (key-value pairs) for this network interface.this@Stability(value=Stable) public CfnNetworkInterfaceProps build()
build in interface software.amazon.jsii.Builder<CfnNetworkInterfaceProps>CfnNetworkInterfacePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.