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 #

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

Defined in Network.AWS.EC2.ResetSnapshotAttribute

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

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Show ResetSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Generic ResetSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Associated Types

type Rep ResetSnapshotAttribute :: Type -> Type #

Hashable ResetSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

AWSRequest ResetSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Associated Types

type Rs ResetSnapshotAttribute :: Type #

ToHeaders ResetSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

ToPath ResetSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

ToQuery ResetSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

NFData ResetSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Methods

rnf :: ResetSnapshotAttribute -> () #

type Rep ResetSnapshotAttribute # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

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

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

Defined in Network.AWS.EC2.ResetSnapshotAttribute

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

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Show ResetSnapshotAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Generic ResetSnapshotAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

Associated Types

type Rep ResetSnapshotAttributeResponse :: Type -> Type #

NFData ResetSnapshotAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

type Rep ResetSnapshotAttributeResponse # 
Instance details

Defined in Network.AWS.EC2.ResetSnapshotAttribute

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