Struct aws_sdk_iot::client::fluent_builders::CreatePolicyVersion [−][src]
pub struct CreatePolicyVersion<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreatePolicyVersion
.
Creates a new version of the specified IoT policy. To update a policy, create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must use DeletePolicyVersion
to delete an existing version before you create a new one.
Optionally, you can set the new version as the policy's default version. The default version is the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
Requires permission to access the CreatePolicyVersion action.
Implementations
impl<C, M, R> CreatePolicyVersion<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreatePolicyVersion<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreatePolicyVersionOutput, SdkError<CreatePolicyVersionError>> where
R::Policy: SmithyRetryPolicy<CreatePolicyVersionInputOperationOutputAlias, CreatePolicyVersionOutput, CreatePolicyVersionError, CreatePolicyVersionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreatePolicyVersionOutput, SdkError<CreatePolicyVersionError>> where
R::Policy: SmithyRetryPolicy<CreatePolicyVersionInputOperationOutputAlias, CreatePolicyVersionOutput, CreatePolicyVersionError, CreatePolicyVersionInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The policy name.
The policy name.
The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.
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).
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
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreatePolicyVersion<C, M, R>
impl<C, M, R> Send for CreatePolicyVersion<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreatePolicyVersion<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreatePolicyVersion<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreatePolicyVersion<C, M, R>
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