Struct aws_sdk_config::input::PutEvaluationsInput
source · #[non_exhaustive]pub struct PutEvaluationsInput { /* private fields */ }Expand description
Implementations§
source§impl PutEvaluationsInput
impl PutEvaluationsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutEvaluations, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutEvaluations, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutEvaluations>
Examples found in repository?
9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutEvaluations,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutEvaluationsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutEvaluationsOutput,
aws_smithy_http::result::SdkError<crate::error::PutEvaluationsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PutEvaluationsInput.
source§impl PutEvaluationsInput
impl PutEvaluationsInput
sourcepub fn evaluations(&self) -> Option<&[Evaluation]>
pub fn evaluations(&self) -> Option<&[Evaluation]>
The assessments that the Lambda function performs. Each evaluation identifies an Amazon Web Services resource and indicates whether it complies with the Config rule that invokes the Lambda function.
sourcepub fn result_token(&self) -> Option<&str>
pub fn result_token(&self) -> Option<&str>
An encrypted token that associates an evaluation with an Config rule. Identifies the rule and the event that triggered the evaluation.
sourcepub fn test_mode(&self) -> bool
pub fn test_mode(&self) -> bool
Use this parameter to specify a test run for PutEvaluations. You can verify whether your Lambda function will deliver evaluation results to Config. No updates occur to your existing evaluations, and evaluation results are not sent to Config.
When TestMode is true, PutEvaluations doesn't require a valid value for the ResultToken parameter, but the value cannot be null.
Trait Implementations§
source§impl Clone for PutEvaluationsInput
impl Clone for PutEvaluationsInput
source§fn clone(&self) -> PutEvaluationsInput
fn clone(&self) -> PutEvaluationsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more