:doc:`CloudFront <../../cloudfront>` / Client / create_key_value_store

**********************
create_key_value_store
**********************



.. py:method:: CloudFront.Client.create_key_value_store(**kwargs)

  

  Specifies the key value store resource to add to your account. In your account, the key value store names must be unique. You can also import key value store data in JSON format from an S3 bucket by providing a valid ``ImportSource`` that you own.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateKeyValueStore>`_  


  **Request Syntax**
  ::

    response = client.create_key_value_store(
        Name='string',
        Comment='string',
        ImportSource={
            'SourceType': 'S3',
            'SourceARN': 'string'
        }
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the key value store. The minimum length is 1 character and the maximum length is 64 characters.

    

  
  :type Comment: string
  :param Comment: 

    The comment of the key value store.

    

  
  :type ImportSource: dict
  :param ImportSource: 

    The S3 bucket that provides the source for the import. The source must be in a valid JSON format.

    

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

      The source type of the import source for the key value store.

      

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

      The Amazon Resource Name (ARN) of the import source for the key value store.

      

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

    
    ::

      {
          'KeyValueStore': {
              'Name': 'string',
              'Id': 'string',
              'Comment': 'string',
              'ARN': 'string',
              'Status': 'string',
              'LastModifiedTime': datetime(2015, 1, 1)
          },
          'ETag': 'string',
          'Location': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **KeyValueStore** *(dict) --* 

        The resulting key value store.

        
        

        - **Name** *(string) --* 

          The name of the key value store.

          
        

        - **Id** *(string) --* 

          The unique Id for the key value store.

          
        

        - **Comment** *(string) --* 

          A comment for the key value store.

          
        

        - **ARN** *(string) --* 

          The Amazon Resource Name (ARN) of the key value store.

          
        

        - **Status** *(string) --* 

          The status of the key value store.

          
        

        - **LastModifiedTime** *(datetime) --* 

          The last-modified time of the key value store.

          
    
      

      - **ETag** *(string) --* 

        The ``ETag`` in the resulting key value store.

        
      

      - **Location** *(string) --* 

        The location of the resulting key value store.

        
  
  **Exceptions**
  
  *   :py:class:`CloudFront.Client.exceptions.AccessDenied`

  
  *   :py:class:`CloudFront.Client.exceptions.UnsupportedOperation`

  
  *   :py:class:`CloudFront.Client.exceptions.EntityAlreadyExists`

  
  *   :py:class:`CloudFront.Client.exceptions.EntityLimitExceeded`

  
  *   :py:class:`CloudFront.Client.exceptions.InvalidArgument`

  
  *   :py:class:`CloudFront.Client.exceptions.EntitySizeLimitExceeded`

  