Struct aws_sdk_iot::client::fluent_builders::UpdateMitigationAction
source · pub struct UpdateMitigationAction { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateMitigationAction
.
Updates the definition for the specified mitigation action.
Requires permission to access the UpdateMitigationAction action.
Implementations§
source§impl UpdateMitigationAction
impl UpdateMitigationAction
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateMitigationAction, AwsResponseRetryClassifier>, SdkError<UpdateMitigationActionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateMitigationAction, AwsResponseRetryClassifier>, SdkError<UpdateMitigationActionError>>
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<UpdateMitigationActionOutput, SdkError<UpdateMitigationActionError>>
pub async fn send(
self
) -> Result<UpdateMitigationActionOutput, SdkError<UpdateMitigationActionError>>
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
The friendly name for the mitigation action. You cannot change the name by using UpdateMitigationAction
. Instead, you must delete and recreate the mitigation action with the new name.
sourcepub fn set_action_name(self, input: Option<String>) -> Self
pub fn set_action_name(self, input: Option<String>) -> Self
The friendly name for the mitigation action. You cannot change the name by using UpdateMitigationAction
. Instead, you must delete and recreate the mitigation action with the new name.
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.
Trait Implementations§
source§impl Clone for UpdateMitigationAction
impl Clone for UpdateMitigationAction
source§fn clone(&self) -> UpdateMitigationAction
fn clone(&self) -> UpdateMitigationAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more