pub struct CreateAnalyzer { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateAnalyzer
.
Creates an analyzer for your account.
Implementations
sourceimpl CreateAnalyzer
impl CreateAnalyzer
sourcepub async fn send(
self
) -> Result<CreateAnalyzerOutput, SdkError<CreateAnalyzerError>>
pub async fn send(
self
) -> Result<CreateAnalyzerOutput, SdkError<CreateAnalyzerError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn analyzer_name(self, input: impl Into<String>) -> Self
pub fn analyzer_name(self, input: impl Into<String>) -> Self
The name of the analyzer to create.
sourcepub fn set_analyzer_name(self, input: Option<String>) -> Self
pub fn set_analyzer_name(self, input: Option<String>) -> Self
The name of the analyzer to create.
sourcepub fn type(self, input: Type) -> Self
pub fn type(self, input: Type) -> Self
The type of analyzer to create. Only ACCOUNT and ORGANIZATION 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 set_type(self, input: Option<Type>) -> Self
pub fn set_type(self, input: Option<Type>) -> Self
The type of analyzer to create. Only ACCOUNT and ORGANIZATION 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, input: InlineArchiveRule) -> Self
pub fn archive_rules(self, input: InlineArchiveRule) -> Self
Appends an item to archiveRules
.
To override the contents of this collection use set_archive_rules
.
Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
sourcepub fn set_archive_rules(self, input: Option<Vec<InlineArchiveRule>>) -> Self
pub fn set_archive_rules(self, input: Option<Vec<InlineArchiveRule>>) -> Self
Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags to apply to the analyzer.
The tags to apply to the analyzer.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A client token.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A client token.
Trait Implementations
sourceimpl Clone for CreateAnalyzer
impl Clone for CreateAnalyzer
sourcefn clone(&self) -> CreateAnalyzer
fn clone(&self) -> CreateAnalyzer
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
Auto Trait Implementations
impl !RefUnwindSafe for CreateAnalyzer
impl Send for CreateAnalyzer
impl Sync for CreateAnalyzer
impl Unpin for CreateAnalyzer
impl !UnwindSafe for CreateAnalyzer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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> 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