Struct aws_sdk_verifiedpermissions::operation::create_policy_template::CreatePolicyTemplateInput
source · #[non_exhaustive]pub struct CreatePolicyTemplateInput {
pub client_token: Option<String>,
pub policy_store_id: Option<String>,
pub description: Option<String>,
pub statement: Option<String>,
}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>The ID of the policy store in which to create the policy template.
description: Option<String>Specifies a description for the policy template.
statement: Option<String>Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
Implementations§
source§impl CreatePolicyTemplateInput
impl CreatePolicyTemplateInput
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>
The ID of the policy store in which to create the policy template.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Specifies a description for the policy template.
source§impl CreatePolicyTemplateInput
impl CreatePolicyTemplateInput
sourcepub fn builder() -> CreatePolicyTemplateInputBuilder
pub fn builder() -> CreatePolicyTemplateInputBuilder
Creates a new builder-style object to manufacture CreatePolicyTemplateInput.
Trait Implementations§
source§impl Clone for CreatePolicyTemplateInput
impl Clone for CreatePolicyTemplateInput
source§fn clone(&self) -> CreatePolicyTemplateInput
fn clone(&self) -> CreatePolicyTemplateInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreatePolicyTemplateInput
impl Debug for CreatePolicyTemplateInput
source§impl PartialEq for CreatePolicyTemplateInput
impl PartialEq for CreatePolicyTemplateInput
source§fn eq(&self, other: &CreatePolicyTemplateInput) -> bool
fn eq(&self, other: &CreatePolicyTemplateInput) -> bool
self and other values to be equal, and is used
by ==.