aws_sdk_verifiedpermissions/client/get_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 [`GetSchema`](crate::operation::get_schema::builders::GetSchemaFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`policy_store_id(impl Into<String>)`](crate::operation::get_schema::builders::GetSchemaFluentBuilder::policy_store_id) / [`set_policy_store_id(Option<String>)`](crate::operation::get_schema::builders::GetSchemaFluentBuilder::set_policy_store_id):<br>required: **true**<br><p>Specifies the ID of the policy store that contains the schema.</p><br>
7 /// - On success, responds with [`GetSchemaOutput`](crate::operation::get_schema::GetSchemaOutput) with field(s):
8 /// - [`policy_store_id(String)`](crate::operation::get_schema::GetSchemaOutput::policy_store_id): <p>The ID of the policy store that contains the schema.</p>
9 /// - [`schema(String)`](crate::operation::get_schema::GetSchemaOutput::schema): <p>The body of the schema, written in Cedar schema JSON.</p>
10 /// - [`created_date(DateTime)`](crate::operation::get_schema::GetSchemaOutput::created_date): <p>The date and time that the schema was originally created.</p>
11 /// - [`last_updated_date(DateTime)`](crate::operation::get_schema::GetSchemaOutput::last_updated_date): <p>The date and time that the schema was most recently updated.</p>
12 /// - [`namespaces(Option<Vec::<String>>)`](crate::operation::get_schema::GetSchemaOutput::namespaces): <p>The namespaces of the entities referenced by this schema.</p>
13 /// - On failure, responds with [`SdkError<GetSchemaError>`](crate::operation::get_schema::GetSchemaError)
14 pub fn get_schema(&self) -> crate::operation::get_schema::builders::GetSchemaFluentBuilder {
15 crate::operation::get_schema::builders::GetSchemaFluentBuilder::new(self.handle.clone())
16 }
17}