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 ==.impl StructuralPartialEq for ComplianceByResource
Auto Trait Implementations§
impl Freeze for ComplianceByResource
impl RefUnwindSafe for ComplianceByResource
impl Send for ComplianceByResource
impl Sync for ComplianceByResource
impl Unpin for ComplianceByResource
impl UnwindSafe for ComplianceByResource
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