update_deletion_protection
async
¶
update_deletion_protection(
arn: Arn,
deletion_protected: bool,
*,
config_overrides: Optional[AsyncSSMIncidentsClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateDeletionProtectionOutput
Update deletion protection to either allow or deny deletion of the final Region in a replication set.
Parameters:
-
arn(Arn) –The Amazon Resource Name (ARN) of the replication set to update.
-
deletion_protected(bool) –Specifies if deletion protection is turned on or off in your account.
-
client_token(Optional[ClientToken], default:None) –A token that ensures that the operation is called only once with the specified details.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–Request references a resource which doesn't exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.