Struct aws_sdk_fms::model::ComplianceViolator
source · [−]#[non_exhaustive]pub struct ComplianceViolator {
pub resource_id: Option<String>,
pub violation_reason: Option<ViolationReason>,
pub resource_type: Option<String>,
pub metadata: Option<HashMap<String, String>>,
}
Expand description
Details of the resource that is not protected by the policy.
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_id: Option<String>
The resource ID.
violation_reason: Option<ViolationReason>
The reason that the resource is not protected by the policy.
resource_type: Option<String>
The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. For example: AWS::ElasticLoadBalancingV2::LoadBalancer
, AWS::CloudFront::Distribution
, or AWS::NetworkFirewall::FirewallPolicy
.
metadata: Option<HashMap<String, String>>
Metadata about the resource that doesn't comply with the policy scope.
Implementations
sourceimpl ComplianceViolator
impl ComplianceViolator
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
The resource ID.
sourcepub fn violation_reason(&self) -> Option<&ViolationReason>
pub fn violation_reason(&self) -> Option<&ViolationReason>
The reason that the resource is not protected by the policy.
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. For example: AWS::ElasticLoadBalancingV2::LoadBalancer
, AWS::CloudFront::Distribution
, or AWS::NetworkFirewall::FirewallPolicy
.
sourceimpl ComplianceViolator
impl ComplianceViolator
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ComplianceViolator
.
Trait Implementations
sourceimpl Clone for ComplianceViolator
impl Clone for ComplianceViolator
sourcefn clone(&self) -> ComplianceViolator
fn clone(&self) -> ComplianceViolator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ComplianceViolator
impl Debug for ComplianceViolator
sourceimpl PartialEq<ComplianceViolator> for ComplianceViolator
impl PartialEq<ComplianceViolator> for ComplianceViolator
sourcefn eq(&self, other: &ComplianceViolator) -> bool
fn eq(&self, other: &ComplianceViolator) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ComplianceViolator) -> bool
fn ne(&self, other: &ComplianceViolator) -> bool
This method tests for !=
.
impl StructuralPartialEq for ComplianceViolator
Auto Trait Implementations
impl RefUnwindSafe for ComplianceViolator
impl Send for ComplianceViolator
impl Sync for ComplianceViolator
impl Unpin for ComplianceViolator
impl UnwindSafe for ComplianceViolator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more