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
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTSchemaName, MappedInputFields, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all schema_mappings in a region.

SELECT
region,
schema_name,
description,
mapped_input_fields,
tags,
schema_arn,
created_at,
updated_at,
has_workflows
FROM aws.entityresolution.schema_mappings
WHERE region = 'us-east-1';

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 aws.entityresolution.schema_mappings
WHERE region = 'us-east-1' AND data__Identifier = '<SchemaName>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.entityresolution.schema_mappings
WHERE data__Identifier = '<SchemaName>'
AND region = 'us-east-1';

Permissions

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

Create

entityresolution:CreateSchemaMapping,
entityresolution:GetSchemaMapping,
entityresolution:TagResource

Read

entityresolution:GetSchemaMapping,
entityresolution:ListTagsForResource

Delete

entityresolution:DeleteSchemaMapping,
entityresolution:GetSchemaMapping

Update

entityresolution:GetSchemaMapping,
entityresolution:UpdateSchemaMapping,
entityresolution:ListTagsForResource,
entityresolution:TagResource,
entityresolution:UntagResource

List

entityresolution:ListSchemaMappings