amazonka-redshift-1.4.4: 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 Source #

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:

data AuthorizeSnapshotAccess Source #

See: authorizeSnapshotAccess smart constructor.

Instances

Eq AuthorizeSnapshotAccess Source # 
Data AuthorizeSnapshotAccess Source # 

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 Source # 
Show AuthorizeSnapshotAccess Source # 
Generic AuthorizeSnapshotAccess Source # 
Hashable AuthorizeSnapshotAccess Source # 
NFData AuthorizeSnapshotAccess Source # 

Methods

rnf :: AuthorizeSnapshotAccess -> () #

AWSRequest AuthorizeSnapshotAccess Source # 
ToPath AuthorizeSnapshotAccess Source # 
ToHeaders AuthorizeSnapshotAccess Source # 
ToQuery AuthorizeSnapshotAccess Source # 
type Rep AuthorizeSnapshotAccess Source # 
type Rep AuthorizeSnapshotAccess = D1 (MetaData "AuthorizeSnapshotAccess" "Network.AWS.Redshift.AuthorizeSnapshotAccess" "amazonka-redshift-1.4.4-K7Zv0fZMBDVCZxQG2hoQg4" 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 Source # 

Request Lenses

asaSnapshotClusterIdentifier :: Lens' AuthorizeSnapshotAccess (Maybe Text) Source #

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

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

asaAccountWithRestoreAccess :: Lens' AuthorizeSnapshotAccess Text Source #

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

Destructuring the Response

authorizeSnapshotAccessResponse Source #

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

See: authorizeSnapshotAccessResponse smart constructor.

Instances

Eq AuthorizeSnapshotAccessResponse Source # 
Data AuthorizeSnapshotAccessResponse Source # 

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 Source # 
Show AuthorizeSnapshotAccessResponse Source # 
Generic AuthorizeSnapshotAccessResponse Source # 
NFData AuthorizeSnapshotAccessResponse Source # 
type Rep AuthorizeSnapshotAccessResponse Source # 
type Rep AuthorizeSnapshotAccessResponse = D1 (MetaData "AuthorizeSnapshotAccessResponse" "Network.AWS.Redshift.AuthorizeSnapshotAccess" "amazonka-redshift-1.4.4-K7Zv0fZMBDVCZxQG2hoQg4" 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