aws_sdk_cloudfrontkeyvaluestore/client/
put_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 [`PutKey`](crate::operation::put_key::builders::PutKeyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`key(impl Into<String>)`](crate::operation::put_key::builders::PutKeyFluentBuilder::key) / [`set_key(Option<String>)`](crate::operation::put_key::builders::PutKeyFluentBuilder::set_key):<br>required: **true**<br><p>The key to put.</p><br>
7    ///   - [`value(impl Into<String>)`](crate::operation::put_key::builders::PutKeyFluentBuilder::value) / [`set_value(Option<String>)`](crate::operation::put_key::builders::PutKeyFluentBuilder::set_value):<br>required: **true**<br><p>The value to put.</p><br>
8    ///   - [`kvs_arn(impl Into<String>)`](crate::operation::put_key::builders::PutKeyFluentBuilder::kvs_arn) / [`set_kvs_arn(Option<String>)`](crate::operation::put_key::builders::PutKeyFluentBuilder::set_kvs_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the Key Value Store.</p><br>
9    ///   - [`if_match(impl Into<String>)`](crate::operation::put_key::builders::PutKeyFluentBuilder::if_match) / [`set_if_match(Option<String>)`](crate::operation::put_key::builders::PutKeyFluentBuilder::set_if_match):<br>required: **true**<br><p>The current version (ETag) of the Key Value Store that you are putting keys into, which you can get using DescribeKeyValueStore.</p><br>
10    /// - On success, responds with [`PutKeyOutput`](crate::operation::put_key::PutKeyOutput) with field(s):
11    ///   - [`item_count(i32)`](crate::operation::put_key::PutKeyOutput::item_count): <p>Number of key value pairs in the Key Value Store after the successful put.</p>
12    ///   - [`total_size_in_bytes(i64)`](crate::operation::put_key::PutKeyOutput::total_size_in_bytes): <p>Total size of the Key Value Store after the successful put, in bytes.</p>
13    ///   - [`e_tag(String)`](crate::operation::put_key::PutKeyOutput::e_tag): <p>The current version identifier of the Key Value Store after the successful put.</p>
14    /// - On failure, responds with [`SdkError<PutKeyError>`](crate::operation::put_key::PutKeyError)
15    pub fn put_key(&self) -> crate::operation::put_key::builders::PutKeyFluentBuilder {
16        crate::operation::put_key::builders::PutKeyFluentBuilder::new(self.handle.clone())
17    }
18}