create_registry_record
async
¶
create_registry_record(
registry_id: RegistryIdentifier,
name: RegistryRecordName,
record_type: RecordType,
descriptors: Descriptors,
*,
config_overrides: Optional[AsyncAgentRegistryControlClientConfig] = None,
display_name: Optional[RegistryRecordDisplayName] = None,
description: Optional[Description] = None,
record_version: Optional[RegistryRecordVersion] = None,
client_token: Optional[ClientToken] = None,
provenance: Optional[ProvenanceList] = None,
custom_metadata: Optional[CustomMetadataDocument] = None,
tags: Optional[TagsMap] = None,
) -> CreateRegistryRecordResponse
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.
Parameters:
-
registry_id(RegistryIdentifier) –The identifier of the registry in which to create the record (ARN or ID)
-
name(RegistryRecordName) –The name of the registry record
-
display_name(Optional[RegistryRecordDisplayName], default:None) –The human-readable display name of the registry record
-
description(Optional[Description], default:None) –The description of the registry record
-
record_type(RecordType) –The type of the registry record, which determines the descriptor format
-
descriptors(Descriptors) –The typed descriptor content for the registry record
-
record_version(Optional[RegistryRecordVersion], default:None) –The version of the registry record
-
client_token(Optional[ClientToken], default:None) –Client token for idempotency
-
provenance(Optional[ProvenanceList], default:None) –The provenance lineage entries for the registry record. This field is reserved for the Amazon Web Services Agent Registry auto-detection service principal. Requests that include this field from other callers are rejected.
-
custom_metadata(Optional[CustomMetadataDocument], default:None) –The custom metadata for the record. Values are strings or JSON booleans.
-
tags(Optional[TagsMap], default:None) –Tags to associate with the registry record
Raises:
-
AccessDeniedException–The caller is not authorized to perform the requested action.
-
ConflictException–The request conflicts with the current state of the resource.
-
InternalServerException–The request failed due to an unexpected internal error; the caller may retry.
-
ResourceNotFoundException–The requested resource was not found.
-
ServiceQuotaExceededException–The request would exceed a service quota.
-
ThrottlingException–The request was denied due to request throttling; the caller may retry after a delay.
-
ValidationException–The request failed validation of one or more input fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_agent_registry_control/_services/async_agent_registry_control.py
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 | |