Struct aws_sdk_shield::types::AttackProperty
source · #[non_exhaustive]pub struct AttackProperty {
pub attack_layer: Option<AttackLayer>,
pub attack_property_identifier: Option<AttackPropertyIdentifier>,
pub top_contributors: Option<Vec<Contributor>>,
pub unit: Option<Unit>,
pub total: i64,
}
Expand description
Details of a Shield event. This is provided as part of an AttackDetail
.
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.attack_layer: Option<AttackLayer>
The type of Shield event that was observed. NETWORK
indicates layer 3 and layer 4 events and APPLICATION
indicates layer 7 events.
For infrastructure layer events (L3 and L4 events), you can view metrics for top contributors in Amazon CloudWatch metrics. For more information, see Shield metrics and alarms in the WAF Developer Guide.
attack_property_identifier: Option<AttackPropertyIdentifier>
Defines the Shield event property information that is provided. The WORDPRESS_PINGBACK_REFLECTOR
and WORDPRESS_PINGBACK_SOURCE
values are valid only for WordPress reflective pingback events.
top_contributors: Option<Vec<Contributor>>
Contributor objects for the top five contributors to a Shield event. A contributor is a source of traffic that Shield Advanced identifies as responsible for some or all of an event.
unit: Option<Unit>
The unit used for the Contributor
Value
property.
total: i64
The total contributions made to this Shield event by all contributors.
Implementations§
source§impl AttackProperty
impl AttackProperty
sourcepub fn attack_layer(&self) -> Option<&AttackLayer>
pub fn attack_layer(&self) -> Option<&AttackLayer>
The type of Shield event that was observed. NETWORK
indicates layer 3 and layer 4 events and APPLICATION
indicates layer 7 events.
For infrastructure layer events (L3 and L4 events), you can view metrics for top contributors in Amazon CloudWatch metrics. For more information, see Shield metrics and alarms in the WAF Developer Guide.
sourcepub fn attack_property_identifier(&self) -> Option<&AttackPropertyIdentifier>
pub fn attack_property_identifier(&self) -> Option<&AttackPropertyIdentifier>
Defines the Shield event property information that is provided. The WORDPRESS_PINGBACK_REFLECTOR
and WORDPRESS_PINGBACK_SOURCE
values are valid only for WordPress reflective pingback events.
sourcepub fn top_contributors(&self) -> &[Contributor]
pub fn top_contributors(&self) -> &[Contributor]
Contributor objects for the top five contributors to a Shield event. A contributor is a source of traffic that Shield Advanced identifies as responsible for some or all of an event.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .top_contributors.is_none()
.
source§impl AttackProperty
impl AttackProperty
sourcepub fn builder() -> AttackPropertyBuilder
pub fn builder() -> AttackPropertyBuilder
Creates a new builder-style object to manufacture AttackProperty
.
Trait Implementations§
source§impl Clone for AttackProperty
impl Clone for AttackProperty
source§fn clone(&self) -> AttackProperty
fn clone(&self) -> AttackProperty
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttackProperty
impl Debug for AttackProperty
source§impl PartialEq for AttackProperty
impl PartialEq for AttackProperty
impl StructuralPartialEq for AttackProperty
Auto Trait Implementations§
impl Freeze for AttackProperty
impl RefUnwindSafe for AttackProperty
impl Send for AttackProperty
impl Sync for AttackProperty
impl Unpin for AttackProperty
impl UnwindSafe for AttackProperty
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