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

**************************************************
put_protect_configuration_rule_set_number_override
**************************************************



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

  

  Create or update a phone number rule override and associate it with a protect configuration.

  

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


  **Request Syntax**
  ::

    response = client.put_protect_configuration_rule_set_number_override(
        ClientToken='string',
        ProtectConfigurationId='string',
        DestinationPhoneNumber='string',
        Action='ALLOW'|'BLOCK',
        ExpirationTimestamp=datetime(2015, 1, 1)
    )
    
  :type ClientToken: string
  :param ClientToken: 

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

    This field is autopopulated if not provided.

  
  :type ProtectConfigurationId: string
  :param ProtectConfigurationId: **[REQUIRED]** 

    The unique identifier for the protect configuration.

    

  
  :type DestinationPhoneNumber: string
  :param DestinationPhoneNumber: **[REQUIRED]** 

    The destination phone number in E.164 format.

    

  
  :type Action: string
  :param Action: **[REQUIRED]** 

    The action for the rule to either block or allow messages to the destination phone number.

    

  
  :type ExpirationTimestamp: datetime
  :param ExpirationTimestamp: 

    The time the rule will expire at. If ``ExpirationTimestamp`` is not set then the rule does not expire.

    

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

    
    ::

      {
          'ProtectConfigurationArn': 'string',
          'ProtectConfigurationId': 'string',
          'DestinationPhoneNumber': 'string',
          'CreatedTimestamp': datetime(2015, 1, 1),
          'Action': 'ALLOW'|'BLOCK',
          'IsoCountryCode': 'string',
          'ExpirationTimestamp': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

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

        
      

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

        The unique identifier for the protect configuration.

        
      

      - **DestinationPhoneNumber** *(string) --* 

        The destination phone number in E.164 format.

        
      

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

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

        
      

      - **Action** *(string) --* 

        The action for the rule to take.

        
      

      - **IsoCountryCode** *(string) --* 

        The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

        
      

      - **ExpirationTimestamp** *(datetime) --* 

        The time the rule will expire at.

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

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

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

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

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

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

  