Skip to main content

schema_mappings

Creates, updates, deletes or gets a schema_mapping resource or lists schema_mappings in a region

Overview

Nameschema_mappings
TypeResource
DescriptionSchemaMapping defined in AWS Entity Resolution service
Idawscc.entityresolution.schema_mappings

Fields

NameDatatypeDescription
schema_namestringThe name of the SchemaMapping
descriptionstringThe description of the SchemaMapping
mapped_input_fieldsarrayThe SchemaMapping attributes input
tagsarray
schema_arnstringThe SchemaMapping arn associated with the Schema
created_atstringThe time of this SchemaMapping got created
updated_atstringThe time of this SchemaMapping got last updated at
has_workflowsbooleanThe boolean value that indicates whether or not a SchemaMapping has MatchingWorkflows that are associated with
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceschema_mappingsINSERTSchemaName, MappedInputFields, region
delete_resourceschema_mappingsDELETEIdentifier, region
update_resourceschema_mappingsUPDATEIdentifier, PatchDocument, region
list_resourcesschema_mappings_list_onlySELECTregion
get_resourceschema_mappingsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual schema_mapping.

SELECT
region,
schema_name,
description,
mapped_input_fields,
tags,
schema_arn,
created_at,
updated_at,
has_workflows
FROM awscc.entityresolution.schema_mappings
WHERE
region = 'us-east-1' AND
Identifier = '{{ schema_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.entityresolution.schema_mappings (
SchemaName,
MappedInputFields,
region
)
SELECT
'{{ schema_name }}',
'{{ mapped_input_fields }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.entityresolution.schema_mappings
SET PatchDocument = string('{{ {
"Description": description,
"MappedInputFields": mapped_input_fields,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ schema_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.entityresolution.schema_mappings
WHERE
Identifier = '{{ schema_name }}' AND
region = 'us-east-1';

Permissions

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

entityresolution:CreateSchemaMapping,
entityresolution:GetSchemaMapping,
entityresolution:TagResource