pub struct PutSchemaFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to PutSchema.
Creates or updates the policy schema in the specified policy store. The schema is used to validate any Cedar policies and policy templates submitted to the policy store. Any changes to the schema validate only policies and templates submitted after the schema change. Existing policies and templates are not re-evaluated against the changed schema. If you later update a policy, then it is evaluated against the new schema at that time.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
Implementations§
source§impl PutSchemaFluentBuilder
impl PutSchemaFluentBuilder
sourcepub fn as_input(&self) -> &PutSchemaInputBuilder
pub fn as_input(&self) -> &PutSchemaInputBuilder
Access the PutSchema as a reference.
sourcepub async fn send(
self
) -> Result<PutSchemaOutput, SdkError<PutSchemaError, HttpResponse>>
pub async fn send( self ) -> Result<PutSchemaOutput, SdkError<PutSchemaError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<PutSchemaOutput, PutSchemaError, Self>
pub fn customize( self ) -> CustomizableOperation<PutSchemaOutput, PutSchemaError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn policy_store_id(self, input: impl Into<String>) -> Self
pub fn policy_store_id(self, input: impl Into<String>) -> Self
Specifies the ID of the policy store in which to place the schema.
sourcepub fn set_policy_store_id(self, input: Option<String>) -> Self
pub fn set_policy_store_id(self, input: Option<String>) -> Self
Specifies the ID of the policy store in which to place the schema.
sourcepub fn get_policy_store_id(&self) -> &Option<String>
pub fn get_policy_store_id(&self) -> &Option<String>
Specifies the ID of the policy store in which to place the schema.
sourcepub fn definition(self, input: SchemaDefinition) -> Self
pub fn definition(self, input: SchemaDefinition) -> Self
Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.
sourcepub fn set_definition(self, input: Option<SchemaDefinition>) -> Self
pub fn set_definition(self, input: Option<SchemaDefinition>) -> Self
Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.
sourcepub fn get_definition(&self) -> &Option<SchemaDefinition>
pub fn get_definition(&self) -> &Option<SchemaDefinition>
Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.
Trait Implementations§
source§impl Clone for PutSchemaFluentBuilder
impl Clone for PutSchemaFluentBuilder
source§fn clone(&self) -> PutSchemaFluentBuilder
fn clone(&self) -> PutSchemaFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more