Struct aws_sdk_verifiedpermissions::operation::update_policy_template::UpdatePolicyTemplateInput
source · #[non_exhaustive]pub struct UpdatePolicyTemplateInput {
pub policy_store_id: Option<String>,
pub policy_template_id: Option<String>,
pub description: Option<String>,
pub statement: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.policy_store_id: Option<String>Specifies the ID of the policy store that contains the policy template that you want to update.
policy_template_id: Option<String>Specifies the ID of the policy template that you want to update.
description: Option<String>Specifies a new description to apply to the policy template.
statement: 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.
Implementations§
source§impl UpdatePolicyTemplateInput
impl UpdatePolicyTemplateInput
sourcepub fn policy_store_id(&self) -> Option<&str>
pub fn policy_store_id(&self) -> Option<&str>
Specifies the ID of the policy store that contains the policy template that you want to update.
sourcepub fn policy_template_id(&self) -> Option<&str>
pub fn policy_template_id(&self) -> Option<&str>
Specifies the ID of the policy template that you want to update.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Specifies a new description to apply to the policy template.
sourcepub fn statement(&self) -> Option<&str>
pub fn statement(&self) -> Option<&str>
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.
source§impl UpdatePolicyTemplateInput
impl UpdatePolicyTemplateInput
sourcepub fn builder() -> UpdatePolicyTemplateInputBuilder
pub fn builder() -> UpdatePolicyTemplateInputBuilder
Creates a new builder-style object to manufacture UpdatePolicyTemplateInput.
Trait Implementations§
source§impl Clone for UpdatePolicyTemplateInput
impl Clone for UpdatePolicyTemplateInput
source§fn clone(&self) -> UpdatePolicyTemplateInput
fn clone(&self) -> UpdatePolicyTemplateInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdatePolicyTemplateInput
impl Debug for UpdatePolicyTemplateInput
source§impl PartialEq for UpdatePolicyTemplateInput
impl PartialEq for UpdatePolicyTemplateInput
source§fn eq(&self, other: &UpdatePolicyTemplateInput) -> bool
fn eq(&self, other: &UpdatePolicyTemplateInput) -> bool
self and other values to be equal, and is used
by ==.