Class KeyValueStore
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.cloudfront.KeyValueStore
- All Implemented Interfaces:
IEnvironmentAware,IResource,IKeyValueStore,IKeyValueStoreRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:00.232Z")
@Stability(Stable)
public class KeyValueStore
extends Resource
implements IKeyValueStore
A CloudFront Key Value Store.
Example:
KeyValueStore store = new KeyValueStore(this, "KeyValueStore");
Function.Builder.create(this, "Function")
.code(FunctionCode.fromInline("function handler(event) { return event.request }"))
// Note that JS_2_0 must be used for Key Value Store support
.runtime(FunctionRuntime.JS_2_0)
.keyValueStore(store)
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.cloudfront.IKeyValueStore
IKeyValueStore.Jsii$Default, IKeyValueStore.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedKeyValueStore(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedKeyValueStore(software.amazon.jsii.JsiiObjectRef objRef) KeyValueStore(software.constructs.Construct scope, String id) KeyValueStore(software.constructs.Construct scope, String id, KeyValueStoreProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IKeyValueStorefromKeyValueStoreArn(software.constructs.Construct scope, String id, String keyValueStoreArn) Import a Key Value Store using its ARN.The ARN of the Key Value Store.The Unique ID of the Key Value Store.A reference to a KeyValueStore resource.The status of the Key Value Store.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.services.cloudfront.IKeyValueStore
getEnv, getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
KeyValueStore
protected KeyValueStore(software.amazon.jsii.JsiiObjectRef objRef) -
KeyValueStore
protected KeyValueStore(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
KeyValueStore
@Stability(Stable) public KeyValueStore(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable KeyValueStoreProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
KeyValueStore
@Stability(Stable) public KeyValueStore(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromKeyValueStoreArn
@Stability(Stable) @NotNull public static IKeyValueStore fromKeyValueStoreArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String keyValueStoreArn) Import a Key Value Store using its ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.keyValueStoreArn- This parameter is required.
-
getKeyValueStoreArn
The ARN of the Key Value Store.- Specified by:
getKeyValueStoreArnin interfaceIKeyValueStore
-
getKeyValueStoreId
The Unique ID of the Key Value Store.- Specified by:
getKeyValueStoreIdin interfaceIKeyValueStore
-
getKeyValueStoreRef
A reference to a KeyValueStore resource.- Specified by:
getKeyValueStoreRefin interfaceIKeyValueStoreRef
-
getKeyValueStoreStatus
The status of the Key Value Store.- Specified by:
getKeyValueStoreStatusin interfaceIKeyValueStore
-