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

Contents

Description

Resets permission settings for the specified snapshot.

For more information on modifying snapshot permissions, see Sharing Snapshots in the Amazon Elastic Compute Cloud User Guide .

Synopsis

Creating a Request

resetSnapshotAttribute #

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

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

  • rsaDryRun - 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 .
  • rsaSnapshotId - The ID of the snapshot.
  • rsaAttribute - The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.

data ResetSnapshotAttribute #

Contains the parameters for ResetSnapshotAttribute.

See: resetSnapshotAttribute smart constructor.

Instances

Eq ResetSnapshotAttribute # 
Data ResetSnapshotAttribute # 

Methods

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

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

toConstr :: ResetSnapshotAttribute -> Constr #

dataTypeOf :: ResetSnapshotAttribute -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ResetSnapshotAttribute # 
Show ResetSnapshotAttribute # 
Generic ResetSnapshotAttribute # 
Hashable ResetSnapshotAttribute # 
NFData ResetSnapshotAttribute # 

Methods

rnf :: ResetSnapshotAttribute -> () #

AWSRequest ResetSnapshotAttribute # 
ToQuery ResetSnapshotAttribute # 
ToPath ResetSnapshotAttribute # 
ToHeaders ResetSnapshotAttribute # 
type Rep ResetSnapshotAttribute # 
type Rep ResetSnapshotAttribute = D1 (MetaData "ResetSnapshotAttribute" "Network.AWS.EC2.ResetSnapshotAttribute" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ResetSnapshotAttribute'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rsaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_rsaSnapshotId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_rsaAttribute") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SnapshotAttributeName)))))
type Rs ResetSnapshotAttribute # 

Request Lenses

rsaDryRun :: Lens' ResetSnapshotAttribute (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 .

rsaSnapshotId :: Lens' ResetSnapshotAttribute Text #

The ID of the snapshot.

rsaAttribute :: Lens' ResetSnapshotAttribute SnapshotAttributeName #

The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.

Destructuring the Response

resetSnapshotAttributeResponse :: ResetSnapshotAttributeResponse #

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

data ResetSnapshotAttributeResponse #

See: resetSnapshotAttributeResponse smart constructor.

Instances

Eq ResetSnapshotAttributeResponse # 
Data ResetSnapshotAttributeResponse # 

Methods

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

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

toConstr :: ResetSnapshotAttributeResponse -> Constr #

dataTypeOf :: ResetSnapshotAttributeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ResetSnapshotAttributeResponse # 
Show ResetSnapshotAttributeResponse # 
Generic ResetSnapshotAttributeResponse # 
NFData ResetSnapshotAttributeResponse # 
type Rep ResetSnapshotAttributeResponse # 
type Rep ResetSnapshotAttributeResponse = D1 (MetaData "ResetSnapshotAttributeResponse" "Network.AWS.EC2.ResetSnapshotAttribute" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ResetSnapshotAttributeResponse'" PrefixI False) U1)