/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the ec2-2016-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.EC2.Model
{
///
/// The parameters for a block device for an EBS volume.
///
public partial class LaunchTemplateEbsBlockDeviceRequest
{
private bool? _deleteOnTermination;
private bool? _encrypted;
private int? _iops;
private string _kmsKeyId;
private string _snapshotId;
private int? _throughput;
private int? _volumeSize;
private VolumeType _volumeType;
///
/// Gets and sets the property DeleteOnTermination.
///
/// Indicates whether the EBS volume is deleted on instance termination.
///
///
public bool DeleteOnTermination
{
get { return this._deleteOnTermination.GetValueOrDefault(); }
set { this._deleteOnTermination = value; }
}
// Check to see if DeleteOnTermination property is set
internal bool IsSetDeleteOnTermination()
{
return this._deleteOnTermination.HasValue;
}
///
/// Gets and sets the property 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.
///
///
public bool Encrypted
{
get { return this._encrypted.GetValueOrDefault(); }
set { this._encrypted = value; }
}
// Check to see if Encrypted property is set
internal bool IsSetEncrypted()
{
return this._encrypted.HasValue;
}
///
/// Gets and sets the property Iops.
///
/// 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.
///
///
public int Iops
{
get { return this._iops.GetValueOrDefault(); }
set { this._iops = value; }
}
// Check to see if Iops property is set
internal bool IsSetIops()
{
return this._iops.HasValue;
}
///
/// Gets and sets the property KmsKeyId.
///
/// The ARN of the symmetric Key Management Service (KMS) CMK used for encryption.
///
///
public string KmsKeyId
{
get { return this._kmsKeyId; }
set { this._kmsKeyId = value; }
}
// Check to see if KmsKeyId property is set
internal bool IsSetKmsKeyId()
{
return this._kmsKeyId != null;
}
///
/// Gets and sets the property SnapshotId.
///
/// The ID of the snapshot.
///
///
public string SnapshotId
{
get { return this._snapshotId; }
set { this._snapshotId = value; }
}
// Check to see if SnapshotId property is set
internal bool IsSetSnapshotId()
{
return this._snapshotId != null;
}
///
/// Gets and sets the property 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.
///
///
public int Throughput
{
get { return this._throughput.GetValueOrDefault(); }
set { this._throughput = value; }
}
// Check to see if Throughput property is set
internal bool IsSetThroughput()
{
return this._throughput.HasValue;
}
///
/// Gets and sets the property VolumeSize.
///
/// 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
///
///
///
public int VolumeSize
{
get { return this._volumeSize.GetValueOrDefault(); }
set { this._volumeSize = value; }
}
// Check to see if VolumeSize property is set
internal bool IsSetVolumeSize()
{
return this._volumeSize.HasValue;
}
///
/// Gets and sets the property VolumeType.
///
/// The volume type. For more information, see Amazon
/// EBS volume types in the Amazon Elastic Compute Cloud User Guide.
///
///
public VolumeType VolumeType
{
get { return this._volumeType; }
set { this._volumeType = value; }
}
// Check to see if VolumeType property is set
internal bool IsSetVolumeType()
{
return this._volumeType != null;
}
}
}