libZSservicesZSamazonka-redshiftZSamazonka-redshift
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • 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 :: 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
Eq AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Read AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

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

NFData AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Methods

rnf :: AuthorizeSnapshotAccess -> () #

Hashable AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

AWSRequest AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

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

type Rep AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

type Rep AuthorizeSnapshotAccess = D1 ('MetaData "AuthorizeSnapshotAccess" "Amazonka.Redshift.AuthorizeSnapshotAccess" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "AuthorizeSnapshotAccess'" 'PrefixI 'True) (S1 ('MetaSel ('Just "snapshotClusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "snapshotIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "accountWithRestoreAccess") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse AuthorizeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

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

$sel:snapshotIdentifier: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_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 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
Eq AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Read AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Show AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Generic AuthorizeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeSnapshotAccess

Associated Types

type Rep AuthorizeSnapshotAccessResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" '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