AWS SDK for C++  1.9.154
AWS SDK for C++
Public Member Functions | List of all members
Aws::EC2::Model::BlockDeviceMapping Class Reference

#include <BlockDeviceMapping.h>

Public Member Functions

 BlockDeviceMapping ()
 
 BlockDeviceMapping (const Aws::Utils::Xml::XmlNode &xmlNode)
 
BlockDeviceMappingoperator= (const Aws::Utils::Xml::XmlNode &xmlNode)
 
void OutputToStream (Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
 
void OutputToStream (Aws::OStream &oStream, const char *location) const
 
const Aws::StringGetDeviceName () const
 
bool DeviceNameHasBeenSet () const
 
void SetDeviceName (const Aws::String &value)
 
void SetDeviceName (Aws::String &&value)
 
void SetDeviceName (const char *value)
 
BlockDeviceMappingWithDeviceName (const Aws::String &value)
 
BlockDeviceMappingWithDeviceName (Aws::String &&value)
 
BlockDeviceMappingWithDeviceName (const char *value)
 
const Aws::StringGetVirtualName () const
 
bool VirtualNameHasBeenSet () const
 
void SetVirtualName (const Aws::String &value)
 
void SetVirtualName (Aws::String &&value)
 
void SetVirtualName (const char *value)
 
BlockDeviceMappingWithVirtualName (const Aws::String &value)
 
BlockDeviceMappingWithVirtualName (Aws::String &&value)
 
BlockDeviceMappingWithVirtualName (const char *value)
 
const EbsBlockDeviceGetEbs () const
 
bool EbsHasBeenSet () const
 
void SetEbs (const EbsBlockDevice &value)
 
void SetEbs (EbsBlockDevice &&value)
 
BlockDeviceMappingWithEbs (const EbsBlockDevice &value)
 
BlockDeviceMappingWithEbs (EbsBlockDevice &&value)
 
const Aws::StringGetNoDevice () const
 
bool NoDeviceHasBeenSet () const
 
void SetNoDevice (const Aws::String &value)
 
void SetNoDevice (Aws::String &&value)
 
void SetNoDevice (const char *value)
 
BlockDeviceMappingWithNoDevice (const Aws::String &value)
 
BlockDeviceMappingWithNoDevice (Aws::String &&value)
 
BlockDeviceMappingWithNoDevice (const char *value)
 

Detailed Description

Describes a block device mapping, which defines the EBS volumes and instance store volumes to attach to an instance at launch.

See Also:

AWS API Reference

Definition at line 33 of file BlockDeviceMapping.h.

Constructor & Destructor Documentation

◆ BlockDeviceMapping() [1/2]

Aws::EC2::Model::BlockDeviceMapping::BlockDeviceMapping ( )

◆ BlockDeviceMapping() [2/2]

Aws::EC2::Model::BlockDeviceMapping::BlockDeviceMapping ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ DeviceNameHasBeenSet()

bool Aws::EC2::Model::BlockDeviceMapping::DeviceNameHasBeenSet ( ) const
inline

The device name (for example, /dev/sdh or xvdh).

Definition at line 54 of file BlockDeviceMapping.h.

◆ EbsHasBeenSet()

bool Aws::EC2::Model::BlockDeviceMapping::EbsHasBeenSet ( ) const
inline

Parameters used to automatically set up EBS volumes when the instance is launched.

Definition at line 224 of file BlockDeviceMapping.h.

◆ GetDeviceName()

const Aws::String& Aws::EC2::Model::BlockDeviceMapping::GetDeviceName ( ) const
inline

The device name (for example, /dev/sdh or xvdh).

Definition at line 48 of file BlockDeviceMapping.h.

◆ GetEbs()

const EbsBlockDevice& Aws::EC2::Model::BlockDeviceMapping::GetEbs ( ) const
inline

Parameters used to automatically set up EBS volumes when the instance is launched.

Definition at line 218 of file BlockDeviceMapping.h.

◆ GetNoDevice()

const Aws::String& Aws::EC2::Model::BlockDeviceMapping::GetNoDevice ( ) const
inline

To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.

Definition at line 256 of file BlockDeviceMapping.h.

◆ GetVirtualName()

const Aws::String& Aws::EC2::Model::BlockDeviceMapping::GetVirtualName ( ) const
inline

The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.

Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.

Definition at line 106 of file BlockDeviceMapping.h.

◆ NoDeviceHasBeenSet()

bool Aws::EC2::Model::BlockDeviceMapping::NoDeviceHasBeenSet ( ) const
inline

To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.

Definition at line 263 of file BlockDeviceMapping.h.

◆ operator=()

BlockDeviceMapping& Aws::EC2::Model::BlockDeviceMapping::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ OutputToStream() [1/2]

void Aws::EC2::Model::BlockDeviceMapping::OutputToStream ( Aws::OStream oStream,
const char *  location 
) const

◆ OutputToStream() [2/2]

void Aws::EC2::Model::BlockDeviceMapping::OutputToStream ( Aws::OStream ostream,
const char *  location,
unsigned  index,
const char *  locationValue 
) const

◆ SetDeviceName() [1/3]

void Aws::EC2::Model::BlockDeviceMapping::SetDeviceName ( Aws::String &&  value)
inline

The device name (for example, /dev/sdh or xvdh).

Definition at line 66 of file BlockDeviceMapping.h.

◆ SetDeviceName() [2/3]

void Aws::EC2::Model::BlockDeviceMapping::SetDeviceName ( const Aws::String value)
inline

The device name (for example, /dev/sdh or xvdh).

Definition at line 60 of file BlockDeviceMapping.h.

◆ SetDeviceName() [3/3]

void Aws::EC2::Model::BlockDeviceMapping::SetDeviceName ( const char *  value)
inline

The device name (for example, /dev/sdh or xvdh).

Definition at line 72 of file BlockDeviceMapping.h.

◆ SetEbs() [1/2]

void Aws::EC2::Model::BlockDeviceMapping::SetEbs ( const EbsBlockDevice value)
inline

Parameters used to automatically set up EBS volumes when the instance is launched.

Definition at line 230 of file BlockDeviceMapping.h.

◆ SetEbs() [2/2]

void Aws::EC2::Model::BlockDeviceMapping::SetEbs ( EbsBlockDevice &&  value)
inline

Parameters used to automatically set up EBS volumes when the instance is launched.

Definition at line 236 of file BlockDeviceMapping.h.

◆ SetNoDevice() [1/3]

void Aws::EC2::Model::BlockDeviceMapping::SetNoDevice ( Aws::String &&  value)
inline

To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.

Definition at line 277 of file BlockDeviceMapping.h.

◆ SetNoDevice() [2/3]

void Aws::EC2::Model::BlockDeviceMapping::SetNoDevice ( const Aws::String value)
inline

To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.

Definition at line 270 of file BlockDeviceMapping.h.

◆ SetNoDevice() [3/3]

void Aws::EC2::Model::BlockDeviceMapping::SetNoDevice ( const char *  value)
inline

To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.

Definition at line 284 of file BlockDeviceMapping.h.

◆ SetVirtualName() [1/3]

void Aws::EC2::Model::BlockDeviceMapping::SetVirtualName ( Aws::String &&  value)
inline

The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.

Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.

Definition at line 151 of file BlockDeviceMapping.h.

◆ SetVirtualName() [2/3]

void Aws::EC2::Model::BlockDeviceMapping::SetVirtualName ( const Aws::String value)
inline

The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.

Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.

Definition at line 136 of file BlockDeviceMapping.h.

◆ SetVirtualName() [3/3]

void Aws::EC2::Model::BlockDeviceMapping::SetVirtualName ( const char *  value)
inline

The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.

Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.

Definition at line 166 of file BlockDeviceMapping.h.

◆ VirtualNameHasBeenSet()

bool Aws::EC2::Model::BlockDeviceMapping::VirtualNameHasBeenSet ( ) const
inline

The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.

Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.

Definition at line 121 of file BlockDeviceMapping.h.

◆ WithDeviceName() [1/3]

BlockDeviceMapping& Aws::EC2::Model::BlockDeviceMapping::WithDeviceName ( Aws::String &&  value)
inline

The device name (for example, /dev/sdh or xvdh).

Definition at line 84 of file BlockDeviceMapping.h.

◆ WithDeviceName() [2/3]

BlockDeviceMapping& Aws::EC2::Model::BlockDeviceMapping::WithDeviceName ( const Aws::String value)
inline

The device name (for example, /dev/sdh or xvdh).

Definition at line 78 of file BlockDeviceMapping.h.

◆ WithDeviceName() [3/3]

BlockDeviceMapping& Aws::EC2::Model::BlockDeviceMapping::WithDeviceName ( const char *  value)
inline

The device name (for example, /dev/sdh or xvdh).

Definition at line 90 of file BlockDeviceMapping.h.

◆ WithEbs() [1/2]

BlockDeviceMapping& Aws::EC2::Model::BlockDeviceMapping::WithEbs ( const EbsBlockDevice value)
inline

Parameters used to automatically set up EBS volumes when the instance is launched.

Definition at line 242 of file BlockDeviceMapping.h.

◆ WithEbs() [2/2]

BlockDeviceMapping& Aws::EC2::Model::BlockDeviceMapping::WithEbs ( EbsBlockDevice &&  value)
inline

Parameters used to automatically set up EBS volumes when the instance is launched.

Definition at line 248 of file BlockDeviceMapping.h.

◆ WithNoDevice() [1/3]

BlockDeviceMapping& Aws::EC2::Model::BlockDeviceMapping::WithNoDevice ( Aws::String &&  value)
inline

To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.

Definition at line 298 of file BlockDeviceMapping.h.

◆ WithNoDevice() [2/3]

BlockDeviceMapping& Aws::EC2::Model::BlockDeviceMapping::WithNoDevice ( const Aws::String value)
inline

To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.

Definition at line 291 of file BlockDeviceMapping.h.

◆ WithNoDevice() [3/3]

BlockDeviceMapping& Aws::EC2::Model::BlockDeviceMapping::WithNoDevice ( const char *  value)
inline

To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.

Definition at line 305 of file BlockDeviceMapping.h.

◆ WithVirtualName() [1/3]

BlockDeviceMapping& Aws::EC2::Model::BlockDeviceMapping::WithVirtualName ( Aws::String &&  value)
inline

The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.

Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.

Definition at line 196 of file BlockDeviceMapping.h.

◆ WithVirtualName() [2/3]

BlockDeviceMapping& Aws::EC2::Model::BlockDeviceMapping::WithVirtualName ( const Aws::String value)
inline

The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.

Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.

Definition at line 181 of file BlockDeviceMapping.h.

◆ WithVirtualName() [3/3]

BlockDeviceMapping& Aws::EC2::Model::BlockDeviceMapping::WithVirtualName ( const char *  value)
inline

The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.

Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.

Definition at line 211 of file BlockDeviceMapping.h.


The documentation for this class was generated from the following file: