Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data RevokeSnapshotAccess = RevokeSnapshotAccess' {}
- newRevokeSnapshotAccess :: Text -> Text -> RevokeSnapshotAccess
- revokeSnapshotAccess_snapshotClusterIdentifier :: Lens' RevokeSnapshotAccess (Maybe Text)
- revokeSnapshotAccess_snapshotIdentifier :: Lens' RevokeSnapshotAccess Text
- revokeSnapshotAccess_accountWithRestoreAccess :: Lens' RevokeSnapshotAccess Text
- data RevokeSnapshotAccessResponse = RevokeSnapshotAccessResponse' {
- snapshot :: Maybe Snapshot
- httpStatus :: Int
- newRevokeSnapshotAccessResponse :: Int -> RevokeSnapshotAccessResponse
- revokeSnapshotAccessResponse_snapshot :: Lens' RevokeSnapshotAccessResponse (Maybe Snapshot)
- revokeSnapshotAccessResponse_httpStatus :: Lens' RevokeSnapshotAccessResponse Int
Creating a Request
data RevokeSnapshotAccess Source #
See: newRevokeSnapshotAccess
smart constructor.
RevokeSnapshotAccess' | |
|
Instances
newRevokeSnapshotAccess Source #
:: Text | |
-> Text | |
-> RevokeSnapshotAccess |
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.
RevokeSnapshotAccessResponse' | |
|
Instances
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
revokeSnapshotAccessResponse_snapshot :: Lens' RevokeSnapshotAccessResponse (Maybe Snapshot) Source #
Undocumented member.
revokeSnapshotAccessResponse_httpStatus :: Lens' RevokeSnapshotAccessResponse Int Source #
The response's http status code.