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.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 Source #

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 Source #

Contains the parameters for ResetSnapshotAttribute.

See: resetSnapshotAttribute smart constructor.

Instances
Eq ResetSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Data ResetSnapshotAttribute Source # 
Instance details

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

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Show ResetSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Generic ResetSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Associated Types

type Rep ResetSnapshotAttribute :: Type -> Type #

Hashable ResetSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

AWSRequest ResetSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Associated Types

type Rs ResetSnapshotAttribute :: Type #

ToHeaders ResetSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

ToPath ResetSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

ToQuery ResetSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

NFData ResetSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Methods

rnf :: ResetSnapshotAttribute -> () #

type Rep ResetSnapshotAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

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

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Request Lenses

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

rsaAttribute :: Lens' ResetSnapshotAttribute SnapshotAttributeName Source #

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

Destructuring the Response

resetSnapshotAttributeResponse :: ResetSnapshotAttributeResponse Source #

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

data ResetSnapshotAttributeResponse Source #

See: resetSnapshotAttributeResponse smart constructor.

Instances
Eq ResetSnapshotAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Data ResetSnapshotAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

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

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Show ResetSnapshotAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Generic ResetSnapshotAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Associated Types

type Rep ResetSnapshotAttributeResponse :: Type -> Type #

NFData ResetSnapshotAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

type Rep ResetSnapshotAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

type Rep ResetSnapshotAttributeResponse = D1 (MetaData "ResetSnapshotAttributeResponse" "Network.AWS.EC2.ResetSnapshotAttribute" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ResetSnapshotAttributeResponse'" PrefixI False) (U1 :: Type -> Type))