pub struct StartRemediationExecution { /* private fields */ }Expand description
Fluent builder constructing a request to StartRemediationExecution.
Runs an on-demand remediation for the specified Config rules against the last known remediation configuration. It runs an execution against the current state of your resources. Remediation execution is asynchronous.
You can specify up to 100 resource keys per request. An existing StartRemediationExecution call for the specified resource keys must complete before you can call the API again.
Implementations§
source§impl StartRemediationExecution
impl StartRemediationExecution
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<StartRemediationExecution, AwsResponseRetryClassifier>, SdkError<StartRemediationExecutionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<StartRemediationExecution, AwsResponseRetryClassifier>, SdkError<StartRemediationExecutionError>>
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<StartRemediationExecutionOutput, SdkError<StartRemediationExecutionError>>
pub async fn send(
self
) -> Result<StartRemediationExecutionOutput, SdkError<StartRemediationExecutionError>>
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 config_rule_name(self, input: impl Into<String>) -> Self
pub fn config_rule_name(self, input: impl Into<String>) -> Self
The list of names of Config rules that you want to run remediation execution for.
sourcepub fn set_config_rule_name(self, input: Option<String>) -> Self
pub fn set_config_rule_name(self, input: Option<String>) -> Self
The list of names of Config rules that you want to run remediation execution for.
sourcepub fn resource_keys(self, input: ResourceKey) -> Self
pub fn resource_keys(self, input: ResourceKey) -> Self
Appends an item to ResourceKeys.
To override the contents of this collection use set_resource_keys.
A list of resource keys to be processed with the current request. Each element in the list consists of the resource type and resource ID.
sourcepub fn set_resource_keys(self, input: Option<Vec<ResourceKey>>) -> Self
pub fn set_resource_keys(self, input: Option<Vec<ResourceKey>>) -> Self
A list of resource keys to be processed with the current request. Each element in the list consists of the resource type and resource ID.
Trait Implementations§
source§impl Clone for StartRemediationExecution
impl Clone for StartRemediationExecution
source§fn clone(&self) -> StartRemediationExecution
fn clone(&self) -> StartRemediationExecution
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more