Skip to main content

matching_workflows

Creates, updates, deletes or gets a matching_workflow resource or lists matching_workflows in a region

Overview

Namematching_workflows
TypeResource
DescriptionMatchingWorkflow defined in AWS Entity Resolution service
Idawscc.entityresolution.matching_workflows

Fields

NameDatatypeDescription
workflow_namestringThe name of the MatchingWorkflow
descriptionstringThe description of the MatchingWorkflow
input_source_configarray
output_source_configarray
resolution_techniquesobject
role_arnstring
tagsarray
workflow_arnstringThe default MatchingWorkflow arn
created_atstringThe time of this SchemaMapping got created
updated_atstringThe time of this SchemaMapping got last updated at
incremental_run_configobject
regionstringAWS region.

For more information, see AWS::EntityResolution::MatchingWorkflow.

Methods

NameResourceAccessible byRequired Params
create_resourcematching_workflowsINSERTWorkflowName, InputSourceConfig, OutputSourceConfig, ResolutionTechniques, RoleArn, region
delete_resourcematching_workflowsDELETEIdentifier, region
update_resourcematching_workflowsUPDATEIdentifier, PatchDocument, region
list_resourcesmatching_workflows_list_onlySELECTregion
get_resourcematching_workflowsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual matching_workflow.

SELECT
region,
workflow_name,
description,
input_source_config,
output_source_config,
resolution_techniques,
role_arn,
tags,
workflow_arn,
created_at,
updated_at,
incremental_run_config
FROM awscc.entityresolution.matching_workflows
WHERE
region = '{{ region }}' AND
Identifier = '{{ workflow_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new matching_workflow resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.entityresolution.matching_workflows (
WorkflowName,
InputSourceConfig,
OutputSourceConfig,
ResolutionTechniques,
RoleArn,
region
)
SELECT
'{{ workflow_name }}',
'{{ input_source_config }}',
'{{ output_source_config }}',
'{{ resolution_techniques }}',
'{{ role_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a matching_workflow resource, using stack-deploy.

/*+ update */
UPDATE awscc.entityresolution.matching_workflows
SET PatchDocument = string('{{ {
"Description": description,
"InputSourceConfig": input_source_config,
"OutputSourceConfig": output_source_config,
"ResolutionTechniques": resolution_techniques,
"RoleArn": role_arn,
"Tags": tags,
"IncrementalRunConfig": incremental_run_config
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ workflow_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.entityresolution.matching_workflows
WHERE
Identifier = '{{ workflow_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the matching_workflows resource, the following permissions are required:

entityresolution:CreateMatchingWorkflow,
entityresolution:GetMatchingWorkflow,
entityresolution:TagResource,
kms:CreateGrant,
kms:DescribeKey,
iam:PassRole,
events:PutRule,
events:DeleteRule,
events:PutTargets,
events:ListTargetsByRule