Skip to content

Create Key Value Store

cloudfront_create_key_value_store R Documentation

Specifies the key value store resource to add to your account

Description

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.

Usage

cloudfront_create_key_value_store(Name, Comment, ImportSource)

Arguments

Name

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

Comment

The comment of the key value store.

ImportSource

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

Value

A list with the following syntax:

list(
  KeyValueStore = list(
    Name = "string",
    Id = "string",
    Comment = "string",
    ARN = "string",
    Status = "string",
    LastModifiedTime = as.POSIXct(
      "2015-01-01"
    )
  ),
  ETag = "string",
  Location = "string"
)

Request syntax

svc$create_key_value_store(
  Name = "string",
  Comment = "string",
  ImportSource = list(
    SourceType = "S3",
    SourceARN = "string"
  )
)

Examples

## Not run: 
# Use the following command to create a KeyValueStore.
svc$create_key_value_store(
  Comment = "my-key-valuestore-comment",
  ImportSource = list(
    SourceARN = "arn:aws:s3:::my-bucket/validJSON.json",
    SourceType = "S3"
  ),
  Name = "my-keyvaluestore-name"
)

## End(Not run)