createKeyValueStore
abstract suspend fun createKeyValueStore(input: CreateKeyValueStoreRequest): CreateKeyValueStoreResponse
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.
Samples
import aws.sdk.kotlin.services.cloudfront.model.ImportSource
import aws.sdk.kotlin.services.cloudfront.model.ImportSourceType
fun main() {
//sampleStart
// Use the following command to create a KeyValueStore.
val resp = cloudFrontClient.createKeyValueStore {
name = "my-keyvaluestore-name"
comment = "my-key-valuestore-comment"
importSource = ImportSource {
sourceType = ImportSourceType.fromValue("S3")
sourceArn = "arn:aws:s3:::amzn-s3-demo-bucket/validJSON.json"
}
}
//sampleEnd
}