id_namespaces
Creates, updates, deletes or gets an id_namespace resource or lists id_namespaces in a region
Overview
| Name | id_namespaces |
| Type | Resource |
| Description | IdNamespace defined in AWS Entity Resolution service |
| Id | awscc.entityresolution.id_namespaces |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
id_namespace_name | string | |
description | string | |
input_source_config | array | |
id_mapping_workflow_properties | array | |
type | string | |
role_arn | string | |
id_namespace_arn | string | The arn associated with the IdNamespace |
created_at | string | The date and time when the IdNamespace was created |
updated_at | string | The date and time when the IdNamespace was updated |
tags | array | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
id_namespace_name | string | |
region | string | AWS region. |
For more information, see AWS::EntityResolution::IdNamespace.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | id_namespaces | INSERT | IdNamespaceName, Type, region |
delete_resource | id_namespaces | DELETE | Identifier, region |
update_resource | id_namespaces | UPDATE | Identifier, PatchDocument, region |
list_resources | id_namespaces_list_only | SELECT | region |
get_resource | id_namespaces | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual id_namespace.
SELECT
region,
id_namespace_name,
description,
input_source_config,
id_mapping_workflow_properties,
type,
role_arn,
id_namespace_arn,
created_at,
updated_at,
tags
FROM awscc.entityresolution.id_namespaces
WHERE
region = '{{ region }}' AND
Identifier = '{{ id_namespace_name }}';
Lists all id_namespaces in a region.
SELECT
region,
id_namespace_name
FROM awscc.entityresolution.id_namespaces_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new id_namespace resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.entityresolution.id_namespaces (
IdNamespaceName,
Type,
region
)
SELECT
'{{ id_namespace_name }}',
'{{ type }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.entityresolution.id_namespaces (
IdNamespaceName,
Description,
InputSourceConfig,
IdMappingWorkflowProperties,
Type,
RoleArn,
Tags,
region
)
SELECT
'{{ id_namespace_name }}',
'{{ description }}',
'{{ input_source_config }}',
'{{ id_mapping_workflow_properties }}',
'{{ type }}',
'{{ role_arn }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: id_namespace
props:
- name: id_namespace_name
value: '{{ id_namespace_name }}'
- name: description
value: '{{ description }}'
- name: input_source_config
value:
- input_source_arn: '{{ input_source_arn }}'
schema_name: null
- name: id_mapping_workflow_properties
value:
- id_mapping_type: '{{ id_mapping_type }}'
rule_based_properties:
rules:
- rule_name: '{{ rule_name }}'
matching_keys:
- '{{ matching_keys[0] }}'
rule_definition_types:
- '{{ rule_definition_types[0] }}'
attribute_matching_model: '{{ attribute_matching_model }}'
record_matching_models:
- '{{ record_matching_models[0] }}'
provider_properties:
provider_service_arn: '{{ provider_service_arn }}'
provider_configuration: {}
- name: type
value: '{{ type }}'
- name: role_arn
value: '{{ role_arn }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a id_namespace resource, using stack-deploy.
/*+ update */
UPDATE awscc.entityresolution.id_namespaces
SET PatchDocument = string('{{ {
"Description": description,
"InputSourceConfig": input_source_config,
"IdMappingWorkflowProperties": id_mapping_workflow_properties,
"Type": type,
"RoleArn": role_arn,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id_namespace_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.entityresolution.id_namespaces
WHERE
Identifier = '{{ id_namespace_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:
| Parameter | Description |
|---|---|
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 id_namespaces resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
entityresolution:CreateIdNamespace,
entityresolution:TagResource,
iam:PassRole
entityresolution:GetIdNamespace,
entityresolution:ListTagsForResource
entityresolution:UpdateIdNamespace,
entityresolution:ListTagsForResource,
entityresolution:TagResource,
entityresolution:UntagResource,
iam:PassRole
entityresolution:DeleteIdNamespace,
entityresolution:GetIdNamespace,
entityresolution:UntagResource
entityresolution:ListIdNamespaces