aws_sdk_verifiedpermissions/client/
put_schema.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutSchema`](crate::operation::put_schema::builders::PutSchemaFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`PutSchemaOutput`](crate::operation::put_schema::PutSchemaOutput) with field(s):
    ///   - [`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>
    ///   - [`namespaces(Vec::<String>)`](crate::operation::put_schema::PutSchemaOutput::namespaces): <p>Identifies the namespaces of the entities referenced by this schema.</p>
    ///   - [`created_date(DateTime)`](crate::operation::put_schema::PutSchemaOutput::created_date): <p>The date and time that the schema was originally created.</p>
    ///   - [`last_updated_date(DateTime)`](crate::operation::put_schema::PutSchemaOutput::last_updated_date): <p>The date and time that the schema was last updated.</p>
    /// - On failure, responds with [`SdkError<PutSchemaError>`](crate::operation::put_schema::PutSchemaError)
    pub fn put_schema(&self) -> crate::operation::put_schema::builders::PutSchemaFluentBuilder {
        crate::operation::put_schema::builders::PutSchemaFluentBuilder::new(self.handle.clone())
    }
}