public static interface RequestLaunchTemplateData.Builder extends SdkPojo, CopyableBuilder<RequestLaunchTemplateData.Builder,RequestLaunchTemplateData>
copy
applyMutation, build
RequestLaunchTemplateData.Builder kernelId(String kernelId)
The ID of the kernel.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud 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 User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
RequestLaunchTemplateData.Builder ebsOptimized(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.
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.RequestLaunchTemplateData.Builder iamInstanceProfile(LaunchTemplateIamInstanceProfileSpecificationRequest iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.default RequestLaunchTemplateData.Builder iamInstanceProfile(Consumer<LaunchTemplateIamInstanceProfileSpecificationRequest.Builder> iamInstanceProfile)
The IAM instance profile.
This is a convenience that creates an instance of theLaunchTemplateIamInstanceProfileSpecificationRequest.Builder
avoiding the need to create one manually
via LaunchTemplateIamInstanceProfileSpecificationRequest.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and its
result is passed to iamInstanceProfile(LaunchTemplateIamInstanceProfileSpecificationRequest)
.iamInstanceProfile
- a consumer that will call methods on
LaunchTemplateIamInstanceProfileSpecificationRequest.Builder
iamInstanceProfile(LaunchTemplateIamInstanceProfileSpecificationRequest)
RequestLaunchTemplateData.Builder blockDeviceMappings(Collection<LaunchTemplateBlockDeviceMappingRequest> blockDeviceMappings)
The block device mapping.
Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
blockDeviceMappings
- The block device mapping. Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
RequestLaunchTemplateData.Builder blockDeviceMappings(LaunchTemplateBlockDeviceMappingRequest... blockDeviceMappings)
The block device mapping.
Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
blockDeviceMappings
- The block device mapping. Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
RequestLaunchTemplateData.Builder blockDeviceMappings(Consumer<LaunchTemplateBlockDeviceMappingRequest.Builder>... blockDeviceMappings)
The block device mapping.
Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
.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 #blockDeviceMappings(List)
.blockDeviceMappings
- a consumer that will call methods on List.Builder
#blockDeviceMappings(List)
RequestLaunchTemplateData.Builder networkInterfaces(Collection<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest> networkInterfaces)
One or more network interfaces.
networkInterfaces
- One or more network interfaces.RequestLaunchTemplateData.Builder networkInterfaces(LaunchTemplateInstanceNetworkInterfaceSpecificationRequest... networkInterfaces)
One or more network interfaces.
networkInterfaces
- One or more network interfaces.RequestLaunchTemplateData.Builder networkInterfaces(Consumer<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder>... networkInterfaces)
One or more network interfaces.
This is a convenience that creates an instance of the.Builder
avoiding the need to create one
manually via List#builder()
.
When the Consumer
completes, .Builder#build()
is called immediately and its
result is passed to #networkInterfaces(List)
.networkInterfaces
- a consumer that will call methods on .Builder
#networkInterfaces(List)
RequestLaunchTemplateData.Builder imageId(String imageId)
The ID of the AMI, which you can get by using DescribeImages.
imageId
- The ID of the AMI, which you can get by using DescribeImages.RequestLaunchTemplateData.Builder instanceType(String instanceType)
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
instanceType
- The instance type. For more information, see Instance Types in
the Amazon Elastic Compute Cloud User Guide.InstanceType
,
InstanceType
RequestLaunchTemplateData.Builder instanceType(InstanceType instanceType)
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
instanceType
- The instance type. For more information, see Instance Types in
the Amazon Elastic Compute Cloud User Guide.InstanceType
,
InstanceType
RequestLaunchTemplateData.Builder keyName(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. 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.
RequestLaunchTemplateData.Builder monitoring(LaunchTemplatesMonitoringRequest monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.default RequestLaunchTemplateData.Builder monitoring(Consumer<LaunchTemplatesMonitoringRequest.Builder> monitoring)
The monitoring for the instance.
This is a convenience that creates an instance of theLaunchTemplatesMonitoringRequest.Builder
avoiding the need to create one manually via LaunchTemplatesMonitoringRequest.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to monitoring(LaunchTemplatesMonitoringRequest)
.monitoring
- a consumer that will call methods on LaunchTemplatesMonitoringRequest.Builder
monitoring(LaunchTemplatesMonitoringRequest)
RequestLaunchTemplateData.Builder placement(LaunchTemplatePlacementRequest placement)
The placement for the instance.
placement
- The placement for the instance.default RequestLaunchTemplateData.Builder placement(Consumer<LaunchTemplatePlacementRequest.Builder> placement)
The placement for the instance.
This is a convenience that creates an instance of theLaunchTemplatePlacementRequest.Builder
avoiding
the need to create one manually via LaunchTemplatePlacementRequest.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to placement(LaunchTemplatePlacementRequest)
.placement
- a consumer that will call methods on LaunchTemplatePlacementRequest.Builder
placement(LaunchTemplatePlacementRequest)
RequestLaunchTemplateData.Builder ramDiskId(String ramDiskId)
The ID of the RAM disk.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
ramDiskId
- The ID of the RAM disk. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.
RequestLaunchTemplateData.Builder disableApiTermination(Boolean disableApiTermination)
If set to true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API. To
change this attribute to false
after launch, use ModifyInstanceAttribute.
disableApiTermination
- If set to true
, you can't terminate the instance using the Amazon EC2 console, CLI, or
API. To change this attribute to false
after launch, use ModifyInstanceAttribute.RequestLaunchTemplateData.Builder instanceInitiatedShutdownBehavior(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
,
ShutdownBehavior
RequestLaunchTemplateData.Builder instanceInitiatedShutdownBehavior(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
,
ShutdownBehavior
RequestLaunchTemplateData.Builder userData(String userData)
The Base64-encoded user data to make available to the instance. For more information, see Running Commands on Your Linux Instance at Launch (Linux) and Adding User Data (Windows).
userData
- The Base64-encoded user data to make available to the instance. For more information, see Running Commands on Your
Linux Instance at Launch (Linux) and Adding User Data (Windows).RequestLaunchTemplateData.Builder tagSpecifications(Collection<LaunchTemplateTagSpecificationRequest> tagSpecifications)
The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.
tagSpecifications
- The tags to apply to the resources during launch. You can only tag instances and volumes on launch.
The specified tags are applied to all instances or volumes that are created during launch. To tag a
resource after it has been created, see CreateTags.RequestLaunchTemplateData.Builder tagSpecifications(LaunchTemplateTagSpecificationRequest... tagSpecifications)
The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.
tagSpecifications
- The tags to apply to the resources during launch. You can only tag instances and volumes on launch.
The specified tags are applied to all instances or volumes that are created during launch. To tag a
resource after it has been created, see CreateTags.RequestLaunchTemplateData.Builder tagSpecifications(Consumer<LaunchTemplateTagSpecificationRequest.Builder>... tagSpecifications)
The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.
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 #tagSpecifications(List)
.tagSpecifications
- a consumer that will call methods on List.Builder
#tagSpecifications(List)
RequestLaunchTemplateData.Builder elasticGpuSpecifications(Collection<ElasticGpuSpecification> elasticGpuSpecifications)
An elastic GPU to associate with the instance.
elasticGpuSpecifications
- An elastic GPU to associate with the instance.RequestLaunchTemplateData.Builder elasticGpuSpecifications(ElasticGpuSpecification... elasticGpuSpecifications)
An elastic GPU to associate with the instance.
elasticGpuSpecifications
- An elastic GPU to associate with the instance.RequestLaunchTemplateData.Builder elasticGpuSpecifications(Consumer<ElasticGpuSpecification.Builder>... elasticGpuSpecifications)
An elastic GPU to associate with the instance.
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 #elasticGpuSpecifications(List)
.elasticGpuSpecifications
- a consumer that will call methods on List.Builder
#elasticGpuSpecifications(List)
RequestLaunchTemplateData.Builder elasticInferenceAccelerators(Collection<LaunchTemplateElasticInferenceAccelerator> elasticInferenceAccelerators)
The elastic inference accelerator for the instance.
elasticInferenceAccelerators
- The elastic inference accelerator for the instance.RequestLaunchTemplateData.Builder elasticInferenceAccelerators(LaunchTemplateElasticInferenceAccelerator... elasticInferenceAccelerators)
The elastic inference accelerator for the instance.
elasticInferenceAccelerators
- The elastic inference accelerator for the instance.RequestLaunchTemplateData.Builder elasticInferenceAccelerators(Consumer<LaunchTemplateElasticInferenceAccelerator.Builder>... elasticInferenceAccelerators)
The elastic inference accelerator for the instance.
This is a convenience that creates an instance of the.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 #elasticInferenceAccelerators(List)
.elasticInferenceAccelerators
- a consumer that will call methods on List.Builder
#elasticInferenceAccelerators(List)
RequestLaunchTemplateData.Builder securityGroupIds(Collection<String> securityGroupIds)
One or more security group IDs. You can create a security group using CreateSecurityGroup. You cannot specify both a security group ID and security name in the same request.
securityGroupIds
- One or more security group IDs. You can create a security group using CreateSecurityGroup. You
cannot specify both a security group ID and security name in the same request.RequestLaunchTemplateData.Builder securityGroupIds(String... securityGroupIds)
One or more security group IDs. You can create a security group using CreateSecurityGroup. You cannot specify both a security group ID and security name in the same request.
securityGroupIds
- One or more security group IDs. You can create a security group using CreateSecurityGroup. You
cannot specify both a security group ID and security name in the same request.RequestLaunchTemplateData.Builder securityGroups(Collection<String> securityGroups)
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.
securityGroups
- [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use
security group IDs instead. You cannot specify both a security group ID and security name in the same
request.RequestLaunchTemplateData.Builder securityGroups(String... securityGroups)
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.
securityGroups
- [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use
security group IDs instead. You cannot specify both a security group ID and security name in the same
request.RequestLaunchTemplateData.Builder instanceMarketOptions(LaunchTemplateInstanceMarketOptionsRequest instanceMarketOptions)
The market (purchasing) option for the instances.
instanceMarketOptions
- The market (purchasing) option for the instances.default RequestLaunchTemplateData.Builder instanceMarketOptions(Consumer<LaunchTemplateInstanceMarketOptionsRequest.Builder> instanceMarketOptions)
The market (purchasing) option for the instances.
This is a convenience that creates an instance of theLaunchTemplateInstanceMarketOptionsRequest.Builder
avoiding the need to create one manually via
LaunchTemplateInstanceMarketOptionsRequest.builder()
.
When the Consumer
completes, SdkBuilder.build()
is
called immediately and its result is passed to
instanceMarketOptions(LaunchTemplateInstanceMarketOptionsRequest)
.instanceMarketOptions
- a consumer that will call methods on LaunchTemplateInstanceMarketOptionsRequest.Builder
instanceMarketOptions(LaunchTemplateInstanceMarketOptionsRequest)
RequestLaunchTemplateData.Builder creditSpecification(CreditSpecificationRequest creditSpecification)
The credit option for CPU usage of the instance. Valid for T2 or T3 instances only.
creditSpecification
- The credit option for CPU usage of the instance. Valid for T2 or T3 instances only.default RequestLaunchTemplateData.Builder creditSpecification(Consumer<CreditSpecificationRequest.Builder> creditSpecification)
The credit option for CPU usage of the instance. Valid for T2 or T3 instances only.
This is a convenience that creates an instance of theCreditSpecificationRequest.Builder
avoiding the
need to create one manually via CreditSpecificationRequest.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to creditSpecification(CreditSpecificationRequest)
.creditSpecification
- a consumer that will call methods on CreditSpecificationRequest.Builder
creditSpecification(CreditSpecificationRequest)
RequestLaunchTemplateData.Builder cpuOptions(LaunchTemplateCpuOptionsRequest cpuOptions)
The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User Guide.
cpuOptions
- The CPU options for the instance. For more information, see Optimizing CPU
Options in the Amazon Elastic Compute Cloud User Guide.default RequestLaunchTemplateData.Builder cpuOptions(Consumer<LaunchTemplateCpuOptionsRequest.Builder> cpuOptions)
The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User Guide.
This is a convenience that creates an instance of theLaunchTemplateCpuOptionsRequest.Builder
avoiding the need to create one manually via LaunchTemplateCpuOptionsRequest.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to cpuOptions(LaunchTemplateCpuOptionsRequest)
.cpuOptions
- a consumer that will call methods on LaunchTemplateCpuOptionsRequest.Builder
cpuOptions(LaunchTemplateCpuOptionsRequest)
RequestLaunchTemplateData.Builder capacityReservationSpecification(LaunchTemplateCapacityReservationSpecificationRequest capacityReservationSpecification)
The Capacity Reservation targeting option.
capacityReservationSpecification
- The Capacity Reservation targeting option.default RequestLaunchTemplateData.Builder capacityReservationSpecification(Consumer<LaunchTemplateCapacityReservationSpecificationRequest.Builder> capacityReservationSpecification)
The Capacity Reservation targeting option.
This is a convenience that creates an instance of theLaunchTemplateCapacityReservationSpecificationRequest.Builder
avoiding the need to create one
manually via LaunchTemplateCapacityReservationSpecificationRequest.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and its
result is passed to
capacityReservationSpecification(LaunchTemplateCapacityReservationSpecificationRequest)
.capacityReservationSpecification
- a consumer that will call methods on
LaunchTemplateCapacityReservationSpecificationRequest.Builder
capacityReservationSpecification(LaunchTemplateCapacityReservationSpecificationRequest)
RequestLaunchTemplateData.Builder hibernationOptions(LaunchTemplateHibernationOptionsRequest hibernationOptions)
Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. Hibernation is currently supported only for Amazon Linux. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.
hibernationOptions
- Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance
meets the hibernation prerequisites. Hibernation is currently supported only for Amazon Linux. For more
information, see Hibernate
Your Instance in the Amazon Elastic Compute Cloud User Guide.default RequestLaunchTemplateData.Builder hibernationOptions(Consumer<LaunchTemplateHibernationOptionsRequest.Builder> hibernationOptions)
Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. Hibernation is currently supported only for Amazon Linux. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.
This is a convenience that creates an instance of theLaunchTemplateHibernationOptionsRequest.Builder
avoiding the need to create one manually via LaunchTemplateHibernationOptionsRequest.builder()
.
When the Consumer
completes, SdkBuilder.build()
is
called immediately and its result is passed to
hibernationOptions(LaunchTemplateHibernationOptionsRequest)
.hibernationOptions
- a consumer that will call methods on LaunchTemplateHibernationOptionsRequest.Builder
hibernationOptions(LaunchTemplateHibernationOptionsRequest)
RequestLaunchTemplateData.Builder licenseSpecifications(Collection<LaunchTemplateLicenseConfigurationRequest> licenseSpecifications)
The license configurations.
licenseSpecifications
- The license configurations.RequestLaunchTemplateData.Builder licenseSpecifications(LaunchTemplateLicenseConfigurationRequest... licenseSpecifications)
The license configurations.
licenseSpecifications
- The license configurations.RequestLaunchTemplateData.Builder licenseSpecifications(Consumer<LaunchTemplateLicenseConfigurationRequest.Builder>... licenseSpecifications)
The license configurations.
This is a convenience that creates an instance of the.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 #licenseSpecifications(List)
.licenseSpecifications
- a consumer that will call methods on List.Builder
#licenseSpecifications(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.