public static interface LaunchSpecification.Builder extends CopyableBuilder<LaunchSpecification.Builder,LaunchSpecification>
copyapply, buildLaunchSpecification.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.
blockDeviceMappings - One or more block device mapping entries.LaunchSpecification.Builder blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries.
blockDeviceMappings - One or more block device mapping entries.LaunchSpecification.Builder blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings)
One or more block device mapping entries.
This is a convenience that creates an instance of theList.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #blockDeviceMappings(List) .blockDeviceMappings - a consumer that will call methods on List.Builder #blockDeviceMappings(List) 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.default LaunchSpecification.Builder iamInstanceProfile(Consumer<IamInstanceProfileSpecification.Builder> iamInstanceProfile)
The IAM instance profile.
This is a convenience that creates an instance of theIamInstanceProfileSpecification.Builder
avoiding the need to create one manually via IamInstanceProfileSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to iamInstanceProfile(IamInstanceProfileSpecification).iamInstanceProfile - a consumer that will call methods on IamInstanceProfileSpecification.BuilderiamInstanceProfile(IamInstanceProfileSpecification)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,
InstanceTypeLaunchSpecification.Builder instanceType(InstanceType instanceType)
The instance type.
instanceType - The instance type.InstanceType,
InstanceTypeLaunchSpecification.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.
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(Consumer<InstanceNetworkInterfaceSpecification.Builder>... 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.
This is a convenience that creates an instance of the.Builder avoiding the need to create one manually via #builder() .
When the Consumer completes, List.Builder#build() is
called immediately and its result is passed to #networkInterfaces(List) .networkInterfaces - a consumer that will call methods on List.Builder #networkInterfaces(List) LaunchSpecification.Builder placement(SpotPlacement placement)
The placement information for the instance.
placement - The placement information for the instance.default LaunchSpecification.Builder placement(Consumer<SpotPlacement.Builder> placement)
The placement information for the instance.
This is a convenience that creates an instance of theSpotPlacement.Builder avoiding the need to
create one manually via SpotPlacement.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to placement(SpotPlacement).placement - a consumer that will call methods on SpotPlacement.Builderplacement(SpotPlacement)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.
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(Consumer<GroupIdentifier.Builder>... 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.
This is a convenience that creates an instance of theList.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #allSecurityGroups(List) .allSecurityGroups - a consumer that will call methods on List.Builder #allSecurityGroups(List) LaunchSpecification.Builder monitoringEnabled(Boolean monitoringEnabled)
monitoringEnabled - The new value for the MonitoringEnabled property for this object.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.
securityGroups - One or more security group names.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.