@Stability(value=Stable) public static final class CfnNetworkInterface.Builder extends Object implements software.amazon.jsii.Builder<CfnNetworkInterface>
CfnNetworkInterface.| Modifier and Type | Method and Description |
|---|---|
CfnNetworkInterface |
build() |
static CfnNetworkInterface.Builder |
create(software.constructs.Construct scope,
String id) |
CfnNetworkInterface.Builder |
description(String description)
A description for the network interface.
|
CfnNetworkInterface.Builder |
groupSet(List<String> groupSet)
The security group IDs associated with this network interface.
|
CfnNetworkInterface.Builder |
interfaceType(String interfaceType)
The type of network interface.
|
CfnNetworkInterface.Builder |
ipv6AddressCount(Number ipv6AddressCount)
The number of IPv6 addresses to assign to a network interface.
|
CfnNetworkInterface.Builder |
ipv6Addresses(IResolvable ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface.
|
CfnNetworkInterface.Builder |
ipv6Addresses(List<? extends Object> ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface.
|
CfnNetworkInterface.Builder |
privateIpAddress(String privateIpAddress)
Assigns a single private IP address to the network interface, which is used as the primary private IP address.
|
CfnNetworkInterface.Builder |
privateIpAddresses(IResolvable privateIpAddresses)
Assigns private IP addresses to the network interface.
|
CfnNetworkInterface.Builder |
privateIpAddresses(List<? extends Object> privateIpAddresses)
Assigns private IP addresses to the network interface.
|
CfnNetworkInterface.Builder |
secondaryPrivateIpAddressCount(Number secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface.
|
CfnNetworkInterface.Builder |
sourceDestCheck(Boolean 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.
|
CfnNetworkInterface.Builder |
sourceDestCheck(IResolvable 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.
|
CfnNetworkInterface.Builder |
subnetId(String subnetId)
The ID of the subnet to associate with the network interface.
|
CfnNetworkInterface.Builder |
tags(List<? extends CfnTag> tags)
An arbitrary set of tags (key-value pairs) for this network interface.
|
@Stability(value=Stable) public static CfnNetworkInterface.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnNetworkInterface.InstanceIpv6AddressProperty.Builder.@Stability(value=Stable) public CfnNetworkInterface.Builder subnetId(String subnetId)
subnetId - The ID of the subnet to associate with the network interface. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder description(String description)
description - A description for the network interface. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder groupSet(List<String> groupSet)
groupSet - The security group IDs associated with this network interface. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder interfaceType(String interfaceType)
The default is interface . The supported values are efa and trunk .
interfaceType - The type of network interface. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder ipv6AddressCount(Number ipv6AddressCount)
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.
ipv6AddressCount - The number of IPv6 addresses to assign to a network interface. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder ipv6Addresses(IResolvable ipv6Addresses)
If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.
ipv6Addresses - One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder ipv6Addresses(List<? extends Object> ipv6Addresses)
If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.
ipv6Addresses - One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder privateIpAddress(String privateIpAddress)
If you want to specify multiple private IP address, use the PrivateIpAddresses property.
privateIpAddress - Assigns a single private IP address to the network interface, which is used as the primary private IP address. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder privateIpAddresses(IResolvable privateIpAddresses)
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.
privateIpAddresses - Assigns private IP addresses to the network interface. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder privateIpAddresses(List<? extends Object> privateIpAddresses)
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.
privateIpAddresses - Assigns private IP addresses to the network interface. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder secondaryPrivateIpAddressCount(Number secondaryPrivateIpAddressCount)
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 .
secondaryPrivateIpAddressCount - The number of secondary private IPv4 addresses to assign to a network interface. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder sourceDestCheck(Boolean sourceDestCheck)
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.
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. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder sourceDestCheck(IResolvable sourceDestCheck)
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.
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. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface.Builder tags(List<? extends CfnTag> tags)
tags - An arbitrary set of tags (key-value pairs) for this network interface. This parameter is required.this@Stability(value=Stable) public CfnNetworkInterface build()
build in interface software.amazon.jsii.Builder<CfnNetworkInterface>Copyright © 2022. All rights reserved.