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
Syntax (vb)
Public Class KeyValueStore
Inherits Resource
Implements IKeyValueStore, IResource
Remarks
Resource: AWS::CloudFront::KeyValueStore
ExampleMetadata: infused
Examples
var storeAsset = new KeyValueStore(this, "KeyValueStoreAsset", new KeyValueStoreProps {
KeyValueStoreName = "KeyValueStoreAsset",
Source = ImportSource.FromAsset("path-to-data.json")
});
var storeInline = new KeyValueStore(this, "KeyValueStoreInline", new KeyValueStoreProps {
KeyValueStoreName = "KeyValueStoreInline",
Source = ImportSource.FromInline(JSON.Stringify(new Dictionary<string, IDictionary<string, string>[]> {
{ "data", new [] { new Struct {
Key = "key1",
Value = "value1"
}, new Struct {
Key = "key2",
Value = "value2"
} } }
}))
});
Synopsis
Constructors
KeyValueStore(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
KeyValueStore(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
KeyValueStore(Construct, String, IKeyValueStoreProps) |
Properties
KeyValueStoreArn | The ARN of the Key Value Store. |
KeyValueStoreId | The Unique ID of the Key Value Store. |
KeyValueStoreStatus | The status of the Key Value Store. |
Methods
FromKeyValueStoreArn(Construct, String, String) | Import a Key Value Store using its ARN. |
Constructors
KeyValueStore(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected KeyValueStore(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
KeyValueStore(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected KeyValueStore(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
KeyValueStore(Construct, String, IKeyValueStoreProps)
public KeyValueStore(Construct scope, string id, IKeyValueStoreProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IKeyValueStoreProps
Properties
KeyValueStoreArn
The ARN of the Key Value Store.
public virtual string KeyValueStoreArn { get; }
Property Value
System.String
KeyValueStoreId
The Unique ID of the Key Value Store.
public virtual string KeyValueStoreId { get; }
Property Value
System.String
KeyValueStoreStatus
The status of the Key Value Store.
public virtual string KeyValueStoreStatus { get; }
Property Value
System.String
Methods
FromKeyValueStoreArn(Construct, String, String)
Import a Key Value Store using its ARN.
public static IKeyValueStore FromKeyValueStoreArn(Construct scope, string id, string keyValueStoreArn)
Parameters
- scope Constructs.Construct
- id System.String
- keyValueStoreArn System.String
Returns