Class KeyValueStore
A CloudFront Key Value Store.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class KeyValueStore : Resource, IKeyValueStore, IResource, IKeyValueStoreRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class KeyValueStore Inherits Resource Implements IKeyValueStore, IResource, IKeyValueStoreRef, IConstruct, IDependable, IEnvironmentAware
Remarks
Resource: AWS::CloudFront::KeyValueStore
ExampleMetadata: infused
Examples
var store = new KeyValueStore(this, "KeyValueStore");
new Function(this, "Function", new FunctionProps {
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
});
Synopsis
Constructors
| KeyValueStore(Construct, string, IKeyValueStoreProps?) | A CloudFront Key Value Store. |
Properties
| KeyValueStoreArn | The ARN of the Key Value Store. |
| KeyValueStoreId | The Unique ID of the Key Value Store. |
| KeyValueStoreRef | A reference to a KeyValueStore resource. |
| KeyValueStoreStatus | The status of the Key Value Store. |
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Methods
| FromKeyValueStoreArn(Construct, string, string) | Import a Key Value Store using its ARN. |
Constructors
KeyValueStore(Construct, string, IKeyValueStoreProps?)
A CloudFront Key Value Store.
public KeyValueStore(Construct scope, string id, IKeyValueStoreProps? props = null)
Parameters
- scope Construct
- id string
- props IKeyValueStoreProps
Remarks
Resource: AWS::CloudFront::KeyValueStore
ExampleMetadata: infused
Examples
var store = new KeyValueStore(this, "KeyValueStore");
new Function(this, "Function", new FunctionProps {
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
});
Properties
KeyValueStoreArn
The ARN of the Key Value Store.
public virtual string KeyValueStoreArn { get; }
Property Value
Remarks
Resource: AWS::CloudFront::KeyValueStore
ExampleMetadata: infused
KeyValueStoreId
The Unique ID of the Key Value Store.
public virtual string KeyValueStoreId { get; }
Property Value
Remarks
Resource: AWS::CloudFront::KeyValueStore
ExampleMetadata: infused
KeyValueStoreRef
A reference to a KeyValueStore resource.
public virtual IKeyValueStoreReference KeyValueStoreRef { get; }
Property Value
Remarks
Resource: AWS::CloudFront::KeyValueStore
ExampleMetadata: infused
KeyValueStoreStatus
The status of the Key Value Store.
public virtual string KeyValueStoreStatus { get; }
Property Value
Remarks
Resource: AWS::CloudFront::KeyValueStore
ExampleMetadata: infused
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Resource: AWS::CloudFront::KeyValueStore
ExampleMetadata: infused
Methods
FromKeyValueStoreArn(Construct, string, string)
Import a Key Value Store using its ARN.
public static IKeyValueStore FromKeyValueStoreArn(Construct scope, string id, string keyValueStoreArn)
Parameters
Returns
Remarks
Resource: AWS::CloudFront::KeyValueStore
ExampleMetadata: infused