Struct aws_sdk_shield::model::AttackDetail
source · [−]#[non_exhaustive]pub struct AttackDetail {
pub attack_id: Option<String>,
pub resource_arn: Option<String>,
pub sub_resources: Option<Vec<SubResourceSummary>>,
pub start_time: Option<DateTime>,
pub end_time: Option<DateTime>,
pub attack_counters: Option<Vec<SummarizedCounter>>,
pub attack_properties: Option<Vec<AttackProperty>>,
pub mitigations: Option<Vec<Mitigation>>,
}
Expand description
The details of a DDoS attack.
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_id: Option<String>
The unique identifier (ID) of the attack.
resource_arn: Option<String>
The ARN (Amazon Resource Name) of the resource that was attacked.
sub_resources: Option<Vec<SubResourceSummary>>
If applicable, additional detail about the resource being attacked, for example, IP address or URL.
start_time: Option<DateTime>
The time the attack started, in Unix time in seconds.
end_time: Option<DateTime>
The time the attack ended, in Unix time in seconds.
attack_counters: Option<Vec<SummarizedCounter>>
List of counters that describe the attack for the specified time period.
attack_properties: Option<Vec<AttackProperty>>
The array of objects that provide details of the Shield event.
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.
mitigations: Option<Vec<Mitigation>>
List of mitigation actions taken for the attack.
Implementations
sourceimpl AttackDetail
impl AttackDetail
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
The ARN (Amazon Resource Name) of the resource that was attacked.
sourcepub fn sub_resources(&self) -> Option<&[SubResourceSummary]>
pub fn sub_resources(&self) -> Option<&[SubResourceSummary]>
If applicable, additional detail about the resource being attacked, for example, IP address or URL.
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
The time the attack started, in Unix time in seconds.
sourcepub fn end_time(&self) -> Option<&DateTime>
pub fn end_time(&self) -> Option<&DateTime>
The time the attack ended, in Unix time in seconds.
sourcepub fn attack_counters(&self) -> Option<&[SummarizedCounter]>
pub fn attack_counters(&self) -> Option<&[SummarizedCounter]>
List of counters that describe the attack for the specified time period.
sourcepub fn attack_properties(&self) -> Option<&[AttackProperty]>
pub fn attack_properties(&self) -> Option<&[AttackProperty]>
The array of objects that provide details of the Shield event.
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 mitigations(&self) -> Option<&[Mitigation]>
pub fn mitigations(&self) -> Option<&[Mitigation]>
List of mitigation actions taken for the attack.
sourceimpl AttackDetail
impl AttackDetail
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AttackDetail
Trait Implementations
sourceimpl Clone for AttackDetail
impl Clone for AttackDetail
sourcefn clone(&self) -> AttackDetail
fn clone(&self) -> AttackDetail
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 AttackDetail
impl Debug for AttackDetail
sourceimpl PartialEq<AttackDetail> for AttackDetail
impl PartialEq<AttackDetail> for AttackDetail
sourcefn eq(&self, other: &AttackDetail) -> bool
fn eq(&self, other: &AttackDetail) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AttackDetail) -> bool
fn ne(&self, other: &AttackDetail) -> bool
This method tests for !=
.
impl StructuralPartialEq for AttackDetail
Auto Trait Implementations
impl RefUnwindSafe for AttackDetail
impl Send for AttackDetail
impl Sync for AttackDetail
impl Unpin for AttackDetail
impl UnwindSafe for AttackDetail
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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