create_registry_record
async
¶
create_registry_record(
registry_id: RegistryIdentifier,
name: RegistryRecordName,
record_type: RecordType,
*,
config_overrides: Optional[AsyncAgentRegistryControlClientConfig] = None,
display_name: Optional[RegistryRecordDisplayName] = None,
description: Optional[Description] = None,
descriptors: Optional[Descriptors] = None,
artifact: Optional[RegistryRecordArtifactUpload] = 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. For an agent skill, you can upload a skill package in artifact, or synchronize the skill from an Amazon S3 or GitHub source. Creation is asynchronous: the operation returns the record with the CREATING status while the registry processes it. If a GitHub user must first authorize access to the source, the operation returns the record with the CREATE_PENDING_AUTH status instead.
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(Optional[Descriptors], default:None) –The typed descriptor content for the registry record
-
artifact(Optional[RegistryRecordArtifactUpload], default:None) –The skill package to store with the record, for a record of type
SKILLwith anagentSkillsDefinitiondescriptor. The registry validates the package after the operation returns and setsskillMd.datafrom the package's SKILL.md. A request that uploads a package can't also set a skill source or send newskillMd.data. -
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
1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 | |