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

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 # 
ToHeaders ResetSnapshotAttribute # 
ToPath ResetSnapshotAttribute # 
ToQuery ResetSnapshotAttribute # 
type Rep ResetSnapshotAttribute # 
type Rep ResetSnapshotAttribute = D1 * (MetaData "ResetSnapshotAttribute" "Network.AWS.EC2.ResetSnapshotAttribute" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "ResetSnapshotAttribute'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rsaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_rsaAttribute") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * SnapshotAttributeName)) (S1 * (MetaSel (Just Symbol "_rsaSnapshotId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
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 .

rsaAttribute :: Lens' ResetSnapshotAttribute SnapshotAttributeName #

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

rsaSnapshotId :: Lens' ResetSnapshotAttribute Text #

The ID of the snapshot.

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.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "ResetSnapshotAttributeResponse'" PrefixI False) (U1 *))