Skip to content
GitHubXDiscord

IdMappingWorkflow

The IdMappingWorkflow resource allows you to create and manage workflows for mapping entity identifiers in AWS EntityResolution. For more detailed information, refer to the AWS EntityResolution IdMappingWorkflows documentation.

Create a basic IdMappingWorkflow with required properties and a description:

import AWS from "alchemy/aws/control";
const basicIdMappingWorkflow = await AWS.EntityResolution.IdMappingWorkflow("basicIdMappingWorkflow", {
WorkflowName: "BasicIdMappingWorkflow",
InputSourceConfig: [
{
SourceType: "S3",
SourceUri: "s3://my-bucket/input-data/"
}
],
IdMappingTechniques: {
Technique: "FuzzyMatching"
},
RoleArn: "arn:aws:iam::123456789012:role/MyEntityResolutionRole",
Description: "A basic IdMappingWorkflow for demonstration purposes."
});

Configure an IdMappingWorkflow with output source settings and multiple input sources:

const advancedIdMappingWorkflow = await AWS.EntityResolution.IdMappingWorkflow("advancedIdMappingWorkflow", {
WorkflowName: "AdvancedIdMappingWorkflow",
InputSourceConfig: [
{
SourceType: "S3",
SourceUri: "s3://my-bucket/input-data/"
},
{
SourceType: "Database",
SourceUri: "jdbc:mysql://my-database:3306/mydb"
}
],
IdMappingTechniques: {
Technique: "ExactMatching"
},
RoleArn: "arn:aws:iam::123456789012:role/MyEntityResolutionRole",
OutputSourceConfig: [
{
DestinationType: "S3",
DestinationUri: "s3://my-bucket/output-data/"
}
],
Tags: [
{ Key: "Project", Value: "EntityResolution" },
{ Key: "Environment", Value: "Production" }
]
});

If you want to create a workflow that adopts an existing resource instead of failing, set the adopt property to true:

const adoptIdMappingWorkflow = await AWS.EntityResolution.IdMappingWorkflow("adoptIdMappingWorkflow", {
WorkflowName: "AdoptExistingWorkflow",
InputSourceConfig: [
{
SourceType: "S3",
SourceUri: "s3://my-bucket/input-data/"
}
],
IdMappingTechniques: {
Technique: "FuzzyMatching"
},
RoleArn: "arn:aws:iam::123456789012:role/MyEntityResolutionRole",
adopt: true
});