#[non_exhaustive]pub struct CreatePolicyInput {
pub client_token: Option<String>,
pub policy_store_id: Option<String>,
pub definition: Option<PolicyDefinition>,
}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.client_token: Option<String>Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.
policy_store_id: Option<String>Specifies the PolicyStoreId of the policy store you want to store the policy in.
definition: Option<PolicyDefinition>A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.
Implementations§
source§impl CreatePolicyInput
impl CreatePolicyInput
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.
sourcepub fn policy_store_id(&self) -> Option<&str>
pub fn policy_store_id(&self) -> Option<&str>
Specifies the PolicyStoreId of the policy store you want to store the policy in.
sourcepub fn definition(&self) -> Option<&PolicyDefinition>
pub fn definition(&self) -> Option<&PolicyDefinition>
A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.
source§impl CreatePolicyInput
impl CreatePolicyInput
sourcepub fn builder() -> CreatePolicyInputBuilder
pub fn builder() -> CreatePolicyInputBuilder
Creates a new builder-style object to manufacture CreatePolicyInput.
Trait Implementations§
source§impl Clone for CreatePolicyInput
impl Clone for CreatePolicyInput
source§fn clone(&self) -> CreatePolicyInput
fn clone(&self) -> CreatePolicyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreatePolicyInput
impl Debug for CreatePolicyInput
source§impl PartialEq for CreatePolicyInput
impl PartialEq for CreatePolicyInput
source§fn eq(&self, other: &CreatePolicyInput) -> bool
fn eq(&self, other: &CreatePolicyInput) -> bool
self and other values to be equal, and is used
by ==.