Struct aws_sdk_auditmanager::types::builders::EvidenceBuilder
source · #[non_exhaustive]pub struct EvidenceBuilder { /* private fields */ }
Expand description
A builder for Evidence
.
Implementations§
source§impl EvidenceBuilder
impl EvidenceBuilder
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 get_data_source(&self) -> &Option<String>
pub fn get_data_source(&self) -> &Option<String>
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 get_evidence_aws_account_id(&self) -> &Option<String>
pub fn get_evidence_aws_account_id(&self) -> &Option<String>
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 get_time(&self) -> &Option<DateTime>
pub fn get_time(&self) -> &Option<DateTime>
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 get_event_source(&self) -> &Option<String>
pub fn get_event_source(&self) -> &Option<String>
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 get_event_name(&self) -> &Option<String>
pub fn get_event_name(&self) -> &Option<String>
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 get_evidence_by_type(&self) -> &Option<String>
pub fn get_evidence_by_type(&self) -> &Option<String>
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 get_resources_included(&self) -> &Option<Vec<Resource>>
pub fn get_resources_included(&self) -> &Option<Vec<Resource>>
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 get_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_attributes(&self) -> &Option<HashMap<String, String>>
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 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 user or role that's associated with the evidence.
sourcepub fn get_iam_id(&self) -> &Option<String>
pub fn get_iam_id(&self) -> &Option<String>
The unique identifier for the 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 automated evidence that falls under the compliance check category.
-
Audit Manager classes evidence as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.
-
Audit Manager classes evidence as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.
-
If a compliance check isn't available or applicable, then no compliance evaluation can be made for that evidence. This is the case if the evidence uses Config or Security Hub as the underlying data source type, but those services aren't enabled. This is also the case if the evidence uses an underlying data source type that doesn't support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).
sourcepub fn set_compliance_check(self, input: Option<String>) -> Self
pub fn set_compliance_check(self, input: Option<String>) -> Self
The evaluation status for automated evidence that falls under the compliance check category.
-
Audit Manager classes evidence as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.
-
Audit Manager classes evidence as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.
-
If a compliance check isn't available or applicable, then no compliance evaluation can be made for that evidence. This is the case if the evidence uses Config or Security Hub as the underlying data source type, but those services aren't enabled. This is also the case if the evidence uses an underlying data source type that doesn't support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).
sourcepub fn get_compliance_check(&self) -> &Option<String>
pub fn get_compliance_check(&self) -> &Option<String>
The evaluation status for automated evidence that falls under the compliance check category.
-
Audit Manager classes evidence as non-compliant if Security Hub reports a Fail result, or if Config reports a Non-compliant result.
-
Audit Manager classes evidence as compliant if Security Hub reports a Pass result, or if Config reports a Compliant result.
-
If a compliance check isn't available or applicable, then no compliance evaluation can be made for that evidence. This is the case if the evidence uses Config or Security Hub as the underlying data source type, but those services aren't enabled. This is also the case if the evidence uses an underlying data source type that doesn't support compliance checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail).
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 get_aws_organization(&self) -> &Option<String>
pub fn get_aws_organization(&self) -> &Option<String>
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 get_aws_account_id(&self) -> &Option<String>
pub fn get_aws_account_id(&self) -> &Option<String>
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 get_evidence_folder_id(&self) -> &Option<String>
pub fn get_evidence_folder_id(&self) -> &Option<String>
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.
sourcepub fn get_assessment_report_selection(&self) -> &Option<String>
pub fn get_assessment_report_selection(&self) -> &Option<String>
Specifies whether the evidence is included in the assessment report.
Trait Implementations§
source§impl Clone for EvidenceBuilder
impl Clone for EvidenceBuilder
source§fn clone(&self) -> EvidenceBuilder
fn clone(&self) -> EvidenceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvidenceBuilder
impl Debug for EvidenceBuilder
source§impl Default for EvidenceBuilder
impl Default for EvidenceBuilder
source§fn default() -> EvidenceBuilder
fn default() -> EvidenceBuilder
source§impl PartialEq for EvidenceBuilder
impl PartialEq for EvidenceBuilder
source§fn eq(&self, other: &EvidenceBuilder) -> bool
fn eq(&self, other: &EvidenceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EvidenceBuilder
Auto Trait Implementations§
impl Freeze for EvidenceBuilder
impl RefUnwindSafe for EvidenceBuilder
impl Send for EvidenceBuilder
impl Sync for EvidenceBuilder
impl Unpin for EvidenceBuilder
impl UnwindSafe for EvidenceBuilder
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> 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