Struct aws_sdk_shield::types::AttackSummary
source · #[non_exhaustive]pub struct AttackSummary {
pub attack_id: Option<String>,
pub resource_arn: Option<String>,
pub start_time: Option<DateTime>,
pub end_time: Option<DateTime>,
pub attack_vectors: Option<Vec<AttackVectorDescription>>,
}
Expand description
Summarizes all DDoS attacks for a specified time period.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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.
start_time: Option<DateTime>
The start time of the attack, in Unix time in seconds.
end_time: Option<DateTime>
The end time of the attack, in Unix time in seconds.
attack_vectors: Option<Vec<AttackVectorDescription>>
The list of attacks for a specified time period.
Implementations§
source§impl AttackSummary
impl AttackSummary
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 start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
The start time of the attack, in Unix time in seconds.
sourcepub fn end_time(&self) -> Option<&DateTime>
pub fn end_time(&self) -> Option<&DateTime>
The end time of the attack, in Unix time in seconds.
sourcepub fn attack_vectors(&self) -> &[AttackVectorDescription]
pub fn attack_vectors(&self) -> &[AttackVectorDescription]
The list of attacks for a specified time period.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .attack_vectors.is_none()
.
source§impl AttackSummary
impl AttackSummary
sourcepub fn builder() -> AttackSummaryBuilder
pub fn builder() -> AttackSummaryBuilder
Creates a new builder-style object to manufacture AttackSummary
.
Trait Implementations§
source§impl Clone for AttackSummary
impl Clone for AttackSummary
source§fn clone(&self) -> AttackSummary
fn clone(&self) -> AttackSummary
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AttackSummary
impl Debug for AttackSummary
source§impl PartialEq for AttackSummary
impl PartialEq for AttackSummary
source§fn eq(&self, other: &AttackSummary) -> bool
fn eq(&self, other: &AttackSummary) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AttackSummary
Auto Trait Implementations§
impl Freeze for AttackSummary
impl RefUnwindSafe for AttackSummary
impl Send for AttackSummary
impl Sync for AttackSummary
impl Unpin for AttackSummary
impl UnwindSafe for AttackSummary
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.