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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 #

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

data DescribeSnapshotAttribute #

Contains the parameters for DescribeSnapshotAttribute.

See: describeSnapshotAttribute smart constructor.

Instances

Eq DescribeSnapshotAttribute # 
Data DescribeSnapshotAttribute # 

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 # 
Show DescribeSnapshotAttribute # 
Generic DescribeSnapshotAttribute # 
Hashable DescribeSnapshotAttribute # 
NFData DescribeSnapshotAttribute # 
AWSRequest DescribeSnapshotAttribute # 
ToQuery DescribeSnapshotAttribute # 
ToPath DescribeSnapshotAttribute # 
ToHeaders DescribeSnapshotAttribute # 
type Rep DescribeSnapshotAttribute # 
type Rep DescribeSnapshotAttribute = D1 (MetaData "DescribeSnapshotAttribute" "Network.AWS.EC2.DescribeSnapshotAttribute" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DescribeSnapshotAttribute'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dsaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_dsaSnapshotId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dsaAttribute") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SnapshotAttributeName)))))
type Rs DescribeSnapshotAttribute # 

Request Lenses

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

dsaSnapshotId :: Lens' DescribeSnapshotAttribute Text #

The ID of the EBS snapshot.

dsaAttribute :: Lens' DescribeSnapshotAttribute SnapshotAttributeName #

The snapshot attribute you would like to view.

Destructuring the Response

describeSnapshotAttributeResponse #

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 #

Contains the output of DescribeSnapshotAttribute.

See: describeSnapshotAttributeResponse smart constructor.

Instances

Eq DescribeSnapshotAttributeResponse # 
Data DescribeSnapshotAttributeResponse # 

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 # 
Show DescribeSnapshotAttributeResponse # 
Generic DescribeSnapshotAttributeResponse # 
NFData DescribeSnapshotAttributeResponse # 
type Rep DescribeSnapshotAttributeResponse # 
type Rep DescribeSnapshotAttributeResponse = D1 (MetaData "DescribeSnapshotAttributeResponse" "Network.AWS.EC2.DescribeSnapshotAttribute" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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 DecidedUnpack) (Rec0 Int)))))

Response Lenses

dsarsCreateVolumePermissions :: Lens' DescribeSnapshotAttributeResponse [CreateVolumePermission] #

A list of permissions for creating volumes from the snapshot.