#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Evidence
Implementations
sourceimpl Builder
impl Builder
sourcepub fn data_source(self, input: impl Into<String>) -> Self
pub fn data_source(self, input: impl Into<String>) -> Self
The data source where the evidence was collected from.
sourcepub fn set_data_source(self, input: Option<String>) -> Self
pub fn set_data_source(self, input: Option<String>) -> Self
The data source where the evidence was collected from.
sourcepub fn evidence_aws_account_id(self, input: impl Into<String>) -> Self
pub fn evidence_aws_account_id(self, input: impl Into<String>) -> Self
The identifier for the Amazon Web Services account.
sourcepub fn set_evidence_aws_account_id(self, input: Option<String>) -> Self
pub fn set_evidence_aws_account_id(self, input: Option<String>) -> Self
The identifier for the Amazon Web Services account.
sourcepub fn time(self, input: DateTime) -> Self
pub fn time(self, input: DateTime) -> Self
The timestamp that represents when the evidence was collected.
sourcepub fn set_time(self, input: Option<DateTime>) -> Self
pub fn set_time(self, input: Option<DateTime>) -> Self
The timestamp that represents when the evidence was collected.
sourcepub fn event_source(self, input: impl Into<String>) -> Self
pub fn event_source(self, input: impl Into<String>) -> Self
The Amazon Web Service that the evidence is collected from.
sourcepub fn set_event_source(self, input: Option<String>) -> Self
pub fn set_event_source(self, input: Option<String>) -> Self
The Amazon Web Service that the evidence is collected from.
sourcepub fn event_name(self, input: impl Into<String>) -> Self
pub fn event_name(self, input: impl Into<String>) -> Self
The name of the evidence event.
sourcepub fn set_event_name(self, input: Option<String>) -> Self
pub fn set_event_name(self, input: Option<String>) -> Self
The name of the evidence event.
sourcepub fn evidence_by_type(self, input: impl Into<String>) -> Self
pub fn evidence_by_type(self, input: impl Into<String>) -> Self
The type of automated evidence.
sourcepub fn set_evidence_by_type(self, input: Option<String>) -> Self
pub fn set_evidence_by_type(self, input: Option<String>) -> Self
The type of automated evidence.
sourcepub fn resources_included(self, input: Resource) -> Self
pub fn resources_included(self, input: Resource) -> Self
Appends an item to resources_included
.
To override the contents of this collection use set_resources_included
.
The list of resources that are assessed to generate the evidence.
sourcepub fn set_resources_included(self, input: Option<Vec<Resource>>) -> Self
pub fn set_resources_included(self, input: Option<Vec<Resource>>) -> Self
The list of resources that are assessed to generate the evidence.
sourcepub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn attributes(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to attributes
.
To override the contents of this collection use set_attributes
.
The names and values that are used by the evidence event. This includes an attribute name (such as allowUsersToChangePassword
) and value (such as true
or false
).
sourcepub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_attributes(self, input: Option<HashMap<String, String>>) -> Self
The names and values that are used by the evidence event. This includes an attribute name (such as allowUsersToChangePassword
) and value (such as true
or false
).
sourcepub fn iam_id(self, input: impl Into<String>) -> Self
pub fn iam_id(self, input: impl Into<String>) -> Self
The unique identifier for the IAM user or role that's associated with the evidence.
sourcepub fn set_iam_id(self, input: Option<String>) -> Self
pub fn set_iam_id(self, input: Option<String>) -> Self
The unique identifier for the IAM user or role that's associated with the evidence.
sourcepub fn compliance_check(self, input: impl Into<String>) -> Self
pub fn compliance_check(self, input: impl Into<String>) -> Self
The evaluation status for evidence that falls under the compliance check category. For evidence collected from Security Hub, a Pass or Fail result is shown. For evidence collected from Config, a Compliant or Noncompliant result is shown.
sourcepub fn set_compliance_check(self, input: Option<String>) -> Self
pub fn set_compliance_check(self, input: Option<String>) -> Self
The evaluation status for evidence that falls under the compliance check category. For evidence collected from Security Hub, a Pass or Fail result is shown. For evidence collected from Config, a Compliant or Noncompliant result is shown.
sourcepub fn aws_organization(self, input: impl Into<String>) -> Self
pub fn aws_organization(self, input: impl Into<String>) -> Self
The Amazon Web Services account that the evidence is collected from, and its organization path.
sourcepub fn set_aws_organization(self, input: Option<String>) -> Self
pub fn set_aws_organization(self, input: Option<String>) -> Self
The Amazon Web Services account that the evidence is collected from, and its organization path.
sourcepub fn aws_account_id(self, input: impl Into<String>) -> Self
pub fn aws_account_id(self, input: impl Into<String>) -> Self
The identifier for the Amazon Web Services account.
sourcepub fn set_aws_account_id(self, input: Option<String>) -> Self
pub fn set_aws_account_id(self, input: Option<String>) -> Self
The identifier for the Amazon Web Services account.
sourcepub fn evidence_folder_id(self, input: impl Into<String>) -> Self
pub fn evidence_folder_id(self, input: impl Into<String>) -> Self
The identifier for the folder that the evidence is stored in.
sourcepub fn set_evidence_folder_id(self, input: Option<String>) -> Self
pub fn set_evidence_folder_id(self, input: Option<String>) -> Self
The identifier for the folder that the evidence is stored in.
sourcepub fn assessment_report_selection(self, input: impl Into<String>) -> Self
pub fn assessment_report_selection(self, input: impl Into<String>) -> Self
Specifies whether the evidence is included in the assessment report.
sourcepub fn set_assessment_report_selection(self, input: Option<String>) -> Self
pub fn set_assessment_report_selection(self, input: Option<String>) -> Self
Specifies whether the evidence is included in the assessment report.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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