pub struct StartConfigRulesEvaluation<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* 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
impl<C, M, R> StartConfigRulesEvaluation<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> StartConfigRulesEvaluation<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<StartConfigRulesEvaluationOutput, SdkError<StartConfigRulesEvaluationError>> where
R::Policy: SmithyRetryPolicy<StartConfigRulesEvaluationInputOperationOutputAlias, StartConfigRulesEvaluationOutput, StartConfigRulesEvaluationError, StartConfigRulesEvaluationInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<StartConfigRulesEvaluationOutput, SdkError<StartConfigRulesEvaluationError>> where
R::Policy: SmithyRetryPolicy<StartConfigRulesEvaluationInputOperationOutputAlias, StartConfigRulesEvaluationOutput, StartConfigRulesEvaluationError, StartConfigRulesEvaluationInputOperationRetryAlias>,
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.
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.
The list of names of Config rules that you want to run evaluations for.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for StartConfigRulesEvaluation<C, M, R>
impl<C, M, R> Send for StartConfigRulesEvaluation<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for StartConfigRulesEvaluation<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for StartConfigRulesEvaluation<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for StartConfigRulesEvaluation<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more