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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.entityresolution.schema_mappings
WHERE
Identifier = '{{ schema_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 schema_mappings resource, the following permissions are required:

entityresolution:CreateSchemaMapping,
entityresolution:GetSchemaMapping,
entityresolution:TagResource