aws_sdk_cloudfront/client/
create_key_value_store.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 [`CreateKeyValueStore`](crate::operation::create_key_value_store::builders::CreateKeyValueStoreFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_key_value_store::builders::CreateKeyValueStoreFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_key_value_store::builders::CreateKeyValueStoreFluentBuilder::set_name):<br>required: **true**<br><p>The name of the key value store. The minimum length is 1 character and the maximum length is 64 characters.</p><br>
7    ///   - [`comment(impl Into<String>)`](crate::operation::create_key_value_store::builders::CreateKeyValueStoreFluentBuilder::comment) / [`set_comment(Option<String>)`](crate::operation::create_key_value_store::builders::CreateKeyValueStoreFluentBuilder::set_comment):<br>required: **false**<br><p>The comment of the key value store.</p><br>
8    ///   - [`import_source(ImportSource)`](crate::operation::create_key_value_store::builders::CreateKeyValueStoreFluentBuilder::import_source) / [`set_import_source(Option<ImportSource>)`](crate::operation::create_key_value_store::builders::CreateKeyValueStoreFluentBuilder::set_import_source):<br>required: **false**<br><p>The S3 bucket that provides the source for the import. The source must be in a valid JSON format.</p><br>
9    /// - On success, responds with [`CreateKeyValueStoreOutput`](crate::operation::create_key_value_store::CreateKeyValueStoreOutput) with field(s):
10    ///   - [`key_value_store(Option<KeyValueStore>)`](crate::operation::create_key_value_store::CreateKeyValueStoreOutput::key_value_store): <p>The resulting key value store.</p>
11    ///   - [`e_tag(Option<String>)`](crate::operation::create_key_value_store::CreateKeyValueStoreOutput::e_tag): <p>The <code>ETag</code> in the resulting key value store.</p>
12    ///   - [`location(Option<String>)`](crate::operation::create_key_value_store::CreateKeyValueStoreOutput::location): <p>The location of the resulting key value store.</p>
13    /// - On failure, responds with [`SdkError<CreateKeyValueStoreError>`](crate::operation::create_key_value_store::CreateKeyValueStoreError)
14    pub fn create_key_value_store(&self) -> crate::operation::create_key_value_store::builders::CreateKeyValueStoreFluentBuilder {
15        crate::operation::create_key_value_store::builders::CreateKeyValueStoreFluentBuilder::new(self.handle.clone())
16    }
17}