amazonka-opsworks-2.0: Amazon OpsWorks 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.OpsWorks.Types.EbsBlockDevice

Description

 
Synopsis

Documentation

data EbsBlockDevice Source #

Describes an Amazon EBS volume. This data type maps directly to the Amazon EC2 EbsBlockDevice data type.

See: newEbsBlockDevice smart constructor.

Constructors

EbsBlockDevice' 

Fields

  • deleteOnTermination :: Maybe Bool

    Whether the volume is deleted on instance termination.

  • iops :: Maybe Int

    The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.

  • snapshotId :: Maybe Text

    The snapshot ID.

  • volumeSize :: Maybe Int

    The volume size, in GiB. For more information, see EbsBlockDevice.

  • volumeType :: Maybe VolumeType

    The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, st1 for Throughput Optimized hard disk drives (HDD), sc1 for Cold HDD,and standard for Magnetic volumes.

    If you specify the io1 volume type, you must also specify a value for the Iops attribute. The maximum ratio of provisioned IOPS to requested volume size (in GiB) is 50:1. AWS uses the default volume size (in GiB) specified in the AMI attributes to set IOPS to 50 x (volume size).

Instances

Instances details
FromJSON EbsBlockDevice Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.EbsBlockDevice

ToJSON EbsBlockDevice Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.EbsBlockDevice

Generic EbsBlockDevice Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.EbsBlockDevice

Associated Types

type Rep EbsBlockDevice :: Type -> Type #

Read EbsBlockDevice Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.EbsBlockDevice

Show EbsBlockDevice Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.EbsBlockDevice

NFData EbsBlockDevice Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.EbsBlockDevice

Methods

rnf :: EbsBlockDevice -> () #

Eq EbsBlockDevice Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.EbsBlockDevice

Hashable EbsBlockDevice Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.EbsBlockDevice

type Rep EbsBlockDevice Source # 
Instance details

Defined in Amazonka.OpsWorks.Types.EbsBlockDevice

type Rep EbsBlockDevice = D1 ('MetaData "EbsBlockDevice" "Amazonka.OpsWorks.Types.EbsBlockDevice" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "EbsBlockDevice'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "deleteOnTermination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "iops") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "volumeSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "volumeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VolumeType))))))

newEbsBlockDevice :: EbsBlockDevice Source #

Create a value of EbsBlockDevice 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:deleteOnTermination:EbsBlockDevice', ebsBlockDevice_deleteOnTermination - Whether the volume is deleted on instance termination.

$sel:iops:EbsBlockDevice', ebsBlockDevice_iops - The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.

$sel:snapshotId:EbsBlockDevice', ebsBlockDevice_snapshotId - The snapshot ID.

$sel:volumeSize:EbsBlockDevice', ebsBlockDevice_volumeSize - The volume size, in GiB. For more information, see EbsBlockDevice.

$sel:volumeType:EbsBlockDevice', ebsBlockDevice_volumeType - The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, st1 for Throughput Optimized hard disk drives (HDD), sc1 for Cold HDD,and standard for Magnetic volumes.

If you specify the io1 volume type, you must also specify a value for the Iops attribute. The maximum ratio of provisioned IOPS to requested volume size (in GiB) is 50:1. AWS uses the default volume size (in GiB) specified in the AMI attributes to set IOPS to 50 x (volume size).

ebsBlockDevice_deleteOnTermination :: Lens' EbsBlockDevice (Maybe Bool) Source #

Whether the volume is deleted on instance termination.

ebsBlockDevice_iops :: Lens' EbsBlockDevice (Maybe Int) Source #

The number of I/O operations per second (IOPS) that the volume supports. For more information, see EbsBlockDevice.

ebsBlockDevice_volumeSize :: Lens' EbsBlockDevice (Maybe Int) Source #

The volume size, in GiB. For more information, see EbsBlockDevice.

ebsBlockDevice_volumeType :: Lens' EbsBlockDevice (Maybe VolumeType) Source #

The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, st1 for Throughput Optimized hard disk drives (HDD), sc1 for Cold HDD,and standard for Magnetic volumes.

If you specify the io1 volume type, you must also specify a value for the Iops attribute. The maximum ratio of provisioned IOPS to requested volume size (in GiB) is 50:1. AWS uses the default volume size (in GiB) specified in the AMI attributes to set IOPS to 50 x (volume size).