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

  • 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. To share a snapshot with AWS support, specify amazon-redshift-support.

data AuthorizeSnapshotAccess Source #

See: authorizeSnapshotAccess smart constructor.

Instances
Eq AuthorizeSnapshotAccess Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

Data AuthorizeSnapshotAccess Source # 
Instance details

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

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

Show AuthorizeSnapshotAccess Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

Generic AuthorizeSnapshotAccess Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

Associated Types

type Rep AuthorizeSnapshotAccess :: Type -> Type #

Hashable AuthorizeSnapshotAccess Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

AWSRequest AuthorizeSnapshotAccess Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

Associated Types

type Rs AuthorizeSnapshotAccess :: Type #

ToHeaders AuthorizeSnapshotAccess Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

ToPath AuthorizeSnapshotAccess Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

ToQuery AuthorizeSnapshotAccess Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

NFData AuthorizeSnapshotAccess Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

Methods

rnf :: AuthorizeSnapshotAccess -> () #

type Rep AuthorizeSnapshotAccess Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

type Rep AuthorizeSnapshotAccess = D1 (MetaData "AuthorizeSnapshotAccess" "Network.AWS.Redshift.AuthorizeSnapshotAccess" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "AuthorizeSnapshotAccess'" PrefixI True) (S1 (MetaSel (Just "_asaSnapshotClusterIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_asaSnapshotIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_asaAccountWithRestoreAccess") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs AuthorizeSnapshotAccess Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

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. To share a snapshot with AWS support, specify amazon-redshift-support.

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

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

Data AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

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

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

Show AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

Generic AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

Associated Types

type Rep AuthorizeSnapshotAccessResponse :: Type -> Type #

NFData AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

type Rep AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Network.AWS.Redshift.AuthorizeSnapshotAccess

type Rep AuthorizeSnapshotAccessResponse = D1 (MetaData "AuthorizeSnapshotAccessResponse" "Network.AWS.Redshift.AuthorizeSnapshotAccess" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "AuthorizeSnapshotAccessResponse'" PrefixI True) (S1 (MetaSel (Just "_asarsSnapshot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Snapshot)) :*: S1 (MetaSel (Just "_asarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses