Skip to main content

registry_records

Creates, updates, deletes, gets or lists a registry_records resource.

Overview

Nameregistry_records
TypeResource
Idaws.agent_registry_control.registry_records

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringRegistry Record name (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9_-./]*</code>)
created_atstring (date-time)The timestamp when the registry record was created.
descriptionstringDescription of the Resource
descriptorsobjectThe typed set of descriptors for a registry record. Exactly one descriptor field is populated based on the record type.
display_namestringDisplay name for a registry record
record_arnstringThe &ARN; of the registry record. (pattern: <code>arn:aws(-[^:]+)?:agent-registry:[a-z0-9-]+:[0-9]{12}:registry/[a-zA-Z0-9]{12,16}/record/[a-zA-Z0-9]{12}</code>)
record_idstringThe unique identifier of the registry record. (pattern: <code>[a-zA-Z0-9]{12}</code>)
record_typestringRecord type enum for registry record classification (MCP, AGENT, CUSTOM, SKILL)
record_versionstringVersion of the registry record (pattern: <code>[a-zA-Z0-9.-]+</code>)
registry_arnstringThe &ARN; of the parent registry that owns the record. (pattern: <code>arn:aws(-[^:]+)?:agent-registry:[a-z0-9-]+:[0-9]{12}:registry/[a-zA-Z0-9]{12,16}</code>)
statusstringThe lifecycle status of the registry record. (DRAFT, PENDING_APPROVAL, APPROVED, REJECTED, DEPRECATED, CREATING, UPDATING, CREATE_FAILED, UPDATE_FAILED)
status_reasonstringThe reason for the current status. Typically populated when the status indicates a failure state.
updated_atstring (date-time)The timestamp when the registry record was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_registry_recordselectregistry_id, record_id, regionRetrieves the details of a registry record
list_registry_recordsselectregistry_id, regionLists the registry records within a registry, with optional filtering by name, status, and record type
create_registry_recordinsertregistry_id, region, name, recordType, descriptorsCreates a registry record within a registry. A registry record describes a discoverable resource, such as an MCP server, an agent, an agent skill, or a custom resource. Creation is asynchronous: the record is returned with the CREATING status while it is processed.
update_registry_record_statusupdateregistry_id, record_id, region, status, statusReasonUpdates the status of a registry record as part of the registry's curation workflow, for example to approve or reject a record that is pending approval, or to deprecate an approved record so that it is no longer discoverable
update_registry_recordupdateregistry_id, record_id, regionUpdates a registry record. The update is asynchronous: the record is returned with the UPDATING status while it is processed. Fields that use update wrappers follow PATCH semantics: omit the field to leave it unchanged.
delete_registry_recorddeleteregistry_id, record_id, regionDeletes a registry record
submit_registry_record_for_approvalexecregistry_id, record_id, regionSubmits a DRAFT registry record for approval, moving it into the registry's approval workflow. Depending on the registry's approval configuration, the record is either auto-approved or set to PENDING_APPROVAL for a curator to approve or reject.

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
record_idstringThe identifier of the registry record to submit for approval (ARN or ID)
regionstringAWS region (default: us-east-1)
registry_idstringThe identifier of the registry containing the record (ARN or ID)

SELECT examples

Retrieves the details of a registry record

SELECT
name,
created_at,
description,
descriptors,
display_name,
record_arn,
record_id,
record_type,
record_version,
registry_arn,
status,
status_reason,
updated_at
FROM aws.agent_registry_control.registry_records
WHERE registry_id = '{{ registry_id }}' -- required
AND record_id = '{{ record_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a registry record within a registry. A registry record describes a discoverable resource, such as an MCP server, an agent, an agent skill, or a custom resource. Creation is asynchronous: the record is returned with the CREATING status while it is processed.

INSERT INTO aws.agent_registry_control.registry_records (
name,
displayName,
description,
recordType,
descriptors,
recordVersion,
clientToken,
tags,
registry_id,
region
)
SELECT
'{{ name }}' /* required */,
'{{ displayName }}',
'{{ description }}',
'{{ recordType }}' /* required */,
'{{ descriptors }}' /* required */,
'{{ recordVersion }}',
'{{ clientToken }}',
'{{ tags }}',
'{{ registry_id }}',
'{{ region }}'
RETURNING
record_arn,
status
;

UPDATE examples

Updates the status of a registry record as part of the registry's curation workflow, for example to approve or reject a record that is pending approval, or to deprecate an approved record so that it is no longer discoverable

UPDATE aws.agent_registry_control.registry_records
SET
status = '{{ status }}',
statusReason = '{{ statusReason }}'
WHERE
registry_id = '{{ registry_id }}' --required
AND record_id = '{{ record_id }}' --required
AND region = '{{ region }}' --required
AND status = '{{ status }}' --required
AND statusReason = '{{ statusReason }}' --required
RETURNING
record_arn,
record_id,
registry_arn,
status,
status_reason,
updated_at;

DELETE examples

Deletes a registry record

DELETE FROM aws.agent_registry_control.registry_records
WHERE registry_id = '{{ registry_id }}' --required
AND record_id = '{{ record_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Submits a DRAFT registry record for approval, moving it into the registry's approval workflow. Depending on the registry's approval configuration, the record is either auto-approved or set to PENDING_APPROVAL for a curator to approve or reject.

EXEC aws.agent_registry_control.registry_records.submit_registry_record_for_approval
@registry_id='{{ registry_id }}' --required,
@record_id='{{ record_id }}' --required,
@region='{{ region }}' --required
;