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:
IResource, IKeyValueStore, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-25T14:21:11.610Z") @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();
 
  • 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

      @Stability(Stable) @NotNull public String getKeyValueStoreArn()
      The ARN of the Key Value Store.
      Specified by:
      getKeyValueStoreArn in interface IKeyValueStore
    • getKeyValueStoreId

      @Stability(Stable) @NotNull public String getKeyValueStoreId()
      The Unique ID of the Key Value Store.
      Specified by:
      getKeyValueStoreId in interface IKeyValueStore
    • getKeyValueStoreStatus

      @Stability(Stable) @NotNull public String getKeyValueStoreStatus()
      The status of the Key Value Store.
      Specified by:
      getKeyValueStoreStatus in interface IKeyValueStore