Struct aws_sdk_config::types::Compliance
source · #[non_exhaustive]pub struct Compliance {
pub compliance_type: Option<ComplianceType>,
pub compliance_contributor_count: Option<ComplianceContributorCount>,
}Expand description
Indicates whether an Amazon Web Services resource or Config rule is compliant and provides the number of contributors that affect the compliance.
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_type: Option<ComplianceType>Indicates whether an Amazon Web Services resource or Config rule is compliant.
A resource is compliant if it complies with all of the Config rules that evaluate it. A resource is noncompliant if it does not comply with one or more of these rules.
A rule is compliant if all of the resources that the rule evaluates comply with it. A rule is noncompliant if any of these resources do not comply.
Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the Amazon Web Services resource or Config rule.
For the Compliance data type, Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. Config does not support the NOT_APPLICABLE value for the Compliance data type.
compliance_contributor_count: Option<ComplianceContributorCount>The number of Amazon Web Services resources or Config rules that cause a result of NON_COMPLIANT, up to a maximum number.
Implementations§
source§impl Compliance
impl Compliance
sourcepub fn compliance_type(&self) -> Option<&ComplianceType>
pub fn compliance_type(&self) -> Option<&ComplianceType>
Indicates whether an Amazon Web Services resource or Config rule is compliant.
A resource is compliant if it complies with all of the Config rules that evaluate it. A resource is noncompliant if it does not comply with one or more of these rules.
A rule is compliant if all of the resources that the rule evaluates comply with it. A rule is noncompliant if any of these resources do not comply.
Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the Amazon Web Services resource or Config rule.
For the Compliance data type, Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. Config does not support the NOT_APPLICABLE value for the Compliance data type.
sourcepub fn compliance_contributor_count(
&self
) -> Option<&ComplianceContributorCount>
pub fn compliance_contributor_count( &self ) -> Option<&ComplianceContributorCount>
The number of Amazon Web Services resources or Config rules that cause a result of NON_COMPLIANT, up to a maximum number.
source§impl Compliance
impl Compliance
sourcepub fn builder() -> ComplianceBuilder
pub fn builder() -> ComplianceBuilder
Creates a new builder-style object to manufacture Compliance.
Trait Implementations§
source§impl Clone for Compliance
impl Clone for Compliance
source§fn clone(&self) -> Compliance
fn clone(&self) -> Compliance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Compliance
impl Debug for Compliance
source§impl PartialEq for Compliance
impl PartialEq for Compliance
source§fn eq(&self, other: &Compliance) -> bool
fn eq(&self, other: &Compliance) -> bool
self and other values to be equal, and is used
by ==.