/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The information to include in the launch template. You must
* specify at least one parameter for the launch template data.See Also:
AWS
* API Reference
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.
* */ inline const Aws::String& GetKernelId() const{ return m_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.
* */ inline bool KernelIdHasBeenSet() const { return m_kernelIdHasBeenSet; } /** *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.
* */ inline void SetKernelId(const Aws::String& value) { m_kernelIdHasBeenSet = true; m_kernelId = value; } /** *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.
* */ inline void SetKernelId(Aws::String&& value) { m_kernelIdHasBeenSet = true; m_kernelId = std::move(value); } /** *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.
* */ inline void SetKernelId(const char* value) { m_kernelIdHasBeenSet = true; m_kernelId.assign(value); } /** *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.
* */ inline RequestLaunchTemplateData& WithKernelId(const Aws::String& value) { SetKernelId(value); return *this;} /** *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.
* */ inline RequestLaunchTemplateData& WithKernelId(Aws::String&& value) { SetKernelId(std::move(value)); return *this;} /** *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.
* */ inline RequestLaunchTemplateData& WithKernelId(const char* value) { SetKernelId(value); return *this;} /** *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.
*/ inline bool GetEbsOptimized() const{ return m_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.
*/ inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; } /** *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.
*/ inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; } /** *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.
*/ inline RequestLaunchTemplateData& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;} /** *The name or Amazon Resource Name (ARN) of an IAM instance profile.
*/ inline const LaunchTemplateIamInstanceProfileSpecificationRequest& GetIamInstanceProfile() const{ return m_iamInstanceProfile; } /** *The name or Amazon Resource Name (ARN) of an IAM instance profile.
*/ inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; } /** *The name or Amazon Resource Name (ARN) of an IAM instance profile.
*/ inline void SetIamInstanceProfile(const LaunchTemplateIamInstanceProfileSpecificationRequest& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; } /** *The name or Amazon Resource Name (ARN) of an IAM instance profile.
*/ inline void SetIamInstanceProfile(LaunchTemplateIamInstanceProfileSpecificationRequest&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); } /** *The name or Amazon Resource Name (ARN) of an IAM instance profile.
*/ inline RequestLaunchTemplateData& WithIamInstanceProfile(const LaunchTemplateIamInstanceProfileSpecificationRequest& value) { SetIamInstanceProfile(value); return *this;} /** *The name or Amazon Resource Name (ARN) of an IAM instance profile.
*/ inline RequestLaunchTemplateData& WithIamInstanceProfile(LaunchTemplateIamInstanceProfileSpecificationRequest&& value) { SetIamInstanceProfile(std::move(value)); return *this;} /** *The block device mapping.
*/ inline const Aws::VectorThe block device mapping.
*/ inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; } /** *The block device mapping.
*/ inline void SetBlockDeviceMappings(const Aws::VectorThe block device mapping.
*/ inline void SetBlockDeviceMappings(Aws::VectorThe block device mapping.
*/ inline RequestLaunchTemplateData& WithBlockDeviceMappings(const Aws::VectorThe block device mapping.
*/ inline RequestLaunchTemplateData& WithBlockDeviceMappings(Aws::VectorThe block device mapping.
*/ inline RequestLaunchTemplateData& AddBlockDeviceMappings(const LaunchTemplateBlockDeviceMappingRequest& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; } /** *The block device mapping.
*/ inline RequestLaunchTemplateData& AddBlockDeviceMappings(LaunchTemplateBlockDeviceMappingRequest&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; } /** *One or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline const Aws::VectorOne or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; } /** *One or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline void SetNetworkInterfaces(const Aws::VectorOne or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline void SetNetworkInterfaces(Aws::VectorOne or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline RequestLaunchTemplateData& WithNetworkInterfaces(const Aws::VectorOne or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline RequestLaunchTemplateData& WithNetworkInterfaces(Aws::VectorOne or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline RequestLaunchTemplateData& AddNetworkInterfaces(const LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; } /** *One or more network interfaces. If you specify a network interface, you must * specify any security groups and subnets as part of the network interface.
*/ inline RequestLaunchTemplateData& AddNetworkInterfaces(LaunchTemplateInstanceNetworkInterfaceSpecificationRequest&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; } /** *The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.
Valid formats:
* ami-17characters00000
* resolve:ssm:parameter-name
* resolve:ssm:parameter-name:version-number
* resolve:ssm:parameter-name:label
* resolve:ssm:public-parameter
Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.
For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.
*/ inline const Aws::String& GetImageId() const{ return m_imageId; } /** *The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.
Valid formats:
* ami-17characters00000
* resolve:ssm:parameter-name
* resolve:ssm:parameter-name:version-number
* resolve:ssm:parameter-name:label
* resolve:ssm:public-parameter
Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.
For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.
*/ inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; } /** *The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.
Valid formats:
* ami-17characters00000
* resolve:ssm:parameter-name
* resolve:ssm:parameter-name:version-number
* resolve:ssm:parameter-name:label
* resolve:ssm:public-parameter
Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.
For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.
*/ inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; } /** *The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.
Valid formats:
* ami-17characters00000
* resolve:ssm:parameter-name
* resolve:ssm:parameter-name:version-number
* resolve:ssm:parameter-name:label
* resolve:ssm:public-parameter
Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.
For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.
*/ inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); } /** *The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.
Valid formats:
* ami-17characters00000
* resolve:ssm:parameter-name
* resolve:ssm:parameter-name:version-number
* resolve:ssm:parameter-name:label
* resolve:ssm:public-parameter
Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.
For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.
*/ inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); } /** *The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.
Valid formats:
* ami-17characters00000
* resolve:ssm:parameter-name
* resolve:ssm:parameter-name:version-number
* resolve:ssm:parameter-name:label
* resolve:ssm:public-parameter
Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.
For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithImageId(const Aws::String& value) { SetImageId(value); return *this;} /** *The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.
Valid formats:
* ami-17characters00000
* resolve:ssm:parameter-name
* resolve:ssm:parameter-name:version-number
* resolve:ssm:parameter-name:label
* resolve:ssm:public-parameter
Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.
For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;} /** *The ID of the AMI. Alternatively, you can specify a Systems Manager * parameter, which will resolve to an AMI ID on launch.
Valid formats:
* ami-17characters00000
* resolve:ssm:parameter-name
* resolve:ssm:parameter-name:version-number
* resolve:ssm:parameter-name:label
* resolve:ssm:public-parameter
Currently, * EC2 Fleet and Spot Fleet do not support specifying a Systems Manager parameter. * If the launch template will be used by an EC2 Fleet or Spot Fleet, you must * specify the AMI ID.
For more information, see Use * a Systems Manager parameter instead of an AMI ID in the Amazon Elastic * Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithImageId(const char* value) { SetImageId(value); return *this;} /** *The instance type. For more information, see Instance * types in the Amazon Elastic Compute Cloud User Guide.
If you
* specify InstanceType
, you can't specify
* InstanceRequirements
.
The instance type. For more information, see Instance * types in the Amazon Elastic Compute Cloud User Guide.
If you
* specify InstanceType
, you can't specify
* InstanceRequirements
.
The instance type. For more information, see Instance * types in the Amazon Elastic Compute Cloud User Guide.
If you
* specify InstanceType
, you can't specify
* InstanceRequirements
.
The instance type. For more information, see Instance * types in the Amazon Elastic Compute Cloud User Guide.
If you
* specify InstanceType
, you can't specify
* InstanceRequirements
.
The instance type. For more information, see Instance * types in the Amazon Elastic Compute Cloud User Guide.
If you
* specify InstanceType
, you can't specify
* InstanceRequirements
.
The instance type. For more information, see Instance * types in the Amazon Elastic Compute Cloud User Guide.
If you
* specify InstanceType
, you can't specify
* InstanceRequirements
.
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.
*/ inline const Aws::String& GetKeyName() const{ return m_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.
*/ inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; } /** *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.
*/ inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; } /** *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.
*/ inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); } /** *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.
*/ inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); } /** *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.
*/ inline RequestLaunchTemplateData& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *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.
*/ inline RequestLaunchTemplateData& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} /** *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.
*/ inline RequestLaunchTemplateData& WithKeyName(const char* value) { SetKeyName(value); return *this;} /** *The monitoring for the instance.
*/ inline const LaunchTemplatesMonitoringRequest& GetMonitoring() const{ return m_monitoring; } /** *The monitoring for the instance.
*/ inline bool MonitoringHasBeenSet() const { return m_monitoringHasBeenSet; } /** *The monitoring for the instance.
*/ inline void SetMonitoring(const LaunchTemplatesMonitoringRequest& value) { m_monitoringHasBeenSet = true; m_monitoring = value; } /** *The monitoring for the instance.
*/ inline void SetMonitoring(LaunchTemplatesMonitoringRequest&& value) { m_monitoringHasBeenSet = true; m_monitoring = std::move(value); } /** *The monitoring for the instance.
*/ inline RequestLaunchTemplateData& WithMonitoring(const LaunchTemplatesMonitoringRequest& value) { SetMonitoring(value); return *this;} /** *The monitoring for the instance.
*/ inline RequestLaunchTemplateData& WithMonitoring(LaunchTemplatesMonitoringRequest&& value) { SetMonitoring(std::move(value)); return *this;} /** *The placement for the instance.
*/ inline const LaunchTemplatePlacementRequest& GetPlacement() const{ return m_placement; } /** *The placement for the instance.
*/ inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; } /** *The placement for the instance.
*/ inline void SetPlacement(const LaunchTemplatePlacementRequest& value) { m_placementHasBeenSet = true; m_placement = value; } /** *The placement for the instance.
*/ inline void SetPlacement(LaunchTemplatePlacementRequest&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); } /** *The placement for the instance.
*/ inline RequestLaunchTemplateData& WithPlacement(const LaunchTemplatePlacementRequest& value) { SetPlacement(value); return *this;} /** *The placement for the instance.
*/ inline RequestLaunchTemplateData& WithPlacement(LaunchTemplatePlacementRequest&& value) { SetPlacement(std::move(value)); return *this;} /** *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.
* */ inline const Aws::String& GetRamDiskId() const{ return m_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.
* */ inline bool RamDiskIdHasBeenSet() const { return m_ramDiskIdHasBeenSet; } /** *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.
* */ inline void SetRamDiskId(const Aws::String& value) { m_ramDiskIdHasBeenSet = true; m_ramDiskId = value; } /** *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.
* */ inline void SetRamDiskId(Aws::String&& value) { m_ramDiskIdHasBeenSet = true; m_ramDiskId = std::move(value); } /** *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.
* */ inline void SetRamDiskId(const char* value) { m_ramDiskIdHasBeenSet = true; m_ramDiskId.assign(value); } /** *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.
* */ inline RequestLaunchTemplateData& WithRamDiskId(const Aws::String& value) { SetRamDiskId(value); return *this;} /** *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.
* */ inline RequestLaunchTemplateData& WithRamDiskId(Aws::String&& value) { SetRamDiskId(std::move(value)); return *this;} /** *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.
* */ inline RequestLaunchTemplateData& WithRamDiskId(const char* value) { SetRamDiskId(value); return *this;} /** *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.
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.
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.
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.
Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).
*Default: stop
Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).
*Default: stop
Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).
*Default: stop
Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).
*Default: stop
Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).
*Default: stop
Indicates whether an instance stops or terminates when you initiate shutdown * from the instance (using the operating system command for system shutdown).
*Default: stop
The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.
If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.
*/ inline const Aws::String& GetUserData() const{ return m_userData; } /** *The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.
If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.
*/ inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; } /** *The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.
If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.
*/ inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; } /** *The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.
If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.
*/ inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); } /** *The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.
If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.
*/ inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); } /** *The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.
If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.
*/ inline RequestLaunchTemplateData& WithUserData(const Aws::String& value) { SetUserData(value); return *this;} /** *The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.
If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.
*/ inline RequestLaunchTemplateData& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;} /** *The user data to make available to the instance. You must provide * base64-encoded text. User data is limited to 16 KB. For more information, see Run * commands on your Linux instance at launch (Linux) or Work * with instance user data (Windows) in the Amazon Elastic Compute Cloud * User Guide.
If you are creating the launch template for use with * Batch, the user data must be provided in the * MIME multi-part archive format. For more information, see Amazon * EC2 user data in launch templates in the Batch User Guide.
*/ inline RequestLaunchTemplateData& WithUserData(const char* value) { SetUserData(value); return *this;} /** *The tags to apply to the resources that are created during instance * launch.
You can specify tags for the following resources only:
Instances
Volumes
Elastic * graphics
Spot Instance requests
Network * interfaces
To tag a resource after it has been created, see * CreateTags.
*To tag the launch template itself, you must use the TagSpecification * parameter.
*/ inline const Aws::VectorThe tags to apply to the resources that are created during instance * launch.
You can specify tags for the following resources only:
Instances
Volumes
Elastic * graphics
Spot Instance requests
Network * interfaces
To tag a resource after it has been created, see * CreateTags.
*To tag the launch template itself, you must use the TagSpecification * parameter.
*/ inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; } /** *The tags to apply to the resources that are created during instance * launch.
You can specify tags for the following resources only:
Instances
Volumes
Elastic * graphics
Spot Instance requests
Network * interfaces
To tag a resource after it has been created, see * CreateTags.
*To tag the launch template itself, you must use the TagSpecification * parameter.
*/ inline void SetTagSpecifications(const Aws::VectorThe tags to apply to the resources that are created during instance * launch.
You can specify tags for the following resources only:
Instances
Volumes
Elastic * graphics
Spot Instance requests
Network * interfaces
To tag a resource after it has been created, see * CreateTags.
*To tag the launch template itself, you must use the TagSpecification * parameter.
*/ inline void SetTagSpecifications(Aws::VectorThe tags to apply to the resources that are created during instance * launch.
You can specify tags for the following resources only:
Instances
Volumes
Elastic * graphics
Spot Instance requests
Network * interfaces
To tag a resource after it has been created, see * CreateTags.
*To tag the launch template itself, you must use the TagSpecification * parameter.
*/ inline RequestLaunchTemplateData& WithTagSpecifications(const Aws::VectorThe tags to apply to the resources that are created during instance * launch.
You can specify tags for the following resources only:
Instances
Volumes
Elastic * graphics
Spot Instance requests
Network * interfaces
To tag a resource after it has been created, see * CreateTags.
*To tag the launch template itself, you must use the TagSpecification * parameter.
*/ inline RequestLaunchTemplateData& WithTagSpecifications(Aws::VectorThe tags to apply to the resources that are created during instance * launch.
You can specify tags for the following resources only:
Instances
Volumes
Elastic * graphics
Spot Instance requests
Network * interfaces
To tag a resource after it has been created, see * CreateTags.
*To tag the launch template itself, you must use the TagSpecification * parameter.
*/ inline RequestLaunchTemplateData& AddTagSpecifications(const LaunchTemplateTagSpecificationRequest& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; } /** *The tags to apply to the resources that are created during instance * launch.
You can specify tags for the following resources only:
Instances
Volumes
Elastic * graphics
Spot Instance requests
Network * interfaces
To tag a resource after it has been created, see * CreateTags.
*To tag the launch template itself, you must use the TagSpecification * parameter.
*/ inline RequestLaunchTemplateData& AddTagSpecifications(LaunchTemplateTagSpecificationRequest&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } /** *An elastic GPU to associate with the instance.
*/ inline const Aws::VectorAn elastic GPU to associate with the instance.
*/ inline bool ElasticGpuSpecificationsHasBeenSet() const { return m_elasticGpuSpecificationsHasBeenSet; } /** *An elastic GPU to associate with the instance.
*/ inline void SetElasticGpuSpecifications(const Aws::VectorAn elastic GPU to associate with the instance.
*/ inline void SetElasticGpuSpecifications(Aws::VectorAn elastic GPU to associate with the instance.
*/ inline RequestLaunchTemplateData& WithElasticGpuSpecifications(const Aws::VectorAn elastic GPU to associate with the instance.
*/ inline RequestLaunchTemplateData& WithElasticGpuSpecifications(Aws::VectorAn elastic GPU to associate with the instance.
*/ inline RequestLaunchTemplateData& AddElasticGpuSpecifications(const ElasticGpuSpecification& value) { m_elasticGpuSpecificationsHasBeenSet = true; m_elasticGpuSpecifications.push_back(value); return *this; } /** *An elastic GPU to associate with the instance.
*/ inline RequestLaunchTemplateData& AddElasticGpuSpecifications(ElasticGpuSpecification&& value) { m_elasticGpuSpecificationsHasBeenSet = true; m_elasticGpuSpecifications.push_back(std::move(value)); return *this; } /** *The elastic inference accelerator for the instance.
*/ inline const Aws::VectorThe elastic inference accelerator for the instance.
*/ inline bool ElasticInferenceAcceleratorsHasBeenSet() const { return m_elasticInferenceAcceleratorsHasBeenSet; } /** *The elastic inference accelerator for the instance.
*/ inline void SetElasticInferenceAccelerators(const Aws::VectorThe elastic inference accelerator for the instance.
*/ inline void SetElasticInferenceAccelerators(Aws::VectorThe elastic inference accelerator for the instance.
*/ inline RequestLaunchTemplateData& WithElasticInferenceAccelerators(const Aws::VectorThe elastic inference accelerator for the instance.
*/ inline RequestLaunchTemplateData& WithElasticInferenceAccelerators(Aws::VectorThe elastic inference accelerator for the instance.
*/ inline RequestLaunchTemplateData& AddElasticInferenceAccelerators(const LaunchTemplateElasticInferenceAccelerator& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators.push_back(value); return *this; } /** *The elastic inference accelerator for the instance.
*/ inline RequestLaunchTemplateData& AddElasticInferenceAccelerators(LaunchTemplateElasticInferenceAccelerator&& value) { m_elasticInferenceAcceleratorsHasBeenSet = true; m_elasticInferenceAccelerators.push_back(std::move(value)); return *this; } /** *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.
*/ inline const Aws::VectorOne 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.
*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *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.
*/ inline void SetSecurityGroupIds(const Aws::VectorOne 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.
*/ inline void SetSecurityGroupIds(Aws::VectorOne 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.
*/ inline RequestLaunchTemplateData& WithSecurityGroupIds(const Aws::VectorOne 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.
*/ inline RequestLaunchTemplateData& WithSecurityGroupIds(Aws::VectorOne 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.
*/ inline RequestLaunchTemplateData& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *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.
*/ inline RequestLaunchTemplateData& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *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.
*/ inline RequestLaunchTemplateData& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *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.
*/ inline const Aws::VectorOne 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.
*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *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.
*/ inline void SetSecurityGroups(const Aws::VectorOne 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.
*/ inline void SetSecurityGroups(Aws::VectorOne 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.
*/ inline RequestLaunchTemplateData& WithSecurityGroups(const Aws::VectorOne 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.
*/ inline RequestLaunchTemplateData& WithSecurityGroups(Aws::VectorOne 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.
*/ inline RequestLaunchTemplateData& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *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.
*/ inline RequestLaunchTemplateData& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *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.
*/ inline RequestLaunchTemplateData& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *The market (purchasing) option for the instances.
*/ inline const LaunchTemplateInstanceMarketOptionsRequest& GetInstanceMarketOptions() const{ return m_instanceMarketOptions; } /** *The market (purchasing) option for the instances.
*/ inline bool InstanceMarketOptionsHasBeenSet() const { return m_instanceMarketOptionsHasBeenSet; } /** *The market (purchasing) option for the instances.
*/ inline void SetInstanceMarketOptions(const LaunchTemplateInstanceMarketOptionsRequest& value) { m_instanceMarketOptionsHasBeenSet = true; m_instanceMarketOptions = value; } /** *The market (purchasing) option for the instances.
*/ inline void SetInstanceMarketOptions(LaunchTemplateInstanceMarketOptionsRequest&& value) { m_instanceMarketOptionsHasBeenSet = true; m_instanceMarketOptions = std::move(value); } /** *The market (purchasing) option for the instances.
*/ inline RequestLaunchTemplateData& WithInstanceMarketOptions(const LaunchTemplateInstanceMarketOptionsRequest& value) { SetInstanceMarketOptions(value); return *this;} /** *The market (purchasing) option for the instances.
*/ inline RequestLaunchTemplateData& WithInstanceMarketOptions(LaunchTemplateInstanceMarketOptionsRequest&& value) { SetInstanceMarketOptions(std::move(value)); return *this;} /** *The credit option for CPU usage of the instance. Valid only for T * instances.
*/ inline const CreditSpecificationRequest& GetCreditSpecification() const{ return m_creditSpecification; } /** *The credit option for CPU usage of the instance. Valid only for T * instances.
*/ inline bool CreditSpecificationHasBeenSet() const { return m_creditSpecificationHasBeenSet; } /** *The credit option for CPU usage of the instance. Valid only for T * instances.
*/ inline void SetCreditSpecification(const CreditSpecificationRequest& value) { m_creditSpecificationHasBeenSet = true; m_creditSpecification = value; } /** *The credit option for CPU usage of the instance. Valid only for T * instances.
*/ inline void SetCreditSpecification(CreditSpecificationRequest&& value) { m_creditSpecificationHasBeenSet = true; m_creditSpecification = std::move(value); } /** *The credit option for CPU usage of the instance. Valid only for T * instances.
*/ inline RequestLaunchTemplateData& WithCreditSpecification(const CreditSpecificationRequest& value) { SetCreditSpecification(value); return *this;} /** *The credit option for CPU usage of the instance. Valid only for T * instances.
*/ inline RequestLaunchTemplateData& WithCreditSpecification(CreditSpecificationRequest&& value) { SetCreditSpecification(std::move(value)); return *this;} /** *The CPU options for the instance. For more information, see Optimizing * CPU Options in the Amazon Elastic Compute Cloud User Guide.
*/ inline const LaunchTemplateCpuOptionsRequest& GetCpuOptions() const{ return m_cpuOptions; } /** *The CPU options for the instance. For more information, see Optimizing * CPU Options in the Amazon Elastic Compute Cloud User Guide.
*/ inline bool CpuOptionsHasBeenSet() const { return m_cpuOptionsHasBeenSet; } /** *The CPU options for the instance. For more information, see Optimizing * CPU Options in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetCpuOptions(const LaunchTemplateCpuOptionsRequest& value) { m_cpuOptionsHasBeenSet = true; m_cpuOptions = value; } /** *The CPU options for the instance. For more information, see Optimizing * CPU Options in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetCpuOptions(LaunchTemplateCpuOptionsRequest&& value) { m_cpuOptionsHasBeenSet = true; m_cpuOptions = std::move(value); } /** *The CPU options for the instance. For more information, see Optimizing * CPU Options in the Amazon Elastic Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithCpuOptions(const LaunchTemplateCpuOptionsRequest& value) { SetCpuOptions(value); return *this;} /** *The CPU options for the instance. For more information, see Optimizing * CPU Options in the Amazon Elastic Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithCpuOptions(LaunchTemplateCpuOptionsRequest&& value) { SetCpuOptions(std::move(value)); return *this;} /** *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).
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).
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).
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).
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).
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).
The license configurations.
*/ inline const Aws::VectorThe license configurations.
*/ inline bool LicenseSpecificationsHasBeenSet() const { return m_licenseSpecificationsHasBeenSet; } /** *The license configurations.
*/ inline void SetLicenseSpecifications(const Aws::VectorThe license configurations.
*/ inline void SetLicenseSpecifications(Aws::VectorThe license configurations.
*/ inline RequestLaunchTemplateData& WithLicenseSpecifications(const Aws::VectorThe license configurations.
*/ inline RequestLaunchTemplateData& WithLicenseSpecifications(Aws::VectorThe license configurations.
*/ inline RequestLaunchTemplateData& AddLicenseSpecifications(const LaunchTemplateLicenseConfigurationRequest& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(value); return *this; } /** *The license configurations.
*/ inline RequestLaunchTemplateData& AddLicenseSpecifications(LaunchTemplateLicenseConfigurationRequest&& value) { m_licenseSpecificationsHasBeenSet = true; m_licenseSpecifications.push_back(std::move(value)); return *this; } /** *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 instance in the Amazon Elastic Compute Cloud User Guide.
*/ inline const LaunchTemplateHibernationOptionsRequest& GetHibernationOptions() const{ return m_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 instance in the Amazon Elastic Compute Cloud User Guide.
*/ inline bool HibernationOptionsHasBeenSet() const { return m_hibernationOptionsHasBeenSet; } /** *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 instance in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetHibernationOptions(const LaunchTemplateHibernationOptionsRequest& value) { m_hibernationOptionsHasBeenSet = true; m_hibernationOptions = value; } /** *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 instance in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetHibernationOptions(LaunchTemplateHibernationOptionsRequest&& value) { m_hibernationOptionsHasBeenSet = true; m_hibernationOptions = std::move(value); } /** *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 instance in the Amazon Elastic Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithHibernationOptions(const LaunchTemplateHibernationOptionsRequest& value) { SetHibernationOptions(value); return *this;} /** *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 instance in the Amazon Elastic Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithHibernationOptions(LaunchTemplateHibernationOptionsRequest&& value) { SetHibernationOptions(std::move(value)); return *this;} /** *The metadata options for the instance. For more information, see Instance * metadata and user data in the Amazon Elastic Compute Cloud User * Guide.
*/ inline const LaunchTemplateInstanceMetadataOptionsRequest& GetMetadataOptions() const{ return m_metadataOptions; } /** *The metadata options for the instance. For more information, see Instance * metadata and user data in the Amazon Elastic Compute Cloud User * Guide.
*/ inline bool MetadataOptionsHasBeenSet() const { return m_metadataOptionsHasBeenSet; } /** *The metadata options for the instance. For more information, see Instance * metadata and user data in the Amazon Elastic Compute Cloud User * Guide.
*/ inline void SetMetadataOptions(const LaunchTemplateInstanceMetadataOptionsRequest& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = value; } /** *The metadata options for the instance. For more information, see Instance * metadata and user data in the Amazon Elastic Compute Cloud User * Guide.
*/ inline void SetMetadataOptions(LaunchTemplateInstanceMetadataOptionsRequest&& value) { m_metadataOptionsHasBeenSet = true; m_metadataOptions = std::move(value); } /** *The metadata options for the instance. For more information, see Instance * metadata and user data in the Amazon Elastic Compute Cloud User * Guide.
*/ inline RequestLaunchTemplateData& WithMetadataOptions(const LaunchTemplateInstanceMetadataOptionsRequest& value) { SetMetadataOptions(value); return *this;} /** *The metadata options for the instance. For more information, see Instance * metadata and user data in the Amazon Elastic Compute Cloud User * Guide.
*/ inline RequestLaunchTemplateData& WithMetadataOptions(LaunchTemplateInstanceMetadataOptionsRequest&& value) { SetMetadataOptions(std::move(value)); return *this;} /** *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.
*/ inline const LaunchTemplateEnclaveOptionsRequest& GetEnclaveOptions() const{ return m_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.
*/ inline bool EnclaveOptionsHasBeenSet() const { return m_enclaveOptionsHasBeenSet; } /** *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.
*/ inline void SetEnclaveOptions(const LaunchTemplateEnclaveOptionsRequest& value) { m_enclaveOptionsHasBeenSet = true; m_enclaveOptions = value; } /** *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.
*/ inline void SetEnclaveOptions(LaunchTemplateEnclaveOptionsRequest&& value) { m_enclaveOptionsHasBeenSet = true; m_enclaveOptions = std::move(value); } /** *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.
*/ inline RequestLaunchTemplateData& WithEnclaveOptions(const LaunchTemplateEnclaveOptionsRequest& value) { SetEnclaveOptions(value); return *this;} /** *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.
*/ inline RequestLaunchTemplateData& WithEnclaveOptions(LaunchTemplateEnclaveOptionsRequest&& value) { SetEnclaveOptions(std::move(value)); return *this;} /** *The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with these attributes.
You must
* specify VCpuCount
and MemoryMiB
. All other attributes
* are optional. Any unspecified optional attribute is set to its default.
When you specify multiple attributes, you get instance types that satisfy all * of the specified attributes. If you specify multiple values for an attribute, * you get instance types that satisfy any of the specified values.
To limit * the list of instance types from which Amazon EC2 can identify matching instance * types, you can use one of the following parameters, but not both in the same * request:
AllowedInstanceTypes
- The instance
* types to include in the list. All other instance types are ignored, even if they
* match your specified attributes.
* ExcludedInstanceTypes
- The instance types to exclude from the
* list, even if they match your specified attributes.
If
* you specify InstanceRequirements
, you can't specify
* InstanceType
.
Attribute-based instance type selection is
* only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to
* launch instances. If you plan to use the launch template in the launch
* instance wizard, or with the RunInstances
* API or AWS::EC2::Instance
* Amazon Web Services CloudFormation resource, you can't specify
* InstanceRequirements
.
For more information, see Attribute-based * instance type selection for EC2 Fleet, Attribute-based * instance type selection for Spot Fleet, and Spot * placement score in the Amazon EC2 User Guide.
*/ inline const InstanceRequirementsRequest& GetInstanceRequirements() const{ return m_instanceRequirements; } /** *The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with these attributes.
You must
* specify VCpuCount
and MemoryMiB
. All other attributes
* are optional. Any unspecified optional attribute is set to its default.
When you specify multiple attributes, you get instance types that satisfy all * of the specified attributes. If you specify multiple values for an attribute, * you get instance types that satisfy any of the specified values.
To limit * the list of instance types from which Amazon EC2 can identify matching instance * types, you can use one of the following parameters, but not both in the same * request:
AllowedInstanceTypes
- The instance
* types to include in the list. All other instance types are ignored, even if they
* match your specified attributes.
* ExcludedInstanceTypes
- The instance types to exclude from the
* list, even if they match your specified attributes.
If
* you specify InstanceRequirements
, you can't specify
* InstanceType
.
Attribute-based instance type selection is
* only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to
* launch instances. If you plan to use the launch template in the launch
* instance wizard, or with the RunInstances
* API or AWS::EC2::Instance
* Amazon Web Services CloudFormation resource, you can't specify
* InstanceRequirements
.
For more information, see Attribute-based * instance type selection for EC2 Fleet, Attribute-based * instance type selection for Spot Fleet, and Spot * placement score in the Amazon EC2 User Guide.
*/ inline bool InstanceRequirementsHasBeenSet() const { return m_instanceRequirementsHasBeenSet; } /** *The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with these attributes.
You must
* specify VCpuCount
and MemoryMiB
. All other attributes
* are optional. Any unspecified optional attribute is set to its default.
When you specify multiple attributes, you get instance types that satisfy all * of the specified attributes. If you specify multiple values for an attribute, * you get instance types that satisfy any of the specified values.
To limit * the list of instance types from which Amazon EC2 can identify matching instance * types, you can use one of the following parameters, but not both in the same * request:
AllowedInstanceTypes
- The instance
* types to include in the list. All other instance types are ignored, even if they
* match your specified attributes.
* ExcludedInstanceTypes
- The instance types to exclude from the
* list, even if they match your specified attributes.
If
* you specify InstanceRequirements
, you can't specify
* InstanceType
.
Attribute-based instance type selection is
* only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to
* launch instances. If you plan to use the launch template in the launch
* instance wizard, or with the RunInstances
* API or AWS::EC2::Instance
* Amazon Web Services CloudFormation resource, you can't specify
* InstanceRequirements
.
For more information, see Attribute-based * instance type selection for EC2 Fleet, Attribute-based * instance type selection for Spot Fleet, and Spot * placement score in the Amazon EC2 User Guide.
*/ inline void SetInstanceRequirements(const InstanceRequirementsRequest& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = value; } /** *The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with these attributes.
You must
* specify VCpuCount
and MemoryMiB
. All other attributes
* are optional. Any unspecified optional attribute is set to its default.
When you specify multiple attributes, you get instance types that satisfy all * of the specified attributes. If you specify multiple values for an attribute, * you get instance types that satisfy any of the specified values.
To limit * the list of instance types from which Amazon EC2 can identify matching instance * types, you can use one of the following parameters, but not both in the same * request:
AllowedInstanceTypes
- The instance
* types to include in the list. All other instance types are ignored, even if they
* match your specified attributes.
* ExcludedInstanceTypes
- The instance types to exclude from the
* list, even if they match your specified attributes.
If
* you specify InstanceRequirements
, you can't specify
* InstanceType
.
Attribute-based instance type selection is
* only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to
* launch instances. If you plan to use the launch template in the launch
* instance wizard, or with the RunInstances
* API or AWS::EC2::Instance
* Amazon Web Services CloudFormation resource, you can't specify
* InstanceRequirements
.
For more information, see Attribute-based * instance type selection for EC2 Fleet, Attribute-based * instance type selection for Spot Fleet, and Spot * placement score in the Amazon EC2 User Guide.
*/ inline void SetInstanceRequirements(InstanceRequirementsRequest&& value) { m_instanceRequirementsHasBeenSet = true; m_instanceRequirements = std::move(value); } /** *The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with these attributes.
You must
* specify VCpuCount
and MemoryMiB
. All other attributes
* are optional. Any unspecified optional attribute is set to its default.
When you specify multiple attributes, you get instance types that satisfy all * of the specified attributes. If you specify multiple values for an attribute, * you get instance types that satisfy any of the specified values.
To limit * the list of instance types from which Amazon EC2 can identify matching instance * types, you can use one of the following parameters, but not both in the same * request:
AllowedInstanceTypes
- The instance
* types to include in the list. All other instance types are ignored, even if they
* match your specified attributes.
* ExcludedInstanceTypes
- The instance types to exclude from the
* list, even if they match your specified attributes.
If
* you specify InstanceRequirements
, you can't specify
* InstanceType
.
Attribute-based instance type selection is
* only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to
* launch instances. If you plan to use the launch template in the launch
* instance wizard, or with the RunInstances
* API or AWS::EC2::Instance
* Amazon Web Services CloudFormation resource, you can't specify
* InstanceRequirements
.
For more information, see Attribute-based * instance type selection for EC2 Fleet, Attribute-based * instance type selection for Spot Fleet, and Spot * placement score in the Amazon EC2 User Guide.
*/ inline RequestLaunchTemplateData& WithInstanceRequirements(const InstanceRequirementsRequest& value) { SetInstanceRequirements(value); return *this;} /** *The attributes for the instance types. When you specify instance attributes, * Amazon EC2 will identify instance types with these attributes.
You must
* specify VCpuCount
and MemoryMiB
. All other attributes
* are optional. Any unspecified optional attribute is set to its default.
When you specify multiple attributes, you get instance types that satisfy all * of the specified attributes. If you specify multiple values for an attribute, * you get instance types that satisfy any of the specified values.
To limit * the list of instance types from which Amazon EC2 can identify matching instance * types, you can use one of the following parameters, but not both in the same * request:
AllowedInstanceTypes
- The instance
* types to include in the list. All other instance types are ignored, even if they
* match your specified attributes.
* ExcludedInstanceTypes
- The instance types to exclude from the
* list, even if they match your specified attributes.
If
* you specify InstanceRequirements
, you can't specify
* InstanceType
.
Attribute-based instance type selection is
* only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to
* launch instances. If you plan to use the launch template in the launch
* instance wizard, or with the RunInstances
* API or AWS::EC2::Instance
* Amazon Web Services CloudFormation resource, you can't specify
* InstanceRequirements
.
For more information, see Attribute-based * instance type selection for EC2 Fleet, Attribute-based * instance type selection for Spot Fleet, and Spot * placement score in the Amazon EC2 User Guide.
*/ inline RequestLaunchTemplateData& WithInstanceRequirements(InstanceRequirementsRequest&& value) { SetInstanceRequirements(std::move(value)); return *this;} /** *The options for the instance hostname. The default values are inherited from * the subnet.
*/ inline const LaunchTemplatePrivateDnsNameOptionsRequest& GetPrivateDnsNameOptions() const{ return m_privateDnsNameOptions; } /** *The options for the instance hostname. The default values are inherited from * the subnet.
*/ inline bool PrivateDnsNameOptionsHasBeenSet() const { return m_privateDnsNameOptionsHasBeenSet; } /** *The options for the instance hostname. The default values are inherited from * the subnet.
*/ inline void SetPrivateDnsNameOptions(const LaunchTemplatePrivateDnsNameOptionsRequest& value) { m_privateDnsNameOptionsHasBeenSet = true; m_privateDnsNameOptions = value; } /** *The options for the instance hostname. The default values are inherited from * the subnet.
*/ inline void SetPrivateDnsNameOptions(LaunchTemplatePrivateDnsNameOptionsRequest&& value) { m_privateDnsNameOptionsHasBeenSet = true; m_privateDnsNameOptions = std::move(value); } /** *The options for the instance hostname. The default values are inherited from * the subnet.
*/ inline RequestLaunchTemplateData& WithPrivateDnsNameOptions(const LaunchTemplatePrivateDnsNameOptionsRequest& value) { SetPrivateDnsNameOptions(value); return *this;} /** *The options for the instance hostname. The default values are inherited from * the subnet.
*/ inline RequestLaunchTemplateData& WithPrivateDnsNameOptions(LaunchTemplatePrivateDnsNameOptionsRequest&& value) { SetPrivateDnsNameOptions(std::move(value)); return *this;} /** *The maintenance options for the instance.
*/ inline const LaunchTemplateInstanceMaintenanceOptionsRequest& GetMaintenanceOptions() const{ return m_maintenanceOptions; } /** *The maintenance options for the instance.
*/ inline bool MaintenanceOptionsHasBeenSet() const { return m_maintenanceOptionsHasBeenSet; } /** *The maintenance options for the instance.
*/ inline void SetMaintenanceOptions(const LaunchTemplateInstanceMaintenanceOptionsRequest& value) { m_maintenanceOptionsHasBeenSet = true; m_maintenanceOptions = value; } /** *The maintenance options for the instance.
*/ inline void SetMaintenanceOptions(LaunchTemplateInstanceMaintenanceOptionsRequest&& value) { m_maintenanceOptionsHasBeenSet = true; m_maintenanceOptions = std::move(value); } /** *The maintenance options for the instance.
*/ inline RequestLaunchTemplateData& WithMaintenanceOptions(const LaunchTemplateInstanceMaintenanceOptionsRequest& value) { SetMaintenanceOptions(value); return *this;} /** *The maintenance options for the instance.
*/ inline RequestLaunchTemplateData& WithMaintenanceOptions(LaunchTemplateInstanceMaintenanceOptionsRequest&& value) { SetMaintenanceOptions(std::move(value)); return *this;} /** *Indicates whether to enable the instance for stop protection. For more * information, see Stop * protection in the Amazon Elastic Compute Cloud User Guide.
*/ inline bool GetDisableApiStop() const{ return m_disableApiStop; } /** *Indicates whether to enable the instance for stop protection. For more * information, see Stop * protection in the Amazon Elastic Compute Cloud User Guide.
*/ inline bool DisableApiStopHasBeenSet() const { return m_disableApiStopHasBeenSet; } /** *Indicates whether to enable the instance for stop protection. For more * information, see Stop * protection in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetDisableApiStop(bool value) { m_disableApiStopHasBeenSet = true; m_disableApiStop = value; } /** *Indicates whether to enable the instance for stop protection. For more * information, see Stop * protection in the Amazon Elastic Compute Cloud User Guide.
*/ inline RequestLaunchTemplateData& WithDisableApiStop(bool value) { SetDisableApiStop(value); return *this;} private: Aws::String m_kernelId; bool m_kernelIdHasBeenSet = false; bool m_ebsOptimized; bool m_ebsOptimizedHasBeenSet = false; LaunchTemplateIamInstanceProfileSpecificationRequest m_iamInstanceProfile; bool m_iamInstanceProfileHasBeenSet = false; Aws::Vector