AWS SDK Version 3 for .NET
API Reference

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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CloudFront.AmazonCloudFrontRequest
      Amazon.CloudFront.Model.CreateKeyValueStoreRequest

Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z

Syntax

C#
public class CreateKeyValueStoreRequest : AmazonCloudFrontRequest
         IAmazonWebServiceRequest

The CreateKeyValueStoreRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property Comment System.String

Gets and sets the property Comment.

The comment of the key value store.

Public Property 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.

Public Property 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.

Examples

Use the following command to create a KeyValueStore.

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;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5