AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::OpsWorks::Types::EbsBlockDevice

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing EbsBlockDevice as input to an Aws::Client method, you can use a vanilla Hash:

{
  snapshot_id: "String",
  iops: 1,
  volume_size: 1,
  volume_type: "gp2", # accepts gp2, io1, standard
  delete_on_termination: false,
}

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

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#delete_on_terminationBoolean

Whether the volume is deleted on instance termination.

Returns:

  • (Boolean)

    Whether the volume is deleted on instance termination.

#iopsInteger

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

Returns:

  • (Integer)

    The number of I/O operations per second (IOPS) that the volume supports.

#snapshot_idString

The snapshot ID.

Returns:

  • (String)

    The snapshot ID.

#volume_sizeInteger

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

Returns:

  • (Integer)

    The volume size, in GiB.

#volume_typeString

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).

Possible values:

  • gp2
  • io1
  • standard

Returns:

  • (String)

    The volume type.