AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

KeyValueStore

A CloudFront Key Value Store.

Import

import { KeyValueStore } from 'aws-cdk-lib/aws-cloudfront';

Or use the module namespace:

import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
// cloudfront.KeyValueStore

Properties

Configuration passed to the constructor as KeyValueStoreProps.

commentOptional
string

A comment for the Key Value Store.

Default: No comment will be specified

keyValueStoreNameOptional
string

The unique name of the Key Value Store.

Default: A generated name

sourceOptional
ImportSource

The import source for the Key Value Store. This will populate the initial items in the Key Value Store. The source data must be in a valid JSON format.

Default: No data will be imported to the store

Get the Amazon CloudFront Cheat Sheet

Everything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.

Download Free Infographic