pub struct StartConfigRulesEvaluation { /* private fields */ }Expand description
Fluent builder constructing a request to StartConfigRulesEvaluation.
Runs an on-demand evaluation for the specified Config rules against the last known configuration state of the resources. Use StartConfigRulesEvaluation when you want to test that a rule you updated is working as expected. StartConfigRulesEvaluation does not re-record the latest configuration state for your resources. It re-runs an evaluation against the last known state of your resources.
You can specify up to 25 Config rules per request.
An existing StartConfigRulesEvaluation call for the specified rules must complete before you can call the API again. If you chose to have Config stream to an Amazon SNS topic, you will receive a ConfigRuleEvaluationStarted notification when the evaluation starts.
You don't need to call the StartConfigRulesEvaluation API to run an evaluation for a new rule. When you create a rule, Config evaluates your resources against the rule automatically.
The StartConfigRulesEvaluation API is useful if you want to run on-demand evaluations, such as the following example:
-
You have a custom rule that evaluates your IAM resources every 24 hours.
-
You update your Lambda function to add additional conditions to your rule.
-
Instead of waiting for the next periodic evaluation, you call the
StartConfigRulesEvaluationAPI. -
Config invokes your Lambda function and evaluates your IAM resources.
-
Your custom rule will still run periodic evaluations every 24 hours.
Implementations§
source§impl StartConfigRulesEvaluation
impl StartConfigRulesEvaluation
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<StartConfigRulesEvaluation, AwsResponseRetryClassifier>, SdkError<StartConfigRulesEvaluationError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<StartConfigRulesEvaluation, AwsResponseRetryClassifier>, SdkError<StartConfigRulesEvaluationError>>
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<StartConfigRulesEvaluationOutput, SdkError<StartConfigRulesEvaluationError>>
pub async fn send(
self
) -> Result<StartConfigRulesEvaluationOutput, SdkError<StartConfigRulesEvaluationError>>
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_names(self, input: impl Into<String>) -> Self
pub fn config_rule_names(self, input: impl Into<String>) -> Self
Appends an item to ConfigRuleNames.
To override the contents of this collection use set_config_rule_names.
The list of names of Config rules that you want to run evaluations for.
sourcepub fn set_config_rule_names(self, input: Option<Vec<String>>) -> Self
pub fn set_config_rule_names(self, input: Option<Vec<String>>) -> Self
The list of names of Config rules that you want to run evaluations for.
Trait Implementations§
source§impl Clone for StartConfigRulesEvaluation
impl Clone for StartConfigRulesEvaluation
source§fn clone(&self) -> StartConfigRulesEvaluation
fn clone(&self) -> StartConfigRulesEvaluation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more