Struct aws_sdk_config::types::ComplianceByResource
source · #[non_exhaustive]pub struct ComplianceByResource {
pub resource_type: Option<String>,
pub resource_id: Option<String>,
pub compliance: Option<Compliance>,
}Expand description
Indicates whether an Amazon Web Services resource that is evaluated according to one or more Config rules is compliant. A resource is compliant if it complies with all of the rules that evaluate it. A resource is noncompliant if it does not comply with one or more of these rules.
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.resource_type: Option<String>The type of the Amazon Web Services resource that was evaluated.
resource_id: Option<String>The ID of the Amazon Web Services resource that was evaluated.
compliance: Option<Compliance>Indicates whether the Amazon Web Services resource complies with all of the Config rules that evaluated it.
Implementations§
source§impl ComplianceByResource
impl ComplianceByResource
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The type of the Amazon Web Services resource that was evaluated.
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
The ID of the Amazon Web Services resource that was evaluated.
sourcepub fn compliance(&self) -> Option<&Compliance>
pub fn compliance(&self) -> Option<&Compliance>
Indicates whether the Amazon Web Services resource complies with all of the Config rules that evaluated it.
source§impl ComplianceByResource
impl ComplianceByResource
sourcepub fn builder() -> ComplianceByResourceBuilder
pub fn builder() -> ComplianceByResourceBuilder
Creates a new builder-style object to manufacture ComplianceByResource.
Trait Implementations§
source§impl Clone for ComplianceByResource
impl Clone for ComplianceByResource
source§fn clone(&self) -> ComplianceByResource
fn clone(&self) -> ComplianceByResource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ComplianceByResource
impl Debug for ComplianceByResource
source§impl PartialEq for ComplianceByResource
impl PartialEq for ComplianceByResource
source§fn eq(&self, other: &ComplianceByResource) -> bool
fn eq(&self, other: &ComplianceByResource) -> bool
self and other values to be equal, and is used
by ==.