revoke_snapshot_access
¶
revoke_snapshot_access(
*,
config_overrides: Optional[RedshiftClientConfig] = None,
snapshot_identifier: Optional[String] = None,
snapshot_arn: Optional[String] = None,
snapshot_cluster_identifier: Optional[String] = None,
account_with_restore_access: Optional[String] = None,
) -> RevokeSnapshotAccessResult
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.
Parameters:
-
snapshot_identifier(Optional[String], default:None) –The identifier of the snapshot that the account can no longer access.
-
snapshot_arn(Optional[String], default:None) –The Amazon Resource Name (ARN) of the snapshot associated with the message to revoke access.
-
snapshot_cluster_identifier(Optional[String], default:None) –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.
-
account_with_restore_access(Optional[String], default:None) –The identifier of the Amazon Web Services account that can no longer restore the specified snapshot.
Raises:
-
AccessToSnapshotDeniedFault–The owner of the specified snapshot has not authorized your account to access the snapshot.
-
AuthorizationNotFoundFault–The specified CIDR IP range or EC2 security group is not authorized for the specified cluster security group.
-
ClusterSnapshotNotFoundFault–The snapshot identifier does not refer to an existing cluster snapshot.
-
UnsupportedOperationFault–The requested operation isn't supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift/_services/redshift.py
11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 | |