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 ConflictException error.
Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.
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 ConflictException error.
Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.
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
impl StructuralPartialEq for CreatePolicyTemplateInput
Auto Trait Implementations§
impl Freeze for CreatePolicyTemplateInput
impl RefUnwindSafe for CreatePolicyTemplateInput
impl Send for CreatePolicyTemplateInput
impl Sync for CreatePolicyTemplateInput
impl Unpin for CreatePolicyTemplateInput
impl UnwindSafe for CreatePolicyTemplateInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more