amazonka-redshift-2.0: Amazon Redshift SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Redshift.AuthorizeSnapshotAccess

Description

Authorizes the specified Amazon Web Services 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

data AuthorizeSnapshotAccess Source #

See: newAuthorizeSnapshotAccess smart constructor.

Constructors

AuthorizeSnapshotAccess' 

Fields

  • snapshotArn :: Maybe Text

    The Amazon Resource Name (ARN) of the snapshot to authorize access to.

  • snapshotClusterIdentifier :: 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.

  • snapshotIdentifier :: Maybe Text

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

  • accountWithRestoreAccess :: Text

    The identifier of the Amazon Web Services account authorized to restore the specified snapshot.

    To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.

Instances

Instances details
ToHeaders AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

ToPath AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

ToQuery AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

AWSRequest AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Generic AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Associated Types

type Rep AuthorizeSnapshotAccess :: Type -> Type #

Read AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Show AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

NFData AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Methods

rnf :: AuthorizeSnapshotAccess -> () #

Eq AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Hashable AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

type AWSResponse AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

type Rep AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

type Rep AuthorizeSnapshotAccess = D1 ('MetaData "AuthorizeSnapshotAccess" "Amazonka.Redshift.AuthorizeSnapshotAccess" "amazonka-redshift-2.0-4tocKxBWIuj2GdXa6djdUl" 'False) (C1 ('MetaCons "AuthorizeSnapshotAccess'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "snapshotArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "snapshotClusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "snapshotIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "accountWithRestoreAccess") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newAuthorizeSnapshotAccess Source #

Create a value of AuthorizeSnapshotAccess with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:snapshotArn:AuthorizeSnapshotAccess', authorizeSnapshotAccess_snapshotArn - The Amazon Resource Name (ARN) of the snapshot to authorize access to.

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

AuthorizeSnapshotAccess, authorizeSnapshotAccess_snapshotIdentifier - The identifier of the snapshot the account is authorized to restore.

$sel:accountWithRestoreAccess:AuthorizeSnapshotAccess', authorizeSnapshotAccess_accountWithRestoreAccess - The identifier of the Amazon Web Services account authorized to restore the specified snapshot.

To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.

Request Lenses

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

The Amazon Resource Name (ARN) of the snapshot to authorize access to.

authorizeSnapshotAccess_snapshotClusterIdentifier :: 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.

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

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

authorizeSnapshotAccess_accountWithRestoreAccess :: Lens' AuthorizeSnapshotAccess Text Source #

The identifier of the Amazon Web Services account authorized to restore the specified snapshot.

To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.

Destructuring the Response

data AuthorizeSnapshotAccessResponse Source #

See: newAuthorizeSnapshotAccessResponse smart constructor.

Constructors

AuthorizeSnapshotAccessResponse' 

Fields

Instances

Instances details
Generic AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Associated Types

type Rep AuthorizeSnapshotAccessResponse :: Type -> Type #

Read AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Show AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

NFData AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Eq AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

type Rep AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

type Rep AuthorizeSnapshotAccessResponse = D1 ('MetaData "AuthorizeSnapshotAccessResponse" "Amazonka.Redshift.AuthorizeSnapshotAccess" "amazonka-redshift-2.0-4tocKxBWIuj2GdXa6djdUl" 'False) (C1 ('MetaCons "AuthorizeSnapshotAccessResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapshot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Snapshot)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAuthorizeSnapshotAccessResponse Source #

Create a value of AuthorizeSnapshotAccessResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:snapshot:AuthorizeSnapshotAccessResponse', authorizeSnapshotAccessResponse_snapshot - Undocumented member.

$sel:httpStatus:AuthorizeSnapshotAccessResponse', authorizeSnapshotAccessResponse_httpStatus - The response's http status code.

Response Lenses