amazonka-redshift-1.4.5: Amazon Redshift 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.Redshift.RevokeSnapshotAccess

Contents

Description

Removes the ability of the specified AWS customer account to restore the specified snapshot. If the account is currently restoring the snapshot, the restore will run to completion.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide .

Synopsis

Creating a Request

revokeSnapshotAccess #

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

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

  • rsaSnapshotClusterIdentifier - The identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.
  • rsaSnapshotIdentifier - The identifier of the snapshot that the account can no longer access.
  • rsaAccountWithRestoreAccess - The identifier of the AWS customer account that can no longer restore the specified snapshot.

data RevokeSnapshotAccess #

See: revokeSnapshotAccess smart constructor.

Instances

Eq RevokeSnapshotAccess # 
Data RevokeSnapshotAccess # 

Methods

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

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

toConstr :: RevokeSnapshotAccess -> Constr #

dataTypeOf :: RevokeSnapshotAccess -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RevokeSnapshotAccess # 
Show RevokeSnapshotAccess # 
Generic RevokeSnapshotAccess # 
Hashable RevokeSnapshotAccess # 
NFData RevokeSnapshotAccess # 

Methods

rnf :: RevokeSnapshotAccess -> () #

AWSRequest RevokeSnapshotAccess # 
ToQuery RevokeSnapshotAccess # 
ToPath RevokeSnapshotAccess # 
ToHeaders RevokeSnapshotAccess # 
type Rep RevokeSnapshotAccess # 
type Rep RevokeSnapshotAccess = D1 (MetaData "RevokeSnapshotAccess" "Network.AWS.Redshift.RevokeSnapshotAccess" "amazonka-redshift-1.4.5-5ygenDSSyjc71mxYPXWxi1" False) (C1 (MetaCons "RevokeSnapshotAccess'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rsaSnapshotClusterIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_rsaSnapshotIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_rsaAccountWithRestoreAccess") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs RevokeSnapshotAccess # 

Request Lenses

rsaSnapshotClusterIdentifier :: Lens' RevokeSnapshotAccess (Maybe Text) #

The identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.

rsaSnapshotIdentifier :: Lens' RevokeSnapshotAccess Text #

The identifier of the snapshot that the account can no longer access.

rsaAccountWithRestoreAccess :: Lens' RevokeSnapshotAccess Text #

The identifier of the AWS customer account that can no longer restore the specified snapshot.

Destructuring the Response

revokeSnapshotAccessResponse #

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

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

data RevokeSnapshotAccessResponse #

See: revokeSnapshotAccessResponse smart constructor.

Instances

Eq RevokeSnapshotAccessResponse # 
Data RevokeSnapshotAccessResponse # 

Methods

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

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

toConstr :: RevokeSnapshotAccessResponse -> Constr #

dataTypeOf :: RevokeSnapshotAccessResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RevokeSnapshotAccessResponse # 
Show RevokeSnapshotAccessResponse # 
Generic RevokeSnapshotAccessResponse # 
NFData RevokeSnapshotAccessResponse # 
type Rep RevokeSnapshotAccessResponse # 
type Rep RevokeSnapshotAccessResponse = D1 (MetaData "RevokeSnapshotAccessResponse" "Network.AWS.Redshift.RevokeSnapshotAccess" "amazonka-redshift-1.4.5-5ygenDSSyjc71mxYPXWxi1" False) (C1 (MetaCons "RevokeSnapshotAccessResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rsarsSnapshot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Snapshot))) (S1 (MetaSel (Just Symbol "_rsarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses