AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the CreateKeyValueStore operation.
Specifies the key value store resource to add to your account. In your account, the
key value store names must be unique. You can also import key value store data in
JSON format from an S3 bucket by providing a valid ImportSource
that you own.
Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z
public class CreateKeyValueStoreRequest : AmazonCloudFrontRequest IAmazonWebServiceRequest
The CreateKeyValueStoreRequest type exposes the following members
Name | Description | |
---|---|---|
CreateKeyValueStoreRequest() |
Name | Type | Description | |
---|---|---|---|
Comment | System.String |
Gets and sets the property Comment. The comment of the key value store. |
|
ImportSource | Amazon.CloudFront.Model.ImportSource |
Gets and sets the property ImportSource. The S3 bucket that provides the source for the import. The source must be in a valid JSON format. |
|
Name | System.String |
Gets and sets the property Name. The name of the key value store. The minimum length is 1 character and the maximum length is 64 characters. |
Use the following command to create a KeyValueStore.
var client = new AmazonCloudFrontClient(); var response = client.CreateKeyValueStore(new CreateKeyValueStoreRequest { Comment = "my-key-valuestore-comment", ImportSource = new ImportSource { SourceARN = "arn:aws:s3:::my-bucket/validJSON.json", SourceType = "S3" }, Name = "my-keyvaluestore-name" }); string eTag = response.ETag; KeyValueStore keyValueStore = response.KeyValueStore; string location = response.Location;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5