#[non_exhaustive]pub struct CreatePolicyStoreInput {
pub client_token: Option<String>,
pub validation_settings: Option<ValidationSettings>,
}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.
validation_settings: Option<ValidationSettings>Specifies the validation setting for this policy store.
Currently, the only valid and required value is Mode.
We recommend that you turn on STRICT mode only after you define a schema. If a schema doesn't exist, then STRICT mode causes any policy to fail validation, and Verified Permissions rejects the policy. You can turn off validation by using the UpdatePolicyStore. Then, when you have a schema defined, use UpdatePolicyStore again to turn validation back on.
Implementations§
source§impl CreatePolicyStoreInput
impl CreatePolicyStoreInput
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 validation_settings(&self) -> Option<&ValidationSettings>
pub fn validation_settings(&self) -> Option<&ValidationSettings>
Specifies the validation setting for this policy store.
Currently, the only valid and required value is Mode.
We recommend that you turn on STRICT mode only after you define a schema. If a schema doesn't exist, then STRICT mode causes any policy to fail validation, and Verified Permissions rejects the policy. You can turn off validation by using the UpdatePolicyStore. Then, when you have a schema defined, use UpdatePolicyStore again to turn validation back on.
source§impl CreatePolicyStoreInput
impl CreatePolicyStoreInput
sourcepub fn builder() -> CreatePolicyStoreInputBuilder
pub fn builder() -> CreatePolicyStoreInputBuilder
Creates a new builder-style object to manufacture CreatePolicyStoreInput.
Trait Implementations§
source§impl Clone for CreatePolicyStoreInput
impl Clone for CreatePolicyStoreInput
source§fn clone(&self) -> CreatePolicyStoreInput
fn clone(&self) -> CreatePolicyStoreInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreatePolicyStoreInput
impl Debug for CreatePolicyStoreInput
source§impl PartialEq for CreatePolicyStoreInput
impl PartialEq for CreatePolicyStoreInput
source§fn eq(&self, other: &CreatePolicyStoreInput) -> bool
fn eq(&self, other: &CreatePolicyStoreInput) -> bool
self and other values to be equal, and is used
by ==.