Struct aws_sdk_config::operation::start_remediation_execution::builders::StartRemediationExecutionFluentBuilder
source · pub struct StartRemediationExecutionFluentBuilder { /* 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 StartRemediationExecutionFluentBuilder
impl StartRemediationExecutionFluentBuilder
sourcepub fn as_input(&self) -> &StartRemediationExecutionInputBuilder
pub fn as_input(&self) -> &StartRemediationExecutionInputBuilder
Access the StartRemediationExecution as a reference.
sourcepub async fn send(
self
) -> Result<StartRemediationExecutionOutput, SdkError<StartRemediationExecutionError, HttpResponse>>
pub async fn send( self ) -> Result<StartRemediationExecutionOutput, SdkError<StartRemediationExecutionError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<StartRemediationExecutionOutput, StartRemediationExecutionError, Self>
pub fn customize( self ) -> CustomizableOperation<StartRemediationExecutionOutput, StartRemediationExecutionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_config_rule_name(&self) -> &Option<String>
pub fn get_config_rule_name(&self) -> &Option<String>
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.
sourcepub fn get_resource_keys(&self) -> &Option<Vec<ResourceKey>>
pub fn get_resource_keys(&self) -> &Option<Vec<ResourceKey>>
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 StartRemediationExecutionFluentBuilder
impl Clone for StartRemediationExecutionFluentBuilder
source§fn clone(&self) -> StartRemediationExecutionFluentBuilder
fn clone(&self) -> StartRemediationExecutionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more