pub struct StartResourceEvaluation { /* private fields */ }Expand description
Fluent builder constructing a request to StartResourceEvaluation.
Runs an on-demand evaluation for the specified resource to determine whether the resource details will comply with configured Config rules. You can also use it for evaluation purposes. Config recommends using an evaluation context. It runs an execution against the resource details with all of the Config rules in your account that match with the specified proactive mode and resource type.
Ensure you have the cloudformation:DescribeType role setup to validate the resource type schema.
Implementations§
source§impl StartResourceEvaluation
impl StartResourceEvaluation
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<StartResourceEvaluation, AwsResponseRetryClassifier>, SdkError<StartResourceEvaluationError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<StartResourceEvaluation, AwsResponseRetryClassifier>, SdkError<StartResourceEvaluationError>>
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<StartResourceEvaluationOutput, SdkError<StartResourceEvaluationError>>
pub async fn send(
self
) -> Result<StartResourceEvaluationOutput, SdkError<StartResourceEvaluationError>>
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 resource_details(self, input: ResourceDetails) -> Self
pub fn resource_details(self, input: ResourceDetails) -> Self
Returns a ResourceDetails object.
sourcepub fn set_resource_details(self, input: Option<ResourceDetails>) -> Self
pub fn set_resource_details(self, input: Option<ResourceDetails>) -> Self
Returns a ResourceDetails object.
sourcepub fn evaluation_context(self, input: EvaluationContext) -> Self
pub fn evaluation_context(self, input: EvaluationContext) -> Self
Returns an EvaluationContext object.
sourcepub fn set_evaluation_context(self, input: Option<EvaluationContext>) -> Self
pub fn set_evaluation_context(self, input: Option<EvaluationContext>) -> Self
Returns an EvaluationContext object.
sourcepub fn evaluation_mode(self, input: EvaluationMode) -> Self
pub fn evaluation_mode(self, input: EvaluationMode) -> Self
The mode of an evaluation. The valid value for this API is Proactive.
sourcepub fn set_evaluation_mode(self, input: Option<EvaluationMode>) -> Self
pub fn set_evaluation_mode(self, input: Option<EvaluationMode>) -> Self
The mode of an evaluation. The valid value for this API is Proactive.
sourcepub fn evaluation_timeout(self, input: i32) -> Self
pub fn evaluation_timeout(self, input: i32) -> Self
The timeout for an evaluation. The default is 900 seconds. You cannot specify a number greater than 3600. If you specify 0, Config uses the default.
sourcepub fn set_evaluation_timeout(self, input: Option<i32>) -> Self
pub fn set_evaluation_timeout(self, input: Option<i32>) -> Self
The timeout for an evaluation. The default is 900 seconds. You cannot specify a number greater than 3600. If you specify 0, Config uses the default.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A client token is a unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request using one of these actions, specify a client token in the request.
Avoid reusing the same client token for other API requests. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, other than the Region or Availability Zone, the retry fails with an IdempotentParameterMismatch error.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A client token is a unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request using one of these actions, specify a client token in the request.
Avoid reusing the same client token for other API requests. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, other than the Region or Availability Zone, the retry fails with an IdempotentParameterMismatch error.
Trait Implementations§
source§impl Clone for StartResourceEvaluation
impl Clone for StartResourceEvaluation
source§fn clone(&self) -> StartResourceEvaluation
fn clone(&self) -> StartResourceEvaluation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more