Struct aws_sdk_frauddetector::Client
source · pub struct Client { /* private fields */ }
Expand description
Client for Amazon Fraud Detector
Client for invoking operations on Amazon Fraud Detector. Each operation on Amazon Fraud Detector is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config
is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env()
, since this will resolve an SdkConfig
which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env()
instead, which returns a ConfigLoader
that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_frauddetector::Client::new(&config);
Occasionally, SDKs may have additional service-specific values that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Config
struct implements From<&SdkConfig>
, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_frauddetector::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();
See the aws-config
docs and Config
for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the CancelBatchImportJob
operation has
a Client::cancel_batch_import_job
, function which returns a builder for that operation.
The fluent builder ultimately has a send()
function that returns an async future that
returns a result, as illustrated below:
let result = client.cancel_batch_import_job()
.job_id("example")
.send()
.await;
The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize
module for more
information.
Implementations§
source§impl Client
impl Client
sourcepub fn batch_create_variable(&self) -> BatchCreateVariableFluentBuilder
pub fn batch_create_variable(&self) -> BatchCreateVariableFluentBuilder
Constructs a fluent builder for the BatchCreateVariable
operation.
- The fluent builder is configurable:
variable_entries(VariableEntry)
/set_variable_entries(Option<Vec::<VariableEntry>>)
:
required: trueThe list of variables for the batch create variable request.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
BatchCreateVariableOutput
with field(s):errors(Option<Vec::<BatchCreateVariableError>>)
:Provides the errors for the
BatchCreateVariable
request.
- On failure, responds with
SdkError<BatchCreateVariableError>
source§impl Client
impl Client
sourcepub fn batch_get_variable(&self) -> BatchGetVariableFluentBuilder
pub fn batch_get_variable(&self) -> BatchGetVariableFluentBuilder
Constructs a fluent builder for the BatchGetVariable
operation.
- The fluent builder is configurable:
names(impl Into<String>)
/set_names(Option<Vec::<String>>)
:
required: trueThe list of variable names to get.
- On success, responds with
BatchGetVariableOutput
with field(s):variables(Option<Vec::<Variable>>)
:The returned variables.
errors(Option<Vec::<BatchGetVariableError>>)
:The errors from the request.
- On failure, responds with
SdkError<BatchGetVariableError>
source§impl Client
impl Client
sourcepub fn cancel_batch_import_job(&self) -> CancelBatchImportJobFluentBuilder
pub fn cancel_batch_import_job(&self) -> CancelBatchImportJobFluentBuilder
Constructs a fluent builder for the CancelBatchImportJob
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:
required: trueThe ID of an in-progress batch import job to cancel.
Amazon Fraud Detector will throw an error if the batch import job is in
FAILED
,CANCELED
, orCOMPLETED
state.
- On success, responds with
CancelBatchImportJobOutput
- On failure, responds with
SdkError<CancelBatchImportJobError>
source§impl Client
impl Client
sourcepub fn cancel_batch_prediction_job(
&self
) -> CancelBatchPredictionJobFluentBuilder
pub fn cancel_batch_prediction_job( &self ) -> CancelBatchPredictionJobFluentBuilder
Constructs a fluent builder for the CancelBatchPredictionJob
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:
required: trueThe ID of the batch prediction job to cancel.
- On success, responds with
CancelBatchPredictionJobOutput
- On failure, responds with
SdkError<CancelBatchPredictionJobError>
source§impl Client
impl Client
sourcepub fn create_batch_import_job(&self) -> CreateBatchImportJobFluentBuilder
pub fn create_batch_import_job(&self) -> CreateBatchImportJobFluentBuilder
Constructs a fluent builder for the CreateBatchImportJob
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:
required: trueThe ID of the batch import job. The ID cannot be of a past job, unless the job exists in
CREATE_FAILED
state.input_path(impl Into<String>)
/set_input_path(Option<String>)
:
required: trueThe URI that points to the Amazon S3 location of your data file.
output_path(impl Into<String>)
/set_output_path(Option<String>)
:
required: trueThe URI that points to the Amazon S3 location for storing your results.
event_type_name(impl Into<String>)
/set_event_type_name(Option<String>)
:
required: trueThe name of the event type.
iam_role_arn(impl Into<String>)
/set_iam_role_arn(Option<String>)
:
required: trueThe ARN of the IAM role created for Amazon S3 bucket that holds your data file.
The IAM role must have read permissions to your input S3 bucket and write permissions to your output S3 bucket. For more information about bucket permissions, see User policy examples in the Amazon S3 User Guide.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key-value pairs associated with this request.
- On success, responds with
CreateBatchImportJobOutput
- On failure, responds with
SdkError<CreateBatchImportJobError>
source§impl Client
impl Client
sourcepub fn create_batch_prediction_job(
&self
) -> CreateBatchPredictionJobFluentBuilder
pub fn create_batch_prediction_job( &self ) -> CreateBatchPredictionJobFluentBuilder
Constructs a fluent builder for the CreateBatchPredictionJob
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:
required: trueThe ID of the batch prediction job.
input_path(impl Into<String>)
/set_input_path(Option<String>)
:
required: trueThe Amazon S3 location of your training file.
output_path(impl Into<String>)
/set_output_path(Option<String>)
:
required: trueThe Amazon S3 location of your output file.
event_type_name(impl Into<String>)
/set_event_type_name(Option<String>)
:
required: trueThe name of the event type.
detector_name(impl Into<String>)
/set_detector_name(Option<String>)
:
required: trueThe name of the detector.
detector_version(impl Into<String>)
/set_detector_version(Option<String>)
:
required: falseThe detector version.
iam_role_arn(impl Into<String>)
/set_iam_role_arn(Option<String>)
:
required: trueThe ARN of the IAM role to use for this job request.
The IAM Role must have read permissions to your input S3 bucket and write permissions to your output S3 bucket. For more information about bucket permissions, see User policy examples in the Amazon S3 User Guide.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
CreateBatchPredictionJobOutput
- On failure, responds with
SdkError<CreateBatchPredictionJobError>
source§impl Client
impl Client
sourcepub fn create_detector_version(&self) -> CreateDetectorVersionFluentBuilder
pub fn create_detector_version(&self) -> CreateDetectorVersionFluentBuilder
Constructs a fluent builder for the CreateDetectorVersion
operation.
- The fluent builder is configurable:
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe ID of the detector under which you want to create a new version.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the detector version.
external_model_endpoints(impl Into<String>)
/set_external_model_endpoints(Option<Vec::<String>>)
:
required: falseThe Amazon Sagemaker model endpoints to include in the detector version.
rules(Rule)
/set_rules(Option<Vec::<Rule>>)
:
required: trueThe rules to include in the detector version.
model_versions(ModelVersion)
/set_model_versions(Option<Vec::<ModelVersion>>)
:
required: falseThe model versions to include in the detector version.
rule_execution_mode(RuleExecutionMode)
/set_rule_execution_mode(Option<RuleExecutionMode>)
:
required: falseThe rule execution mode for the rules included in the detector version.
You can define and edit the rule mode at the detector version level, when it is in draft status.
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.The default behavior is
FIRST_MATCHED
.tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
CreateDetectorVersionOutput
with field(s):detector_id(Option<String>)
:The ID for the created version’s parent detector.
detector_version_id(Option<String>)
:The ID for the created detector.
status(Option<DetectorVersionStatus>)
:The status of the detector version.
- On failure, responds with
SdkError<CreateDetectorVersionError>
source§impl Client
impl Client
sourcepub fn create_list(&self) -> CreateListFluentBuilder
pub fn create_list(&self) -> CreateListFluentBuilder
Constructs a fluent builder for the CreateList
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the list.
elements(impl Into<String>)
/set_elements(Option<Vec::<String>>)
:
required: falseThe names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API.
variable_type(impl Into<String>)
/set_variable_type(Option<String>)
:
required: falseThe variable type of the list. You can only assign the variable type with String data type. For more information, see Variable types.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the list.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of the key and value pairs.
- On success, responds with
CreateListOutput
- On failure, responds with
SdkError<CreateListError>
source§impl Client
impl Client
sourcepub fn create_model(&self) -> CreateModelFluentBuilder
pub fn create_model(&self) -> CreateModelFluentBuilder
Constructs a fluent builder for the CreateModel
operation.
- The fluent builder is configurable:
model_id(impl Into<String>)
/set_model_id(Option<String>)
:
required: trueThe model ID.
model_type(ModelTypeEnum)
/set_model_type(Option<ModelTypeEnum>)
:
required: trueThe model type.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe model description.
event_type_name(impl Into<String>)
/set_event_type_name(Option<String>)
:
required: trueThe name of the event type.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
CreateModelOutput
- On failure, responds with
SdkError<CreateModelError>
source§impl Client
impl Client
sourcepub fn create_model_version(&self) -> CreateModelVersionFluentBuilder
pub fn create_model_version(&self) -> CreateModelVersionFluentBuilder
Constructs a fluent builder for the CreateModelVersion
operation.
- The fluent builder is configurable:
model_id(impl Into<String>)
/set_model_id(Option<String>)
:
required: trueThe model ID.
model_type(ModelTypeEnum)
/set_model_type(Option<ModelTypeEnum>)
:
required: trueThe model type.
training_data_source(TrainingDataSourceEnum)
/set_training_data_source(Option<TrainingDataSourceEnum>)
:
required: trueThe training data source location in Amazon S3.
training_data_schema(TrainingDataSchema)
/set_training_data_schema(Option<TrainingDataSchema>)
:
required: trueThe training data schema.
external_events_detail(ExternalEventsDetail)
/set_external_events_detail(Option<ExternalEventsDetail>)
:
required: falseDetails of the external events data used for model version training. Required if
trainingDataSource
isEXTERNAL_EVENTS
.ingested_events_detail(IngestedEventsDetail)
/set_ingested_events_detail(Option<IngestedEventsDetail>)
:
required: falseDetails of the ingested events data used for model version training. Required if
trainingDataSource
isINGESTED_EVENTS
.tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
CreateModelVersionOutput
with field(s):model_id(Option<String>)
:The model ID.
model_type(Option<ModelTypeEnum>)
:The model type.
model_version_number(Option<String>)
:The model version number of the model version created.
status(Option<String>)
:The model version status.
- On failure, responds with
SdkError<CreateModelVersionError>
source§impl Client
impl Client
sourcepub fn create_rule(&self) -> CreateRuleFluentBuilder
pub fn create_rule(&self) -> CreateRuleFluentBuilder
Constructs a fluent builder for the CreateRule
operation.
- The fluent builder is configurable:
rule_id(impl Into<String>)
/set_rule_id(Option<String>)
:
required: trueThe rule ID.
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe detector ID for the rule’s parent detector.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe rule description.
expression(impl Into<String>)
/set_expression(Option<String>)
:
required: trueThe rule expression.
language(Language)
/set_language(Option<Language>)
:
required: trueThe language of the rule.
outcomes(impl Into<String>)
/set_outcomes(Option<Vec::<String>>)
:
required: trueThe outcome or outcomes returned when the rule expression matches.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
CreateRuleOutput
with field(s):rule(Option<Rule>)
:The created rule.
- On failure, responds with
SdkError<CreateRuleError>
source§impl Client
impl Client
sourcepub fn create_variable(&self) -> CreateVariableFluentBuilder
pub fn create_variable(&self) -> CreateVariableFluentBuilder
Constructs a fluent builder for the CreateVariable
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the variable.
data_type(DataType)
/set_data_type(Option<DataType>)
:
required: trueThe data type of the variable.
data_source(DataSource)
/set_data_source(Option<DataSource>)
:
required: trueThe source of the data.
default_value(impl Into<String>)
/set_default_value(Option<String>)
:
required: trueThe default value for the variable when no value is received.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description.
variable_type(impl Into<String>)
/set_variable_type(Option<String>)
:
required: falseThe variable type. For more information see Variable types.
Valid Values:
AUTH_CODE | AVS | BILLING_ADDRESS_L1 | BILLING_ADDRESS_L2 | BILLING_CITY | BILLING_COUNTRY | BILLING_NAME | BILLING_PHONE | BILLING_STATE | BILLING_ZIP | CARD_BIN | CATEGORICAL | CURRENCY_CODE | EMAIL_ADDRESS | FINGERPRINT | FRAUD_LABEL | FREE_FORM_TEXT | IP_ADDRESS | NUMERIC | ORDER_ID | PAYMENT_TYPE | PHONE_NUMBER | PRICE | PRODUCT_CATEGORY | SHIPPING_ADDRESS_L1 | SHIPPING_ADDRESS_L2 | SHIPPING_CITY | SHIPPING_COUNTRY | SHIPPING_NAME | SHIPPING_PHONE | SHIPPING_STATE | SHIPPING_ZIP | USERAGENT
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
CreateVariableOutput
- On failure, responds with
SdkError<CreateVariableError>
source§impl Client
impl Client
sourcepub fn delete_batch_import_job(&self) -> DeleteBatchImportJobFluentBuilder
pub fn delete_batch_import_job(&self) -> DeleteBatchImportJobFluentBuilder
Constructs a fluent builder for the DeleteBatchImportJob
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:
required: trueThe ID of the batch import job to delete.
- On success, responds with
DeleteBatchImportJobOutput
- On failure, responds with
SdkError<DeleteBatchImportJobError>
source§impl Client
impl Client
sourcepub fn delete_batch_prediction_job(
&self
) -> DeleteBatchPredictionJobFluentBuilder
pub fn delete_batch_prediction_job( &self ) -> DeleteBatchPredictionJobFluentBuilder
Constructs a fluent builder for the DeleteBatchPredictionJob
operation.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:
required: trueThe ID of the batch prediction job to delete.
- On success, responds with
DeleteBatchPredictionJobOutput
- On failure, responds with
SdkError<DeleteBatchPredictionJobError>
source§impl Client
impl Client
sourcepub fn delete_detector(&self) -> DeleteDetectorFluentBuilder
pub fn delete_detector(&self) -> DeleteDetectorFluentBuilder
Constructs a fluent builder for the DeleteDetector
operation.
- The fluent builder is configurable:
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe ID of the detector to delete.
- On success, responds with
DeleteDetectorOutput
- On failure, responds with
SdkError<DeleteDetectorError>
source§impl Client
impl Client
sourcepub fn delete_detector_version(&self) -> DeleteDetectorVersionFluentBuilder
pub fn delete_detector_version(&self) -> DeleteDetectorVersionFluentBuilder
Constructs a fluent builder for the DeleteDetectorVersion
operation.
- The fluent builder is configurable:
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe ID of the parent detector for the detector version to delete.
detector_version_id(impl Into<String>)
/set_detector_version_id(Option<String>)
:
required: trueThe ID of the detector version to delete.
- On success, responds with
DeleteDetectorVersionOutput
- On failure, responds with
SdkError<DeleteDetectorVersionError>
source§impl Client
impl Client
sourcepub fn delete_entity_type(&self) -> DeleteEntityTypeFluentBuilder
pub fn delete_entity_type(&self) -> DeleteEntityTypeFluentBuilder
Constructs a fluent builder for the DeleteEntityType
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the entity type to delete.
- On success, responds with
DeleteEntityTypeOutput
- On failure, responds with
SdkError<DeleteEntityTypeError>
source§impl Client
impl Client
sourcepub fn delete_event(&self) -> DeleteEventFluentBuilder
pub fn delete_event(&self) -> DeleteEventFluentBuilder
Constructs a fluent builder for the DeleteEvent
operation.
- The fluent builder is configurable:
event_id(impl Into<String>)
/set_event_id(Option<String>)
:
required: trueThe ID of the event to delete.
event_type_name(impl Into<String>)
/set_event_type_name(Option<String>)
:
required: trueThe name of the event type.
delete_audit_history(bool)
/set_delete_audit_history(Option<bool>)
:
required: falseSpecifies whether or not to delete any predictions associated with the event. If set to
True
,
- On success, responds with
DeleteEventOutput
- On failure, responds with
SdkError<DeleteEventError>
source§impl Client
impl Client
sourcepub fn delete_event_type(&self) -> DeleteEventTypeFluentBuilder
pub fn delete_event_type(&self) -> DeleteEventTypeFluentBuilder
Constructs a fluent builder for the DeleteEventType
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the event type to delete.
- On success, responds with
DeleteEventTypeOutput
- On failure, responds with
SdkError<DeleteEventTypeError>
source§impl Client
impl Client
sourcepub fn delete_events_by_event_type(
&self
) -> DeleteEventsByEventTypeFluentBuilder
pub fn delete_events_by_event_type( &self ) -> DeleteEventsByEventTypeFluentBuilder
Constructs a fluent builder for the DeleteEventsByEventType
operation.
- The fluent builder is configurable:
event_type_name(impl Into<String>)
/set_event_type_name(Option<String>)
:
required: trueThe name of the event type.
- On success, responds with
DeleteEventsByEventTypeOutput
with field(s):event_type_name(Option<String>)
:Name of event type for which to delete the events.
events_deletion_status(Option<String>)
:The status of the delete request.
- On failure, responds with
SdkError<DeleteEventsByEventTypeError>
source§impl Client
impl Client
sourcepub fn delete_external_model(&self) -> DeleteExternalModelFluentBuilder
pub fn delete_external_model(&self) -> DeleteExternalModelFluentBuilder
Constructs a fluent builder for the DeleteExternalModel
operation.
- The fluent builder is configurable:
model_endpoint(impl Into<String>)
/set_model_endpoint(Option<String>)
:
required: trueThe endpoint of the Amazon Sagemaker model to delete.
- On success, responds with
DeleteExternalModelOutput
- On failure, responds with
SdkError<DeleteExternalModelError>
source§impl Client
impl Client
sourcepub fn delete_label(&self) -> DeleteLabelFluentBuilder
pub fn delete_label(&self) -> DeleteLabelFluentBuilder
Constructs a fluent builder for the DeleteLabel
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the label to delete.
- On success, responds with
DeleteLabelOutput
- On failure, responds with
SdkError<DeleteLabelError>
source§impl Client
impl Client
sourcepub fn delete_list(&self) -> DeleteListFluentBuilder
pub fn delete_list(&self) -> DeleteListFluentBuilder
Constructs a fluent builder for the DeleteList
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the list to delete.
- On success, responds with
DeleteListOutput
- On failure, responds with
SdkError<DeleteListError>
source§impl Client
impl Client
sourcepub fn delete_model(&self) -> DeleteModelFluentBuilder
pub fn delete_model(&self) -> DeleteModelFluentBuilder
Constructs a fluent builder for the DeleteModel
operation.
- The fluent builder is configurable:
model_id(impl Into<String>)
/set_model_id(Option<String>)
:
required: trueThe model ID of the model to delete.
model_type(ModelTypeEnum)
/set_model_type(Option<ModelTypeEnum>)
:
required: trueThe model type of the model to delete.
- On success, responds with
DeleteModelOutput
- On failure, responds with
SdkError<DeleteModelError>
source§impl Client
impl Client
sourcepub fn delete_model_version(&self) -> DeleteModelVersionFluentBuilder
pub fn delete_model_version(&self) -> DeleteModelVersionFluentBuilder
Constructs a fluent builder for the DeleteModelVersion
operation.
- The fluent builder is configurable:
model_id(impl Into<String>)
/set_model_id(Option<String>)
:
required: trueThe model ID of the model version to delete.
model_type(ModelTypeEnum)
/set_model_type(Option<ModelTypeEnum>)
:
required: trueThe model type of the model version to delete.
model_version_number(impl Into<String>)
/set_model_version_number(Option<String>)
:
required: trueThe model version number of the model version to delete.
- On success, responds with
DeleteModelVersionOutput
- On failure, responds with
SdkError<DeleteModelVersionError>
source§impl Client
impl Client
sourcepub fn delete_outcome(&self) -> DeleteOutcomeFluentBuilder
pub fn delete_outcome(&self) -> DeleteOutcomeFluentBuilder
Constructs a fluent builder for the DeleteOutcome
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the outcome to delete.
- On success, responds with
DeleteOutcomeOutput
- On failure, responds with
SdkError<DeleteOutcomeError>
source§impl Client
impl Client
sourcepub fn delete_rule(&self) -> DeleteRuleFluentBuilder
pub fn delete_rule(&self) -> DeleteRuleFluentBuilder
Constructs a fluent builder for the DeleteRule
operation.
- The fluent builder is configurable:
rule(Rule)
/set_rule(Option<Rule>)
:
required: trueA rule.
- On success, responds with
DeleteRuleOutput
- On failure, responds with
SdkError<DeleteRuleError>
source§impl Client
impl Client
sourcepub fn delete_variable(&self) -> DeleteVariableFluentBuilder
pub fn delete_variable(&self) -> DeleteVariableFluentBuilder
Constructs a fluent builder for the DeleteVariable
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the variable to delete.
- On success, responds with
DeleteVariableOutput
- On failure, responds with
SdkError<DeleteVariableError>
source§impl Client
impl Client
sourcepub fn describe_detector(&self) -> DescribeDetectorFluentBuilder
pub fn describe_detector(&self) -> DescribeDetectorFluentBuilder
Constructs a fluent builder for the DescribeDetector
operation.
- The fluent builder is configurable:
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe detector ID.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next token from the previous response.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return for the request.
- On success, responds with
DescribeDetectorOutput
with field(s):detector_id(Option<String>)
:The detector ID.
detector_version_summaries(Option<Vec::<DetectorVersionSummary>>)
:The status and description for each detector version.
next_token(Option<String>)
:The next token to be used for subsequent requests.
arn(Option<String>)
:The detector ARN.
- On failure, responds with
SdkError<DescribeDetectorError>
source§impl Client
impl Client
sourcepub fn describe_model_versions(&self) -> DescribeModelVersionsFluentBuilder
pub fn describe_model_versions(&self) -> DescribeModelVersionsFluentBuilder
Constructs a fluent builder for the DescribeModelVersions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
model_id(impl Into<String>)
/set_model_id(Option<String>)
:
required: falseThe model ID.
model_version_number(impl Into<String>)
/set_model_version_number(Option<String>)
:
required: falseThe model version number.
model_type(ModelTypeEnum)
/set_model_type(Option<ModelTypeEnum>)
:
required: falseThe model type.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next token from the previous results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return.
- On success, responds with
DescribeModelVersionsOutput
with field(s):model_version_details(Option<Vec::<ModelVersionDetail>>)
:The model version details.
next_token(Option<String>)
:The next token.
- On failure, responds with
SdkError<DescribeModelVersionsError>
source§impl Client
impl Client
sourcepub fn get_batch_import_jobs(&self) -> GetBatchImportJobsFluentBuilder
pub fn get_batch_import_jobs(&self) -> GetBatchImportJobsFluentBuilder
Constructs a fluent builder for the GetBatchImportJobs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:
required: falseThe ID of the batch import job to get.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of objects to return for request.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next token from the previous request.
- On success, responds with
GetBatchImportJobsOutput
with field(s):batch_imports(Option<Vec::<BatchImport>>)
:An array containing the details of each batch import job.
next_token(Option<String>)
:The next token for the subsequent resquest.
- On failure, responds with
SdkError<GetBatchImportJobsError>
source§impl Client
impl Client
sourcepub fn get_batch_prediction_jobs(&self) -> GetBatchPredictionJobsFluentBuilder
pub fn get_batch_prediction_jobs(&self) -> GetBatchPredictionJobsFluentBuilder
Constructs a fluent builder for the GetBatchPredictionJobs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
job_id(impl Into<String>)
/set_job_id(Option<String>)
:
required: falseThe batch prediction job for which to get the details.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of objects to return for the request.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next token from the previous request.
- On success, responds with
GetBatchPredictionJobsOutput
with field(s):batch_predictions(Option<Vec::<BatchPrediction>>)
:An array containing the details of each batch prediction job.
next_token(Option<String>)
:The next token for the subsequent request.
- On failure, responds with
SdkError<GetBatchPredictionJobsError>
source§impl Client
impl Client
sourcepub fn get_delete_events_by_event_type_status(
&self
) -> GetDeleteEventsByEventTypeStatusFluentBuilder
pub fn get_delete_events_by_event_type_status( &self ) -> GetDeleteEventsByEventTypeStatusFluentBuilder
Constructs a fluent builder for the GetDeleteEventsByEventTypeStatus
operation.
- The fluent builder is configurable:
event_type_name(impl Into<String>)
/set_event_type_name(Option<String>)
:
required: trueName of event type for which to get the deletion status.
- On success, responds with
GetDeleteEventsByEventTypeStatusOutput
with field(s):event_type_name(Option<String>)
:The event type name.
events_deletion_status(Option<AsyncJobStatus>)
:The deletion status.
- On failure, responds with
SdkError<GetDeleteEventsByEventTypeStatusError>
source§impl Client
impl Client
sourcepub fn get_detector_version(&self) -> GetDetectorVersionFluentBuilder
pub fn get_detector_version(&self) -> GetDetectorVersionFluentBuilder
Constructs a fluent builder for the GetDetectorVersion
operation.
- The fluent builder is configurable:
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe detector ID.
detector_version_id(impl Into<String>)
/set_detector_version_id(Option<String>)
:
required: trueThe detector version ID.
- On success, responds with
GetDetectorVersionOutput
with field(s):detector_id(Option<String>)
:The detector ID.
detector_version_id(Option<String>)
:The detector version ID.
description(Option<String>)
:The detector version description.
external_model_endpoints(Option<Vec::<String>>)
:The Amazon SageMaker model endpoints included in the detector version.
model_versions(Option<Vec::<ModelVersion>>)
:The model versions included in the detector version.
rules(Option<Vec::<Rule>>)
:The rules included in the detector version.
status(Option<DetectorVersionStatus>)
:The status of the detector version.
last_updated_time(Option<String>)
:The timestamp when the detector version was last updated.
created_time(Option<String>)
:The timestamp when the detector version was created.
rule_execution_mode(Option<RuleExecutionMode>)
:The execution mode of the rule in the dectector
FIRST_MATCHED
indicates that 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.ALL_MATCHED
indicates that 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.arn(Option<String>)
:The detector version ARN.
- On failure, responds with
SdkError<GetDetectorVersionError>
source§impl Client
impl Client
sourcepub fn get_detectors(&self) -> GetDetectorsFluentBuilder
pub fn get_detectors(&self) -> GetDetectorsFluentBuilder
Constructs a fluent builder for the GetDetectors
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: falseThe detector ID.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next token for the subsequent request.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of objects to return for the request.
- On success, responds with
GetDetectorsOutput
with field(s):detectors(Option<Vec::<Detector>>)
:The detectors.
next_token(Option<String>)
:The next page token.
- On failure, responds with
SdkError<GetDetectorsError>
source§impl Client
impl Client
sourcepub fn get_entity_types(&self) -> GetEntityTypesFluentBuilder
pub fn get_entity_types(&self) -> GetEntityTypesFluentBuilder
Constructs a fluent builder for the GetEntityTypes
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next token for the subsequent request.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of objects to return for the request.
- On success, responds with
GetEntityTypesOutput
with field(s):entity_types(Option<Vec::<EntityType>>)
:An array of entity types.
next_token(Option<String>)
:The next page token.
- On failure, responds with
SdkError<GetEntityTypesError>
source§impl Client
impl Client
sourcepub fn get_event(&self) -> GetEventFluentBuilder
pub fn get_event(&self) -> GetEventFluentBuilder
Constructs a fluent builder for the GetEvent
operation.
- The fluent builder is configurable:
event_id(impl Into<String>)
/set_event_id(Option<String>)
:
required: trueThe ID of the event to retrieve.
event_type_name(impl Into<String>)
/set_event_type_name(Option<String>)
:
required: trueThe event type of the event to retrieve.
- On success, responds with
GetEventOutput
with field(s):event(Option<Event>)
:The details of the event.
- On failure, responds with
SdkError<GetEventError>
source§impl Client
impl Client
sourcepub fn get_event_prediction(&self) -> GetEventPredictionFluentBuilder
pub fn get_event_prediction(&self) -> GetEventPredictionFluentBuilder
Constructs a fluent builder for the GetEventPrediction
operation.
- The fluent builder is configurable:
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe detector ID.
detector_version_id(impl Into<String>)
/set_detector_version_id(Option<String>)
:
required: falseThe detector version ID.
event_id(impl Into<String>)
/set_event_id(Option<String>)
:
required: trueThe unique ID used to identify the event.
event_type_name(impl Into<String>)
/set_event_type_name(Option<String>)
:
required: trueThe event type associated with the detector specified for the prediction.
entities(Entity)
/set_entities(Option<Vec::<Entity>>)
:
required: trueThe entity type (associated with the detector’s event type) and specific entity ID representing who performed the event. If an entity id is not available, use “UNKNOWN.”
event_timestamp(impl Into<String>)
/set_event_timestamp(Option<String>)
:
required: trueTimestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
event_variables(impl Into<String>, impl Into<String>)
/set_event_variables(Option<HashMap::<String, String>>)
:
required: trueNames of the event type’s variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.
You must provide at least one eventVariable
To ensure most accurate fraud prediction and to simplify your data preparation, Amazon Fraud Detector will replace all missing variables or values as follows:
For Amazon Fraud Detector trained models:
If a null value is provided explicitly for a variable or if a variable is missing, model will replace the null value or the missing variable (no variable name in the eventVariables map) with calculated default mean/medians for numeric variables and with special values for categorical variables.
For imported SageMaker models:
If a null value is provided explicitly for a variable, the model and rules will use “null” as the value. If a variable is not provided (no variable name in the eventVariables map), model and rules will use the default value that is provided for the variable.
external_model_endpoint_data_blobs(impl Into<String>, ModelEndpointDataBlob)
/set_external_model_endpoint_data_blobs(Option<HashMap::<String, ModelEndpointDataBlob>>)
:
required: falseThe Amazon SageMaker model endpoint input data blobs.
- On success, responds with
GetEventPredictionOutput
with field(s):model_scores(Option<Vec::<ModelScores>>)
:The model scores. Amazon Fraud Detector generates model scores between 0 and 1000, where 0 is low fraud risk and 1000 is high fraud risk. Model scores are directly related to the false positive rate (FPR). For example, a score of 600 corresponds to an estimated 10% false positive rate whereas a score of 900 corresponds to an estimated 2% false positive rate.
rule_results(Option<Vec::<RuleResult>>)
:The results from the rules.
external_model_outputs(Option<Vec::<ExternalModelOutputs>>)
:The model scores for Amazon SageMaker models.
- On failure, responds with
SdkError<GetEventPredictionError>
source§impl Client
impl Client
sourcepub fn get_event_prediction_metadata(
&self
) -> GetEventPredictionMetadataFluentBuilder
pub fn get_event_prediction_metadata( &self ) -> GetEventPredictionMetadataFluentBuilder
Constructs a fluent builder for the GetEventPredictionMetadata
operation.
- The fluent builder is configurable:
event_id(impl Into<String>)
/set_event_id(Option<String>)
:
required: trueThe event ID.
event_type_name(impl Into<String>)
/set_event_type_name(Option<String>)
:
required: trueThe event type associated with the detector specified for the prediction.
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe detector ID.
detector_version_id(impl Into<String>)
/set_detector_version_id(Option<String>)
:
required: trueThe detector version ID.
prediction_timestamp(impl Into<String>)
/set_prediction_timestamp(Option<String>)
:
required: trueThe timestamp that defines when the prediction was generated. The timestamp must be specified using ISO 8601 standard in UTC.
We recommend calling ListEventPredictions first, and using the
predictionTimestamp
value in the response to provide an accurate prediction timestamp value.
- On success, responds with
GetEventPredictionMetadataOutput
with field(s):event_id(Option<String>)
:The event ID.
event_type_name(Option<String>)
:The event type associated with the detector specified for this prediction.
entity_id(Option<String>)
:The entity ID.
entity_type(Option<String>)
:The entity type.
event_timestamp(Option<String>)
:The timestamp for when the prediction was generated for the associated event ID.
detector_id(Option<String>)
:The detector ID.
detector_version_id(Option<String>)
:The detector version ID.
detector_version_status(Option<String>)
:The status of the detector version.
event_variables(Option<Vec::<EventVariableSummary>>)
:A list of event variables that influenced the prediction scores.
rules(Option<Vec::<EvaluatedRule>>)
:List of rules associated with the detector version that were used for evaluating variable values.
rule_execution_mode(Option<RuleExecutionMode>)
:The execution mode of the rule used for evaluating variable values.
outcomes(Option<Vec::<String>>)
:The outcomes of the matched rule, based on the rule execution mode.
evaluated_model_versions(Option<Vec::<EvaluatedModelVersion>>)
:Model versions that were evaluated for generating predictions.
evaluated_external_models(Option<Vec::<EvaluatedExternalModel>>)
:External (Amazon SageMaker) models that were evaluated for generating predictions.
prediction_timestamp(Option<String>)
:The timestamp that defines when the prediction was generated.
- On failure, responds with
SdkError<GetEventPredictionMetadataError>
source§impl Client
impl Client
sourcepub fn get_event_types(&self) -> GetEventTypesFluentBuilder
pub fn get_event_types(&self) -> GetEventTypesFluentBuilder
Constructs a fluent builder for the GetEventTypes
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next token for the subsequent request.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of objects to return for the request.
- On success, responds with
GetEventTypesOutput
with field(s):event_types(Option<Vec::<EventType>>)
:An array of event types.
next_token(Option<String>)
:The next page token.
- On failure, responds with
SdkError<GetEventTypesError>
source§impl Client
impl Client
sourcepub fn get_external_models(&self) -> GetExternalModelsFluentBuilder
pub fn get_external_models(&self) -> GetExternalModelsFluentBuilder
Constructs a fluent builder for the GetExternalModels
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
model_endpoint(impl Into<String>)
/set_model_endpoint(Option<String>)
:
required: falseThe Amazon SageMaker model endpoint.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next page token for the request.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of objects to return for the request.
- On success, responds with
GetExternalModelsOutput
with field(s):external_models(Option<Vec::<ExternalModel>>)
:Gets the Amazon SageMaker models.
next_token(Option<String>)
:The next page token to be used in subsequent requests.
- On failure, responds with
SdkError<GetExternalModelsError>
source§impl Client
impl Client
sourcepub fn get_kms_encryption_key(&self) -> GetKMSEncryptionKeyFluentBuilder
pub fn get_kms_encryption_key(&self) -> GetKMSEncryptionKeyFluentBuilder
Constructs a fluent builder for the GetKMSEncryptionKey
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
GetKmsEncryptionKeyOutput
with field(s):kms_key(Option<KmsKey>)
:The KMS encryption key.
- On failure, responds with
SdkError<GetKMSEncryptionKeyError>
source§impl Client
impl Client
sourcepub fn get_labels(&self) -> GetLabelsFluentBuilder
pub fn get_labels(&self) -> GetLabelsFluentBuilder
Constructs a fluent builder for the GetLabels
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the label or labels to get.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next token for the subsequent request.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of objects to return for the request.
- On success, responds with
GetLabelsOutput
with field(s):labels(Option<Vec::<Label>>)
:An array of labels.
next_token(Option<String>)
:The next page token.
- On failure, responds with
SdkError<GetLabelsError>
source§impl Client
impl Client
sourcepub fn get_list_elements(&self) -> GetListElementsFluentBuilder
pub fn get_list_elements(&self) -> GetListElementsFluentBuilder
Constructs a fluent builder for the GetListElements
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the list.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next token for the subsequent request.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of objects to return for the request.
- On success, responds with
GetListElementsOutput
with field(s):elements(Option<Vec::<String>>)
:The list elements.
next_token(Option<String>)
:The next page token.
- On failure, responds with
SdkError<GetListElementsError>
source§impl Client
impl Client
sourcepub fn get_lists_metadata(&self) -> GetListsMetadataFluentBuilder
pub fn get_lists_metadata(&self) -> GetListsMetadataFluentBuilder
Constructs a fluent builder for the GetListsMetadata
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the list.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next token for the subsequent request.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of objects to return for the request.
- On success, responds with
GetListsMetadataOutput
with field(s):lists(Option<Vec::<AllowDenyList>>)
:The metadata of the specified list or all lists under the account.
next_token(Option<String>)
:The next page token.
- On failure, responds with
SdkError<GetListsMetadataError>
source§impl Client
impl Client
sourcepub fn get_model_version(&self) -> GetModelVersionFluentBuilder
pub fn get_model_version(&self) -> GetModelVersionFluentBuilder
Constructs a fluent builder for the GetModelVersion
operation.
- The fluent builder is configurable:
model_id(impl Into<String>)
/set_model_id(Option<String>)
:
required: trueThe model ID.
model_type(ModelTypeEnum)
/set_model_type(Option<ModelTypeEnum>)
:
required: trueThe model type.
model_version_number(impl Into<String>)
/set_model_version_number(Option<String>)
:
required: trueThe model version number.
- On success, responds with
GetModelVersionOutput
with field(s):model_id(Option<String>)
:The model ID.
model_type(Option<ModelTypeEnum>)
:The model type.
model_version_number(Option<String>)
:The model version number.
training_data_source(Option<TrainingDataSourceEnum>)
:The training data source.
training_data_schema(Option<TrainingDataSchema>)
:The training data schema.
external_events_detail(Option<ExternalEventsDetail>)
:The details of the external events data used for training the model version. This will be populated if the
trainingDataSource
isEXTERNAL_EVENTS
ingested_events_detail(Option<IngestedEventsDetail>)
:The details of the ingested events data used for training the model version. This will be populated if the
trainingDataSource
isINGESTED_EVENTS
.status(Option<String>)
:The model version status.
Possible values are:
-
TRAINING_IN_PROGRESS
-
TRAINING_COMPLETE
-
ACTIVATE_REQUESTED
-
ACTIVATE_IN_PROGRESS
-
ACTIVE
-
INACTIVATE_REQUESTED
-
INACTIVATE_IN_PROGRESS
-
INACTIVE
-
ERROR
-
arn(Option<String>)
:The model version ARN.
- On failure, responds with
SdkError<GetModelVersionError>
source§impl Client
impl Client
sourcepub fn get_models(&self) -> GetModelsFluentBuilder
pub fn get_models(&self) -> GetModelsFluentBuilder
Constructs a fluent builder for the GetModels
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
model_id(impl Into<String>)
/set_model_id(Option<String>)
:
required: falseThe model ID.
model_type(ModelTypeEnum)
/set_model_type(Option<ModelTypeEnum>)
:
required: falseThe model type.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next token for the subsequent request.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of objects to return for the request.
- On success, responds with
GetModelsOutput
with field(s):next_token(Option<String>)
:The next page token to be used in subsequent requests.
models(Option<Vec::<Model>>)
:The array of models.
- On failure, responds with
SdkError<GetModelsError>
source§impl Client
impl Client
sourcepub fn get_outcomes(&self) -> GetOutcomesFluentBuilder
pub fn get_outcomes(&self) -> GetOutcomesFluentBuilder
Constructs a fluent builder for the GetOutcomes
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the outcome or outcomes to get.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next page token for the request.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of objects to return for the request.
- On success, responds with
GetOutcomesOutput
with field(s):outcomes(Option<Vec::<Outcome>>)
:The outcomes.
next_token(Option<String>)
:The next page token for subsequent requests.
- On failure, responds with
SdkError<GetOutcomesError>
source§impl Client
impl Client
sourcepub fn get_rules(&self) -> GetRulesFluentBuilder
pub fn get_rules(&self) -> GetRulesFluentBuilder
Constructs a fluent builder for the GetRules
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
rule_id(impl Into<String>)
/set_rule_id(Option<String>)
:
required: falseThe rule ID.
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe detector ID.
rule_version(impl Into<String>)
/set_rule_version(Option<String>)
:
required: falseThe rule version.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next page token.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of rules to return for the request.
- On success, responds with
GetRulesOutput
with field(s):rule_details(Option<Vec::<RuleDetail>>)
:The details of the requested rule.
next_token(Option<String>)
:The next page token to be used in subsequent requests.
- On failure, responds with
SdkError<GetRulesError>
source§impl Client
impl Client
sourcepub fn get_variables(&self) -> GetVariablesFluentBuilder
pub fn get_variables(&self) -> GetVariablesFluentBuilder
Constructs a fluent builder for the GetVariables
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the variable.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next page token of the get variable request.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe max size per page determined for the get variable request.
- On success, responds with
GetVariablesOutput
with field(s):variables(Option<Vec::<Variable>>)
:The names of the variables returned.
next_token(Option<String>)
:The next page token to be used in subsequent requests.
- On failure, responds with
SdkError<GetVariablesError>
source§impl Client
impl Client
sourcepub fn list_event_predictions(&self) -> ListEventPredictionsFluentBuilder
pub fn list_event_predictions(&self) -> ListEventPredictionsFluentBuilder
Constructs a fluent builder for the ListEventPredictions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
event_id(FilterCondition)
/set_event_id(Option<FilterCondition>)
:
required: falseThe event ID.
event_type(FilterCondition)
/set_event_type(Option<FilterCondition>)
:
required: falseThe event type associated with the detector.
detector_id(FilterCondition)
/set_detector_id(Option<FilterCondition>)
:
required: falseThe detector ID.
detector_version_id(FilterCondition)
/set_detector_version_id(Option<FilterCondition>)
:
required: falseThe detector version ID.
prediction_time_range(PredictionTimeRange)
/set_prediction_time_range(Option<PredictionTimeRange>)
:
required: falseThe time period for when the predictions were generated.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseIdentifies the next page of results to return. Use the token to make the call again to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of predictions to return for the request.
- On success, responds with
ListEventPredictionsOutput
with field(s):event_prediction_summaries(Option<Vec::<EventPredictionSummary>>)
:The summary of the past predictions.
next_token(Option<String>)
:Identifies the next page of results to return. Use the token to make the call again to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.
- On failure, responds with
SdkError<ListEventPredictionsError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe ARN that specifies the resource whose tags you want to list.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe next token from the previous results.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of objects to return for the request.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<Vec::<Tag>>)
:A collection of key and value pairs.
next_token(Option<String>)
:The next token for subsequent requests.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn put_detector(&self) -> PutDetectorFluentBuilder
pub fn put_detector(&self) -> PutDetectorFluentBuilder
Constructs a fluent builder for the PutDetector
operation.
- The fluent builder is configurable:
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe detector ID.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the detector.
event_type_name(impl Into<String>)
/set_event_type_name(Option<String>)
:
required: trueThe name of the event type.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
PutDetectorOutput
- On failure, responds with
SdkError<PutDetectorError>
source§impl Client
impl Client
sourcepub fn put_entity_type(&self) -> PutEntityTypeFluentBuilder
pub fn put_entity_type(&self) -> PutEntityTypeFluentBuilder
Constructs a fluent builder for the PutEntityType
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the entity type.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
PutEntityTypeOutput
- On failure, responds with
SdkError<PutEntityTypeError>
source§impl Client
impl Client
sourcepub fn put_event_type(&self) -> PutEventTypeFluentBuilder
pub fn put_event_type(&self) -> PutEventTypeFluentBuilder
Constructs a fluent builder for the PutEventType
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the event type.
event_variables(impl Into<String>)
/set_event_variables(Option<Vec::<String>>)
:
required: trueThe event type variables.
labels(impl Into<String>)
/set_labels(Option<Vec::<String>>)
:
required: falseThe event type labels.
entity_types(impl Into<String>)
/set_entity_types(Option<Vec::<String>>)
:
required: trueThe entity type for the event type. Example entity types: customer, merchant, account.
event_ingestion(EventIngestion)
/set_event_ingestion(Option<EventIngestion>)
:
required: falseSpecifies if ingestion is enabled or disabled.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
event_orchestration(EventOrchestration)
/set_event_orchestration(Option<EventOrchestration>)
:
required: falseEnables or disables event orchestration. If enabled, you can send event predictions to select AWS services for downstream processing of the events.
- On success, responds with
PutEventTypeOutput
- On failure, responds with
SdkError<PutEventTypeError>
source§impl Client
impl Client
sourcepub fn put_external_model(&self) -> PutExternalModelFluentBuilder
pub fn put_external_model(&self) -> PutExternalModelFluentBuilder
Constructs a fluent builder for the PutExternalModel
operation.
- The fluent builder is configurable:
model_endpoint(impl Into<String>)
/set_model_endpoint(Option<String>)
:
required: trueThe model endpoints name.
model_source(ModelSource)
/set_model_source(Option<ModelSource>)
:
required: trueThe source of the model.
invoke_model_endpoint_role_arn(impl Into<String>)
/set_invoke_model_endpoint_role_arn(Option<String>)
:
required: trueThe IAM role used to invoke the model endpoint.
input_configuration(ModelInputConfiguration)
/set_input_configuration(Option<ModelInputConfiguration>)
:
required: trueThe model endpoint input configuration.
output_configuration(ModelOutputConfiguration)
/set_output_configuration(Option<ModelOutputConfiguration>)
:
required: trueThe model endpoint output configuration.
model_endpoint_status(ModelEndpointStatus)
/set_model_endpoint_status(Option<ModelEndpointStatus>)
:
required: trueThe model endpoint’s status in Amazon Fraud Detector.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
PutExternalModelOutput
- On failure, responds with
SdkError<PutExternalModelError>
source§impl Client
impl Client
sourcepub fn put_kms_encryption_key(&self) -> PutKMSEncryptionKeyFluentBuilder
pub fn put_kms_encryption_key(&self) -> PutKMSEncryptionKeyFluentBuilder
Constructs a fluent builder for the PutKMSEncryptionKey
operation.
- The fluent builder is configurable:
kms_encryption_key_arn(impl Into<String>)
/set_kms_encryption_key_arn(Option<String>)
:
required: trueThe KMS encryption key ARN.
The KMS key must be single-Region key. Amazon Fraud Detector does not support multi-Region KMS key.
- On success, responds with
PutKmsEncryptionKeyOutput
- On failure, responds with
SdkError<PutKMSEncryptionKeyError>
source§impl Client
impl Client
sourcepub fn put_label(&self) -> PutLabelFluentBuilder
pub fn put_label(&self) -> PutLabelFluentBuilder
Constructs a fluent builder for the PutLabel
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe label name.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe label description.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
PutLabelOutput
- On failure, responds with
SdkError<PutLabelError>
source§impl Client
impl Client
sourcepub fn put_outcome(&self) -> PutOutcomeFluentBuilder
pub fn put_outcome(&self) -> PutOutcomeFluentBuilder
Constructs a fluent builder for the PutOutcome
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the outcome.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe outcome description.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
PutOutcomeOutput
- On failure, responds with
SdkError<PutOutcomeError>
source§impl Client
impl Client
sourcepub fn send_event(&self) -> SendEventFluentBuilder
pub fn send_event(&self) -> SendEventFluentBuilder
Constructs a fluent builder for the SendEvent
operation.
- The fluent builder is configurable:
event_id(impl Into<String>)
/set_event_id(Option<String>)
:
required: trueThe event ID to upload.
event_type_name(impl Into<String>)
/set_event_type_name(Option<String>)
:
required: trueThe event type name of the event.
event_timestamp(impl Into<String>)
/set_event_timestamp(Option<String>)
:
required: trueThe timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
event_variables(impl Into<String>, impl Into<String>)
/set_event_variables(Option<HashMap::<String, String>>)
:
required: trueNames of the event type’s variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.
assigned_label(impl Into<String>)
/set_assigned_label(Option<String>)
:
required: falseThe label to associate with the event. Required if specifying
labelTimestamp
.label_timestamp(impl Into<String>)
/set_label_timestamp(Option<String>)
:
required: falseThe timestamp associated with the label. Required if specifying
assignedLabel
.entities(Entity)
/set_entities(Option<Vec::<Entity>>)
:
required: trueAn array of entities.
- On success, responds with
SendEventOutput
- On failure, responds with
SdkError<SendEventError>
source§impl Client
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe resource ARN.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: trueThe tags to assign to the resource.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
source§impl Client
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe ARN of the resource from which to remove the tag.
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: trueThe resource ARN.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_detector_version(&self) -> UpdateDetectorVersionFluentBuilder
pub fn update_detector_version(&self) -> UpdateDetectorVersionFluentBuilder
Constructs a fluent builder for the UpdateDetectorVersion
operation.
- The fluent builder is configurable:
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe parent detector ID for the detector version you want to update.
detector_version_id(impl Into<String>)
/set_detector_version_id(Option<String>)
:
required: trueThe detector version ID.
external_model_endpoints(impl Into<String>)
/set_external_model_endpoints(Option<Vec::<String>>)
:
required: trueThe Amazon SageMaker model endpoints to include in the detector version.
rules(Rule)
/set_rules(Option<Vec::<Rule>>)
:
required: trueThe rules to include in the detector version.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe detector version description.
model_versions(ModelVersion)
/set_model_versions(Option<Vec::<ModelVersion>>)
:
required: falseThe model versions to include in the detector version.
rule_execution_mode(RuleExecutionMode)
/set_rule_execution_mode(Option<RuleExecutionMode>)
:
required: falseThe 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
.
- On success, responds with
UpdateDetectorVersionOutput
- On failure, responds with
SdkError<UpdateDetectorVersionError>
source§impl Client
impl Client
sourcepub fn update_detector_version_metadata(
&self
) -> UpdateDetectorVersionMetadataFluentBuilder
pub fn update_detector_version_metadata( &self ) -> UpdateDetectorVersionMetadataFluentBuilder
Constructs a fluent builder for the UpdateDetectorVersionMetadata
operation.
- The fluent builder is configurable:
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe detector ID.
detector_version_id(impl Into<String>)
/set_detector_version_id(Option<String>)
:
required: trueThe detector version ID.
description(impl Into<String>)
/set_description(Option<String>)
:
required: trueThe description.
- On success, responds with
UpdateDetectorVersionMetadataOutput
- On failure, responds with
SdkError<UpdateDetectorVersionMetadataError>
source§impl Client
impl Client
sourcepub fn update_detector_version_status(
&self
) -> UpdateDetectorVersionStatusFluentBuilder
pub fn update_detector_version_status( &self ) -> UpdateDetectorVersionStatusFluentBuilder
Constructs a fluent builder for the UpdateDetectorVersionStatus
operation.
- The fluent builder is configurable:
detector_id(impl Into<String>)
/set_detector_id(Option<String>)
:
required: trueThe detector ID.
detector_version_id(impl Into<String>)
/set_detector_version_id(Option<String>)
:
required: trueThe detector version ID.
status(DetectorVersionStatus)
/set_status(Option<DetectorVersionStatus>)
:
required: trueThe new status.
The only supported values are
ACTIVE
andINACTIVE
- On success, responds with
UpdateDetectorVersionStatusOutput
- On failure, responds with
SdkError<UpdateDetectorVersionStatusError>
source§impl Client
impl Client
sourcepub fn update_event_label(&self) -> UpdateEventLabelFluentBuilder
pub fn update_event_label(&self) -> UpdateEventLabelFluentBuilder
Constructs a fluent builder for the UpdateEventLabel
operation.
- The fluent builder is configurable:
event_id(impl Into<String>)
/set_event_id(Option<String>)
:
required: trueThe ID of the event associated with the label to update.
event_type_name(impl Into<String>)
/set_event_type_name(Option<String>)
:
required: trueThe event type of the event associated with the label to update.
assigned_label(impl Into<String>)
/set_assigned_label(Option<String>)
:
required: trueThe new label to assign to the event.
label_timestamp(impl Into<String>)
/set_label_timestamp(Option<String>)
:
required: trueThe timestamp associated with the label. The timestamp must be specified using ISO 8601 standard in UTC.
- On success, responds with
UpdateEventLabelOutput
- On failure, responds with
SdkError<UpdateEventLabelError>
source§impl Client
impl Client
sourcepub fn update_list(&self) -> UpdateListFluentBuilder
pub fn update_list(&self) -> UpdateListFluentBuilder
Constructs a fluent builder for the UpdateList
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the list to update.
elements(impl Into<String>)
/set_elements(Option<Vec::<String>>)
:
required: falseOne or more list elements to add or replace. If you are providing the elements, make sure to specify the
updateMode
to use.If you are deleting all elements from the list, use
REPLACE
for theupdateMode
and provide an empty list (0 elements).description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe new description.
update_mode(ListUpdateMode)
/set_update_mode(Option<ListUpdateMode>)
:
required: falseThe update mode (type).
-
Use
APPEND
if you are adding elements to the list. -
Use
REPLACE
if you replacing existing elements in the list. -
Use
REMOVE
if you are removing elements from the list.
-
variable_type(impl Into<String>)
/set_variable_type(Option<String>)
:
required: falseThe variable type you want to assign to the list.
You cannot update a variable type of a list that already has a variable type assigned to it. You can assign a variable type to a list only if the list does not already have a variable type.
- On success, responds with
UpdateListOutput
- On failure, responds with
SdkError<UpdateListError>
source§impl Client
impl Client
sourcepub fn update_model(&self) -> UpdateModelFluentBuilder
pub fn update_model(&self) -> UpdateModelFluentBuilder
Constructs a fluent builder for the UpdateModel
operation.
- The fluent builder is configurable:
model_id(impl Into<String>)
/set_model_id(Option<String>)
:
required: trueThe model ID.
model_type(ModelTypeEnum)
/set_model_type(Option<ModelTypeEnum>)
:
required: trueThe model type.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe new model description.
- On success, responds with
UpdateModelOutput
- On failure, responds with
SdkError<UpdateModelError>
source§impl Client
impl Client
sourcepub fn update_model_version(&self) -> UpdateModelVersionFluentBuilder
pub fn update_model_version(&self) -> UpdateModelVersionFluentBuilder
Constructs a fluent builder for the UpdateModelVersion
operation.
- The fluent builder is configurable:
model_id(impl Into<String>)
/set_model_id(Option<String>)
:
required: trueThe model ID.
model_type(ModelTypeEnum)
/set_model_type(Option<ModelTypeEnum>)
:
required: trueThe model type.
major_version_number(impl Into<String>)
/set_major_version_number(Option<String>)
:
required: trueThe major version number.
external_events_detail(ExternalEventsDetail)
/set_external_events_detail(Option<ExternalEventsDetail>)
:
required: falseThe details of the external events data used for training the model version. Required if
trainingDataSource
isEXTERNAL_EVENTS
.ingested_events_detail(IngestedEventsDetail)
/set_ingested_events_detail(Option<IngestedEventsDetail>)
:
required: falseThe details of the ingested event used for training the model version. Required if your
trainingDataSource
isINGESTED_EVENTS
.tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA collection of key and value pairs.
- On success, responds with
UpdateModelVersionOutput
with field(s):model_id(Option<String>)
:The model ID.
model_type(Option<ModelTypeEnum>)
:The model type.
model_version_number(Option<String>)
:The model version number of the model version updated.
status(Option<String>)
:The status of the updated model version.
- On failure, responds with
SdkError<UpdateModelVersionError>
source§impl Client
impl Client
sourcepub fn update_model_version_status(
&self
) -> UpdateModelVersionStatusFluentBuilder
pub fn update_model_version_status( &self ) -> UpdateModelVersionStatusFluentBuilder
Constructs a fluent builder for the UpdateModelVersionStatus
operation.
- The fluent builder is configurable:
model_id(impl Into<String>)
/set_model_id(Option<String>)
:
required: trueThe model ID of the model version to update.
model_type(ModelTypeEnum)
/set_model_type(Option<ModelTypeEnum>)
:
required: trueThe model type.
model_version_number(impl Into<String>)
/set_model_version_number(Option<String>)
:
required: trueThe model version number.
status(ModelVersionStatus)
/set_status(Option<ModelVersionStatus>)
:
required: trueThe model version status.
- On success, responds with
UpdateModelVersionStatusOutput
- On failure, responds with
SdkError<UpdateModelVersionStatusError>
source§impl Client
impl Client
sourcepub fn update_rule_metadata(&self) -> UpdateRuleMetadataFluentBuilder
pub fn update_rule_metadata(&self) -> UpdateRuleMetadataFluentBuilder
Constructs a fluent builder for the UpdateRuleMetadata
operation.
- The fluent builder is configurable:
rule(Rule)
/set_rule(Option<Rule>)
:
required: trueThe rule to update.
description(impl Into<String>)
/set_description(Option<String>)
:
required: trueThe rule description.
- On success, responds with
UpdateRuleMetadataOutput
- On failure, responds with
SdkError<UpdateRuleMetadataError>
source§impl Client
impl Client
sourcepub fn update_rule_version(&self) -> UpdateRuleVersionFluentBuilder
pub fn update_rule_version(&self) -> UpdateRuleVersionFluentBuilder
Constructs a fluent builder for the UpdateRuleVersion
operation.
- The fluent builder is configurable:
rule(Rule)
/set_rule(Option<Rule>)
:
required: trueThe rule to update.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description.
expression(impl Into<String>)
/set_expression(Option<String>)
:
required: trueThe rule expression.
language(Language)
/set_language(Option<Language>)
:
required: trueThe language.
outcomes(impl Into<String>)
/set_outcomes(Option<Vec::<String>>)
:
required: trueThe outcomes.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseThe tags to assign to the rule version.
- On success, responds with
UpdateRuleVersionOutput
with field(s):rule(Option<Rule>)
:The new rule version that was created.
- On failure, responds with
SdkError<UpdateRuleVersionError>
source§impl Client
impl Client
sourcepub fn update_variable(&self) -> UpdateVariableFluentBuilder
pub fn update_variable(&self) -> UpdateVariableFluentBuilder
Constructs a fluent builder for the UpdateVariable
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the variable.
default_value(impl Into<String>)
/set_default_value(Option<String>)
:
required: falseThe new default value of the variable.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe new description.
variable_type(impl Into<String>)
/set_variable_type(Option<String>)
:
required: falseThe variable type. For more information see Variable types.
- On success, responds with
UpdateVariableOutput
- On failure, responds with
SdkError<UpdateVariableError>
source§impl Client
impl Client
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it. - This method will panic if no
BehaviorVersion
is provided. If you experience this panic, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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