revoke_snapshot_access
async
¶
revoke_snapshot_access(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = 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/async_redshift.py
11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 | |