aws_sdk_cloudfrontkeyvaluestore/client/
get_key.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetKey`](crate::operation::get_key::builders::GetKeyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`kvs_arn(impl Into<String>)`](crate::operation::get_key::builders::GetKeyFluentBuilder::kvs_arn) / [`set_kvs_arn(Option<String>)`](crate::operation::get_key::builders::GetKeyFluentBuilder::set_kvs_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the Key Value Store.</p><br>
7    ///   - [`key(impl Into<String>)`](crate::operation::get_key::builders::GetKeyFluentBuilder::key) / [`set_key(Option<String>)`](crate::operation::get_key::builders::GetKeyFluentBuilder::set_key):<br>required: **true**<br><p>The key to get.</p><br>
8    /// - On success, responds with [`GetKeyOutput`](crate::operation::get_key::GetKeyOutput) with field(s):
9    ///   - [`key(String)`](crate::operation::get_key::GetKeyOutput::key): <p>The key of the key value pair.</p>
10    ///   - [`value(String)`](crate::operation::get_key::GetKeyOutput::value): <p>The value of the key value pair.</p>
11    ///   - [`item_count(i32)`](crate::operation::get_key::GetKeyOutput::item_count): <p>Number of key value pairs in the Key Value Store.</p>
12    ///   - [`total_size_in_bytes(i64)`](crate::operation::get_key::GetKeyOutput::total_size_in_bytes): <p>Total size of the Key Value Store in bytes.</p>
13    /// - On failure, responds with [`SdkError<GetKeyError>`](crate::operation::get_key::GetKeyError)
14    pub fn get_key(&self) -> crate::operation::get_key::builders::GetKeyFluentBuilder {
15        crate::operation::get_key::builders::GetKeyFluentBuilder::new(self.handle.clone())
16    }
17}