aws_sdk_verifiedpermissions/client/put_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 [`PutSchema`](crate::operation::put_schema::builders::PutSchemaFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`policy_store_id(impl Into<String>)`](crate::operation::put_schema::builders::PutSchemaFluentBuilder::policy_store_id) / [`set_policy_store_id(Option<String>)`](crate::operation::put_schema::builders::PutSchemaFluentBuilder::set_policy_store_id):<br>required: **true**<br><p>Specifies the ID of the policy store in which to place the schema.</p><br>
7 /// - [`definition(SchemaDefinition)`](crate::operation::put_schema::builders::PutSchemaFluentBuilder::definition) / [`set_definition(Option<SchemaDefinition>)`](crate::operation::put_schema::builders::PutSchemaFluentBuilder::set_definition):<br>required: **true**<br><p>Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.</p><br>
8 /// - On success, responds with [`PutSchemaOutput`](crate::operation::put_schema::PutSchemaOutput) with field(s):
9 /// - [`policy_store_id(String)`](crate::operation::put_schema::PutSchemaOutput::policy_store_id): <p>The unique ID of the policy store that contains the schema.</p>
10 /// - [`namespaces(Vec::<String>)`](crate::operation::put_schema::PutSchemaOutput::namespaces): <p>Identifies the namespaces of the entities referenced by this schema.</p>
11 /// - [`created_date(DateTime)`](crate::operation::put_schema::PutSchemaOutput::created_date): <p>The date and time that the schema was originally created.</p>
12 /// - [`last_updated_date(DateTime)`](crate::operation::put_schema::PutSchemaOutput::last_updated_date): <p>The date and time that the schema was last updated.</p>
13 /// - On failure, responds with [`SdkError<PutSchemaError>`](crate::operation::put_schema::PutSchemaError)
14 pub fn put_schema(&self) -> crate::operation::put_schema::builders::PutSchemaFluentBuilder {
15 crate::operation::put_schema::builders::PutSchemaFluentBuilder::new(self.handle.clone())
16 }
17}