CopyableBuilder<LaunchSpecification.Builder,LaunchSpecification>
, SdkBuilder<LaunchSpecification.Builder,LaunchSpecification>
public static interface LaunchSpecification.Builder extends CopyableBuilder<LaunchSpecification.Builder,LaunchSpecification>
copy
apply, build
LaunchSpecification.Builder userData(String userData)
The user data to make available to the instances. If you are using an AWS SDK or command line tool, Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide Base64-encoded text.
userData
- The user data to make available to the instances. If you are using an AWS SDK or command line tool,
Base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must
provide Base64-encoded text.LaunchSpecification.Builder addressingType(String addressingType)
Deprecated.
addressingType
- Deprecated.LaunchSpecification.Builder blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
Although you can specify encrypted EBS volumes in this block device mapping for your Spot Instances, these volumes are not encrypted.
blockDeviceMappings
- One or more block device mapping entries.
Although you can specify encrypted EBS volumes in this block device mapping for your Spot Instances, these volumes are not encrypted.
LaunchSpecification.Builder blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries.
Although you can specify encrypted EBS volumes in this block device mapping for your Spot Instances, these volumes are not encrypted.
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
- One or more block device mapping entries.
Although you can specify encrypted EBS volumes in this block device mapping for your Spot Instances, these volumes are not encrypted.
LaunchSpecification.Builder ebsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal 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 EBS I/O. This optimization provides dedicated
throughput to Amazon EBS and an optimized configuration stack to provide optimal 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
LaunchSpecification.Builder iamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.LaunchSpecification.Builder imageId(String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.LaunchSpecification.Builder instanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
LaunchSpecification.Builder instanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
LaunchSpecification.Builder kernelId(String kernelId)
The ID of the kernel.
kernelId
- The ID of the kernel.LaunchSpecification.Builder keyName(String keyName)
The name of the key pair.
keyName
- The name of the key pair.LaunchSpecification.Builder networkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
networkInterfaces
- One or more network interfaces. If you specify a network interface, you must specify subnet IDs and
security group IDs using the network interface.LaunchSpecification.Builder networkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.
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
- One or more network interfaces. If you specify a network interface, you must specify subnet IDs and
security group IDs using the network interface.LaunchSpecification.Builder placement(SpotPlacement placement)
The placement information for the instance.
placement
- The placement information for the instance.LaunchSpecification.Builder ramdiskId(String ramdiskId)
The ID of the RAM disk.
ramdiskId
- The ID of the RAM disk.LaunchSpecification.Builder subnetId(String subnetId)
The ID of the subnet in which to launch the instance.
subnetId
- The ID of the subnet in which to launch the instance.LaunchSpecification.Builder allSecurityGroups(Collection<GroupIdentifier> allSecurityGroups)
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
allSecurityGroups
- One or more security groups. When requesting instances in a VPC, you must specify the IDs of the
security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the
security groups.LaunchSpecification.Builder allSecurityGroups(GroupIdentifier... allSecurityGroups)
One or more security groups. When requesting instances in a VPC, you must specify the IDs of the security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the security groups.
NOTE: This method appends the values to the existing list (if any). Use
#setAllSecurityGroups(java.util.Collection)
or #withAllSecurityGroups(java.util.Collection)
if you want to override the existing values.
allSecurityGroups
- One or more security groups. When requesting instances in a VPC, you must specify the IDs of the
security groups. When requesting instances in EC2-Classic, you can specify the names or the IDs of the
security groups.LaunchSpecification.Builder monitoringEnabled(Boolean monitoringEnabled)
monitoringEnabled
- LaunchSpecification.Builder securityGroups(Collection<String> securityGroups)
One or more security group names.
securityGroups
- One or more security group names.LaunchSpecification.Builder securityGroups(String... securityGroups)
One or more security group names.
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
- One or more security group names.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.