deleteKey
inline suspend fun CloudFrontKeyValueStoreClient.deleteKey(crossinline block: DeleteKeyRequest.Builder.() -> Unit): DeleteKeyResponse
Deletes the key value pair specified by the key.
Samples
fun main() {
//sampleStart
// Delete key1 from the key value store with ARN arn aws cloudfront 123456789012 key value store
// 327284aa bcd5 499f a3ff 26b9a9d31b58
val resp = cloudFrontKeyValueStoreClient.deleteKey {
key = "key1"
kvsArn = "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58"
ifMatch = "KV0AB12C3DEF456"
}
//sampleEnd
}