Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data BlockDeviceMapping = BlockDeviceMapping' {}
- newBlockDeviceMapping :: Text -> BlockDeviceMapping
- blockDeviceMapping_virtualName :: Lens' BlockDeviceMapping (Maybe Text)
- blockDeviceMapping_noDevice :: Lens' BlockDeviceMapping (Maybe Bool)
- blockDeviceMapping_ebs :: Lens' BlockDeviceMapping (Maybe Ebs)
- 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: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.