#[non_exhaustive]pub struct UpdateStaticPolicyDefinitionBuilder { /* private fields */ }Expand description
A builder for UpdateStaticPolicyDefinition.
Implementations§
source§impl UpdateStaticPolicyDefinitionBuilder
impl UpdateStaticPolicyDefinitionBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Specifies the description to be added to or replaced on the static policy.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Specifies the description to be added to or replaced on the static policy.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Specifies the description to be added to or replaced on the static policy.
sourcepub fn statement(self, input: impl Into<String>) -> Self
pub fn statement(self, input: impl Into<String>) -> Self
Specifies the Cedar policy language text to be added to or replaced on the static policy.
You can change only the following elements from the original content:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
StaticPolicytoTemplateLinkedPolicy. -
The effect (
permitorforbid) of the policy. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
sourcepub fn set_statement(self, input: Option<String>) -> Self
pub fn set_statement(self, input: Option<String>) -> Self
Specifies the Cedar policy language text to be added to or replaced on the static policy.
You can change only the following elements from the original content:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
StaticPolicytoTemplateLinkedPolicy. -
The effect (
permitorforbid) of the policy. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
sourcepub fn get_statement(&self) -> &Option<String>
pub fn get_statement(&self) -> &Option<String>
Specifies the Cedar policy language text to be added to or replaced on the static policy.
You can change only the following elements from the original content:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
StaticPolicytoTemplateLinkedPolicy. -
The effect (
permitorforbid) of the policy. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
sourcepub fn build(self) -> Result<UpdateStaticPolicyDefinition, BuildError>
pub fn build(self) -> Result<UpdateStaticPolicyDefinition, BuildError>
Consumes the builder and constructs a UpdateStaticPolicyDefinition.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for UpdateStaticPolicyDefinitionBuilder
impl Clone for UpdateStaticPolicyDefinitionBuilder
source§fn clone(&self) -> UpdateStaticPolicyDefinitionBuilder
fn clone(&self) -> UpdateStaticPolicyDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdateStaticPolicyDefinitionBuilder
impl Default for UpdateStaticPolicyDefinitionBuilder
source§fn default() -> UpdateStaticPolicyDefinitionBuilder
fn default() -> UpdateStaticPolicyDefinitionBuilder
source§impl PartialEq for UpdateStaticPolicyDefinitionBuilder
impl PartialEq for UpdateStaticPolicyDefinitionBuilder
source§fn eq(&self, other: &UpdateStaticPolicyDefinitionBuilder) -> bool
fn eq(&self, other: &UpdateStaticPolicyDefinitionBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateStaticPolicyDefinitionBuilder
Auto Trait Implementations§
impl Freeze for UpdateStaticPolicyDefinitionBuilder
impl RefUnwindSafe for UpdateStaticPolicyDefinitionBuilder
impl Send for UpdateStaticPolicyDefinitionBuilder
impl Sync for UpdateStaticPolicyDefinitionBuilder
impl Unpin for UpdateStaticPolicyDefinitionBuilder
impl UnwindSafe for UpdateStaticPolicyDefinitionBuilder
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