libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AutoScaling.Types.BlockDeviceMapping

Description

 
Synopsis

Documentation

data BlockDeviceMapping Source #

Describes a block device mapping.

See: newBlockDeviceMapping smart constructor.

Constructors

BlockDeviceMapping' 

Fields

  • virtualName :: Maybe Text

    The name of the virtual device (for example, ephemeral0).

    You can specify either VirtualName or Ebs, but not both.

  • noDevice :: Maybe Bool

    Setting this value to true suppresses the specified device included in the block device mapping of the AMI.

    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.

    If you specify NoDevice, you cannot specify Ebs.

  • ebs :: Maybe Ebs

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

    You can specify either VirtualName or Ebs, but not both.

  • deviceName :: Text

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

Instances

Instances details
Eq BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

Read BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

Show 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 #

NFData BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

Methods

rnf :: BlockDeviceMapping -> () #

Hashable BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

ToQuery BlockDeviceMapping Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.BlockDeviceMapping

FromXML 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" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "BlockDeviceMapping'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "virtualName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "noDevice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "ebs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Ebs)) :*: 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:virtualName:BlockDeviceMapping', blockDeviceMapping_virtualName - The name of the virtual device (for example, ephemeral0).

You can specify either VirtualName or Ebs, but not both.

$sel:noDevice:BlockDeviceMapping', blockDeviceMapping_noDevice - Setting this value to true suppresses the specified device included in the block device mapping of the AMI.

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.

If you specify NoDevice, you cannot specify Ebs.

$sel:ebs:BlockDeviceMapping', blockDeviceMapping_ebs - Parameters used to automatically set up EBS volumes when an instance is launched.

You can specify either VirtualName or Ebs, but not both.

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

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

The name of the virtual device (for example, ephemeral0).

You can specify either VirtualName or Ebs, but not both.

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

Setting this value to true suppresses the specified device included in the block device mapping of the AMI.

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.

If you specify NoDevice, you cannot specify Ebs.

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

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

You can specify either VirtualName or Ebs, but not both.

blockDeviceMapping_deviceName :: Lens' BlockDeviceMapping Text Source #

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