create_registry_record
¶
create_registry_record(
registry_id: RegistryIdentifier,
name: RegistryRecordName,
descriptor_type: DescriptorType,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = None,
description: Optional[Description] = None,
descriptors: Optional[Descriptors] = None,
record_version: Optional[RegistryRecordVersion] = None,
synchronization_type: Optional[SynchronizationType] = None,
synchronization_configuration: Optional[SynchronizationConfiguration] = None,
client_token: Optional[ClientToken] = None,
) -> CreateRegistryRecordResponse
Creates a new registry record within the specified registry. A registry record represents an individual AI resource's metadata in the registry. This could be an MCP server (and associated tools), A2A agent, agent skill, or a custom resource with a custom schema.
The record is processed asynchronously and returns HTTP 202 Accepted.
Parameters:
-
registry_id(RegistryIdentifier) –The identifier of the registry where the record will be created. You can specify either the Amazon Resource Name (ARN) or the ID of the registry.
-
name(RegistryRecordName) –The name of the registry record.
-
description(Optional[Description], default:None) –A description of the registry record.
-
descriptor_type(DescriptorType) –The descriptor type of the registry record.
-
MCP- Model Context Protocol descriptor for MCP-compatible servers and tools. -
A2A- Agent-to-Agent protocol descriptor. -
CUSTOM- Custom descriptor type for resources such as APIs, Lambda functions, or servers not conforming to a standard protocol. -
AGENT_SKILLS- Agent skills descriptor for defining agent skill definitions.
-
-
descriptors(Optional[Descriptors], default:None) –The descriptor-type-specific configuration containing the resource schema and metadata. The structure of this field depends on the
descriptorTypeyou specify. -
record_version(Optional[RegistryRecordVersion], default:None) –The version of the registry record. Use this to track different versions of the record's content.
-
synchronization_type(Optional[SynchronizationType], default:None) –The type of synchronization to use for keeping the record metadata up to date from an external source. Possible values include
FROM_URLandNONE. -
synchronization_configuration(Optional[SynchronizationConfiguration], default:None) –The configuration for synchronizing registry record metadata from an external source, such as a URL-based MCP server.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.
Raises:
-
AccessDeniedException–This exception is thrown when a request is denied per access permissions
-
ConflictException–This exception is thrown when there is a conflict performing an operation
-
InternalServerException–This exception is thrown if there was an unexpected error during processing of request
-
ResourceNotFoundException–This exception is thrown when a resource referenced by the operation does not exist
-
ServiceQuotaExceededException–This exception is thrown when a request is made beyond the service quota
-
ThrottlingException–This exception is thrown when the number of requests exceeds the limit
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore_control/_services/bedrock_agent_core_control.py
12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 | |