CloudFront / Client / create_key_value_store

create_key_value_store#

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

Request Syntax

response = client.create_key_value_store(
    Name='string',
    Comment='string',
    ImportSource={
        'SourceType': 'S3',
        'SourceARN': 'string'
    }
)
Parameters:
  • Name (string) –

    [REQUIRED]

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

  • Comment (string) – The comment of the key value store.

  • ImportSource (dict) –

    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.

Return type:

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

  • CloudFront.Client.exceptions.AccessDenied

  • CloudFront.Client.exceptions.EntityLimitExceeded

  • CloudFront.Client.exceptions.EntityAlreadyExists

  • CloudFront.Client.exceptions.EntitySizeLimitExceeded

  • CloudFront.Client.exceptions.InvalidArgument

  • CloudFront.Client.exceptions.UnsupportedOperation