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

Description

Removes the ability of the specified Amazon Web Services account to restore the specified snapshot. If the account is currently restoring the snapshot, the restore will run to completion.

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

Synopsis

Creating a Request

data RevokeSnapshotAccess Source #

See: newRevokeSnapshotAccess smart constructor.

Constructors

RevokeSnapshotAccess' 

Fields

  • snapshotArn :: Maybe Text

    The Amazon Resource Name (ARN) of the snapshot associated with the message to revoke access.

  • 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 that the account can no longer access.

  • accountWithRestoreAccess :: Text

    The identifier of the Amazon Web Services account that can no longer restore the specified snapshot.

Instances

Instances details
ToHeaders RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

ToPath RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

ToQuery RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

AWSRequest RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Associated Types

type AWSResponse RevokeSnapshotAccess #

Generic RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Associated Types

type Rep RevokeSnapshotAccess :: Type -> Type #

Read RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Show RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

NFData RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Methods

rnf :: RevokeSnapshotAccess -> () #

Eq RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Hashable RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

type AWSResponse RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

type Rep RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

type Rep RevokeSnapshotAccess = D1 ('MetaData "RevokeSnapshotAccess" "Amazonka.Redshift.RevokeSnapshotAccess" "amazonka-redshift-2.0-4tocKxBWIuj2GdXa6djdUl" 'False) (C1 ('MetaCons "RevokeSnapshotAccess'" '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))))

newRevokeSnapshotAccess Source #

Create a value of RevokeSnapshotAccess 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:RevokeSnapshotAccess', revokeSnapshotAccess_snapshotArn - The Amazon Resource Name (ARN) of the snapshot associated with the message to revoke access.

RevokeSnapshotAccess, revokeSnapshotAccess_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.

RevokeSnapshotAccess, revokeSnapshotAccess_snapshotIdentifier - The identifier of the snapshot that the account can no longer access.

$sel:accountWithRestoreAccess:RevokeSnapshotAccess', revokeSnapshotAccess_accountWithRestoreAccess - The identifier of the Amazon Web Services account that can no longer restore the specified snapshot.

Request Lenses

revokeSnapshotAccess_snapshotArn :: Lens' RevokeSnapshotAccess (Maybe Text) Source #

The Amazon Resource Name (ARN) of the snapshot associated with the message to revoke access.

revokeSnapshotAccess_snapshotClusterIdentifier :: Lens' RevokeSnapshotAccess (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.

revokeSnapshotAccess_snapshotIdentifier :: Lens' RevokeSnapshotAccess (Maybe Text) Source #

The identifier of the snapshot that the account can no longer access.

revokeSnapshotAccess_accountWithRestoreAccess :: Lens' RevokeSnapshotAccess Text Source #

The identifier of the Amazon Web Services account that can no longer restore the specified snapshot.

Destructuring the Response

data RevokeSnapshotAccessResponse Source #

See: newRevokeSnapshotAccessResponse smart constructor.

Constructors

RevokeSnapshotAccessResponse' 

Fields

Instances

Instances details
Generic RevokeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Associated Types

type Rep RevokeSnapshotAccessResponse :: Type -> Type #

Read RevokeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Show RevokeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

NFData RevokeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Eq RevokeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

type Rep RevokeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

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

newRevokeSnapshotAccessResponse Source #

Create a value of RevokeSnapshotAccessResponse 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:RevokeSnapshotAccessResponse', revokeSnapshotAccessResponse_snapshot - Undocumented member.

$sel:httpStatus:RevokeSnapshotAccessResponse', revokeSnapshotAccessResponse_httpStatus - The response's http status code.

Response Lenses