# CfnKeyValueStoreProps

Properties for defining a `CfnKeyValueStore`.

Used as props by: [CfnKeyValueStore](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnKeyValueStore.html)

- Source: Generated at build time
- Type last changed: v2.235.0 · 15 Jan 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `comment`: string — A comment for the key value store.

- `importSource`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnKeyValueStore.ImportSourceProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnKeyValueStore.ImportSourceProperty.html) — The import source for the key value store.

- `name`: string (required) — The name of the key value store.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A complex type that contains zero or more ``Tag`` elements.
