Skip to content
v2.277.0

CfnKeyValueStoreProps Struct ​

Properties for defining a CfnKeyValueStore.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cfnKeyValueStoreProps: cloudfront.CfnKeyValueStoreProps = {
  name: 'name',

  // the properties below are optional
  comment: 'comment',
  importSource: {
    sourceArn: 'sourceArn',
    sourceType: 'sourceType',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront

cfn_key_value_store_props = cloudfront.CfnKeyValueStoreProps(
    name="name",

    # the properties below are optional
    comment="comment",
    import_source=cloudfront.CfnKeyValueStore.ImportSourceProperty(
        source_arn="sourceArn",
        source_type="sourceType"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;

CfnKeyValueStoreProps cfnKeyValueStoreProps = CfnKeyValueStoreProps.builder()
        .name("name")

        // the properties below are optional
        .comment("comment")
        .importSource(ImportSourceProperty.builder()
                .sourceArn("sourceArn")
                .sourceType("sourceType")
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;

var cfnKeyValueStoreProps = new CfnKeyValueStoreProps {
    Name = "name",

    // the properties below are optional
    Comment = "comment",
    ImportSource = new ImportSourceProperty {
        SourceArn = "sourceArn",
        SourceType = "sourceType"
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnKeyValueStoreProps := &CfnKeyValueStoreProps{
	Name: jsii.String("name"),

	// the properties below are optional
	Comment: jsii.String("comment"),
	ImportSource: &ImportSourceProperty{
		SourceArn: jsii.String("sourceArn"),
		SourceType: jsii.String("sourceType"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

commentoptionalstringcommentoptionalstrcommentoptionalStringCommentoptionalstringCommentoptional*string #
A comment for the key value store.
importSourceoptionalIResolvable | CfnKeyValueStore.ImportSourcePropertyimport_sourceoptionaltyping.Union[IResolvable, ImportSourceProperty]importSourceoptionalIResolvableImportSourceoptionalIResolvableImportSourceoptionalinterface{} #
The import source for the key value store.
namestringnamestrnameStringNamestringName*string required #
The name of the key value store.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A complex type that contains zero or more ``Tag`` elements.