amazonka-ec2-1.6.1: 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 # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Data DescribeSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Show DescribeSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Generic DescribeSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Associated Types

type Rep DescribeSnapshotAttribute :: Type -> Type #

Hashable DescribeSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

AWSRequest DescribeSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Associated Types

type Rs DescribeSnapshotAttribute :: Type #

ToHeaders DescribeSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

ToPath DescribeSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

ToQuery DescribeSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

NFData DescribeSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

type Rep DescribeSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

type Rep DescribeSnapshotAttribute = D1 (MetaData "DescribeSnapshotAttribute" "Network.AWS.EC2.DescribeSnapshotAttribute" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeSnapshotAttribute'" PrefixI True) (S1 (MetaSel (Just "_dsaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_dsaAttribute") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SnapshotAttributeName) :*: S1 (MetaSel (Just "_dsaSnapshotId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DescribeSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

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 # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Data DescribeSnapshotAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

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 # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Show DescribeSnapshotAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Generic DescribeSnapshotAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Associated Types

type Rep DescribeSnapshotAttributeResponse :: Type -> Type #

NFData DescribeSnapshotAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

type Rep DescribeSnapshotAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

type Rep DescribeSnapshotAttributeResponse = D1 (MetaData "DescribeSnapshotAttributeResponse" "Network.AWS.EC2.DescribeSnapshotAttribute" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeSnapshotAttributeResponse'" PrefixI True) ((S1 (MetaSel (Just "_dsarsCreateVolumePermissions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [CreateVolumePermission])) :*: S1 (MetaSel (Just "_dsarsProductCodes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ProductCode]))) :*: (S1 (MetaSel (Just "_dsarsSnapshotId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dsarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dsarsCreateVolumePermissions :: Lens' DescribeSnapshotAttributeResponse [CreateVolumePermission] Source #

A list of permissions for creating volumes from the snapshot.