create_registry_record
async
¶
create_registry_record(
registry_id: RegistryIdentifier,
name: RegistryRecordName,
descriptor_type: DescriptorType,
*,
config_overrides: Optional[AsyncBedrockAgentCoreControlClientConfig] = 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/async_bedrock_agent_core_control.py
12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 | |