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

************************
create_configuration_set
************************



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

  

  Creates a new configuration set. After you create the configuration set, you can add one or more event destinations to it.

   

  A configuration set is a set of rules that you apply to the SMS and voice messages that you send.

   

  When you send a message, you can optionally specify a single configuration set.

  

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


  **Request Syntax**
  ::

    response = client.create_configuration_set(
        ConfigurationSetName='string',
        Tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ],
        ClientToken='string'
    )
    
  :type ConfigurationSetName: string
  :param ConfigurationSetName: **[REQUIRED]** 

    The name to use for the new configuration set.

    

  
  :type Tags: list
  :param Tags: 

    An array of key and value pair tags that's associated with the new configuration set.

    

  
    - *(dict) --* 

      The list of tags to be added to the specified topic.

      

    
      - **Key** *(string) --* **[REQUIRED]** 

        The key identifier, or name, of the tag.

        

      
      - **Value** *(string) --* **[REQUIRED]** 

        The string value associated with the key of the tag.

        

      
    

  :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.

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

    
    ::

      {
          'ConfigurationSetArn': 'string',
          'ConfigurationSetName': 'string',
          'Tags': [
              {
                  'Key': 'string',
                  'Value': 'string'
              },
          ],
          'CreatedTimestamp': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ConfigurationSetArn** *(string) --* 

        The Amazon Resource Name (ARN) of the newly created configuration set.

        
      

      - **ConfigurationSetName** *(string) --* 

        The name of the new configuration set.

        
      

      - **Tags** *(list) --* 

        An array of key and value pair tags that's associated with the configuration set.

        
        

        - *(dict) --* 

          The list of tags to be added to the specified topic.

          
          

          - **Key** *(string) --* 

            The key identifier, or name, of the tag.

            
          

          - **Value** *(string) --* 

            The string value associated with the key of the tag.

            
      
    
      

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

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

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

  