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

******************************************
get_protect_configuration_country_rule_set
******************************************



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

  

  Retrieve the CountryRuleSet for the specified NumberCapability from a protect configuration.

  

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


  **Request Syntax**
  ::

    response = client.get_protect_configuration_country_rule_set(
        ProtectConfigurationId='string',
        NumberCapability='SMS'|'VOICE'|'MMS'
    )
    
  :type ProtectConfigurationId: string
  :param ProtectConfigurationId: **[REQUIRED]** 

    The unique identifier for the protect configuration.

    

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

    The capability type to return the CountryRuleSet for. Valid values are ``SMS``, ``VOICE``, or ``MMS``.

    

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

    
    ::

      {
          'ProtectConfigurationArn': 'string',
          'ProtectConfigurationId': 'string',
          'NumberCapability': 'SMS'|'VOICE'|'MMS',
          'CountryRuleSet': {
              'string': {
                  'ProtectStatus': 'ALLOW'|'BLOCK'|'MONITOR'|'FILTER'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

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

        
      

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

        The unique identifier for the protect configuration.

        
      

      - **NumberCapability** *(string) --* 

        The capability type associated with the returned ProtectConfigurationCountryRuleSetInformation objects.

        
      

      - **CountryRuleSet** *(dict) --* 

        A map of ProtectConfigurationCountryRuleSetInformation objects that contain the details for the requested NumberCapability. The Key is the two-letter ISO country code. For a list of supported ISO country codes, see `Supported countries and regions (SMS channel) <https://docs.aws.amazon.com/sms-voice/latest/userguide/phone-numbers-sms-by-country.html>`__ in the End User Messaging SMS User Guide.

        
        

        - *(string) --* 
          

          - *(dict) --* 

            The types of statuses that can be used.

            
            

            - **ProtectStatus** *(string) --* 

              The types of protection that can be used.

              
        
    
  
  
  **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`

  