@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RunInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<RunInstancesRequest>
NOOP
Constructor and Description |
---|
RunInstancesRequest()
Default constructor for RunInstancesRequest object.
|
RunInstancesRequest(String imageId,
Integer minCount,
Integer maxCount)
Constructs a new RunInstancesRequest object.
|
Modifier and Type | Method and Description |
---|---|
RunInstancesRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAdditionalInfo()
Reserved.
|
List<BlockDeviceMapping> |
getBlockDeviceMappings()
The block device mapping, which defines the EBS volumes and instance store volumes to attach to the instance at
launch.
|
CapacityReservationSpecification |
getCapacityReservationSpecification()
Information about the Capacity Reservation targeting option.
|
String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
CpuOptionsRequest |
getCpuOptions()
The CPU options for the instance.
|
CreditSpecificationRequest |
getCreditSpecification()
The credit option for CPU usage of the burstable performance instance.
|
Boolean |
getDisableApiStop()
Indicates whether an instance is enabled for stop protection.
|
Boolean |
getDisableApiTermination()
If you set this parameter to
true , you can't terminate the instance using the Amazon EC2 console,
CLI, or API; otherwise, you can. |
Request<RunInstancesRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
|
List<ElasticGpuSpecification> |
getElasticGpuSpecification()
An elastic GPU to associate with the instance.
|
List<ElasticInferenceAccelerator> |
getElasticInferenceAccelerators()
An elastic inference accelerator to associate with the instance.
|
Boolean |
getEnablePrimaryIpv6()
If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary IPv6
address.
|
EnclaveOptionsRequest |
getEnclaveOptions()
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
|
HibernationOptionsRequest |
getHibernationOptions()
Indicates whether an instance is enabled for hibernation.
|
IamInstanceProfileSpecification |
getIamInstanceProfile()
The name or Amazon Resource Name (ARN) of an IAM instance profile.
|
String |
getImageId()
The ID of the AMI.
|
String |
getInstanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
InstanceMarketOptionsRequest |
getInstanceMarketOptions()
The market (purchasing) option for the instances.
|
String |
getInstanceType()
The instance type.
|
Integer |
getIpv6AddressCount()
The number of IPv6 addresses to associate with the primary network interface.
|
List<InstanceIpv6Address> |
getIpv6Addresses()
The IPv6 addresses from the range of the subnet to associate with the primary network interface.
|
String |
getKernelId()
The ID of the kernel.
|
String |
getKeyName()
The name of the key pair.
|
LaunchTemplateSpecification |
getLaunchTemplate()
The launch template.
|
List<LicenseConfigurationRequest> |
getLicenseSpecifications()
The license configurations.
|
InstanceMaintenanceOptionsRequest |
getMaintenanceOptions()
The maintenance and recovery options for the instance.
|
Integer |
getMaxCount()
The maximum number of instances to launch.
|
InstanceMetadataOptionsRequest |
getMetadataOptions()
The metadata options for the instance.
|
Integer |
getMinCount()
The minimum number of instances to launch.
|
Boolean |
getMonitoring()
Specifies whether detailed monitoring is enabled for the instance.
|
List<InstanceNetworkInterfaceSpecification> |
getNetworkInterfaces()
The network interfaces to associate with the instance.
|
Placement |
getPlacement()
The placement for the instance.
|
PrivateDnsNameOptionsRequest |
getPrivateDnsNameOptions()
The options for the instance hostname.
|
String |
getPrivateIpAddress()
The primary IPv4 address.
|
String |
getRamdiskId()
The ID of the RAM disk to select.
|
List<String> |
getSecurityGroupIds()
The IDs of the security groups.
|
List<String> |
getSecurityGroups()
[Default VPC] The names of the security groups.
|
String |
getSubnetId()
The ID of the subnet to launch the instance into.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the resources that are created during instance launch.
|
String |
getUserData()
The user data to make available to the instance.
|
int |
hashCode() |
Boolean |
isDisableApiStop()
Indicates whether an instance is enabled for stop protection.
|
Boolean |
isDisableApiTermination()
If you set this parameter to
true , you can't terminate the instance using the Amazon EC2 console,
CLI, or API; otherwise, you can. |
Boolean |
isEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
|
Boolean |
isEnablePrimaryIpv6()
If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary IPv6
address.
|
Boolean |
isMonitoring()
Specifies whether detailed monitoring is enabled for the instance.
|
void |
setAdditionalInfo(String additionalInfo)
Reserved.
|
void |
setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mapping, which defines the EBS volumes and instance store volumes to attach to the instance at
launch.
|
void |
setCapacityReservationSpecification(CapacityReservationSpecification capacityReservationSpecification)
Information about the Capacity Reservation targeting option.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
void |
setCpuOptions(CpuOptionsRequest cpuOptions)
The CPU options for the instance.
|
void |
setCreditSpecification(CreditSpecificationRequest creditSpecification)
The credit option for CPU usage of the burstable performance instance.
|
void |
setDisableApiStop(Boolean disableApiStop)
Indicates whether an instance is enabled for stop protection.
|
void |
setDisableApiTermination(Boolean disableApiTermination)
If you set this parameter to
true , you can't terminate the instance using the Amazon EC2 console,
CLI, or API; otherwise, you can. |
void |
setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
void |
setElasticGpuSpecification(Collection<ElasticGpuSpecification> elasticGpuSpecification)
An elastic GPU to associate with the instance.
|
void |
setElasticInferenceAccelerators(Collection<ElasticInferenceAccelerator> elasticInferenceAccelerators)
An elastic inference accelerator to associate with the instance.
|
void |
setEnablePrimaryIpv6(Boolean enablePrimaryIpv6)
If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary IPv6
address.
|
void |
setEnclaveOptions(EnclaveOptionsRequest enclaveOptions)
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
|
void |
setHibernationOptions(HibernationOptionsRequest hibernationOptions)
Indicates whether an instance is enabled for hibernation.
|
void |
setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The name or Amazon Resource Name (ARN) of an IAM instance profile.
|
void |
setImageId(String imageId)
The ID of the AMI.
|
void |
setInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
void |
setInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
void |
setInstanceMarketOptions(InstanceMarketOptionsRequest instanceMarketOptions)
The market (purchasing) option for the instances.
|
void |
setInstanceType(InstanceType instanceType)
The instance type.
|
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to associate with the primary network interface.
|
void |
setIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses from the range of the subnet to associate with the primary network interface.
|
void |
setKernelId(String kernelId)
The ID of the kernel.
|
void |
setKeyName(String keyName)
The name of the key pair.
|
void |
setLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template.
|
void |
setLicenseSpecifications(Collection<LicenseConfigurationRequest> licenseSpecifications)
The license configurations.
|
void |
setMaintenanceOptions(InstanceMaintenanceOptionsRequest maintenanceOptions)
The maintenance and recovery options for the instance.
|
void |
setMaxCount(Integer maxCount)
The maximum number of instances to launch.
|
void |
setMetadataOptions(InstanceMetadataOptionsRequest metadataOptions)
The metadata options for the instance.
|
void |
setMinCount(Integer minCount)
The minimum number of instances to launch.
|
void |
setMonitoring(Boolean monitoring)
Specifies whether detailed monitoring is enabled for the instance.
|
void |
setNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
The network interfaces to associate with the instance.
|
void |
setPlacement(Placement placement)
The placement for the instance.
|
void |
setPrivateDnsNameOptions(PrivateDnsNameOptionsRequest privateDnsNameOptions)
The options for the instance hostname.
|
void |
setPrivateIpAddress(String privateIpAddress)
The primary IPv4 address.
|
void |
setRamdiskId(String ramdiskId)
The ID of the RAM disk to select.
|
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
The IDs of the security groups.
|
void |
setSecurityGroups(Collection<String> securityGroups)
[Default VPC] The names of the security groups.
|
void |
setSubnetId(String subnetId)
The ID of the subnet to launch the instance into.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the resources that are created during instance launch.
|
void |
setUserData(String userData)
The user data to make available to the instance.
|
String |
toString()
Returns a string representation of this object.
|
RunInstancesRequest |
withAdditionalInfo(String additionalInfo)
Reserved.
|
RunInstancesRequest |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
The block device mapping, which defines the EBS volumes and instance store volumes to attach to the instance at
launch.
|
RunInstancesRequest |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mapping, which defines the EBS volumes and instance store volumes to attach to the instance at
launch.
|
RunInstancesRequest |
withCapacityReservationSpecification(CapacityReservationSpecification capacityReservationSpecification)
Information about the Capacity Reservation targeting option.
|
RunInstancesRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
RunInstancesRequest |
withCpuOptions(CpuOptionsRequest cpuOptions)
The CPU options for the instance.
|
RunInstancesRequest |
withCreditSpecification(CreditSpecificationRequest creditSpecification)
The credit option for CPU usage of the burstable performance instance.
|
RunInstancesRequest |
withDisableApiStop(Boolean disableApiStop)
Indicates whether an instance is enabled for stop protection.
|
RunInstancesRequest |
withDisableApiTermination(Boolean disableApiTermination)
If you set this parameter to
true , you can't terminate the instance using the Amazon EC2 console,
CLI, or API; otherwise, you can. |
RunInstancesRequest |
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
RunInstancesRequest |
withElasticGpuSpecification(Collection<ElasticGpuSpecification> elasticGpuSpecification)
An elastic GPU to associate with the instance.
|
RunInstancesRequest |
withElasticGpuSpecification(ElasticGpuSpecification... elasticGpuSpecification)
An elastic GPU to associate with the instance.
|
RunInstancesRequest |
withElasticInferenceAccelerators(Collection<ElasticInferenceAccelerator> elasticInferenceAccelerators)
An elastic inference accelerator to associate with the instance.
|
RunInstancesRequest |
withElasticInferenceAccelerators(ElasticInferenceAccelerator... elasticInferenceAccelerators)
An elastic inference accelerator to associate with the instance.
|
RunInstancesRequest |
withEnablePrimaryIpv6(Boolean enablePrimaryIpv6)
If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary IPv6
address.
|
RunInstancesRequest |
withEnclaveOptions(EnclaveOptionsRequest enclaveOptions)
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
|
RunInstancesRequest |
withHibernationOptions(HibernationOptionsRequest hibernationOptions)
Indicates whether an instance is enabled for hibernation.
|
RunInstancesRequest |
withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The name or Amazon Resource Name (ARN) of an IAM instance profile.
|
RunInstancesRequest |
withImageId(String imageId)
The ID of the AMI.
|
RunInstancesRequest |
withInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
RunInstancesRequest |
withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
RunInstancesRequest |
withInstanceMarketOptions(InstanceMarketOptionsRequest instanceMarketOptions)
The market (purchasing) option for the instances.
|
RunInstancesRequest |
withInstanceType(InstanceType instanceType)
The instance type.
|
RunInstancesRequest |
withInstanceType(String instanceType)
The instance type.
|
RunInstancesRequest |
withIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to associate with the primary network interface.
|
RunInstancesRequest |
withIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses from the range of the subnet to associate with the primary network interface.
|
RunInstancesRequest |
withIpv6Addresses(InstanceIpv6Address... ipv6Addresses)
The IPv6 addresses from the range of the subnet to associate with the primary network interface.
|
RunInstancesRequest |
withKernelId(String kernelId)
The ID of the kernel.
|
RunInstancesRequest |
withKeyName(String keyName)
The name of the key pair.
|
RunInstancesRequest |
withLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template.
|
RunInstancesRequest |
withLicenseSpecifications(Collection<LicenseConfigurationRequest> licenseSpecifications)
The license configurations.
|
RunInstancesRequest |
withLicenseSpecifications(LicenseConfigurationRequest... licenseSpecifications)
The license configurations.
|
RunInstancesRequest |
withMaintenanceOptions(InstanceMaintenanceOptionsRequest maintenanceOptions)
The maintenance and recovery options for the instance.
|
RunInstancesRequest |
withMaxCount(Integer maxCount)
The maximum number of instances to launch.
|
RunInstancesRequest |
withMetadataOptions(InstanceMetadataOptionsRequest metadataOptions)
The metadata options for the instance.
|
RunInstancesRequest |
withMinCount(Integer minCount)
The minimum number of instances to launch.
|
RunInstancesRequest |
withMonitoring(Boolean monitoring)
Specifies whether detailed monitoring is enabled for the instance.
|
RunInstancesRequest |
withNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
The network interfaces to associate with the instance.
|
RunInstancesRequest |
withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
The network interfaces to associate with the instance.
|
RunInstancesRequest |
withPlacement(Placement placement)
The placement for the instance.
|
RunInstancesRequest |
withPrivateDnsNameOptions(PrivateDnsNameOptionsRequest privateDnsNameOptions)
The options for the instance hostname.
|
RunInstancesRequest |
withPrivateIpAddress(String privateIpAddress)
The primary IPv4 address.
|
RunInstancesRequest |
withRamdiskId(String ramdiskId)
The ID of the RAM disk to select.
|
RunInstancesRequest |
withSecurityGroupIds(Collection<String> securityGroupIds)
The IDs of the security groups.
|
RunInstancesRequest |
withSecurityGroupIds(String... securityGroupIds)
The IDs of the security groups.
|
RunInstancesRequest |
withSecurityGroups(Collection<String> securityGroups)
[Default VPC] The names of the security groups.
|
RunInstancesRequest |
withSecurityGroups(String... securityGroups)
[Default VPC] The names of the security groups.
|
RunInstancesRequest |
withSubnetId(String subnetId)
The ID of the subnet to launch the instance into.
|
RunInstancesRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the resources that are created during instance launch.
|
RunInstancesRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the resources that are created during instance launch.
|
RunInstancesRequest |
withUserData(String userData)
The user data to make available to the instance.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public RunInstancesRequest()
public RunInstancesRequest(String imageId, Integer minCount, Integer maxCount)
imageId
- The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch
template.minCount
- The minimum number of instances to launch. If you specify a value that is more capacity than Amazon EC2
can provide in the target Availability Zone, Amazon EC2 does not launch any instances.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
maxCount
- The maximum number of instances to launch. If you specify a value that is more capacity than Amazon EC2
can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances
above the specified minimum count.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
public List<BlockDeviceMapping> getBlockDeviceMappings()
The block device mapping, which defines the EBS volumes and instance store volumes to attach to the instance at launch. For more information, see Block device mappings in the Amazon EC2 User Guide.
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mapping, which defines the EBS volumes and instance store volumes to attach to the instance at launch. For more information, see Block device mappings in the Amazon EC2 User Guide.
blockDeviceMappings
- The block device mapping, which defines the EBS volumes and instance store volumes to attach to the
instance at launch. For more information, see Block device
mappings in the Amazon EC2 User Guide.public RunInstancesRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
The block device mapping, which defines the EBS volumes and instance store volumes to attach to the instance at launch. For more information, see Block device mappings in the Amazon EC2 User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)
or withBlockDeviceMappings(java.util.Collection)
if you want to override the existing values.
blockDeviceMappings
- The block device mapping, which defines the EBS volumes and instance store volumes to attach to the
instance at launch. For more information, see Block device
mappings in the Amazon EC2 User Guide.public RunInstancesRequest withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
The block device mapping, which defines the EBS volumes and instance store volumes to attach to the instance at launch. For more information, see Block device mappings in the Amazon EC2 User Guide.
blockDeviceMappings
- The block device mapping, which defines the EBS volumes and instance store volumes to attach to the
instance at launch. For more information, see Block device
mappings in the Amazon EC2 User Guide.public void setImageId(String imageId)
The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch template.
imageId
- The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch
template.public String getImageId()
The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch template.
public RunInstancesRequest withImageId(String imageId)
The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch template.
imageId
- The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch
template.public void setInstanceType(String instanceType)
The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide.
instanceType
- The instance type. For more information, see Amazon EC2 instance
types in the Amazon EC2 User Guide.InstanceType
public String getInstanceType()
The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide.
InstanceType
public RunInstancesRequest withInstanceType(String instanceType)
The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide.
instanceType
- The instance type. For more information, see Amazon EC2 instance
types in the Amazon EC2 User Guide.InstanceType
public void setInstanceType(InstanceType instanceType)
The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide.
instanceType
- The instance type. For more information, see Amazon EC2 instance
types in the Amazon EC2 User Guide.InstanceType
public RunInstancesRequest withInstanceType(InstanceType instanceType)
The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide.
instanceType
- The instance type. For more information, see Amazon EC2 instance
types in the Amazon EC2 User Guide.InstanceType
public void setIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your 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.
You cannot specify this option and the network interfaces option in the same request.
ipv6AddressCount
- The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6
addresses from the range of your 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.
You cannot specify this option and the network interfaces option in the same request.
public Integer getIpv6AddressCount()
The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your 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.
You cannot specify this option and the network interfaces option in the same request.
You cannot specify this option and the network interfaces option in the same request.
public RunInstancesRequest withIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your 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.
You cannot specify this option and the network interfaces option in the same request.
ipv6AddressCount
- The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6
addresses from the range of your 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.
You cannot specify this option and the network interfaces option in the same request.
public List<InstanceIpv6Address> getIpv6Addresses()
The IPv6 addresses from the range of the subnet to associate with the primary 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.
You cannot specify this option and the network interfaces option in the same request.
You cannot specify this option and the network interfaces option in the same request.
public void setIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses from the range of the subnet to associate with the primary 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.
You cannot specify this option and the network interfaces option in the same request.
ipv6Addresses
- The IPv6 addresses from the range of the subnet to associate with the primary 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.
You cannot specify this option and the network interfaces option in the same request.
public RunInstancesRequest withIpv6Addresses(InstanceIpv6Address... ipv6Addresses)
The IPv6 addresses from the range of the subnet to associate with the primary 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.
You cannot specify this option and the network interfaces option in the same request.
NOTE: This method appends the values to the existing list (if any). Use
setIpv6Addresses(java.util.Collection)
or withIpv6Addresses(java.util.Collection)
if you want
to override the existing values.
ipv6Addresses
- The IPv6 addresses from the range of the subnet to associate with the primary 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.
You cannot specify this option and the network interfaces option in the same request.
public RunInstancesRequest withIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses from the range of the subnet to associate with the primary 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.
You cannot specify this option and the network interfaces option in the same request.
ipv6Addresses
- The IPv6 addresses from the range of the subnet to associate with the primary 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.
You cannot specify this option and the network interfaces option in the same request.
public void setKernelId(String kernelId)
The ID of the kernel.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
kernelId
- The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
public String getKernelId()
The ID of the kernel.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
public RunInstancesRequest withKernelId(String kernelId)
The ID of the kernel.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
kernelId
- The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
public void setKeyName(String keyName)
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.
If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
keyName
- The name of the key pair. You can create a key pair using CreateKeyPair or
ImportKeyPair.<
/p> If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
public String getKeyName()
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.
If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
public RunInstancesRequest withKeyName(String keyName)
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.
If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
keyName
- The name of the key pair. You can create a key pair using CreateKeyPair or
ImportKeyPair.<
/p> If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
public void setMaxCount(Integer maxCount)
The maximum number of instances to launch. If you specify a value that is more capacity than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above the specified minimum count.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
maxCount
- The maximum number of instances to launch. If you specify a value that is more capacity than Amazon EC2
can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances
above the specified minimum count.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
public Integer getMaxCount()
The maximum number of instances to launch. If you specify a value that is more capacity than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above the specified minimum count.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
public RunInstancesRequest withMaxCount(Integer maxCount)
The maximum number of instances to launch. If you specify a value that is more capacity than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances above the specified minimum count.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
maxCount
- The maximum number of instances to launch. If you specify a value that is more capacity than Amazon EC2
can launch in the target Availability Zone, Amazon EC2 launches the largest possible number of instances
above the specified minimum count.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
public void setMinCount(Integer minCount)
The minimum number of instances to launch. If you specify a value that is more capacity than Amazon EC2 can provide in the target Availability Zone, Amazon EC2 does not launch any instances.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
minCount
- The minimum number of instances to launch. If you specify a value that is more capacity than Amazon EC2
can provide in the target Availability Zone, Amazon EC2 does not launch any instances.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
public Integer getMinCount()
The minimum number of instances to launch. If you specify a value that is more capacity than Amazon EC2 can provide in the target Availability Zone, Amazon EC2 does not launch any instances.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
public RunInstancesRequest withMinCount(Integer minCount)
The minimum number of instances to launch. If you specify a value that is more capacity than Amazon EC2 can provide in the target Availability Zone, Amazon EC2 does not launch any instances.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
minCount
- The minimum number of instances to launch. If you specify a value that is more capacity than Amazon EC2
can provide in the target Availability Zone, Amazon EC2 does not launch any instances.
Constraints: Between 1 and the quota for the specified instance type for your account for this Region. For more information, see Amazon EC2 instance type quotas.
public void setMonitoring(Boolean monitoring)
Specifies whether detailed monitoring is enabled for the instance.
monitoring
- Specifies whether detailed monitoring is enabled for the instance.public Boolean getMonitoring()
Specifies whether detailed monitoring is enabled for the instance.
public RunInstancesRequest withMonitoring(Boolean monitoring)
Specifies whether detailed monitoring is enabled for the instance.
monitoring
- Specifies whether detailed monitoring is enabled for the instance.public Boolean isMonitoring()
Specifies whether detailed monitoring is enabled for the instance.
public void setPlacement(Placement placement)
The placement for the instance.
placement
- The placement for the instance.public Placement getPlacement()
The placement for the instance.
public RunInstancesRequest withPlacement(Placement placement)
The placement for the instance.
placement
- The placement for the instance.public void setRamdiskId(String ramdiskId)
The ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, go to the Amazon Web Services Resource Center and search for the kernel ID.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
ramdiskId
- The ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the kernel
requirements for information about whether you need to specify a RAM disk. To find kernel requirements, go
to the Amazon Web Services Resource Center and search for the kernel ID. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
public String getRamdiskId()
The ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, go to the Amazon Web Services Resource Center and search for the kernel ID.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
public RunInstancesRequest withRamdiskId(String ramdiskId)
The ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, go to the Amazon Web Services Resource Center and search for the kernel ID.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
ramdiskId
- The ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the kernel
requirements for information about whether you need to specify a RAM disk. To find kernel requirements, go
to the Amazon Web Services Resource Center and search for the kernel ID. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon EC2 User Guide.
public List<String> getSecurityGroupIds()
The IDs of the security groups. You can create a security group using CreateSecurityGroup.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
The IDs of the security groups. You can create a security group using CreateSecurityGroup.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
securityGroupIds
- The IDs of the security groups. You can create a security group using CreateSecurityGroup.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
public RunInstancesRequest withSecurityGroupIds(String... securityGroupIds)
The IDs of the security groups. You can create a security group using CreateSecurityGroup.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIds(java.util.Collection)
or withSecurityGroupIds(java.util.Collection)
if you
want to override the existing values.
securityGroupIds
- The IDs of the security groups. You can create a security group using CreateSecurityGroup.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
public RunInstancesRequest withSecurityGroupIds(Collection<String> securityGroupIds)
The IDs of the security groups. You can create a security group using CreateSecurityGroup.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
securityGroupIds
- The IDs of the security groups. You can create a security group using CreateSecurityGroup.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
public List<String> getSecurityGroups()
[Default VPC] The names of the security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
Default: Amazon EC2 uses the default security group.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
Default: Amazon EC2 uses the default security group.
public void setSecurityGroups(Collection<String> securityGroups)
[Default VPC] The names of the security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
Default: Amazon EC2 uses the default security group.
securityGroups
- [Default VPC] The names of the security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
Default: Amazon EC2 uses the default security group.
public RunInstancesRequest withSecurityGroups(String... securityGroups)
[Default VPC] The names of the security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
Default: Amazon EC2 uses the default security group.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- [Default VPC] The names of the security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
Default: Amazon EC2 uses the default security group.
public RunInstancesRequest withSecurityGroups(Collection<String> securityGroups)
[Default VPC] The names of the security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
Default: Amazon EC2 uses the default security group.
securityGroups
- [Default VPC] The names of the security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
Default: Amazon EC2 uses the default security group.
public void setSubnetId(String subnetId)
The ID of the subnet to launch the instance into.
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
subnetId
- The ID of the subnet to launch the instance into.
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
public String getSubnetId()
The ID of the subnet to launch the instance into.
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
public RunInstancesRequest withSubnetId(String subnetId)
The ID of the subnet to launch the instance into.
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
subnetId
- The ID of the subnet to launch the instance into.
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
public void setUserData(String userData)
The user data to make available to the instance. User data must be base64-encoded. Depending on the tool or SDK that you're using, the base64-encoding might be performed for you. For more information, see Work with instance user data.
userData
- The user data to make available to the instance. User data must be base64-encoded. Depending on the tool
or SDK that you're using, the base64-encoding might be performed for you. For more information, see Work with
instance user data.public String getUserData()
The user data to make available to the instance. User data must be base64-encoded. Depending on the tool or SDK that you're using, the base64-encoding might be performed for you. For more information, see Work with instance user data.
public RunInstancesRequest withUserData(String userData)
The user data to make available to the instance. User data must be base64-encoded. Depending on the tool or SDK that you're using, the base64-encoding might be performed for you. For more information, see Work with instance user data.
userData
- The user data to make available to the instance. User data must be base64-encoded. Depending on the tool
or SDK that you're using, the base64-encoding might be performed for you. For more information, see Work with
instance user data.public void setAdditionalInfo(String additionalInfo)
Reserved.
additionalInfo
- Reserved.public String getAdditionalInfo()
Reserved.
public RunInstancesRequest withAdditionalInfo(String additionalInfo)
Reserved.
additionalInfo
- Reserved.public void setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.
For more information, see Ensuring Idempotency.
Constraints: Maximum 64 ASCII characters
clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not
specify a client token, a randomly generated token is used for the request to ensure idempotency.
For more information, see Ensuring Idempotency.
Constraints: Maximum 64 ASCII characters
public String getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.
For more information, see Ensuring Idempotency.
Constraints: Maximum 64 ASCII characters
For more information, see Ensuring Idempotency.
Constraints: Maximum 64 ASCII characters
public RunInstancesRequest withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.
For more information, see Ensuring Idempotency.
Constraints: Maximum 64 ASCII characters
clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not
specify a client token, a randomly generated token is used for the request to ensure idempotency.
For more information, see Ensuring Idempotency.
Constraints: Maximum 64 ASCII characters
public void setDisableApiTermination(Boolean disableApiTermination)
If you set this parameter to true
, you can't terminate the instance using the Amazon EC2 console,
CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior
to
terminate
, you can terminate the instance by running the shutdown command from the instance.
Default: false
disableApiTermination
- If you set this parameter to true
, you can't terminate the instance using the Amazon EC2
console, CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior
to
terminate
, you can terminate the instance by running the shutdown command from the
instance.
Default: false
public Boolean getDisableApiTermination()
If you set this parameter to true
, you can't terminate the instance using the Amazon EC2 console,
CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior
to
terminate
, you can terminate the instance by running the shutdown command from the instance.
Default: false
true
, you can't terminate the instance using the Amazon EC2
console, CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior
to
terminate
, you can terminate the instance by running the shutdown command from the
instance.
Default: false
public RunInstancesRequest withDisableApiTermination(Boolean disableApiTermination)
If you set this parameter to true
, you can't terminate the instance using the Amazon EC2 console,
CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior
to
terminate
, you can terminate the instance by running the shutdown command from the instance.
Default: false
disableApiTermination
- If you set this parameter to true
, you can't terminate the instance using the Amazon EC2
console, CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior
to
terminate
, you can terminate the instance by running the shutdown command from the
instance.
Default: false
public Boolean isDisableApiTermination()
If you set this parameter to true
, you can't terminate the instance using the Amazon EC2 console,
CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior
to
terminate
, you can terminate the instance by running the shutdown command from the instance.
Default: false
true
, you can't terminate the instance using the Amazon EC2
console, CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior
to
terminate
, you can terminate the instance by running the shutdown command from the
instance.
Default: false
public void setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
Default: false
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated
throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O
performance. This optimization isn't available with all instance types. Additional usage charges apply
when using an EBS-optimized instance.
Default: false
public Boolean getEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
Default: false
Default: false
public RunInstancesRequest withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
Default: false
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated
throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O
performance. This optimization isn't available with all instance types. Additional usage charges apply
when using an EBS-optimized instance.
Default: false
public Boolean isEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
Default: false
Default: false
public void setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The name or Amazon Resource Name (ARN) of an IAM instance profile.
iamInstanceProfile
- The name or Amazon Resource Name (ARN) of an IAM instance profile.public IamInstanceProfileSpecification getIamInstanceProfile()
The name or Amazon Resource Name (ARN) of an IAM instance profile.
public RunInstancesRequest withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The name or Amazon Resource Name (ARN) of an IAM instance profile.
iamInstanceProfile
- The name or Amazon Resource Name (ARN) of an IAM instance profile.public void setInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default: stop
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
Default: stop
ShutdownBehavior
public String getInstanceInitiatedShutdownBehavior()
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default: stop
Default: stop
ShutdownBehavior
public RunInstancesRequest withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default: stop
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
Default: stop
ShutdownBehavior
public void setInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default: stop
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
Default: stop
ShutdownBehavior
public RunInstancesRequest withInstanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default: stop
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
Default: stop
ShutdownBehavior
public List<InstanceNetworkInterfaceSpecification> getNetworkInterfaces()
The network interfaces to associate with the instance.
public void setNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
The network interfaces to associate with the instance.
networkInterfaces
- The network interfaces to associate with the instance.public RunInstancesRequest withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
The network interfaces to associate with the instance.
NOTE: This method appends the values to the existing list (if any). Use
setNetworkInterfaces(java.util.Collection)
or withNetworkInterfaces(java.util.Collection)
if
you want to override the existing values.
networkInterfaces
- The network interfaces to associate with the instance.public RunInstancesRequest withNetworkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
The network interfaces to associate with the instance.
networkInterfaces
- The network interfaces to associate with the instance.public void setPrivateIpAddress(String privateIpAddress)
The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.
Only one private IP address can be designated as primary. You can't specify this option if you've specified the option to designate a private IP address as the primary IP address in a network interface specification. You cannot specify this option if you're launching more than one instance in the request.
You cannot specify this option and the network interfaces option in the same request.
privateIpAddress
- The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.
Only one private IP address can be designated as primary. You can't specify this option if you've specified the option to designate a private IP address as the primary IP address in a network interface specification. You cannot specify this option if you're launching more than one instance in the request.
You cannot specify this option and the network interfaces option in the same request.
public String getPrivateIpAddress()
The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.
Only one private IP address can be designated as primary. You can't specify this option if you've specified the option to designate a private IP address as the primary IP address in a network interface specification. You cannot specify this option if you're launching more than one instance in the request.
You cannot specify this option and the network interfaces option in the same request.
Only one private IP address can be designated as primary. You can't specify this option if you've specified the option to designate a private IP address as the primary IP address in a network interface specification. You cannot specify this option if you're launching more than one instance in the request.
You cannot specify this option and the network interfaces option in the same request.
public RunInstancesRequest withPrivateIpAddress(String privateIpAddress)
The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.
Only one private IP address can be designated as primary. You can't specify this option if you've specified the option to designate a private IP address as the primary IP address in a network interface specification. You cannot specify this option if you're launching more than one instance in the request.
You cannot specify this option and the network interfaces option in the same request.
privateIpAddress
- The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.
Only one private IP address can be designated as primary. You can't specify this option if you've specified the option to designate a private IP address as the primary IP address in a network interface specification. You cannot specify this option if you're launching more than one instance in the request.
You cannot specify this option and the network interfaces option in the same request.
public List<ElasticGpuSpecification> getElasticGpuSpecification()
An elastic GPU to associate with the instance.
Amazon Elastic Graphics reached end of life on January 8, 2024.
Amazon Elastic Graphics reached end of life on January 8, 2024.
public void setElasticGpuSpecification(Collection<ElasticGpuSpecification> elasticGpuSpecification)
An elastic GPU to associate with the instance.
Amazon Elastic Graphics reached end of life on January 8, 2024.
elasticGpuSpecification
- An elastic GPU to associate with the instance. Amazon Elastic Graphics reached end of life on January 8, 2024.
public RunInstancesRequest withElasticGpuSpecification(ElasticGpuSpecification... elasticGpuSpecification)
An elastic GPU to associate with the instance.
Amazon Elastic Graphics reached end of life on January 8, 2024.
NOTE: This method appends the values to the existing list (if any). Use
setElasticGpuSpecification(java.util.Collection)
or
withElasticGpuSpecification(java.util.Collection)
if you want to override the existing values.
elasticGpuSpecification
- An elastic GPU to associate with the instance. Amazon Elastic Graphics reached end of life on January 8, 2024.
public RunInstancesRequest withElasticGpuSpecification(Collection<ElasticGpuSpecification> elasticGpuSpecification)
An elastic GPU to associate with the instance.
Amazon Elastic Graphics reached end of life on January 8, 2024.
elasticGpuSpecification
- An elastic GPU to associate with the instance. Amazon Elastic Graphics reached end of life on January 8, 2024.
public List<ElasticInferenceAccelerator> getElasticInferenceAccelerators()
An elastic inference accelerator to associate with the instance.
Amazon Elastic Inference (EI) is no longer available to new customers. For more information, see Amazon Elastic Inference FAQs.
Amazon Elastic Inference (EI) is no longer available to new customers. For more information, see Amazon Elastic Inference FAQs.
public void setElasticInferenceAccelerators(Collection<ElasticInferenceAccelerator> elasticInferenceAccelerators)
An elastic inference accelerator to associate with the instance.
Amazon Elastic Inference (EI) is no longer available to new customers. For more information, see Amazon Elastic Inference FAQs.
elasticInferenceAccelerators
- An elastic inference accelerator to associate with the instance. Amazon Elastic Inference (EI) is no longer available to new customers. For more information, see Amazon Elastic Inference FAQs.
public RunInstancesRequest withElasticInferenceAccelerators(ElasticInferenceAccelerator... elasticInferenceAccelerators)
An elastic inference accelerator to associate with the instance.
Amazon Elastic Inference (EI) is no longer available to new customers. For more information, see Amazon Elastic Inference FAQs.
NOTE: This method appends the values to the existing list (if any). Use
setElasticInferenceAccelerators(java.util.Collection)
or
withElasticInferenceAccelerators(java.util.Collection)
if you want to override the existing values.
elasticInferenceAccelerators
- An elastic inference accelerator to associate with the instance. Amazon Elastic Inference (EI) is no longer available to new customers. For more information, see Amazon Elastic Inference FAQs.
public RunInstancesRequest withElasticInferenceAccelerators(Collection<ElasticInferenceAccelerator> elasticInferenceAccelerators)
An elastic inference accelerator to associate with the instance.
Amazon Elastic Inference (EI) is no longer available to new customers. For more information, see Amazon Elastic Inference FAQs.
elasticInferenceAccelerators
- An elastic inference accelerator to associate with the instance. Amazon Elastic Inference (EI) is no longer available to new customers. For more information, see Amazon Elastic Inference FAQs.
public List<TagSpecification> getTagSpecifications()
The tags to apply to the resources that are created during instance launch.
You can specify tags for the following resources only:
Instances
Volumes
Spot Instance requests
Network interfaces
To tag a resource after it has been created, see CreateTags.
You can specify tags for the following resources only:
Instances
Volumes
Spot Instance requests
Network interfaces
To tag a resource after it has been created, see CreateTags.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the resources that are created during instance launch.
You can specify tags for the following resources only:
Instances
Volumes
Spot Instance requests
Network interfaces
To tag a resource after it has been created, see CreateTags.
tagSpecifications
- The tags to apply to the resources that are created during instance launch.
You can specify tags for the following resources only:
Instances
Volumes
Spot Instance requests
Network interfaces
To tag a resource after it has been created, see CreateTags.
public RunInstancesRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the resources that are created during instance launch.
You can specify tags for the following resources only:
Instances
Volumes
Spot Instance requests
Network interfaces
To tag a resource after it has been created, see CreateTags.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply to the resources that are created during instance launch.
You can specify tags for the following resources only:
Instances
Volumes
Spot Instance requests
Network interfaces
To tag a resource after it has been created, see CreateTags.
public RunInstancesRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the resources that are created during instance launch.
You can specify tags for the following resources only:
Instances
Volumes
Spot Instance requests
Network interfaces
To tag a resource after it has been created, see CreateTags.
tagSpecifications
- The tags to apply to the resources that are created during instance launch.
You can specify tags for the following resources only:
Instances
Volumes
Spot Instance requests
Network interfaces
To tag a resource after it has been created, see CreateTags.
public void setLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template. Any additional parameters that you specify for the new instance overwrite the corresponding parameters included in the launch template.
launchTemplate
- The launch template. Any additional parameters that you specify for the new instance overwrite the
corresponding parameters included in the launch template.public LaunchTemplateSpecification getLaunchTemplate()
The launch template. Any additional parameters that you specify for the new instance overwrite the corresponding parameters included in the launch template.
public RunInstancesRequest withLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template. Any additional parameters that you specify for the new instance overwrite the corresponding parameters included in the launch template.
launchTemplate
- The launch template. Any additional parameters that you specify for the new instance overwrite the
corresponding parameters included in the launch template.public void setInstanceMarketOptions(InstanceMarketOptionsRequest instanceMarketOptions)
The market (purchasing) option for the instances.
For RunInstances, persistent Spot Instance requests are only supported when
InstanceInterruptionBehavior is set to either hibernate
or stop
.
instanceMarketOptions
- The market (purchasing) option for the instances.
For RunInstances, persistent Spot Instance requests are only supported when
InstanceInterruptionBehavior is set to either hibernate
or stop
.
public InstanceMarketOptionsRequest getInstanceMarketOptions()
The market (purchasing) option for the instances.
For RunInstances, persistent Spot Instance requests are only supported when
InstanceInterruptionBehavior is set to either hibernate
or stop
.
For RunInstances, persistent Spot Instance requests are only supported when
InstanceInterruptionBehavior is set to either hibernate
or stop
.
public RunInstancesRequest withInstanceMarketOptions(InstanceMarketOptionsRequest instanceMarketOptions)
The market (purchasing) option for the instances.
For RunInstances, persistent Spot Instance requests are only supported when
InstanceInterruptionBehavior is set to either hibernate
or stop
.
instanceMarketOptions
- The market (purchasing) option for the instances.
For RunInstances, persistent Spot Instance requests are only supported when
InstanceInterruptionBehavior is set to either hibernate
or stop
.
public void setCreditSpecification(CreditSpecificationRequest creditSpecification)
The credit option for CPU usage of the burstable performance instance. Valid values are standard
and
unlimited
. To change this attribute after launch, use
ModifyInstanceCreditSpecification. For more information, see Burstable
performance instances in the Amazon EC2 User Guide.
Default: standard
(T2 instances) or unlimited
(T3/T3a/T4g instances)
For T3 instances with host
tenancy, only standard
is supported.
creditSpecification
- The credit option for CPU usage of the burstable performance instance. Valid values are
standard
and unlimited
. To change this attribute after launch, use
ModifyInstanceCreditSpecification. For more information, see Burstable
performance instances in the Amazon EC2 User Guide.
Default: standard
(T2 instances) or unlimited
(T3/T3a/T4g instances)
For T3 instances with host
tenancy, only standard
is supported.
public CreditSpecificationRequest getCreditSpecification()
The credit option for CPU usage of the burstable performance instance. Valid values are standard
and
unlimited
. To change this attribute after launch, use
ModifyInstanceCreditSpecification. For more information, see Burstable
performance instances in the Amazon EC2 User Guide.
Default: standard
(T2 instances) or unlimited
(T3/T3a/T4g instances)
For T3 instances with host
tenancy, only standard
is supported.
standard
and unlimited
. To change this attribute after launch, use
ModifyInstanceCreditSpecification. For more information, see Burstable
performance instances in the Amazon EC2 User Guide.
Default: standard
(T2 instances) or unlimited
(T3/T3a/T4g instances)
For T3 instances with host
tenancy, only standard
is supported.
public RunInstancesRequest withCreditSpecification(CreditSpecificationRequest creditSpecification)
The credit option for CPU usage of the burstable performance instance. Valid values are standard
and
unlimited
. To change this attribute after launch, use
ModifyInstanceCreditSpecification. For more information, see Burstable
performance instances in the Amazon EC2 User Guide.
Default: standard
(T2 instances) or unlimited
(T3/T3a/T4g instances)
For T3 instances with host
tenancy, only standard
is supported.
creditSpecification
- The credit option for CPU usage of the burstable performance instance. Valid values are
standard
and unlimited
. To change this attribute after launch, use
ModifyInstanceCreditSpecification. For more information, see Burstable
performance instances in the Amazon EC2 User Guide.
Default: standard
(T2 instances) or unlimited
(T3/T3a/T4g instances)
For T3 instances with host
tenancy, only standard
is supported.
public void setCpuOptions(CpuOptionsRequest cpuOptions)
The CPU options for the instance. For more information, see Optimize CPU options in the Amazon EC2 User Guide.
cpuOptions
- The CPU options for the instance. For more information, see Optimize CPU
options in the Amazon EC2 User Guide.public CpuOptionsRequest getCpuOptions()
The CPU options for the instance. For more information, see Optimize CPU options in the Amazon EC2 User Guide.
public RunInstancesRequest withCpuOptions(CpuOptionsRequest cpuOptions)
The CPU options for the instance. For more information, see Optimize CPU options in the Amazon EC2 User Guide.
cpuOptions
- The CPU options for the instance. For more information, see Optimize CPU
options in the Amazon EC2 User Guide.public void setCapacityReservationSpecification(CapacityReservationSpecification capacityReservationSpecification)
Information about the Capacity Reservation targeting option. If you do not specify this parameter, the instance's
Capacity Reservation preference defaults to open
, which enables it to run in any open Capacity
Reservation that has matching attributes (instance type, platform, Availability Zone).
capacityReservationSpecification
- Information about the Capacity Reservation targeting option. If you do not specify this parameter, the
instance's Capacity Reservation preference defaults to open
, which enables it to run in any
open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).public CapacityReservationSpecification getCapacityReservationSpecification()
Information about the Capacity Reservation targeting option. If you do not specify this parameter, the instance's
Capacity Reservation preference defaults to open
, which enables it to run in any open Capacity
Reservation that has matching attributes (instance type, platform, Availability Zone).
open
, which enables it to run in any
open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).public RunInstancesRequest withCapacityReservationSpecification(CapacityReservationSpecification capacityReservationSpecification)
Information about the Capacity Reservation targeting option. If you do not specify this parameter, the instance's
Capacity Reservation preference defaults to open
, which enables it to run in any open Capacity
Reservation that has matching attributes (instance type, platform, Availability Zone).
capacityReservationSpecification
- Information about the Capacity Reservation targeting option. If you do not specify this parameter, the
instance's Capacity Reservation preference defaults to open
, which enables it to run in any
open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).public void setHibernationOptions(HibernationOptionsRequest hibernationOptions)
Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
You can't enable hibernation and Amazon Web Services Nitro Enclaves on the same instance.
hibernationOptions
- Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance
meets the hibernation
prerequisites. For more information, see Hibernate your Amazon EC2
instance in the Amazon EC2 User Guide.
You can't enable hibernation and Amazon Web Services Nitro Enclaves on the same instance.
public HibernationOptionsRequest getHibernationOptions()
Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
You can't enable hibernation and Amazon Web Services Nitro Enclaves on the same instance.
You can't enable hibernation and Amazon Web Services Nitro Enclaves on the same instance.
public RunInstancesRequest withHibernationOptions(HibernationOptionsRequest hibernationOptions)
Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
You can't enable hibernation and Amazon Web Services Nitro Enclaves on the same instance.
hibernationOptions
- Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance
meets the hibernation
prerequisites. For more information, see Hibernate your Amazon EC2
instance in the Amazon EC2 User Guide.
You can't enable hibernation and Amazon Web Services Nitro Enclaves on the same instance.
public List<LicenseConfigurationRequest> getLicenseSpecifications()
The license configurations.
public void setLicenseSpecifications(Collection<LicenseConfigurationRequest> licenseSpecifications)
The license configurations.
licenseSpecifications
- The license configurations.public RunInstancesRequest withLicenseSpecifications(LicenseConfigurationRequest... licenseSpecifications)
The license configurations.
NOTE: This method appends the values to the existing list (if any). Use
setLicenseSpecifications(java.util.Collection)
or
withLicenseSpecifications(java.util.Collection)
if you want to override the existing values.
licenseSpecifications
- The license configurations.public RunInstancesRequest withLicenseSpecifications(Collection<LicenseConfigurationRequest> licenseSpecifications)
The license configurations.
licenseSpecifications
- The license configurations.public void setMetadataOptions(InstanceMetadataOptionsRequest metadataOptions)
The metadata options for the instance. For more information, see Instance metadata and user data.
metadataOptions
- The metadata options for the instance. For more information, see Instance metadata
and user data.public InstanceMetadataOptionsRequest getMetadataOptions()
The metadata options for the instance. For more information, see Instance metadata and user data.
public RunInstancesRequest withMetadataOptions(InstanceMetadataOptionsRequest metadataOptions)
The metadata options for the instance. For more information, see Instance metadata and user data.
metadataOptions
- The metadata options for the instance. For more information, see Instance metadata
and user data.public void setEnclaveOptions(EnclaveOptionsRequest enclaveOptions)
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, see What is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro Enclaves User Guide.
You can't enable Amazon Web Services Nitro Enclaves and hibernation on the same instance.
enclaveOptions
- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information,
see What is Amazon Web
Services Nitro Enclaves? in the Amazon Web Services Nitro Enclaves User Guide.
You can't enable Amazon Web Services Nitro Enclaves and hibernation on the same instance.
public EnclaveOptionsRequest getEnclaveOptions()
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, see What is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro Enclaves User Guide.
You can't enable Amazon Web Services Nitro Enclaves and hibernation on the same instance.
You can't enable Amazon Web Services Nitro Enclaves and hibernation on the same instance.
public RunInstancesRequest withEnclaveOptions(EnclaveOptionsRequest enclaveOptions)
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information, see What is Amazon Web Services Nitro Enclaves? in the Amazon Web Services Nitro Enclaves User Guide.
You can't enable Amazon Web Services Nitro Enclaves and hibernation on the same instance.
enclaveOptions
- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information,
see What is Amazon Web
Services Nitro Enclaves? in the Amazon Web Services Nitro Enclaves User Guide.
You can't enable Amazon Web Services Nitro Enclaves and hibernation on the same instance.
public void setPrivateDnsNameOptions(PrivateDnsNameOptionsRequest privateDnsNameOptions)
The options for the instance hostname. The default values are inherited from the subnet. Applies only if creating a network interface, not attaching an existing one.
privateDnsNameOptions
- The options for the instance hostname. The default values are inherited from the subnet. Applies only if
creating a network interface, not attaching an existing one.public PrivateDnsNameOptionsRequest getPrivateDnsNameOptions()
The options for the instance hostname. The default values are inherited from the subnet. Applies only if creating a network interface, not attaching an existing one.
public RunInstancesRequest withPrivateDnsNameOptions(PrivateDnsNameOptionsRequest privateDnsNameOptions)
The options for the instance hostname. The default values are inherited from the subnet. Applies only if creating a network interface, not attaching an existing one.
privateDnsNameOptions
- The options for the instance hostname. The default values are inherited from the subnet. Applies only if
creating a network interface, not attaching an existing one.public void setMaintenanceOptions(InstanceMaintenanceOptionsRequest maintenanceOptions)
The maintenance and recovery options for the instance.
maintenanceOptions
- The maintenance and recovery options for the instance.public InstanceMaintenanceOptionsRequest getMaintenanceOptions()
The maintenance and recovery options for the instance.
public RunInstancesRequest withMaintenanceOptions(InstanceMaintenanceOptionsRequest maintenanceOptions)
The maintenance and recovery options for the instance.
maintenanceOptions
- The maintenance and recovery options for the instance.public void setDisableApiStop(Boolean disableApiStop)
Indicates whether an instance is enabled for stop protection. For more information, see Stop protection.
disableApiStop
- Indicates whether an instance is enabled for stop protection. For more information, see Stop
protection.public Boolean getDisableApiStop()
Indicates whether an instance is enabled for stop protection. For more information, see Stop protection.
public RunInstancesRequest withDisableApiStop(Boolean disableApiStop)
Indicates whether an instance is enabled for stop protection. For more information, see Stop protection.
disableApiStop
- Indicates whether an instance is enabled for stop protection. For more information, see Stop
protection.public Boolean isDisableApiStop()
Indicates whether an instance is enabled for stop protection. For more information, see Stop protection.
public void setEnablePrimaryIpv6(Boolean enablePrimaryIpv6)
If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary IPv6 address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled to use a primary IPv6 address. Use this option if an instance relies on its IPv6 address not changing. When you launch the instance, Amazon Web Services will automatically assign an IPv6 address associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address.
enablePrimaryIpv6
- If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary
IPv6 address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled
to use a primary IPv6 address. Use this option if an instance relies on its IPv6 address not changing.
When you launch the instance, Amazon Web Services will automatically assign an IPv6 address associated
with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address
to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the
first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network
interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your
instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes
the primary IPv6 address.public Boolean getEnablePrimaryIpv6()
If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary IPv6 address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled to use a primary IPv6 address. Use this option if an instance relies on its IPv6 address not changing. When you launch the instance, Amazon Web Services will automatically assign an IPv6 address associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address.
public RunInstancesRequest withEnablePrimaryIpv6(Boolean enablePrimaryIpv6)
If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary IPv6 address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled to use a primary IPv6 address. Use this option if an instance relies on its IPv6 address not changing. When you launch the instance, Amazon Web Services will automatically assign an IPv6 address associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address.
enablePrimaryIpv6
- If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary
IPv6 address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled
to use a primary IPv6 address. Use this option if an instance relies on its IPv6 address not changing.
When you launch the instance, Amazon Web Services will automatically assign an IPv6 address associated
with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address
to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the
first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network
interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your
instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes
the primary IPv6 address.public Boolean isEnablePrimaryIpv6()
If you’re launching an instance into a dual-stack or IPv6-only subnet, you can enable assigning a primary IPv6 address. A primary IPv6 address is an IPv6 GUA address associated with an ENI that you have enabled to use a primary IPv6 address. Use this option if an instance relies on its IPv6 address not changing. When you launch the instance, Amazon Web Services will automatically assign an IPv6 address associated with the ENI attached to your instance to be the primary IPv6 address. Once you enable an IPv6 GUA address to be a primary IPv6, you cannot disable it. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. If you have multiple IPv6 addresses associated with an ENI attached to your instance and you enable a primary IPv6 address, the first IPv6 GUA address associated with the ENI becomes the primary IPv6 address.
public Request<RunInstancesRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<RunInstancesRequest>
public String toString()
toString
in class Object
Object.toString()
public RunInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()