Skip to main content

aws_sdk_glue/client/
create_glossary_term.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 [`CreateGlossaryTerm`](crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`glossary_identifier(impl Into<String>)`](crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder::glossary_identifier) / [`set_glossary_identifier(Option<String>)`](crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder::set_glossary_identifier):<br>required: **true**<br><p>The unique identifier of the glossary in which to create the term.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder::set_name):<br>required: **true**<br><p>The name of the glossary term.</p><br>
8    ///   - [`short_description(impl Into<String>)`](crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder::short_description) / [`set_short_description(Option<String>)`](crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder::set_short_description):<br>required: **false**<br><p>A short description of the glossary term.</p><br>
9    ///   - [`long_description(impl Into<String>)`](crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder::long_description) / [`set_long_description(Option<String>)`](crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder::set_long_description):<br>required: **false**<br><p>A long description of the glossary term.</p><br>
10    ///   - [`client_token(impl Into<String>)`](crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p><br>
11    /// - On success, responds with [`CreateGlossaryTermOutput`](crate::operation::create_glossary_term::CreateGlossaryTermOutput) with field(s):
12    ///   - [`id(Option<String>)`](crate::operation::create_glossary_term::CreateGlossaryTermOutput::id): <p>The unique identifier of the glossary term.</p>
13    ///   - [`glossary_id(Option<String>)`](crate::operation::create_glossary_term::CreateGlossaryTermOutput::glossary_id): <p>The unique identifier of the glossary containing this term.</p>
14    ///   - [`name(Option<String>)`](crate::operation::create_glossary_term::CreateGlossaryTermOutput::name): <p>The name of the glossary term.</p>
15    ///   - [`short_description(Option<String>)`](crate::operation::create_glossary_term::CreateGlossaryTermOutput::short_description): <p>The short description of the glossary term.</p>
16    ///   - [`long_description(Option<String>)`](crate::operation::create_glossary_term::CreateGlossaryTermOutput::long_description): <p>The long description of the glossary term.</p>
17    /// - On failure, responds with [`SdkError<CreateGlossaryTermError>`](crate::operation::create_glossary_term::CreateGlossaryTermError)
18    pub fn create_glossary_term(&self) -> crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder {
19        crate::operation::create_glossary_term::builders::CreateGlossaryTermFluentBuilder::new(self.handle.clone())
20    }
21}