Struct aws_sdk_config::types::builders::ComplianceBuilder
source · #[non_exhaustive]pub struct ComplianceBuilder { /* private fields */ }Expand description
A builder for Compliance.
Implementations§
source§impl ComplianceBuilder
impl ComplianceBuilder
sourcepub fn compliance_type(self, input: ComplianceType) -> Self
pub fn compliance_type(self, input: ComplianceType) -> Self
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 set_compliance_type(self, input: Option<ComplianceType>) -> Self
pub fn set_compliance_type(self, input: Option<ComplianceType>) -> Self
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 get_compliance_type(&self) -> &Option<ComplianceType>
pub fn get_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,
input: ComplianceContributorCount
) -> Self
pub fn compliance_contributor_count( self, input: ComplianceContributorCount ) -> Self
The number of Amazon Web Services resources or Config rules that cause a result of NON_COMPLIANT, up to a maximum number.
sourcepub fn set_compliance_contributor_count(
self,
input: Option<ComplianceContributorCount>
) -> Self
pub fn set_compliance_contributor_count( self, input: Option<ComplianceContributorCount> ) -> Self
The number of Amazon Web Services resources or Config rules that cause a result of NON_COMPLIANT, up to a maximum number.
sourcepub fn get_compliance_contributor_count(
&self
) -> &Option<ComplianceContributorCount>
pub fn get_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.
sourcepub fn build(self) -> Compliance
pub fn build(self) -> Compliance
Consumes the builder and constructs a Compliance.
Trait Implementations§
source§impl Clone for ComplianceBuilder
impl Clone for ComplianceBuilder
source§fn clone(&self) -> ComplianceBuilder
fn clone(&self) -> ComplianceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ComplianceBuilder
impl Debug for ComplianceBuilder
source§impl Default for ComplianceBuilder
impl Default for ComplianceBuilder
source§fn default() -> ComplianceBuilder
fn default() -> ComplianceBuilder
source§impl PartialEq for ComplianceBuilder
impl PartialEq for ComplianceBuilder
source§fn eq(&self, other: &ComplianceBuilder) -> bool
fn eq(&self, other: &ComplianceBuilder) -> bool
self and other values to be equal, and is used
by ==.