Skip to main content

id_namespaces

Creates, updates, deletes, gets or lists an id_namespaces resource.

Overview

Nameid_namespaces
TypeResource
Idaws.entityresolution.id_namespaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp of when the ID namespace was created.
descriptionstringThe description of the ID namespace.
id_mapping_workflow_propertiesarrayDetermines the properties of IdMappingWorkflow where this IdNamespace can be used as a Source or a Target.
id_namespace_arnstringThe Amazon Resource Name (ARN) of the ID namespace. (pattern: <code>arn:(aws|aws-us-gov|aws-cn):entityresolution:[a-z]{2}-[a-z]{1,10}-[0-9]:[0-9]{12}:(idnamespace/[a-zA-Z_0-9-]{1,255})</code>)
id_namespace_namestringThe name of the ID namespace. (pattern: <code>[a-zA-Z_0-9-]*</code>)
input_source_configarrayA list of InputSource objects, which have the fields InputSourceARN and SchemaName.
role_arnstringThe Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to access the resources defined in this IdNamespace on your behalf as part of a workflow run. (pattern: <code>arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+</code>)
tagsobjectThe tags used to organize, track, or control access for this resource.
type_stringThe type of ID namespace. There are two types: SOURCE and TARGET. The SOURCE contains configurations for sourceId data that will be processed in an ID mapping workflow. The TARGET contains a configuration of targetId to which all sourceIds will resolve to. (SOURCE, TARGET)
updated_atstring (date-time)The timestamp of when the ID namespace was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_id_namespaceselectid_namespace_name, regionReturns the IdNamespace with a given name, if it exists.
list_id_namespacesselectregionnextToken, maxResultsReturns a list of all ID namespaces.
create_id_namespaceinsertregion, idNamespaceName, typeCreates an ID namespace object which will help customers provide metadata explaining their dataset and how to use it. Each ID namespace must have a unique name. To modify an existing ID namespace, use the UpdateIdNamespace API.
update_id_namespaceupdateid_namespace_name, regionUpdates an existing ID namespace.
delete_id_namespacedeleteid_namespace_name, regionDeletes the IdNamespace with a given name. This operation returns a ResourceNotFoundException if an ID namespace with the given name does not exist.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
id_namespace_namestringThe name of the ID namespace.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of IdNamespace objects returned per page.
nextTokenstringThe pagination token from the previous API call.

SELECT examples

Returns the IdNamespace with a given name, if it exists.

SELECT
created_at,
description,
id_mapping_workflow_properties,
id_namespace_arn,
id_namespace_name,
input_source_config,
role_arn,
tags,
type_,
updated_at
FROM aws.entityresolution.id_namespaces
WHERE id_namespace_name = '{{ id_namespace_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an ID namespace object which will help customers provide metadata explaining their dataset and how to use it. Each ID namespace must have a unique name. To modify an existing ID namespace, use the UpdateIdNamespace API.

INSERT INTO aws.entityresolution.id_namespaces (
idNamespaceName,
description,
inputSourceConfig,
idMappingWorkflowProperties,
type,
roleArn,
tags,
region
)
SELECT
'{{ idNamespaceName }}' /* required */,
'{{ description }}',
'{{ inputSourceConfig }}',
'{{ idMappingWorkflowProperties }}',
'{{ type }}' /* required */,
'{{ roleArn }}',
'{{ tags }}',
'{{ region }}'
RETURNING
created_at,
description,
id_mapping_workflow_properties,
id_namespace_arn,
id_namespace_name,
input_source_config,
role_arn,
tags,
type_,
updated_at
;

UPDATE examples

Updates an existing ID namespace.

UPDATE aws.entityresolution.id_namespaces
SET
description = '{{ description }}',
inputSourceConfig = '{{ inputSourceConfig }}',
idMappingWorkflowProperties = '{{ idMappingWorkflowProperties }}',
roleArn = '{{ roleArn }}'
WHERE
id_namespace_name = '{{ id_namespace_name }}' --required
AND region = '{{ region }}' --required
RETURNING
created_at,
description,
id_mapping_workflow_properties,
id_namespace_arn,
id_namespace_name,
input_source_config,
role_arn,
type_,
updated_at;

DELETE examples

Deletes the IdNamespace with a given name. This operation returns a ResourceNotFoundException if an ID namespace with the given name does not exist.

DELETE FROM aws.entityresolution.id_namespaces
WHERE id_namespace_name = '{{ id_namespace_name }}' --required
AND region = '{{ region }}' --required
;