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 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 moreAuto Trait Implementations§
impl Freeze for PutSchemaFluentBuilder
impl !RefUnwindSafe for PutSchemaFluentBuilder
impl Send for PutSchemaFluentBuilder
impl Sync for PutSchemaFluentBuilder
impl Unpin for PutSchemaFluentBuilder
impl !UnwindSafe for PutSchemaFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more