#[non_exhaustive]pub struct CreatePolicyVersionInput {
pub policy_name: Option<String>,
pub policy_document: Option<String>,
pub set_as_default: Option<bool>,
}
Expand description
The input for the CreatePolicyVersion operation.
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_name: Option<String>
The policy name.
policy_document: Option<String>
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.
set_as_default: Option<bool>
Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
Implementations§
source§impl CreatePolicyVersionInput
impl CreatePolicyVersionInput
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The policy name.
sourcepub fn policy_document(&self) -> Option<&str>
pub fn policy_document(&self) -> Option<&str>
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.
sourcepub fn set_as_default(&self) -> Option<bool>
pub fn set_as_default(&self) -> Option<bool>
Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
source§impl CreatePolicyVersionInput
impl CreatePolicyVersionInput
sourcepub fn builder() -> CreatePolicyVersionInputBuilder
pub fn builder() -> CreatePolicyVersionInputBuilder
Creates a new builder-style object to manufacture CreatePolicyVersionInput
.
Trait Implementations§
source§impl Clone for CreatePolicyVersionInput
impl Clone for CreatePolicyVersionInput
source§fn clone(&self) -> CreatePolicyVersionInput
fn clone(&self) -> CreatePolicyVersionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreatePolicyVersionInput
impl Debug for CreatePolicyVersionInput
source§impl PartialEq for CreatePolicyVersionInput
impl PartialEq for CreatePolicyVersionInput
source§fn eq(&self, other: &CreatePolicyVersionInput) -> bool
fn eq(&self, other: &CreatePolicyVersionInput) -> bool
self
and other
values to be equal, and is used
by ==
.