/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The parameters for a block device for an EBS volume.See Also:
* AWS
* API Reference
Indicates whether the EBS volume is encrypted. Encrypted volumes can only be * attached to instances that support Amazon EBS encryption. If you are creating a * volume from a snapshot, you can't specify an encryption value.
*/ inline bool GetEncrypted() const{ return m_encrypted; } /** *Indicates whether the EBS volume is encrypted. Encrypted volumes can only be * attached to instances that support Amazon EBS encryption. If you are creating a * volume from a snapshot, you can't specify an encryption value.
*/ inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; } /** *Indicates whether the EBS volume is encrypted. Encrypted volumes can only be * attached to instances that support Amazon EBS encryption. If you are creating a * volume from a snapshot, you can't specify an encryption value.
*/ inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; } /** *Indicates whether the EBS volume is encrypted. Encrypted volumes can only be * attached to instances that support Amazon EBS encryption. If you are creating a * volume from a snapshot, you can't specify an encryption value.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *Indicates whether the EBS volume is deleted on instance termination.
*/ inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; } /** *Indicates whether the EBS volume is deleted on instance termination.
*/ inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; } /** *Indicates whether the EBS volume is deleted on instance termination.
*/ inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; } /** *Indicates whether the EBS volume is deleted on instance termination.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;} /** *The number of I/O operations per second (IOPS). For gp3
,
* io1
, and io2
volumes, this represents the number of
* IOPS that are provisioned for the volume. For gp2
volumes, this
* represents the baseline performance of the volume and the rate at which the
* volume accumulates I/O credits for bursting.
The following are the * supported values for each volume type:
gp3
:
* 3,000-16,000 IOPS
io1
: 100-64,000 IOPS
io2
: 100-64,000 IOPS
For
* io1
and io2
volumes, we guarantee 64,000 IOPS only for
* Instances
* built on the Nitro System. Other instance families guarantee performance up
* to 32,000 IOPS.
This parameter is supported for io1
,
* io2
, and gp3
volumes only. This parameter is not
* supported for gp2
, st1
, sc1
, or
* standard
volumes.
The number of I/O operations per second (IOPS). For gp3
,
* io1
, and io2
volumes, this represents the number of
* IOPS that are provisioned for the volume. For gp2
volumes, this
* represents the baseline performance of the volume and the rate at which the
* volume accumulates I/O credits for bursting.
The following are the * supported values for each volume type:
gp3
:
* 3,000-16,000 IOPS
io1
: 100-64,000 IOPS
io2
: 100-64,000 IOPS
For
* io1
and io2
volumes, we guarantee 64,000 IOPS only for
* Instances
* built on the Nitro System. Other instance families guarantee performance up
* to 32,000 IOPS.
This parameter is supported for io1
,
* io2
, and gp3
volumes only. This parameter is not
* supported for gp2
, st1
, sc1
, or
* standard
volumes.
The number of I/O operations per second (IOPS). For gp3
,
* io1
, and io2
volumes, this represents the number of
* IOPS that are provisioned for the volume. For gp2
volumes, this
* represents the baseline performance of the volume and the rate at which the
* volume accumulates I/O credits for bursting.
The following are the * supported values for each volume type:
gp3
:
* 3,000-16,000 IOPS
io1
: 100-64,000 IOPS
io2
: 100-64,000 IOPS
For
* io1
and io2
volumes, we guarantee 64,000 IOPS only for
* Instances
* built on the Nitro System. Other instance families guarantee performance up
* to 32,000 IOPS.
This parameter is supported for io1
,
* io2
, and gp3
volumes only. This parameter is not
* supported for gp2
, st1
, sc1
, or
* standard
volumes.
The number of I/O operations per second (IOPS). For gp3
,
* io1
, and io2
volumes, this represents the number of
* IOPS that are provisioned for the volume. For gp2
volumes, this
* represents the baseline performance of the volume and the rate at which the
* volume accumulates I/O credits for bursting.
The following are the * supported values for each volume type:
gp3
:
* 3,000-16,000 IOPS
io1
: 100-64,000 IOPS
io2
: 100-64,000 IOPS
For
* io1
and io2
volumes, we guarantee 64,000 IOPS only for
* Instances
* built on the Nitro System. Other instance families guarantee performance up
* to 32,000 IOPS.
This parameter is supported for io1
,
* io2
, and gp3
volumes only. This parameter is not
* supported for gp2
, st1
, sc1
, or
* standard
volumes.
The ARN of the symmetric Key Management Service (KMS) CMK used for * encryption.
*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *The ARN of the symmetric Key Management Service (KMS) CMK used for * encryption.
*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *The ARN of the symmetric Key Management Service (KMS) CMK used for * encryption.
*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *The ARN of the symmetric Key Management Service (KMS) CMK used for * encryption.
*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *The ARN of the symmetric Key Management Service (KMS) CMK used for * encryption.
*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *The ARN of the symmetric Key Management Service (KMS) CMK used for * encryption.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *The ARN of the symmetric Key Management Service (KMS) CMK used for * encryption.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *The ARN of the symmetric Key Management Service (KMS) CMK used for * encryption.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *The ID of the snapshot.
*/ inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } /** *The ID of the snapshot.
*/ inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } /** *The ID of the snapshot.
*/ inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } /** *The ID of the snapshot.
*/ inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } /** *The ID of the snapshot.
*/ inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } /** *The ID of the snapshot.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} /** *The ID of the snapshot.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} /** *The ID of the snapshot.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} /** *The size of the volume, in GiBs. You must specify either a snapshot ID or a * volume size. The following are the supported volumes sizes for each volume * type:
gp2
and gp3
: 1-16,384
io1
and io2
: 4-16,384
st1
and sc1
: 125-16,384
* standard
: 1-1,024
The size of the volume, in GiBs. You must specify either a snapshot ID or a * volume size. The following are the supported volumes sizes for each volume * type:
gp2
and gp3
: 1-16,384
io1
and io2
: 4-16,384
st1
and sc1
: 125-16,384
* standard
: 1-1,024
The size of the volume, in GiBs. You must specify either a snapshot ID or a * volume size. The following are the supported volumes sizes for each volume * type:
gp2
and gp3
: 1-16,384
io1
and io2
: 4-16,384
st1
and sc1
: 125-16,384
* standard
: 1-1,024
The size of the volume, in GiBs. You must specify either a snapshot ID or a * volume size. The following are the supported volumes sizes for each volume * type:
gp2
and gp3
: 1-16,384
io1
and io2
: 4-16,384
st1
and sc1
: 125-16,384
* standard
: 1-1,024
The volume type. For more information, see Amazon * EBS volume types in the Amazon Elastic Compute Cloud User Guide.
*/ inline const VolumeType& GetVolumeType() const{ return m_volumeType; } /** *The volume type. For more information, see Amazon * EBS volume types in the Amazon Elastic Compute Cloud User Guide.
*/ inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; } /** *The volume type. For more information, see Amazon * EBS volume types in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; } /** *The volume type. For more information, see Amazon * EBS volume types in the Amazon Elastic Compute Cloud User Guide.
*/ inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); } /** *The volume type. For more information, see Amazon * EBS volume types in the Amazon Elastic Compute Cloud User Guide.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;} /** *The volume type. For more information, see Amazon * EBS volume types in the Amazon Elastic Compute Cloud User Guide.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;} /** *The throughput to provision for a gp3
volume, with a maximum of
* 1,000 MiB/s.
Valid Range: Minimum value of 125. Maximum value of * 1000.
*/ inline int GetThroughput() const{ return m_throughput; } /** *The throughput to provision for a gp3
volume, with a maximum of
* 1,000 MiB/s.
Valid Range: Minimum value of 125. Maximum value of * 1000.
*/ inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; } /** *The throughput to provision for a gp3
volume, with a maximum of
* 1,000 MiB/s.
Valid Range: Minimum value of 125. Maximum value of * 1000.
*/ inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; } /** *The throughput to provision for a gp3
volume, with a maximum of
* 1,000 MiB/s.
Valid Range: Minimum value of 125. Maximum value of * 1000.
*/ inline LaunchTemplateEbsBlockDeviceRequest& WithThroughput(int value) { SetThroughput(value); return *this;} private: bool m_encrypted; bool m_encryptedHasBeenSet = false; bool m_deleteOnTermination; bool m_deleteOnTerminationHasBeenSet = false; int m_iops; bool m_iopsHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::String m_snapshotId; bool m_snapshotIdHasBeenSet = false; int m_volumeSize; bool m_volumeSizeHasBeenSet = false; VolumeType m_volumeType; bool m_volumeTypeHasBeenSet = false; int m_throughput; bool m_throughputHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws