Struct aws_sdk_config::types::Evaluation
source · #[non_exhaustive]pub struct Evaluation {
pub compliance_resource_type: String,
pub compliance_resource_id: String,
pub compliance_type: ComplianceType,
pub annotation: Option<String>,
pub ordering_timestamp: DateTime,
}Expand description
Identifies an Amazon Web Services resource and indicates whether it complies with the Config rule that it was evaluated against.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.compliance_resource_type: StringThe type of Amazon Web Services resource that was evaluated.
compliance_resource_id: StringThe ID of the Amazon Web Services resource that was evaluated.
compliance_type: ComplianceTypeIndicates 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.
annotation: Option<String>Supplementary information about how the evaluation determined the compliance.
ordering_timestamp: DateTimeThe 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).
Implementations§
source§impl Evaluation
impl Evaluation
sourcepub fn compliance_resource_type(&self) -> &str
pub fn compliance_resource_type(&self) -> &str
The type of Amazon Web Services resource that was evaluated.
sourcepub fn compliance_resource_id(&self) -> &str
pub fn compliance_resource_id(&self) -> &str
The ID of the Amazon Web Services resource that was evaluated.
sourcepub fn compliance_type(&self) -> &ComplianceType
pub fn compliance_type(&self) -> &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) -> Option<&str>
pub fn annotation(&self) -> Option<&str>
Supplementary information about how the evaluation determined the compliance.
sourcepub fn ordering_timestamp(&self) -> &DateTime
pub fn ordering_timestamp(&self) -> &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).
source§impl Evaluation
impl Evaluation
sourcepub fn builder() -> EvaluationBuilder
pub fn builder() -> EvaluationBuilder
Creates a new builder-style object to manufacture Evaluation.
Trait Implementations§
source§impl Clone for Evaluation
impl Clone for Evaluation
source§fn clone(&self) -> Evaluation
fn clone(&self) -> Evaluation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Evaluation
impl Debug for Evaluation
source§impl PartialEq for Evaluation
impl PartialEq for Evaluation
source§fn eq(&self, other: &Evaluation) -> bool
fn eq(&self, other: &Evaluation) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for Evaluation
Auto Trait Implementations§
impl Freeze for Evaluation
impl RefUnwindSafe for Evaluation
impl Send for Evaluation
impl Sync for Evaluation
impl Unpin for Evaluation
impl UnwindSafe for Evaluation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more