#[non_exhaustive]pub struct UpdatePolicyInput {
pub policy_store_id: Option<String>,
pub policy_id: Option<String>,
pub definition: Option<UpdatePolicyDefinition>,
}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 that you want to update.
policy_id: Option<String>Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
definition: Option<UpdatePolicyDefinition>Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.
You can change only the following elements from the policy definition:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
statictotemplateLinked. -
Changing the effect of the policy from
permitorforbid. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
Implementations§
source§impl UpdatePolicyInput
impl UpdatePolicyInput
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 that you want to update.
sourcepub fn policy_id(&self) -> Option<&str>
pub fn policy_id(&self) -> Option<&str>
Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
sourcepub fn definition(&self) -> Option<&UpdatePolicyDefinition>
pub fn definition(&self) -> Option<&UpdatePolicyDefinition>
Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.
You can change only the following elements from the policy definition:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
statictotemplateLinked. -
Changing the effect of the policy from
permitorforbid. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
source§impl UpdatePolicyInput
impl UpdatePolicyInput
sourcepub fn builder() -> UpdatePolicyInputBuilder
pub fn builder() -> UpdatePolicyInputBuilder
Creates a new builder-style object to manufacture UpdatePolicyInput.
Trait Implementations§
source§impl Clone for UpdatePolicyInput
impl Clone for UpdatePolicyInput
source§fn clone(&self) -> UpdatePolicyInput
fn clone(&self) -> UpdatePolicyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdatePolicyInput
impl Debug for UpdatePolicyInput
source§impl PartialEq for UpdatePolicyInput
impl PartialEq for UpdatePolicyInput
source§fn eq(&self, other: &UpdatePolicyInput) -> bool
fn eq(&self, other: &UpdatePolicyInput) -> bool
self and other values to be equal, and is used
by ==.