amazonka-ec2-1.6.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DescribeSnapshotAttribute

Contents

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

describeSnapshotAttribute Source #

Creates a value of DescribeSnapshotAttribute with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dsaDryRun - 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 .
  • dsaAttribute - The snapshot attribute you would like to view.
  • dsaSnapshotId - The ID of the EBS snapshot.

data DescribeSnapshotAttribute Source #

Contains the parameters for DescribeSnapshotAttribute.

See: describeSnapshotAttribute smart constructor.

Instances

Eq DescribeSnapshotAttribute Source # 
Data DescribeSnapshotAttribute Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeSnapshotAttribute -> c DescribeSnapshotAttribute #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeSnapshotAttribute #

toConstr :: DescribeSnapshotAttribute -> Constr #

dataTypeOf :: DescribeSnapshotAttribute -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeSnapshotAttribute) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeSnapshotAttribute) #

gmapT :: (forall b. Data b => b -> b) -> DescribeSnapshotAttribute -> DescribeSnapshotAttribute #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSnapshotAttribute -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSnapshotAttribute -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeSnapshotAttribute -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeSnapshotAttribute -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeSnapshotAttribute -> m DescribeSnapshotAttribute #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSnapshotAttribute -> m DescribeSnapshotAttribute #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSnapshotAttribute -> m DescribeSnapshotAttribute #

Read DescribeSnapshotAttribute Source # 
Show DescribeSnapshotAttribute Source # 
Generic DescribeSnapshotAttribute Source # 
Hashable DescribeSnapshotAttribute Source # 
NFData DescribeSnapshotAttribute Source # 
AWSRequest DescribeSnapshotAttribute Source # 
ToHeaders DescribeSnapshotAttribute Source # 
ToPath DescribeSnapshotAttribute Source # 
ToQuery DescribeSnapshotAttribute Source # 
type Rep DescribeSnapshotAttribute Source # 
type Rep DescribeSnapshotAttribute = D1 * (MetaData "DescribeSnapshotAttribute" "Network.AWS.EC2.DescribeSnapshotAttribute" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "DescribeSnapshotAttribute'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dsaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dsaAttribute") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * SnapshotAttributeName)) (S1 * (MetaSel (Just Symbol "_dsaSnapshotId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs DescribeSnapshotAttribute Source # 

Request Lenses

dsaDryRun :: 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 .

dsaAttribute :: Lens' DescribeSnapshotAttribute SnapshotAttributeName Source #

The snapshot attribute you would like to view.

Destructuring the Response

describeSnapshotAttributeResponse Source #

Creates a value of DescribeSnapshotAttributeResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DescribeSnapshotAttributeResponse Source #

Contains the output of DescribeSnapshotAttribute.

See: describeSnapshotAttributeResponse smart constructor.

Instances

Eq DescribeSnapshotAttributeResponse Source # 
Data DescribeSnapshotAttributeResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeSnapshotAttributeResponse -> c DescribeSnapshotAttributeResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeSnapshotAttributeResponse #

toConstr :: DescribeSnapshotAttributeResponse -> Constr #

dataTypeOf :: DescribeSnapshotAttributeResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeSnapshotAttributeResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeSnapshotAttributeResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeSnapshotAttributeResponse -> DescribeSnapshotAttributeResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSnapshotAttributeResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSnapshotAttributeResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeSnapshotAttributeResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeSnapshotAttributeResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeSnapshotAttributeResponse -> m DescribeSnapshotAttributeResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSnapshotAttributeResponse -> m DescribeSnapshotAttributeResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSnapshotAttributeResponse -> m DescribeSnapshotAttributeResponse #

Read DescribeSnapshotAttributeResponse Source # 
Show DescribeSnapshotAttributeResponse Source # 
Generic DescribeSnapshotAttributeResponse Source # 
NFData DescribeSnapshotAttributeResponse Source # 
type Rep DescribeSnapshotAttributeResponse Source # 
type Rep DescribeSnapshotAttributeResponse = D1 * (MetaData "DescribeSnapshotAttributeResponse" "Network.AWS.EC2.DescribeSnapshotAttribute" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "DescribeSnapshotAttributeResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_dsarsCreateVolumePermissions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [CreateVolumePermission]))) (S1 * (MetaSel (Just Symbol "_dsarsProductCodes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [ProductCode])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dsarsSnapshotId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dsarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

dsarsCreateVolumePermissions :: Lens' DescribeSnapshotAttributeResponse [CreateVolumePermission] Source #

A list of permissions for creating volumes from the snapshot.