Struct aws_sdk_verifiedpermissions::operation::update_policy_template::builders::UpdatePolicyTemplateFluentBuilder
source · pub struct UpdatePolicyTemplateFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to UpdatePolicyTemplate.
Updates the specified policy template. You can update only the description and the some elements of the policyBody.
Changes you make to the policy template content are immediately (within the constraints of eventual consistency) reflected in authorization decisions that involve all template-linked policies instantiated from this template.
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 UpdatePolicyTemplateFluentBuilder
impl UpdatePolicyTemplateFluentBuilder
sourcepub fn as_input(&self) -> &UpdatePolicyTemplateInputBuilder
pub fn as_input(&self) -> &UpdatePolicyTemplateInputBuilder
Access the UpdatePolicyTemplate as a reference.
sourcepub async fn send(
self
) -> Result<UpdatePolicyTemplateOutput, SdkError<UpdatePolicyTemplateError, HttpResponse>>
pub async fn send( self ) -> Result<UpdatePolicyTemplateOutput, SdkError<UpdatePolicyTemplateError, 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<UpdatePolicyTemplateOutput, UpdatePolicyTemplateError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdatePolicyTemplateOutput, UpdatePolicyTemplateError, 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 that contains the policy template that you want to update.
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 that contains the policy template that you want to update.
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 that contains the policy template that you want to update.
sourcepub fn policy_template_id(self, input: impl Into<String>) -> Self
pub fn policy_template_id(self, input: impl Into<String>) -> Self
Specifies the ID of the policy template that you want to update.
sourcepub fn set_policy_template_id(self, input: Option<String>) -> Self
pub fn set_policy_template_id(self, input: Option<String>) -> Self
Specifies the ID of the policy template that you want to update.
sourcepub fn get_policy_template_id(&self) -> &Option<String>
pub fn get_policy_template_id(&self) -> &Option<String>
Specifies the ID of the policy template that you want to update.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Specifies a new description to apply to the policy template.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Specifies a new description to apply to the policy template.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Specifies a new description to apply to the policy template.
sourcepub fn statement(self, input: impl Into<String>) -> Self
pub fn statement(self, input: impl Into<String>) -> Self
Specifies new statement content written in Cedar policy language to replace the current body of the policy template.
You can change only the following elements of the policy body:
-
The
actionreferenced by the policy template. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
The effect (
permitorforbid) of the policy template. -
The
principalreferenced by the policy template. -
The
resourcereferenced by the policy template.
sourcepub fn set_statement(self, input: Option<String>) -> Self
pub fn set_statement(self, input: Option<String>) -> Self
Specifies new statement content written in Cedar policy language to replace the current body of the policy template.
You can change only the following elements of the policy body:
-
The
actionreferenced by the policy template. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
The effect (
permitorforbid) of the policy template. -
The
principalreferenced by the policy template. -
The
resourcereferenced by the policy template.
sourcepub fn get_statement(&self) -> &Option<String>
pub fn get_statement(&self) -> &Option<String>
Specifies new statement content written in Cedar policy language to replace the current body of the policy template.
You can change only the following elements of the policy body:
-
The
actionreferenced by the policy template. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
The effect (
permitorforbid) of the policy template. -
The
principalreferenced by the policy template. -
The
resourcereferenced by the policy template.
Trait Implementations§
source§impl Clone for UpdatePolicyTemplateFluentBuilder
impl Clone for UpdatePolicyTemplateFluentBuilder
source§fn clone(&self) -> UpdatePolicyTemplateFluentBuilder
fn clone(&self) -> UpdatePolicyTemplateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more