aws_sdk_schemas/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    ///   - [`content(impl Into<String>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::content) / [`set_content(Option<String>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::set_content):<br>required: **true**<br><p>The source of the schema definition.</p><br>
7    ///   - [`description(impl Into<String>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::set_description):<br>required: **false**<br><p>A description of the schema.</p><br>
8    ///   - [`registry_name(impl Into<String>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::registry_name) / [`set_registry_name(Option<String>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::set_registry_name):<br>required: **true**<br><p>The name of the registry.</p><br>
9    ///   - [`schema_name(impl Into<String>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::schema_name) / [`set_schema_name(Option<String>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::set_schema_name):<br>required: **true**<br><p>The name of the schema.</p><br>
10    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::set_tags):<br>required: **false**<br><p>Tags associated with the schema.</p><br>
11    ///   - [`r#type(Type)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::type) / [`set_type(Option<Type>)`](crate::operation::create_schema::builders::CreateSchemaFluentBuilder::set_type):<br>required: **true**<br><p>The type of schema.</p><br>
12    /// - On success, responds with [`CreateSchemaOutput`](crate::operation::create_schema::CreateSchemaOutput) with field(s):
13    ///   - [`description(Option<String>)`](crate::operation::create_schema::CreateSchemaOutput::description): <p>The description of the schema.</p>
14    ///   - [`last_modified(Option<DateTime>)`](crate::operation::create_schema::CreateSchemaOutput::last_modified): <p>The date and time that schema was modified.</p>
15    ///   - [`schema_arn(Option<String>)`](crate::operation::create_schema::CreateSchemaOutput::schema_arn): <p>The ARN of the schema.</p>
16    ///   - [`schema_name(Option<String>)`](crate::operation::create_schema::CreateSchemaOutput::schema_name): <p>The name of the schema.</p>
17    ///   - [`schema_version(Option<String>)`](crate::operation::create_schema::CreateSchemaOutput::schema_version): <p>The version number of the schema</p>
18    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_schema::CreateSchemaOutput::tags): <p>Key-value pairs associated with a resource.</p>
19    ///   - [`r#type(Option<String>)`](crate::operation::create_schema::CreateSchemaOutput::type): <p>The type of the schema.</p>
20    ///   - [`version_created_date(Option<DateTime>)`](crate::operation::create_schema::CreateSchemaOutput::version_created_date): <p>The date the schema version was created.</p>
21    /// - On failure, responds with [`SdkError<CreateSchemaError>`](crate::operation::create_schema::CreateSchemaError)
22    pub fn create_schema(&self) -> crate::operation::create_schema::builders::CreateSchemaFluentBuilder {
23        crate::operation::create_schema::builders::CreateSchemaFluentBuilder::new(self.handle.clone())
24    }
25}