Struct aws_sdk_entityresolution::client::Client
source · pub struct Client { /* private fields */ }
Expand description
Client for AWS EntityResolution
Client for invoking operations on AWS EntityResolution. Each operation on AWS EntityResolution 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_entityresolution::Client::new(&config);
Occasionally, SDKs may have additional service-specific 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_entityresolution::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 CreateMatchingWorkflow
operation has
a Client::create_matching_workflow
, 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.create_matching_workflow()
.workflow_name("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 create_matching_workflow(&self) -> CreateMatchingWorkflowFluentBuilder
pub fn create_matching_workflow(&self) -> CreateMatchingWorkflowFluentBuilder
Constructs a fluent builder for the CreateMatchingWorkflow
operation.
- The fluent builder is configurable:
workflow_name(impl Into<String>)
/set_workflow_name(Option<String>)
:The name of the workflow. There cannot be multiple
DataIntegrationWorkflows
with the same name.description(impl Into<String>)
/set_description(Option<String>)
:A description of the workflow.
input_source_config(InputSource)
/set_input_source_config(Option<Vec<InputSource>>)
:A list of
InputSource
objects, which have the fieldsInputSourceARN
andSchemaName
.output_source_config(OutputSource)
/set_output_source_config(Option<Vec<OutputSource>>)
:A list of
OutputSource
objects, each of which contains fieldsOutputS3Path
,ApplyNormalization
, andOutput
.resolution_techniques(ResolutionTechniques)
/set_resolution_techniques(Option<ResolutionTechniques>)
:An object which defines the
resolutionType
and theruleBasedProperties
.incremental_run_config(IncrementalRunConfig)
/set_incremental_run_config(Option<IncrementalRunConfig>)
:An object which defines an incremental run type and has only
incrementalRunType
as a field.role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap<String, String>>)
:The tags used to organize, track, or control access for this resource.
- On success, responds with
CreateMatchingWorkflowOutput
with field(s):workflow_name(Option<String>)
:The name of the workflow.
workflow_arn(Option<String>)
:The ARN (Amazon Resource Name) that Entity Resolution generated for the
MatchingWorkflow
.description(Option<String>)
:A description of the workflow.
input_source_config(Option<Vec<InputSource>>)
:A list of
InputSource
objects, which have the fieldsInputSourceARN
andSchemaName
.output_source_config(Option<Vec<OutputSource>>)
:A list of
OutputSource
objects, each of which contains fieldsOutputS3Path
,ApplyNormalization
, andOutput
.resolution_techniques(Option<ResolutionTechniques>)
:An object which defines the
resolutionType
and theruleBasedProperties
.incremental_run_config(Option<IncrementalRunConfig>)
:An object which defines an incremental run type and has only
incrementalRunType
as a field.role_arn(Option<String>)
:The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.
- On failure, responds with
SdkError<CreateMatchingWorkflowError>
source§impl Client
impl Client
sourcepub fn create_schema_mapping(&self) -> CreateSchemaMappingFluentBuilder
pub fn create_schema_mapping(&self) -> CreateSchemaMappingFluentBuilder
Constructs a fluent builder for the CreateSchemaMapping
operation.
- The fluent builder is configurable:
schema_name(impl Into<String>)
/set_schema_name(Option<String>)
:The name of the schema. There cannot be multiple
SchemaMappings
with the same name.description(impl Into<String>)
/set_description(Option<String>)
:A description of the schema.
mapped_input_fields(SchemaInputAttribute)
/set_mapped_input_fields(Option<Vec<SchemaInputAttribute>>)
:A list of
MappedInputFields
. EachMappedInputField
corresponds to a column the source data table, and contains column name plus additional information that Entity Resolution uses for matching.tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap<String, String>>)
:The tags used to organize, track, or control access for this resource.
- On success, responds with
CreateSchemaMappingOutput
with field(s):schema_name(Option<String>)
:The name of the schema.
schema_arn(Option<String>)
:The ARN (Amazon Resource Name) that Entity Resolution generated for the
SchemaMapping
.description(Option<String>)
:A description of the schema.
mapped_input_fields(Option<Vec<SchemaInputAttribute>>)
:A list of
MappedInputFields
. EachMappedInputField
corresponds to a column the source data table, and contains column name plus additional information that Entity Resolution uses for matching.
- On failure, responds with
SdkError<CreateSchemaMappingError>
source§impl Client
impl Client
sourcepub fn delete_matching_workflow(&self) -> DeleteMatchingWorkflowFluentBuilder
pub fn delete_matching_workflow(&self) -> DeleteMatchingWorkflowFluentBuilder
Constructs a fluent builder for the DeleteMatchingWorkflow
operation.
- The fluent builder is configurable:
workflow_name(impl Into<String>)
/set_workflow_name(Option<String>)
:The name of the workflow to be retrieved.
- On success, responds with
DeleteMatchingWorkflowOutput
with field(s):message(Option<String>)
:A successful operation message.
- On failure, responds with
SdkError<DeleteMatchingWorkflowError>
source§impl Client
impl Client
sourcepub fn delete_schema_mapping(&self) -> DeleteSchemaMappingFluentBuilder
pub fn delete_schema_mapping(&self) -> DeleteSchemaMappingFluentBuilder
Constructs a fluent builder for the DeleteSchemaMapping
operation.
- The fluent builder is configurable:
schema_name(impl Into<String>)
/set_schema_name(Option<String>)
:The name of the schema to delete.
- On success, responds with
DeleteSchemaMappingOutput
with field(s):message(Option<String>)
:A successful operation message.
- On failure, responds with
SdkError<DeleteSchemaMappingError>
source§impl Client
impl Client
sourcepub fn get_match_id(&self) -> GetMatchIdFluentBuilder
pub fn get_match_id(&self) -> GetMatchIdFluentBuilder
Constructs a fluent builder for the GetMatchId
operation.
- The fluent builder is configurable:
workflow_name(impl Into<String>)
/set_workflow_name(Option<String>)
:The name of the workflow.
record(impl Into<String>, impl Into<String>)
/set_record(Option<HashMap<String, String>>)
:The record to fetch the Match ID for.
- On success, responds with
GetMatchIdOutput
with field(s):match_id(Option<String>)
:The unique identifiers for this group of match records.
- On failure, responds with
SdkError<GetMatchIdError>
source§impl Client
impl Client
sourcepub fn get_matching_job(&self) -> GetMatchingJobFluentBuilder
pub fn get_matching_job(&self) -> GetMatchingJobFluentBuilder
Constructs a fluent builder for the GetMatchingJob
operation.
- The fluent builder is configurable:
workflow_name(impl Into<String>)
/set_workflow_name(Option<String>)
:The name of the workflow.
job_id(impl Into<String>)
/set_job_id(Option<String>)
:The ID of the job.
- On success, responds with
GetMatchingJobOutput
with field(s):job_id(Option<String>)
:The ID of the job.
status(Option<JobStatus>)
:The current status of the job.
start_time(Option<DateTime>)
:The time at which the job was started.
end_time(Option<DateTime>)
:The time at which the job has finished.
metrics(Option<JobMetrics>)
:Metrics associated with the execution, specifically total records processed, unique IDs generated, and records the execution skipped.
error_details(Option<ErrorDetails>)
:An object containing an error message, if there was an error.
- On failure, responds with
SdkError<GetMatchingJobError>
source§impl Client
impl Client
sourcepub fn get_matching_workflow(&self) -> GetMatchingWorkflowFluentBuilder
pub fn get_matching_workflow(&self) -> GetMatchingWorkflowFluentBuilder
Constructs a fluent builder for the GetMatchingWorkflow
operation.
- The fluent builder is configurable:
workflow_name(impl Into<String>)
/set_workflow_name(Option<String>)
:The name of the workflow.
- On success, responds with
GetMatchingWorkflowOutput
with field(s):workflow_name(Option<String>)
:The name of the workflow.
workflow_arn(Option<String>)
:The ARN (Amazon Resource Name) that Entity Resolution generated for the
MatchingWorkflow
.description(Option<String>)
:A description of the workflow.
input_source_config(Option<Vec<InputSource>>)
:A list of
InputSource
objects, which have the fieldsInputSourceARN
andSchemaName
.output_source_config(Option<Vec<OutputSource>>)
:A list of
OutputSource
objects, each of which contains fieldsOutputS3Path
,ApplyNormalization
, andOutput
.resolution_techniques(Option<ResolutionTechniques>)
:An object which defines the
resolutionType
and theruleBasedProperties
.created_at(Option<DateTime>)
:The timestamp of when the workflow was created.
updated_at(Option<DateTime>)
:The timestamp of when the workflow was last updated.
incremental_run_config(Option<IncrementalRunConfig>)
:An object which defines an incremental run type and has only
incrementalRunType
as a field.role_arn(Option<String>)
:The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to access resources on your behalf.
tags(Option<HashMap<String, String>>)
:The tags used to organize, track, or control access for this resource.
- On failure, responds with
SdkError<GetMatchingWorkflowError>
source§impl Client
impl Client
sourcepub fn get_schema_mapping(&self) -> GetSchemaMappingFluentBuilder
pub fn get_schema_mapping(&self) -> GetSchemaMappingFluentBuilder
Constructs a fluent builder for the GetSchemaMapping
operation.
- The fluent builder is configurable:
schema_name(impl Into<String>)
/set_schema_name(Option<String>)
:The name of the schema to be retrieved.
- On success, responds with
GetSchemaMappingOutput
with field(s):schema_name(Option<String>)
:The name of the schema.
schema_arn(Option<String>)
:The ARN (Amazon Resource Name) that Entity Resolution generated for the SchemaMapping.
description(Option<String>)
:A description of the schema.
mapped_input_fields(Option<Vec<SchemaInputAttribute>>)
:A list of
MappedInputFields
. EachMappedInputField
corresponds to a column the source data table, and contains column name plus additional information Venice uses for matching.created_at(Option<DateTime>)
:The timestamp of when the
SchemaMapping
was created.updated_at(Option<DateTime>)
:The timestamp of when the
SchemaMapping
was last updated.tags(Option<HashMap<String, String>>)
:The tags used to organize, track, or control access for this resource.
- On failure, responds with
SdkError<GetSchemaMappingError>
source§impl Client
impl Client
sourcepub fn list_matching_jobs(&self) -> ListMatchingJobsFluentBuilder
pub fn list_matching_jobs(&self) -> ListMatchingJobsFluentBuilder
Constructs a fluent builder for the ListMatchingJobs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
workflow_name(impl Into<String>)
/set_workflow_name(Option<String>)
:The name of the workflow to be retrieved.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The pagination token from the previous
ListSchemaMappings
API call.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of objects returned per page.
- On success, responds with
ListMatchingJobsOutput
with field(s):jobs(Option<Vec<JobSummary>>)
:A list of
JobSummary
objects, each of which contain the ID, status, start time, and end time of a job.next_token(Option<String>)
:The pagination token from the previous
ListSchemaMappings
API call.
- On failure, responds with
SdkError<ListMatchingJobsError>
source§impl Client
impl Client
sourcepub fn list_matching_workflows(&self) -> ListMatchingWorkflowsFluentBuilder
pub fn list_matching_workflows(&self) -> ListMatchingWorkflowsFluentBuilder
Constructs a fluent builder for the ListMatchingWorkflows
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The pagination token from the previous
ListSchemaMappings
API call.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of objects returned per page.
- On success, responds with
ListMatchingWorkflowsOutput
with field(s):workflow_summaries(Option<Vec<MatchingWorkflowSummary>>)
:A list of
MatchingWorkflowSummary
objects, each of which contain the fieldsWorkflowName
,WorkflowArn
,CreatedAt
, andUpdatedAt
.next_token(Option<String>)
:The pagination token from the previous
ListSchemaMappings
API call.
- On failure, responds with
SdkError<ListMatchingWorkflowsError>
source§impl Client
impl Client
sourcepub fn list_schema_mappings(&self) -> ListSchemaMappingsFluentBuilder
pub fn list_schema_mappings(&self) -> ListSchemaMappingsFluentBuilder
Constructs a fluent builder for the ListSchemaMappings
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The pagination token from the previous
ListSchemaMappings
API call.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of objects returned per page.
- On success, responds with
ListSchemaMappingsOutput
with field(s):schema_list(Option<Vec<SchemaMappingSummary>>)
:A list of
SchemaMappingSummary
objects, each of which contain the fieldsSchemaName
,SchemaArn
,CreatedAt
,UpdatedAt
.next_token(Option<String>)
:The pagination token from the previous
ListDomains
API call.
- On failure, responds with
SdkError<ListSchemaMappingsError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The ARN of the resource for which you want to view tags.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<HashMap<String, String>>)
:The tags used to organize, track, or control access for this resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn start_matching_job(&self) -> StartMatchingJobFluentBuilder
pub fn start_matching_job(&self) -> StartMatchingJobFluentBuilder
Constructs a fluent builder for the StartMatchingJob
operation.
- The fluent builder is configurable:
workflow_name(impl Into<String>)
/set_workflow_name(Option<String>)
:The name of the matching job to be retrieved.
- On success, responds with
StartMatchingJobOutput
with field(s):job_id(Option<String>)
:The ID of the job.
- On failure, responds with
SdkError<StartMatchingJobError>
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>)
:The ARN of the resource for which you want to view tags.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap<String, String>>)
:The tags used to organize, track, or control access for this 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>)
:The ARN of the resource for which you want to untag.
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec<String>>)
:The list of tag keys to remove from the resource.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_matching_workflow(&self) -> UpdateMatchingWorkflowFluentBuilder
pub fn update_matching_workflow(&self) -> UpdateMatchingWorkflowFluentBuilder
Constructs a fluent builder for the UpdateMatchingWorkflow
operation.
- The fluent builder is configurable:
workflow_name(impl Into<String>)
/set_workflow_name(Option<String>)
:The name of the workflow to be retrieved.
description(impl Into<String>)
/set_description(Option<String>)
:A description of the workflow.
input_source_config(InputSource)
/set_input_source_config(Option<Vec<InputSource>>)
:A list of
InputSource
objects, which have the fieldsInputSourceARN
andSchemaName
.output_source_config(OutputSource)
/set_output_source_config(Option<Vec<OutputSource>>)
:A list of
OutputSource
objects, each of which contains fieldsOutputS3Path
,ApplyNormalization
, andOutput
.resolution_techniques(ResolutionTechniques)
/set_resolution_techniques(Option<ResolutionTechniques>)
:An object which defines the
resolutionType
and theruleBasedProperties
.incremental_run_config(IncrementalRunConfig)
/set_incremental_run_config(Option<IncrementalRunConfig>)
:An object which defines an incremental run type and has only
incrementalRunType
as a field.role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.
- On success, responds with
UpdateMatchingWorkflowOutput
with field(s):workflow_name(Option<String>)
:The name of the workflow.
description(Option<String>)
:A description of the workflow.
input_source_config(Option<Vec<InputSource>>)
:A list of
InputSource
objects, which have the fieldsInputSourceARN
andSchemaName
.output_source_config(Option<Vec<OutputSource>>)
:A list of
OutputSource
objects, each of which contains fieldsOutputS3Path
,ApplyNormalization
, andOutput
.resolution_techniques(Option<ResolutionTechniques>)
:An object which defines the
resolutionType
and theruleBasedProperties
incremental_run_config(Option<IncrementalRunConfig>)
:An object which defines an incremental run type and has only
incrementalRunType
as a field.role_arn(Option<String>)
:The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.
- On failure, responds with
SdkError<UpdateMatchingWorkflowError>
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.