getKey

inline suspend fun CloudFrontKeyValueStoreClient.getKey(crossinline block: GetKeyRequest.Builder.() -> Unit): GetKeyResponse

Returns a key value pair.

Samples


fun main() { 
   //sampleStart 
   // Get key1 from the key value store with ARN arn aws cloudfront 123456789012 key value store 327284aa
// bcd5 499f a3ff 26b9a9d31b58
val resp = cloudFrontKeyValueStoreClient.getKey {
    key = "key1"
    kvsArn = "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58"
} 
   //sampleEnd
}