#[non_exhaustive]pub struct CreateAnalyzerInput {
pub analyzer_name: Option<String>,
pub type: Option<Type>,
pub archive_rules: Option<Vec<InlineArchiveRule>>,
pub tags: Option<HashMap<String, String>>,
pub client_token: Option<String>,
pub configuration: Option<AnalyzerConfiguration>,
}
Expand description
Creates an analyzer.
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.analyzer_name: Option<String>
The name of the analyzer to create.
type: Option<Type>
The type of analyzer to create. Only ACCOUNT
, ORGANIZATION
, ACCOUNT_UNUSED_ACCESS
, and ORGANIZATION_UNUSED_ACCESS
analyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.
archive_rules: Option<Vec<InlineArchiveRule>>
Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
An array of key-value pairs to apply to the analyzer.
client_token: Option<String>
A client token.
configuration: Option<AnalyzerConfiguration>
Specifies the configuration of the analyzer. If the analyzer is an unused access analyzer, the specified scope of unused access is used for the configuration. If the analyzer is an external access analyzer, this field is not used.
Implementations§
source§impl CreateAnalyzerInput
impl CreateAnalyzerInput
sourcepub fn analyzer_name(&self) -> Option<&str>
pub fn analyzer_name(&self) -> Option<&str>
The name of the analyzer to create.
sourcepub fn type(&self) -> Option<&Type>
pub fn type(&self) -> Option<&Type>
The type of analyzer to create. Only ACCOUNT
, ORGANIZATION
, ACCOUNT_UNUSED_ACCESS
, and ORGANIZATION_UNUSED_ACCESS
analyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.
sourcepub fn archive_rules(&self) -> &[InlineArchiveRule]
pub fn archive_rules(&self) -> &[InlineArchiveRule]
Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .archive_rules.is_none()
.
An array of key-value pairs to apply to the analyzer.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
A client token.
sourcepub fn configuration(&self) -> Option<&AnalyzerConfiguration>
pub fn configuration(&self) -> Option<&AnalyzerConfiguration>
Specifies the configuration of the analyzer. If the analyzer is an unused access analyzer, the specified scope of unused access is used for the configuration. If the analyzer is an external access analyzer, this field is not used.
source§impl CreateAnalyzerInput
impl CreateAnalyzerInput
sourcepub fn builder() -> CreateAnalyzerInputBuilder
pub fn builder() -> CreateAnalyzerInputBuilder
Creates a new builder-style object to manufacture CreateAnalyzerInput
.
Trait Implementations§
source§impl Clone for CreateAnalyzerInput
impl Clone for CreateAnalyzerInput
source§fn clone(&self) -> CreateAnalyzerInput
fn clone(&self) -> CreateAnalyzerInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateAnalyzerInput
impl Debug for CreateAnalyzerInput
source§impl PartialEq for CreateAnalyzerInput
impl PartialEq for CreateAnalyzerInput
source§fn eq(&self, other: &CreateAnalyzerInput) -> bool
fn eq(&self, other: &CreateAnalyzerInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateAnalyzerInput
Auto Trait Implementations§
impl Freeze for CreateAnalyzerInput
impl RefUnwindSafe for CreateAnalyzerInput
impl Send for CreateAnalyzerInput
impl Sync for CreateAnalyzerInput
impl Unpin for CreateAnalyzerInput
impl UnwindSafe for CreateAnalyzerInput
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