Struct aws_sdk_iot::input::CreatePolicyVersionInput [−][src]
#[non_exhaustive]pub struct CreatePolicyVersionInput {
pub policy_name: Option<String>,
pub policy_document: Option<String>,
pub set_as_default: 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: 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
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreatePolicyVersion, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreatePolicyVersion, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreatePolicyVersion
>
Creates a new builder-style object to manufacture CreatePolicyVersionInput
The policy name.
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.
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).
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CreatePolicyVersionInput
impl Send for CreatePolicyVersionInput
impl Sync for CreatePolicyVersionInput
impl Unpin for CreatePolicyVersionInput
impl UnwindSafe for CreatePolicyVersionInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more