Skip to content

Describes the specified attribute of the specified volume

Description

Describes the specified attribute of the specified volume. You can specify only one attribute at a time.

For more information about EBS volumes, see Amazon EBS volumes in the Amazon EBS User Guide.

Usage

ec2_describe_volume_attribute(Attribute, VolumeId, DryRun)

Arguments

  • Attribute

    [required] The attribute of the volume. This parameter is required.

  • VolumeId

    [required] The ID of the volume.

  • DryRun

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Value

A list with the following syntax:

list(
  AutoEnableIO = list(
    Value = TRUE|FALSE
  ),
  ProductCodes = list(
    list(
      ProductCodeId = "string",
      ProductCodeType = "devpay"|"marketplace"
    )
  ),
  VolumeId = "string"
)

Request syntax

svc$describe_volume_attribute(
  Attribute = "autoEnableIO"|"productCodes",
  VolumeId = "string",
  DryRun = TRUE|FALSE
)

Examples

# This example describes the `autoEnableIo` attribute of the volume with
# the ID `vol-049df61146c4d7901`.
svc$describe_volume_attribute(
  Attribute = "autoEnableIO",
  VolumeId = "vol-049df61146c4d7901"
)