Struct aws_sdk_iot::client::fluent_builders::CreateMitigationAction
source · pub struct CreateMitigationAction { /* private fields */ }
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§
source§impl CreateMitigationAction
impl CreateMitigationAction
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateMitigationAction, AwsResponseRetryClassifier>, SdkError<CreateMitigationActionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateMitigationAction, AwsResponseRetryClassifier>, SdkError<CreateMitigationActionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateMitigationActionOutput, SdkError<CreateMitigationActionError>>
pub async fn send(
self
) -> Result<CreateMitigationActionOutput, SdkError<CreateMitigationActionError>>
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.
sourcepub fn action_name(self, input: impl Into<String>) -> Self
pub fn action_name(self, input: impl Into<String>) -> Self
A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction
).
sourcepub fn set_action_name(self, input: Option<String>) -> Self
pub fn set_action_name(self, input: Option<String>) -> Self
A friendly name for the action. Choose a friendly name that accurately describes the action (for example, EnableLoggingAction
).
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM role that is used to apply the mitigation action.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the IAM role that is used to apply the mitigation action.
sourcepub fn action_params(self, input: MitigationActionParams) -> Self
pub fn action_params(self, input: MitigationActionParams) -> Self
Defines the type of action and the parameters for that action.
sourcepub fn set_action_params(self, input: Option<MitigationActionParams>) -> Self
pub fn set_action_params(self, input: Option<MitigationActionParams>) -> Self
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§
source§impl Clone for CreateMitigationAction
impl Clone for CreateMitigationAction
source§fn clone(&self) -> CreateMitigationAction
fn clone(&self) -> CreateMitigationAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more