pub struct UpdateDetectorVersion { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateDetectorVersion
.
Updates a detector version. The detector version attributes that you can update include models, external model endpoints, rules, rule execution mode, and description. You can only update a DRAFT
detector version.
Implementations
sourceimpl UpdateDetectorVersion
impl UpdateDetectorVersion
sourcepub async fn send(
self
) -> Result<UpdateDetectorVersionOutput, SdkError<UpdateDetectorVersionError>>
pub async fn send(
self
) -> Result<UpdateDetectorVersionOutput, SdkError<UpdateDetectorVersionError>>
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 detector_id(self, input: impl Into<String>) -> Self
pub fn detector_id(self, input: impl Into<String>) -> Self
The parent detector ID for the detector version you want to update.
sourcepub fn set_detector_id(self, input: Option<String>) -> Self
pub fn set_detector_id(self, input: Option<String>) -> Self
The parent detector ID for the detector version you want to update.
sourcepub fn detector_version_id(self, input: impl Into<String>) -> Self
pub fn detector_version_id(self, input: impl Into<String>) -> Self
The detector version ID.
sourcepub fn set_detector_version_id(self, input: Option<String>) -> Self
pub fn set_detector_version_id(self, input: Option<String>) -> Self
The detector version ID.
sourcepub fn external_model_endpoints(self, input: impl Into<String>) -> Self
pub fn external_model_endpoints(self, input: impl Into<String>) -> Self
Appends an item to externalModelEndpoints
.
To override the contents of this collection use set_external_model_endpoints
.
The Amazon SageMaker model endpoints to include in the detector version.
sourcepub fn set_external_model_endpoints(self, input: Option<Vec<String>>) -> Self
pub fn set_external_model_endpoints(self, input: Option<Vec<String>>) -> Self
The Amazon SageMaker model endpoints to include in the detector version.
sourcepub fn rules(self, input: Rule) -> Self
pub fn rules(self, input: Rule) -> Self
Appends an item to rules
.
To override the contents of this collection use set_rules
.
The rules to include in the detector version.
sourcepub fn set_rules(self, input: Option<Vec<Rule>>) -> Self
pub fn set_rules(self, input: Option<Vec<Rule>>) -> Self
The rules to include in the detector version.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The detector version description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The detector version description.
sourcepub fn model_versions(self, input: ModelVersion) -> Self
pub fn model_versions(self, input: ModelVersion) -> Self
Appends an item to modelVersions
.
To override the contents of this collection use set_model_versions
.
The model versions to include in the detector version.
sourcepub fn set_model_versions(self, input: Option<Vec<ModelVersion>>) -> Self
pub fn set_model_versions(self, input: Option<Vec<ModelVersion>>) -> Self
The model versions to include in the detector version.
sourcepub fn rule_execution_mode(self, input: RuleExecutionMode) -> Self
pub fn rule_execution_mode(self, input: RuleExecutionMode) -> Self
The rule execution mode to add to the detector.
If you specify FIRST_MATCHED
, Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.
If you specifiy ALL_MATCHED
, Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft status.
The default behavior is FIRST_MATCHED
.
sourcepub fn set_rule_execution_mode(self, input: Option<RuleExecutionMode>) -> Self
pub fn set_rule_execution_mode(self, input: Option<RuleExecutionMode>) -> Self
The rule execution mode to add to the detector.
If you specify FIRST_MATCHED
, Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.
If you specifiy ALL_MATCHED
, Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft status.
The default behavior is FIRST_MATCHED
.
Trait Implementations
sourceimpl Clone for UpdateDetectorVersion
impl Clone for UpdateDetectorVersion
sourcefn clone(&self) -> UpdateDetectorVersion
fn clone(&self) -> UpdateDetectorVersion
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 UpdateDetectorVersion
impl Send for UpdateDetectorVersion
impl Sync for UpdateDetectorVersion
impl Unpin for UpdateDetectorVersion
impl !UnwindSafe for UpdateDetectorVersion
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