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

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

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Read RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Show RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Generic RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Associated Types

type Rep RevokeSnapshotAccess :: Type -> Type #

NFData RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Methods

rnf :: RevokeSnapshotAccess -> () #

Hashable RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

AWSRequest RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Associated Types

type AWSResponse RevokeSnapshotAccess #

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

type Rep RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

type Rep RevokeSnapshotAccess = D1 ('MetaData "RevokeSnapshotAccess" "Amazonka.Redshift.RevokeSnapshotAccess" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "RevokeSnapshotAccess'" '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 RevokeSnapshotAccess Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

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

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

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Read RevokeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Show RevokeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Generic RevokeSnapshotAccessResponse Source # 
Instance details

Defined in Amazonka.Redshift.RevokeSnapshotAccess

Associated Types

type Rep RevokeSnapshotAccessResponse :: Type -> Type #

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