interface KeyValueStoreProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.KeyValueStoreProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#KeyValueStoreProps |
![]() | software.amazon.awscdk.services.cloudfront.KeyValueStoreProps |
![]() | aws_cdk.aws_cloudfront.KeyValueStoreProps |
![]() | aws-cdk-lib » aws_cloudfront » KeyValueStoreProps |
The properties to create a Key Value Store.
Example
const storeAsset = new cloudfront.KeyValueStore(this, 'KeyValueStoreAsset', {
keyValueStoreName: 'KeyValueStoreAsset',
source: cloudfront.ImportSource.fromAsset('path-to-data.json'),
});
const storeInline = new cloudfront.KeyValueStore(this, 'KeyValueStoreInline', {
keyValueStoreName: 'KeyValueStoreInline',
source: cloudfront.ImportSource.fromInline(JSON.stringify({
data: [
{
key: "key1",
value: "value1",
},
{
key: "key2",
value: "value2",
},
],
})),
});
Properties
Name | Type | Description |
---|---|---|
comment? | string | A comment for the Key Value Store. |
key | string | The unique name of the Key Value Store. |
source? | Import | The import source for the Key Value Store. |
comment?
Type:
string
(optional, default: No comment will be specified)
A comment for the Key Value Store.
keyValueStoreName?
Type:
string
(optional, default: A generated name)
The unique name of the Key Value Store.
source?
Type:
Import
(optional, default: No data will be imported to the store)
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.