amazonka-autoscaling-2.0: Amazon Auto Scaling SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AutoScaling.Types.BlockDeviceMapping

Description

 
Synopsis

Documentation

data BlockDeviceMapping Source #

Describes a block device mapping.

See: newBlockDeviceMapping smart constructor.

Constructors

BlockDeviceMapping' 

Fields

  • ebs :: Maybe Ebs

    Information to attach an EBS volume to an instance at launch.

  • noDevice :: Maybe Bool

    Setting this value to true prevents a volume that is included in the block device mapping of the AMI from being mapped to the specified device name at launch.

    If NoDevice is true for the root device, instances might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement instances.

  • virtualName :: Maybe Text

    The name of the instance store volume (virtual device) to attach to an instance at launch. The name must be in the form ephemeralX where X is a number starting from zero (0), for example, ephemeral0.

  • deviceName :: Text

    The device name assigned to the volume (for example, /dev/sdh or xvdh). For more information, see Device naming on Linux instances in the Amazon EC2 User Guide for Linux Instances.

    To define a block device mapping, set the device name and exactly one of the following properties: Ebs, NoDevice, or VirtualName.

Instances

Instances details
ToQuery BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

FromXML BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

Generic BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

Associated Types

type Rep BlockDeviceMapping :: Type -> Type #

Read BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

Show BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

NFData BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

Methods

rnf :: BlockDeviceMapping -> () #

Eq BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

Hashable BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

type Rep BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

type Rep BlockDeviceMapping = D1 ('MetaData "BlockDeviceMapping" "Amazonka.AutoScaling.Types.BlockDeviceMapping" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" 'False) (C1 ('MetaCons "BlockDeviceMapping'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ebs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Ebs)) :*: S1 ('MetaSel ('Just "noDevice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "virtualName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "deviceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newBlockDeviceMapping Source #

Create a value of BlockDeviceMapping with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:ebs:BlockDeviceMapping', blockDeviceMapping_ebs - Information to attach an EBS volume to an instance at launch.

$sel:noDevice:BlockDeviceMapping', blockDeviceMapping_noDevice - Setting this value to true prevents a volume that is included in the block device mapping of the AMI from being mapped to the specified device name at launch.

If NoDevice is true for the root device, instances might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement instances.

$sel:virtualName:BlockDeviceMapping', blockDeviceMapping_virtualName - The name of the instance store volume (virtual device) to attach to an instance at launch. The name must be in the form ephemeralX where X is a number starting from zero (0), for example, ephemeral0.

$sel:deviceName:BlockDeviceMapping', blockDeviceMapping_deviceName - The device name assigned to the volume (for example, /dev/sdh or xvdh). For more information, see Device naming on Linux instances in the Amazon EC2 User Guide for Linux Instances.

To define a block device mapping, set the device name and exactly one of the following properties: Ebs, NoDevice, or VirtualName.

blockDeviceMapping_ebs :: Lens' BlockDeviceMapping (Maybe Ebs) Source #

Information to attach an EBS volume to an instance at launch.

blockDeviceMapping_noDevice :: Lens' BlockDeviceMapping (Maybe Bool) Source #

Setting this value to true prevents a volume that is included in the block device mapping of the AMI from being mapped to the specified device name at launch.

If NoDevice is true for the root device, instances might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement instances.

blockDeviceMapping_virtualName :: Lens' BlockDeviceMapping (Maybe Text) Source #

The name of the instance store volume (virtual device) to attach to an instance at launch. The name must be in the form ephemeralX where X is a number starting from zero (0), for example, ephemeral0.

blockDeviceMapping_deviceName :: Lens' BlockDeviceMapping Text Source #

The device name assigned to the volume (for example, /dev/sdh or xvdh). For more information, see Device naming on Linux instances in the Amazon EC2 User Guide for Linux Instances.

To define a block device mapping, set the device name and exactly one of the following properties: Ebs, NoDevice, or VirtualName.