#[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 ==.