amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.DescribeVolumeAttribute

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 Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data DescribeVolumeAttribute Source #

See: newDescribeVolumeAttribute smart constructor.

Constructors

DescribeVolumeAttribute' 

Fields

  • dryRun :: Maybe Bool

    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.

  • attribute :: VolumeAttributeName

    The attribute of the volume. This parameter is required.

  • volumeId :: Text

    The ID of the volume.

Instances

Instances details
ToHeaders DescribeVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

ToPath DescribeVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

ToQuery DescribeVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

AWSRequest DescribeVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

Generic DescribeVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

Associated Types

type Rep DescribeVolumeAttribute :: Type -> Type #

Read DescribeVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

Show DescribeVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

NFData DescribeVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

Methods

rnf :: DescribeVolumeAttribute -> () #

Eq DescribeVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

Hashable DescribeVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

type AWSResponse DescribeVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

type Rep DescribeVolumeAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

type Rep DescribeVolumeAttribute = D1 ('MetaData "DescribeVolumeAttribute" "Amazonka.EC2.DescribeVolumeAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeVolumeAttribute'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "attribute") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VolumeAttributeName) :*: S1 ('MetaSel ('Just "volumeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDescribeVolumeAttribute Source #

Create a value of DescribeVolumeAttribute 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:dryRun:DescribeVolumeAttribute', describeVolumeAttribute_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.

$sel:attribute:DescribeVolumeAttribute', describeVolumeAttribute_attribute - The attribute of the volume. This parameter is required.

DescribeVolumeAttribute, describeVolumeAttribute_volumeId - The ID of the volume.

Request Lenses

describeVolumeAttribute_dryRun :: Lens' DescribeVolumeAttribute (Maybe Bool) Source #

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.

describeVolumeAttribute_attribute :: Lens' DescribeVolumeAttribute VolumeAttributeName Source #

The attribute of the volume. This parameter is required.

Destructuring the Response

data DescribeVolumeAttributeResponse Source #

See: newDescribeVolumeAttributeResponse smart constructor.

Constructors

DescribeVolumeAttributeResponse' 

Fields

Instances

Instances details
Generic DescribeVolumeAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

Associated Types

type Rep DescribeVolumeAttributeResponse :: Type -> Type #

Read DescribeVolumeAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

Show DescribeVolumeAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

NFData DescribeVolumeAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

Eq DescribeVolumeAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

type Rep DescribeVolumeAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeVolumeAttribute

type Rep DescribeVolumeAttributeResponse = D1 ('MetaData "DescribeVolumeAttributeResponse" "Amazonka.EC2.DescribeVolumeAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeVolumeAttributeResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "autoEnableIO") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)) :*: S1 ('MetaSel ('Just "productCodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProductCode]))) :*: (S1 ('MetaSel ('Just "volumeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeVolumeAttributeResponse Source #

Create a value of DescribeVolumeAttributeResponse 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:autoEnableIO:DescribeVolumeAttributeResponse', describeVolumeAttributeResponse_autoEnableIO - The state of autoEnableIO attribute.

DescribeVolumeAttributeResponse, describeVolumeAttributeResponse_productCodes - A list of product codes.

DescribeVolumeAttribute, describeVolumeAttributeResponse_volumeId - The ID of the volume.

$sel:httpStatus:DescribeVolumeAttributeResponse', describeVolumeAttributeResponse_httpStatus - The response's http status code.

Response Lenses