#[non_exhaustive]pub struct UpdateStaticPolicyDefinition {
pub description: Option<String>,
pub statement: String,
}Expand description
Contains information about an update to a static policy.
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.description: Option<String>Specifies the description to be added to or replaced on the static policy.
statement: StringSpecifies 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.
Implementations§
source§impl UpdateStaticPolicyDefinition
impl UpdateStaticPolicyDefinition
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Specifies the description to be added to or replaced on the static policy.
sourcepub fn statement(&self) -> &str
pub fn statement(&self) -> &str
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.
source§impl UpdateStaticPolicyDefinition
impl UpdateStaticPolicyDefinition
sourcepub fn builder() -> UpdateStaticPolicyDefinitionBuilder
pub fn builder() -> UpdateStaticPolicyDefinitionBuilder
Creates a new builder-style object to manufacture UpdateStaticPolicyDefinition.
Trait Implementations§
source§impl Clone for UpdateStaticPolicyDefinition
impl Clone for UpdateStaticPolicyDefinition
source§fn clone(&self) -> UpdateStaticPolicyDefinition
fn clone(&self) -> UpdateStaticPolicyDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateStaticPolicyDefinition
impl Debug for UpdateStaticPolicyDefinition
source§impl PartialEq for UpdateStaticPolicyDefinition
impl PartialEq for UpdateStaticPolicyDefinition
source§fn eq(&self, other: &UpdateStaticPolicyDefinition) -> bool
fn eq(&self, other: &UpdateStaticPolicyDefinition) -> bool
self and other values to be equal, and is used
by ==.