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

Description

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

For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data DescribeSnapshotAttribute Source #

See: newDescribeSnapshotAttribute smart constructor.

Constructors

DescribeSnapshotAttribute' 

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 :: SnapshotAttributeName

    The snapshot attribute you would like to view.

  • snapshotId :: Text

    The ID of the EBS snapshot.

Instances

Instances details
ToHeaders DescribeSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

ToPath DescribeSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

ToQuery DescribeSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

AWSRequest DescribeSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

Generic DescribeSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

Associated Types

type Rep DescribeSnapshotAttribute :: Type -> Type #

Read DescribeSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

Show DescribeSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

NFData DescribeSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

Eq DescribeSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

Hashable DescribeSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

type AWSResponse DescribeSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

type Rep DescribeSnapshotAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

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

newDescribeSnapshotAttribute Source #

Create a value of DescribeSnapshotAttribute 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:DescribeSnapshotAttribute', describeSnapshotAttribute_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:DescribeSnapshotAttribute', describeSnapshotAttribute_attribute - The snapshot attribute you would like to view.

DescribeSnapshotAttribute, describeSnapshotAttribute_snapshotId - The ID of the EBS snapshot.

Request Lenses

describeSnapshotAttribute_dryRun :: Lens' DescribeSnapshotAttribute (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.

Destructuring the Response

data DescribeSnapshotAttributeResponse Source #

See: newDescribeSnapshotAttributeResponse smart constructor.

Constructors

DescribeSnapshotAttributeResponse' 

Fields

Instances

Instances details
Generic DescribeSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

Associated Types

type Rep DescribeSnapshotAttributeResponse :: Type -> Type #

Read DescribeSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

Show DescribeSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

NFData DescribeSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

Eq DescribeSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

type Rep DescribeSnapshotAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeSnapshotAttribute

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

newDescribeSnapshotAttributeResponse Source #

Create a value of DescribeSnapshotAttributeResponse 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:createVolumePermissions:DescribeSnapshotAttributeResponse', describeSnapshotAttributeResponse_createVolumePermissions - The users and groups that have the permissions for creating volumes from the snapshot.

DescribeSnapshotAttributeResponse, describeSnapshotAttributeResponse_productCodes - The product codes.

DescribeSnapshotAttribute, describeSnapshotAttributeResponse_snapshotId - The ID of the EBS snapshot.

$sel:httpStatus:DescribeSnapshotAttributeResponse', describeSnapshotAttributeResponse_httpStatus - The response's http status code.

Response Lenses

describeSnapshotAttributeResponse_createVolumePermissions :: Lens' DescribeSnapshotAttributeResponse (Maybe [CreateVolumePermission]) Source #

The users and groups that have the permissions for creating volumes from the snapshot.