Interface KeyValueStoreProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
KeyValueStoreProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:33.094Z")
@Stability(Stable)
public interface KeyValueStoreProps
extends software.amazon.jsii.JsiiSerializable
The properties to create a Key Value Store.
Example:
KeyValueStore storeAsset = KeyValueStore.Builder.create(this, "KeyValueStoreAsset")
.keyValueStoreName("KeyValueStoreAsset")
.source(ImportSource.fromAsset("path-to-data.json"))
.build();
KeyValueStore storeInline = KeyValueStore.Builder.create(this, "KeyValueStoreInline")
.keyValueStoreName("KeyValueStoreInline")
.source(ImportSource.fromInline(JSON.stringify(Map.of(
"data", List.of(Map.of(
"key", "key1",
"value", "value1"), Map.of(
"key", "key2",
"value", "value2"))))))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forKeyValueStorePropsstatic final classAn implementation forKeyValueStoreProps -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyValueStoreProps.Builderbuilder()default StringA comment for the Key Value Store.default StringThe unique name of the Key Value Store.default ImportSourceThe import source for the Key Value Store.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getComment
A comment for the Key Value Store.Default: No comment will be specified
-
getKeyValueStoreName
The unique name of the Key Value Store.Default: A generated name
-
getSource
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
-
builder
- Returns:
- a
KeyValueStoreProps.BuilderofKeyValueStoreProps
-