aws-sdk-keyspaces 1.104.0

AWS SDK for Amazon Keyspaces
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateType`](crate::operation::create_type::builders::CreateTypeFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`keyspace_name(impl Into<String>)`](crate::operation::create_type::builders::CreateTypeFluentBuilder::keyspace_name) / [`set_keyspace_name(Option<String>)`](crate::operation::create_type::builders::CreateTypeFluentBuilder::set_keyspace_name):<br>required: **true**<br><p>The name of the keyspace.</p><br>
    ///   - [`type_name(impl Into<String>)`](crate::operation::create_type::builders::CreateTypeFluentBuilder::type_name) / [`set_type_name(Option<String>)`](crate::operation::create_type::builders::CreateTypeFluentBuilder::set_type_name):<br>required: **true**<br><p>The name of the user-defined type.</p> <p>UDT names must contain 48 characters or less, must begin with an alphabetic character, and can only contain alpha-numeric characters and underscores. Amazon Keyspaces converts upper case characters automatically into lower case characters.</p> <p>Alternatively, you can declare a UDT name in double quotes. When declaring a UDT name inside double quotes, Amazon Keyspaces preserves upper casing and allows special characters.</p> <p>You can also use double quotes as part of the name when you create the UDT, but you must escape each double quote character with an additional double quote character.</p><br>
    ///   - [`field_definitions(FieldDefinition)`](crate::operation::create_type::builders::CreateTypeFluentBuilder::field_definitions) / [`set_field_definitions(Option<Vec::<FieldDefinition>>)`](crate::operation::create_type::builders::CreateTypeFluentBuilder::set_field_definitions):<br>required: **true**<br><p>The field definitions, consisting of names and types, that define this type.</p><br>
    /// - On success, responds with [`CreateTypeOutput`](crate::operation::create_type::CreateTypeOutput) with field(s):
    ///   - [`keyspace_arn(String)`](crate::operation::create_type::CreateTypeOutput::keyspace_arn): <p>The unique identifier of the keyspace that contains the new type in the format of an Amazon Resource Name (ARN).</p>
    ///   - [`type_name(String)`](crate::operation::create_type::CreateTypeOutput::type_name): <p>The formatted name of the user-defined type that was created. Note that Amazon Keyspaces requires the formatted name of the type for other operations, for example <code>GetType</code>.</p>
    /// - On failure, responds with [`SdkError<CreateTypeError>`](crate::operation::create_type::CreateTypeError)
    pub fn create_type(&self) -> crate::operation::create_type::builders::CreateTypeFluentBuilder {
        crate::operation::create_type::builders::CreateTypeFluentBuilder::new(self.handle.clone())
    }
}