aws_sdk_clouddirectory/client/create_schema.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 [`CreateSchema`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::set_name):<br>required: **true**<br><p>The name that is associated with the schema. This is unique to each account and in each region.</p><br>
7 /// - On success, responds with [`CreateSchemaOutput`](crate::operation::create_schema::CreateSchemaOutput) with field(s):
8 /// - [`schema_arn(Option<String>)`](crate::operation::create_schema::CreateSchemaOutput::schema_arn): <p>The Amazon Resource Name (ARN) that is associated with the schema. For more information, see <code>arns</code>.</p>
9 /// - On failure, responds with [`SdkError<CreateSchemaError>`](crate::operation::create_schema::CreateSchemaError)
10 pub fn create_schema(&self) -> crate::operation::create_schema::builders::CreateSchemaFluentBuilder {
11 crate::operation::create_schema::builders::CreateSchemaFluentBuilder::new(self.handle.clone())
12 }
13}