Struct aws_sdk_config::types::builders::EvaluationBuilder
source · #[non_exhaustive]pub struct EvaluationBuilder { /* private fields */ }Expand description
A builder for Evaluation.
Implementations§
source§impl EvaluationBuilder
impl EvaluationBuilder
sourcepub fn compliance_resource_type(self, input: impl Into<String>) -> Self
pub fn compliance_resource_type(self, input: impl Into<String>) -> Self
The type of Amazon Web Services resource that was evaluated.
This field is required.sourcepub fn set_compliance_resource_type(self, input: Option<String>) -> Self
pub fn set_compliance_resource_type(self, input: Option<String>) -> Self
The type of Amazon Web Services resource that was evaluated.
sourcepub fn get_compliance_resource_type(&self) -> &Option<String>
pub fn get_compliance_resource_type(&self) -> &Option<String>
The type of Amazon Web Services resource that was evaluated.
sourcepub fn compliance_resource_id(self, input: impl Into<String>) -> Self
pub fn compliance_resource_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services resource that was evaluated.
This field is required.sourcepub fn set_compliance_resource_id(self, input: Option<String>) -> Self
pub fn set_compliance_resource_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services resource that was evaluated.
sourcepub fn get_compliance_resource_id(&self) -> &Option<String>
pub fn get_compliance_resource_id(&self) -> &Option<String>
The ID of the Amazon Web Services resource that was evaluated.
sourcepub fn compliance_type(self, input: ComplianceType) -> Self
pub fn compliance_type(self, input: ComplianceType) -> Self
Indicates whether the Amazon Web Services resource complies with the Config rule that it was evaluated against.
For the Evaluation data type, Config supports only the COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE values. Config does not support the INSUFFICIENT_DATA value for this data type.
Similarly, Config does not accept INSUFFICIENT_DATA as the value for ComplianceType from a PutEvaluations request. For example, an Lambda function for a custom Config rule cannot pass an INSUFFICIENT_DATA value to Config.
sourcepub fn set_compliance_type(self, input: Option<ComplianceType>) -> Self
pub fn set_compliance_type(self, input: Option<ComplianceType>) -> Self
Indicates whether the Amazon Web Services resource complies with the Config rule that it was evaluated against.
For the Evaluation data type, Config supports only the COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE values. Config does not support the INSUFFICIENT_DATA value for this data type.
Similarly, Config does not accept INSUFFICIENT_DATA as the value for ComplianceType from a PutEvaluations request. For example, an Lambda function for a custom Config rule cannot pass an INSUFFICIENT_DATA value to Config.
sourcepub fn get_compliance_type(&self) -> &Option<ComplianceType>
pub fn get_compliance_type(&self) -> &Option<ComplianceType>
Indicates whether the Amazon Web Services resource complies with the Config rule that it was evaluated against.
For the Evaluation data type, Config supports only the COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE values. Config does not support the INSUFFICIENT_DATA value for this data type.
Similarly, Config does not accept INSUFFICIENT_DATA as the value for ComplianceType from a PutEvaluations request. For example, an Lambda function for a custom Config rule cannot pass an INSUFFICIENT_DATA value to Config.
sourcepub fn annotation(self, input: impl Into<String>) -> Self
pub fn annotation(self, input: impl Into<String>) -> Self
Supplementary information about how the evaluation determined the compliance.
sourcepub fn set_annotation(self, input: Option<String>) -> Self
pub fn set_annotation(self, input: Option<String>) -> Self
Supplementary information about how the evaluation determined the compliance.
sourcepub fn get_annotation(&self) -> &Option<String>
pub fn get_annotation(&self) -> &Option<String>
Supplementary information about how the evaluation determined the compliance.
sourcepub fn ordering_timestamp(self, input: DateTime) -> Self
pub fn ordering_timestamp(self, input: DateTime) -> Self
The time of the event in Config that triggered the evaluation. For event-based evaluations, the time indicates when Config created the configuration item that triggered the evaluation. For periodic evaluations, the time indicates when Config triggered the evaluation at the frequency that you specified (for example, every 24 hours).
This field is required.sourcepub fn set_ordering_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_ordering_timestamp(self, input: Option<DateTime>) -> Self
The time of the event in Config that triggered the evaluation. For event-based evaluations, the time indicates when Config created the configuration item that triggered the evaluation. For periodic evaluations, the time indicates when Config triggered the evaluation at the frequency that you specified (for example, every 24 hours).
sourcepub fn get_ordering_timestamp(&self) -> &Option<DateTime>
pub fn get_ordering_timestamp(&self) -> &Option<DateTime>
The time of the event in Config that triggered the evaluation. For event-based evaluations, the time indicates when Config created the configuration item that triggered the evaluation. For periodic evaluations, the time indicates when Config triggered the evaluation at the frequency that you specified (for example, every 24 hours).
sourcepub fn build(self) -> Result<Evaluation, BuildError>
pub fn build(self) -> Result<Evaluation, BuildError>
Consumes the builder and constructs a Evaluation.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EvaluationBuilder
impl Clone for EvaluationBuilder
source§fn clone(&self) -> EvaluationBuilder
fn clone(&self) -> EvaluationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EvaluationBuilder
impl Debug for EvaluationBuilder
source§impl Default for EvaluationBuilder
impl Default for EvaluationBuilder
source§fn default() -> EvaluationBuilder
fn default() -> EvaluationBuilder
source§impl PartialEq for EvaluationBuilder
impl PartialEq for EvaluationBuilder
source§fn eq(&self, other: &EvaluationBuilder) -> bool
fn eq(&self, other: &EvaluationBuilder) -> bool
self and other values to be equal, and is used
by ==.