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
impl StructuralPartialEq for UpdatePolicyTemplateInput
Auto Trait Implementations§
impl Freeze for UpdatePolicyTemplateInput
impl RefUnwindSafe for UpdatePolicyTemplateInput
impl Send for UpdatePolicyTemplateInput
impl Sync for UpdatePolicyTemplateInput
impl Unpin for UpdatePolicyTemplateInput
impl UnwindSafe for UpdatePolicyTemplateInput
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