@Stability(value=Stable) public static final class CfnInstance.NetworkInterfaceProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnInstance.NetworkInterfaceProperty>
CfnInstance.NetworkInterfaceProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder deviceIndex(String deviceIndex)
CfnInstance.NetworkInterfaceProperty.getDeviceIndex()deviceIndex - The position of the network interface in the attachment order. This parameter is required.
A primary network interface has a device index of 0.
If you create a network interface when launching an instance, you must specify the device index.
this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder associateCarrierIpAddress(Boolean associateCarrierIpAddress)
CfnInstance.NetworkInterfaceProperty.getAssociateCarrierIpAddress()associateCarrierIpAddress - `CfnInstance.NetworkInterfaceProperty.AssociateCarrierIpAddress`.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder associateCarrierIpAddress(IResolvable associateCarrierIpAddress)
CfnInstance.NetworkInterfaceProperty.getAssociateCarrierIpAddress()associateCarrierIpAddress - `CfnInstance.NetworkInterfaceProperty.AssociateCarrierIpAddress`.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder associatePublicIpAddress(Boolean associatePublicIpAddress)
CfnInstance.NetworkInterfaceProperty.getAssociatePublicIpAddress()associatePublicIpAddress - Indicates whether to assign a public IPv4 address to an instance.
Applies only if creating a network interface when launching an instance. The network interface must be the primary network interface. If launching into a default subnet, the default value is true .this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder associatePublicIpAddress(IResolvable associatePublicIpAddress)
CfnInstance.NetworkInterfaceProperty.getAssociatePublicIpAddress()associatePublicIpAddress - Indicates whether to assign a public IPv4 address to an instance.
Applies only if creating a network interface when launching an instance. The network interface must be the primary network interface. If launching into a default subnet, the default value is true .this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder deleteOnTermination(Boolean deleteOnTermination)
CfnInstance.NetworkInterfaceProperty.getDeleteOnTermination()deleteOnTermination - Indicates whether the network interface is deleted when the instance is terminated.
Applies only if creating a network interface when launching an instance.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder deleteOnTermination(IResolvable deleteOnTermination)
CfnInstance.NetworkInterfaceProperty.getDeleteOnTermination()deleteOnTermination - Indicates whether the network interface is deleted when the instance is terminated.
Applies only if creating a network interface when launching an instance.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder description(String description)
CfnInstance.NetworkInterfaceProperty.getDescription()description - The description of the network interface.
Applies only if creating a network interface when launching an instance.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder groupSet(List<String> groupSet)
CfnInstance.NetworkInterfaceProperty.getGroupSet()groupSet - The IDs of the security groups for the network interface.
Applies only if creating a network interface when launching an instance.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder ipv6AddressCount(Number ipv6AddressCount)
CfnInstance.NetworkInterfaceProperty.getIpv6AddressCount()ipv6AddressCount - A number of IPv6 addresses to assign to the network interface.
Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder ipv6Addresses(IResolvable ipv6Addresses)
CfnInstance.NetworkInterfaceProperty.getIpv6Addresses()ipv6Addresses - One or more IPv6 addresses to assign to the network interface.
You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder ipv6Addresses(List<? extends Object> ipv6Addresses)
CfnInstance.NetworkInterfaceProperty.getIpv6Addresses()ipv6Addresses - One or more IPv6 addresses to assign to the network interface.
You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder networkInterfaceId(String networkInterfaceId)
CfnInstance.NetworkInterfaceProperty.getNetworkInterfaceId()networkInterfaceId - The ID of the network interface, when attaching an existing network interface.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder privateIpAddress(String privateIpAddress)
CfnInstance.NetworkInterfaceProperty.getPrivateIpAddress()privateIpAddress - The private IPv4 address of the network interface.
Applies only if creating a network interface when launching an instance.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder privateIpAddresses(IResolvable privateIpAddresses)
CfnInstance.NetworkInterfaceProperty.getPrivateIpAddresses()privateIpAddresses - One or more private IPv4 addresses to assign to the network interface.
Only one private IPv4 address can be designated as primary.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder privateIpAddresses(List<? extends Object> privateIpAddresses)
CfnInstance.NetworkInterfaceProperty.getPrivateIpAddresses()privateIpAddresses - One or more private IPv4 addresses to assign to the network interface.
Only one private IPv4 address can be designated as primary.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder secondaryPrivateIpAddressCount(Number secondaryPrivateIpAddressCount)
CfnInstance.NetworkInterfaceProperty.getSecondaryPrivateIpAddressCount()secondaryPrivateIpAddressCount - The number of secondary private IPv4 addresses.
You can't specify this option and specify more than one private IP address using the private IP addresses option.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty.Builder subnetId(String subnetId)
CfnInstance.NetworkInterfaceProperty.getSubnetId()subnetId - The ID of the subnet associated with the network interface.
Applies only if creating a network interface when launching an instance.this@Stability(value=Stable) public CfnInstance.NetworkInterfaceProperty build()
build in interface software.amazon.jsii.Builder<CfnInstance.NetworkInterfaceProperty>CfnInstance.NetworkInterfacePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.