putKey
inline suspend fun CloudFrontKeyValueStoreClient.putKey(crossinline block: PutKeyRequest.Builder.() -> Unit): PutKeyResponse
Creates a new key value pair or replaces the value of an existing key.
Samples
fun main() {
//sampleStart
// Put key1 with value1 into the key value store with ARN arn aws cloudfront 123456789012 key value
// store 327284aa bcd5 499f a3ff 26b9a9d31b58
val resp = cloudFrontKeyValueStoreClient.putKey {
key = "key1"
value = "value1"
kvsArn = "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58"
ifMatch = "KV0AB12C3DEF456"
}
//sampleEnd
}