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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb

Overview

Note:

When making an API call, you may pass EbsBlockDevice data as a 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.

Instance Attribute Summary collapse

Instance Attribute Details

#delete_on_terminationBoolean

Whether the volume is deleted on instance termination.

Returns:

  • (Boolean)


3604
3605
3606
3607
3608
3609
3610
3611
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 3604

class EbsBlockDevice < Struct.new(
  :snapshot_id,
  :iops,
  :volume_size,
  :volume_type,
  :delete_on_termination)
  include Aws::Structure
end

#iopsInteger

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

Returns:

  • (Integer)


3604
3605
3606
3607
3608
3609
3610
3611
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 3604

class EbsBlockDevice < Struct.new(
  :snapshot_id,
  :iops,
  :volume_size,
  :volume_type,
  :delete_on_termination)
  include Aws::Structure
end

#snapshot_idString

The snapshot ID.

Returns:

  • (String)


3604
3605
3606
3607
3608
3609
3610
3611
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 3604

class EbsBlockDevice < Struct.new(
  :snapshot_id,
  :iops,
  :volume_size,
  :volume_type,
  :delete_on_termination)
  include Aws::Structure
end

#volume_sizeInteger

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

Returns:

  • (Integer)


3604
3605
3606
3607
3608
3609
3610
3611
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 3604

class EbsBlockDevice < Struct.new(
  :snapshot_id,
  :iops,
  :volume_size,
  :volume_type,
  :delete_on_termination)
  include Aws::Structure
end

#volume_typeString

The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned IOPS (SSD) volumes, and standard for Magnetic volumes.

Returns:

  • (String)


3604
3605
3606
3607
3608
3609
3610
3611
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 3604

class EbsBlockDevice < Struct.new(
  :snapshot_id,
  :iops,
  :volume_size,
  :volume_type,
  :delete_on_termination)
  include Aws::Structure
end