#[non_exhaustive]pub struct ControlMappingSourceBuilder { /* private fields */ }
Expand description
A builder for ControlMappingSource
.
Implementations§
source§impl ControlMappingSourceBuilder
impl ControlMappingSourceBuilder
sourcepub fn set_source_id(self, input: Option<String>) -> Self
pub fn set_source_id(self, input: Option<String>) -> Self
The unique identifier for the source.
sourcepub fn get_source_id(&self) -> &Option<String>
pub fn get_source_id(&self) -> &Option<String>
The unique identifier for the source.
sourcepub fn source_name(self, input: impl Into<String>) -> Self
pub fn source_name(self, input: impl Into<String>) -> Self
The name of the source.
sourcepub fn set_source_name(self, input: Option<String>) -> Self
pub fn set_source_name(self, input: Option<String>) -> Self
The name of the source.
sourcepub fn get_source_name(&self) -> &Option<String>
pub fn get_source_name(&self) -> &Option<String>
The name of the source.
sourcepub fn source_description(self, input: impl Into<String>) -> Self
pub fn source_description(self, input: impl Into<String>) -> Self
The description of the source.
sourcepub fn set_source_description(self, input: Option<String>) -> Self
pub fn set_source_description(self, input: Option<String>) -> Self
The description of the source.
sourcepub fn get_source_description(&self) -> &Option<String>
pub fn get_source_description(&self) -> &Option<String>
The description of the source.
sourcepub fn source_set_up_option(self, input: SourceSetUpOption) -> Self
pub fn source_set_up_option(self, input: SourceSetUpOption) -> Self
The setup option for the data source. This option reflects if the evidence collection is automated or manual.
sourcepub fn set_source_set_up_option(self, input: Option<SourceSetUpOption>) -> Self
pub fn set_source_set_up_option(self, input: Option<SourceSetUpOption>) -> Self
The setup option for the data source. This option reflects if the evidence collection is automated or manual.
sourcepub fn get_source_set_up_option(&self) -> &Option<SourceSetUpOption>
pub fn get_source_set_up_option(&self) -> &Option<SourceSetUpOption>
The setup option for the data source. This option reflects if the evidence collection is automated or manual.
sourcepub fn source_type(self, input: SourceType) -> Self
pub fn source_type(self, input: SourceType) -> Self
Specifies one of the five data source types for evidence collection.
sourcepub fn set_source_type(self, input: Option<SourceType>) -> Self
pub fn set_source_type(self, input: Option<SourceType>) -> Self
Specifies one of the five data source types for evidence collection.
sourcepub fn get_source_type(&self) -> &Option<SourceType>
pub fn get_source_type(&self) -> &Option<SourceType>
Specifies one of the five data source types for evidence collection.
sourcepub fn source_keyword(self, input: SourceKeyword) -> Self
pub fn source_keyword(self, input: SourceKeyword) -> Self
A keyword that relates to the control data source.
For manual evidence, this keyword indicates if the manual evidence is a file or text.
For automated evidence, this keyword identifies a specific CloudTrail event, Config rule, Security Hub control, or Amazon Web Services API name.
To learn more about the supported keywords that you can use when mapping a control data source, see the following pages in the Audit Manager User Guide:
sourcepub fn set_source_keyword(self, input: Option<SourceKeyword>) -> Self
pub fn set_source_keyword(self, input: Option<SourceKeyword>) -> Self
A keyword that relates to the control data source.
For manual evidence, this keyword indicates if the manual evidence is a file or text.
For automated evidence, this keyword identifies a specific CloudTrail event, Config rule, Security Hub control, or Amazon Web Services API name.
To learn more about the supported keywords that you can use when mapping a control data source, see the following pages in the Audit Manager User Guide:
sourcepub fn get_source_keyword(&self) -> &Option<SourceKeyword>
pub fn get_source_keyword(&self) -> &Option<SourceKeyword>
A keyword that relates to the control data source.
For manual evidence, this keyword indicates if the manual evidence is a file or text.
For automated evidence, this keyword identifies a specific CloudTrail event, Config rule, Security Hub control, or Amazon Web Services API name.
To learn more about the supported keywords that you can use when mapping a control data source, see the following pages in the Audit Manager User Guide:
sourcepub fn source_frequency(self, input: SourceFrequency) -> Self
pub fn source_frequency(self, input: SourceFrequency) -> Self
Specifies how often evidence is collected from the control mapping source.
sourcepub fn set_source_frequency(self, input: Option<SourceFrequency>) -> Self
pub fn set_source_frequency(self, input: Option<SourceFrequency>) -> Self
Specifies how often evidence is collected from the control mapping source.
sourcepub fn get_source_frequency(&self) -> &Option<SourceFrequency>
pub fn get_source_frequency(&self) -> &Option<SourceFrequency>
Specifies how often evidence is collected from the control mapping source.
sourcepub fn troubleshooting_text(self, input: impl Into<String>) -> Self
pub fn troubleshooting_text(self, input: impl Into<String>) -> Self
The instructions for troubleshooting the control.
sourcepub fn set_troubleshooting_text(self, input: Option<String>) -> Self
pub fn set_troubleshooting_text(self, input: Option<String>) -> Self
The instructions for troubleshooting the control.
sourcepub fn get_troubleshooting_text(&self) -> &Option<String>
pub fn get_troubleshooting_text(&self) -> &Option<String>
The instructions for troubleshooting the control.
sourcepub fn build(self) -> ControlMappingSource
pub fn build(self) -> ControlMappingSource
Consumes the builder and constructs a ControlMappingSource
.
Trait Implementations§
source§impl Clone for ControlMappingSourceBuilder
impl Clone for ControlMappingSourceBuilder
source§fn clone(&self) -> ControlMappingSourceBuilder
fn clone(&self) -> ControlMappingSourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ControlMappingSourceBuilder
impl Debug for ControlMappingSourceBuilder
source§impl Default for ControlMappingSourceBuilder
impl Default for ControlMappingSourceBuilder
source§fn default() -> ControlMappingSourceBuilder
fn default() -> ControlMappingSourceBuilder
source§impl PartialEq for ControlMappingSourceBuilder
impl PartialEq for ControlMappingSourceBuilder
source§fn eq(&self, other: &ControlMappingSourceBuilder) -> bool
fn eq(&self, other: &ControlMappingSourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ControlMappingSourceBuilder
Auto Trait Implementations§
impl Freeze for ControlMappingSourceBuilder
impl RefUnwindSafe for ControlMappingSourceBuilder
impl Send for ControlMappingSourceBuilder
impl Sync for ControlMappingSourceBuilder
impl Unpin for ControlMappingSourceBuilder
impl UnwindSafe for ControlMappingSourceBuilder
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