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 #

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 #

Contains the parameters for DescribeSnapshotAttribute.

See: describeSnapshotAttribute smart constructor.

Instances
Eq DescribeSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

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

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Show DescribeSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Generic DescribeSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Associated Types

type Rep DescribeSnapshotAttribute :: * -> * #

Hashable DescribeSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

AWSRequest DescribeSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Associated Types

type Rs DescribeSnapshotAttribute :: * #

ToHeaders DescribeSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

ToPath DescribeSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

ToQuery DescribeSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

NFData DescribeSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

type Rep DescribeSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

type Rep DescribeSnapshotAttribute = D1 (MetaData "DescribeSnapshotAttribute" "Network.AWS.EC2.DescribeSnapshotAttribute" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" 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 # 
Instance details

Defined in Network.AWS.EC2.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 .

dsaAttribute :: Lens' DescribeSnapshotAttribute SnapshotAttributeName #

The snapshot attribute you would like to view.

dsaSnapshotId :: Lens' DescribeSnapshotAttribute Text #

The ID of the EBS snapshot.

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

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

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

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Show DescribeSnapshotAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Generic DescribeSnapshotAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

Associated Types

type Rep DescribeSnapshotAttributeResponse :: * -> * #

NFData DescribeSnapshotAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

type Rep DescribeSnapshotAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeSnapshotAttribute

type Rep DescribeSnapshotAttributeResponse = D1 (MetaData "DescribeSnapshotAttributeResponse" "Network.AWS.EC2.DescribeSnapshotAttribute" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" 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] #

A list of permissions for creating volumes from the snapshot.