aws_sdk_clouddirectory/client/
put_schema_from_json.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 [`PutSchemaFromJson`](crate::operation::put_schema_from_json::builders::PutSchemaFromJsonFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`schema_arn(impl Into<String>)`](crate::operation::put_schema_from_json::builders::PutSchemaFromJsonFluentBuilder::schema_arn) / [`set_schema_arn(Option<String>)`](crate::operation::put_schema_from_json::builders::PutSchemaFromJsonFluentBuilder::set_schema_arn):<br>required: **true**<br><p>The ARN of the schema to update.</p><br>
7    ///   - [`document(impl Into<String>)`](crate::operation::put_schema_from_json::builders::PutSchemaFromJsonFluentBuilder::document) / [`set_document(Option<String>)`](crate::operation::put_schema_from_json::builders::PutSchemaFromJsonFluentBuilder::set_document):<br>required: **true**<br><p>The replacement JSON schema.</p><br>
8    /// - On success, responds with [`PutSchemaFromJsonOutput`](crate::operation::put_schema_from_json::PutSchemaFromJsonOutput) with field(s):
9    ///   - [`arn(Option<String>)`](crate::operation::put_schema_from_json::PutSchemaFromJsonOutput::arn): <p>The ARN of the schema to update.</p>
10    /// - On failure, responds with [`SdkError<PutSchemaFromJsonError>`](crate::operation::put_schema_from_json::PutSchemaFromJsonError)
11    pub fn put_schema_from_json(&self) -> crate::operation::put_schema_from_json::builders::PutSchemaFromJsonFluentBuilder {
12        crate::operation::put_schema_from_json::builders::PutSchemaFromJsonFluentBuilder::new(self.handle.clone())
13    }
14}