Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data BlockDeviceMapping = BlockDeviceMapping' {}
- newBlockDeviceMapping :: Text -> BlockDeviceMapping
- blockDeviceMapping_ebs :: Lens' BlockDeviceMapping (Maybe Ebs)
- blockDeviceMapping_noDevice :: Lens' BlockDeviceMapping (Maybe Bool)
- blockDeviceMapping_virtualName :: Lens' BlockDeviceMapping (Maybe Text)
- blockDeviceMapping_deviceName :: Lens' BlockDeviceMapping Text
Documentation
data BlockDeviceMapping Source #
Describes a block device mapping.
See: newBlockDeviceMapping
smart constructor.
BlockDeviceMapping' | |
|
Instances
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
.