Struct aws_sdk_iot::client::fluent_builders::CreateMitigationAction [−][src]
pub struct CreateMitigationAction<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateMitigationAction
.
Defines an action that can be applied to audit findings by using StartAuditMitigationActionsTask. Only certain types of mitigation actions can be applied to specific check names. For more information, see Mitigation actions. Each mitigation action can apply only one type of change.
Requires permission to access the CreateMitigationAction action.
Implementations
impl<C, M, R> CreateMitigationAction<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateMitigationAction<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateMitigationActionOutput, SdkError<CreateMitigationActionError>> where
R::Policy: SmithyRetryPolicy<CreateMitigationActionInputOperationOutputAlias, CreateMitigationActionOutput, CreateMitigationActionError, CreateMitigationActionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateMitigationActionOutput, SdkError<CreateMitigationActionError>> where
R::Policy: SmithyRetryPolicy<CreateMitigationActionInputOperationOutputAlias, CreateMitigationActionOutput, CreateMitigationActionError, CreateMitigationActionInputOperationRetryAlias>,
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.
A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction
).
A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction
).
The ARN of the IAM role that is used to apply the mitigation action.
The ARN of the IAM role that is used to apply the mitigation action.
Defines the type of action and the parameters for that action.
Defines the type of action and the parameters for that action.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Metadata that can be used to manage the mitigation action.
Metadata that can be used to manage the mitigation action.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateMitigationAction<C, M, R>
impl<C, M, R> Send for CreateMitigationAction<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateMitigationAction<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateMitigationAction<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateMitigationAction<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