:doc:`SSMIncidents <../../ssm-incidents>` / Client / update_deletion_protection

**************************
update_deletion_protection
**************************



.. py:method:: SSMIncidents.Client.update_deletion_protection(**kwargs)

  

  Update deletion protection to either allow or deny deletion of the final Region in a replication set.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ssm-incidents-2018-05-10/UpdateDeletionProtection>`_  


  **Request Syntax**
  ::

    response = client.update_deletion_protection(
        arn='string',
        clientToken='string',
        deletionProtected=True|False
    )
    
  :type arn: string
  :param arn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the replication set to update.

    

  
  :type clientToken: string
  :param clientToken: 

    A token that ensures that the operation is called only once with the specified details.

    This field is autopopulated if not provided.

  
  :type deletionProtected: boolean
  :param deletionProtected: **[REQUIRED]** 

    Specifies if deletion protection is turned on or off in your account.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`SSMIncidents.Client.exceptions.ThrottlingException`

  
  *   :py:class:`SSMIncidents.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`SSMIncidents.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`SSMIncidents.Client.exceptions.ValidationException`

  
  *   :py:class:`SSMIncidents.Client.exceptions.InternalServerException`

  