Struct aws_sdk_inspector::model::AssessmentRun
source · [−]#[non_exhaustive]pub struct AssessmentRun {Show 15 fields
pub arn: Option<String>,
pub name: Option<String>,
pub assessment_template_arn: Option<String>,
pub state: Option<AssessmentRunState>,
pub duration_in_seconds: i32,
pub rules_package_arns: Option<Vec<String>>,
pub user_attributes_for_findings: Option<Vec<Attribute>>,
pub created_at: Option<DateTime>,
pub started_at: Option<DateTime>,
pub completed_at: Option<DateTime>,
pub state_changed_at: Option<DateTime>,
pub data_collected: Option<bool>,
pub state_changes: Option<Vec<AssessmentRunStateChange>>,
pub notifications: Option<Vec<AssessmentRunNotification>>,
pub finding_counts: Option<HashMap<Severity, i32>>,
}Expand description
A snapshot of an Amazon Inspector assessment run that contains the findings of the assessment run .
Used as the response element in the DescribeAssessmentRuns action.
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.arn: Option<String>The ARN of the assessment run.
name: Option<String>The auto-generated name for the assessment run.
assessment_template_arn: Option<String>The ARN of the assessment template that is associated with the assessment run.
state: Option<AssessmentRunState>The state of the assessment run.
duration_in_seconds: i32The duration of the assessment run.
rules_package_arns: Option<Vec<String>>The rules packages selected for the assessment run.
user_attributes_for_findings: Option<Vec<Attribute>>The user-defined attributes that are assigned to every generated finding.
created_at: Option<DateTime>The time when StartAssessmentRun was called.
started_at: Option<DateTime>The time when StartAssessmentRun was called.
completed_at: Option<DateTime>The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
state_changed_at: Option<DateTime>The last time when the assessment run's state changed.
data_collected: Option<bool>A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
state_changes: Option<Vec<AssessmentRunStateChange>>A list of the assessment run state changes.
notifications: Option<Vec<AssessmentRunNotification>>A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
finding_counts: Option<HashMap<Severity, i32>>Provides a total count of generated findings per severity.
Implementations
sourceimpl AssessmentRun
impl AssessmentRun
sourcepub fn assessment_template_arn(&self) -> Option<&str>
pub fn assessment_template_arn(&self) -> Option<&str>
The ARN of the assessment template that is associated with the assessment run.
sourcepub fn state(&self) -> Option<&AssessmentRunState>
pub fn state(&self) -> Option<&AssessmentRunState>
The state of the assessment run.
sourcepub fn duration_in_seconds(&self) -> i32
pub fn duration_in_seconds(&self) -> i32
The duration of the assessment run.
sourcepub fn rules_package_arns(&self) -> Option<&[String]>
pub fn rules_package_arns(&self) -> Option<&[String]>
The rules packages selected for the assessment run.
sourcepub fn user_attributes_for_findings(&self) -> Option<&[Attribute]>
pub fn user_attributes_for_findings(&self) -> Option<&[Attribute]>
The user-defined attributes that are assigned to every generated finding.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The time when StartAssessmentRun was called.
sourcepub fn started_at(&self) -> Option<&DateTime>
pub fn started_at(&self) -> Option<&DateTime>
The time when StartAssessmentRun was called.
sourcepub fn completed_at(&self) -> Option<&DateTime>
pub fn completed_at(&self) -> Option<&DateTime>
The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
sourcepub fn state_changed_at(&self) -> Option<&DateTime>
pub fn state_changed_at(&self) -> Option<&DateTime>
The last time when the assessment run's state changed.
sourcepub fn data_collected(&self) -> Option<bool>
pub fn data_collected(&self) -> Option<bool>
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
sourcepub fn state_changes(&self) -> Option<&[AssessmentRunStateChange]>
pub fn state_changes(&self) -> Option<&[AssessmentRunStateChange]>
A list of the assessment run state changes.
sourcepub fn notifications(&self) -> Option<&[AssessmentRunNotification]>
pub fn notifications(&self) -> Option<&[AssessmentRunNotification]>
A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
sourceimpl AssessmentRun
impl AssessmentRun
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AssessmentRun
Trait Implementations
sourceimpl Clone for AssessmentRun
impl Clone for AssessmentRun
sourcefn clone(&self) -> AssessmentRun
fn clone(&self) -> AssessmentRun
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 AssessmentRun
impl Debug for AssessmentRun
sourceimpl PartialEq<AssessmentRun> for AssessmentRun
impl PartialEq<AssessmentRun> for AssessmentRun
sourcefn eq(&self, other: &AssessmentRun) -> bool
fn eq(&self, other: &AssessmentRun) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AssessmentRun) -> bool
fn ne(&self, other: &AssessmentRun) -> bool
This method tests for !=.
impl StructuralPartialEq for AssessmentRun
Auto Trait Implementations
impl RefUnwindSafe for AssessmentRun
impl Send for AssessmentRun
impl Sync for AssessmentRun
impl Unpin for AssessmentRun
impl UnwindSafe for AssessmentRun
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