:doc:`PinpointSMSVoiceV2 <../../pinpoint-sms-voice-v2>` / Client / update_protect_configuration

****************************
update_protect_configuration
****************************



.. py:method:: PinpointSMSVoiceV2.Client.update_protect_configuration(**kwargs)

  

  Update the setting for an existing protect configuration.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/UpdateProtectConfiguration>`_  


  **Request Syntax**
  ::

    response = client.update_protect_configuration(
        ProtectConfigurationId='string',
        DeletionProtectionEnabled=True|False
    )
    
  :type ProtectConfigurationId: string
  :param ProtectConfigurationId: **[REQUIRED]** 

    The unique identifier for the protect configuration.

    

  
  :type DeletionProtectionEnabled: boolean
  :param DeletionProtectionEnabled: 

    When set to true deletion protection is enabled. By default this is set to false.

    

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

    
    ::

      {
          'ProtectConfigurationArn': 'string',
          'ProtectConfigurationId': 'string',
          'CreatedTimestamp': datetime(2015, 1, 1),
          'AccountDefault': True|False,
          'DeletionProtectionEnabled': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ProtectConfigurationArn** *(string) --* 

        The Amazon Resource Name (ARN) of the protect configuration.

        
      

      - **ProtectConfigurationId** *(string) --* 

        The unique identifier for the protect configuration.

        
      

      - **CreatedTimestamp** *(datetime) --* 

        The time when the protect configuration was created, in `UNIX epoch time <https://www.epochconverter.com/>`__ format.

        
      

      - **AccountDefault** *(boolean) --* 

        This is true if the protect configuration is set as your account default protect configuration.

        
      

      - **DeletionProtectionEnabled** *(boolean) --* 

        The status of deletion protection for the protect configuration. When set to true deletion protection is enabled. By default this is set to false.

        
  
  **Exceptions**
  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.ThrottlingException`

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

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

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

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

  