public static interface CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty
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.*; InstanceNetworkInterfaceSpecificationProperty instanceNetworkInterfaceSpecificationProperty = InstanceNetworkInterfaceSpecificationProperty.builder() .associatePublicIpAddress(false) .deleteOnTermination(false) .description("description") .deviceIndex(123) .groups(List.of("groups")) .ipv6AddressCount(123) .ipv6Addresses(List.of(InstanceIpv6AddressProperty.builder() .ipv6Address("ipv6Address") .build())) .networkInterfaceId("networkInterfaceId") .privateIpAddresses(List.of(PrivateIpAddressSpecificationProperty.builder() .privateIpAddress("privateIpAddress") // the properties below are optional .primary(false) .build())) .secondaryPrivateIpAddressCount(123) .subnetId("subnetId") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.Builder
|
static class |
CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.Jsii$Proxy
An implementation for
CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty |
Modifier and Type | Method and Description |
---|---|
static CfnSpotFleet.InstanceNetworkInterfaceSpecificationProperty.Builder |
builder() |
default java.lang.Object |
getAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to an instance you launch in a VPC.
|
default java.lang.Object |
getDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
|
default java.lang.String |
getDescription()
The description of the network interface.
|
default java.lang.Number |
getDeviceIndex()
The position of the network interface in the attachment order.
|
default java.util.List<java.lang.String> |
getGroups()
The IDs of the security groups for the network interface.
|
default java.lang.Number |
getIpv6AddressCount()
A number of IPv6 addresses to assign to the network interface.
|
default java.lang.Object |
getIpv6Addresses()
One or more IPv6 addresses to assign to the network interface.
|
default java.lang.String |
getNetworkInterfaceId()
The ID of the network interface.
|
default java.lang.Object |
getPrivateIpAddresses()
One or more private IPv4 addresses to assign to the network interface.
|
default java.lang.Number |
getSecondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses.
|
default java.lang.String |
getSubnetId()
The ID of the subnet associated with the network interface.
|
default java.lang.Object getAssociatePublicIpAddress()
The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true
.
default java.lang.Object getDeleteOnTermination()
default java.lang.String getDescription()
Applies only if creating a network interface when launching an instance.
default java.lang.Number getDeviceIndex()
A primary network interface has a device index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
default java.util.List<java.lang.String> getGroups()
Applies only if creating a network interface when launching an instance.
default java.lang.Number getIpv6AddressCount()
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.
default java.lang.Object getIpv6Addresses()
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.
default java.lang.String getNetworkInterfaceId()
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
default java.lang.Object getPrivateIpAddresses()
Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
default java.lang.Number getSecondaryPrivateIpAddressCount()
You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.
default java.lang.String getSubnetId()
Applies only if creating a network interface when launching an instance.