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

Contents

Description

Authorizes the specified AWS customer account to restore the specified snapshot.

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

Synopsis

Creating a Request

authorizeSnapshotAccess #

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

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

  • asaSnapshotClusterIdentifier - 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.
  • asaSnapshotIdentifier - The identifier of the snapshot the account is authorized to restore.
  • asaAccountWithRestoreAccess - The identifier of the AWS customer account authorized to restore the specified snapshot.

data AuthorizeSnapshotAccess #

See: authorizeSnapshotAccess smart constructor.

Instances

Eq AuthorizeSnapshotAccess # 
Data AuthorizeSnapshotAccess # 

Methods

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

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

toConstr :: AuthorizeSnapshotAccess -> Constr #

dataTypeOf :: AuthorizeSnapshotAccess -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AuthorizeSnapshotAccess # 
Show AuthorizeSnapshotAccess # 
Generic AuthorizeSnapshotAccess # 
Hashable AuthorizeSnapshotAccess # 
NFData AuthorizeSnapshotAccess # 

Methods

rnf :: AuthorizeSnapshotAccess -> () #

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

Request Lenses

asaSnapshotClusterIdentifier :: Lens' AuthorizeSnapshotAccess (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.

asaSnapshotIdentifier :: Lens' AuthorizeSnapshotAccess Text #

The identifier of the snapshot the account is authorized to restore.

asaAccountWithRestoreAccess :: Lens' AuthorizeSnapshotAccess Text #

The identifier of the AWS customer account authorized to restore the specified snapshot.

Destructuring the Response

authorizeSnapshotAccessResponse #

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

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

data AuthorizeSnapshotAccessResponse #

See: authorizeSnapshotAccessResponse smart constructor.

Instances

Eq AuthorizeSnapshotAccessResponse # 
Data AuthorizeSnapshotAccessResponse # 

Methods

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

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

toConstr :: AuthorizeSnapshotAccessResponse -> Constr #

dataTypeOf :: AuthorizeSnapshotAccessResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Response Lenses