update_registry_record
¶
update_registry_record(
registry_id: RegistryIdentifier,
record_id: RecordIdentifier,
*,
config_overrides: Optional[AgentRegistryControlClientConfig] = None,
name: Optional[RegistryRecordName] = None,
display_name: Optional[UpdatedDisplayName] = None,
description: Optional[UpdatedDescription] = None,
record_type: Optional[RecordType] = None,
descriptors: Optional[UpdatedDescriptors] = None,
artifact: Optional[UpdatedRegistryRecordArtifact] = None,
record_version: Optional[RegistryRecordVersion] = None,
custom_metadata: Optional[UpdatedCustomMetadataMap] = None,
trigger_synchronization: Optional[bool] = None,
force_authentication: Optional[bool] = None,
provenance: Optional[ProvenanceList] = None,
) -> UpdateRegistryRecordResponse
Updates a registry record. The update is asynchronous: the operation returns the record with the UPDATING status while the registry processes it. If a GitHub user must first authorize access to the record's skill source, the operation returns the record with the UPDATE_PENDING_AUTH status instead. Fields that use update wrappers follow PATCH semantics: omit the field to leave it unchanged.
Parameters:
-
registry_id(RegistryIdentifier) –The identifier of the registry containing the record (ARN or ID)
-
record_id(RecordIdentifier) –The identifier of the registry record to update (ARN or ID)
-
name(Optional[RegistryRecordName], default:None) –The updated name of the registry record. Omit to leave the name unchanged.
-
display_name(Optional[UpdatedDisplayName], default:None) –The updated display name of the registry record. Omit to leave the display name unchanged; provide an empty wrapper to unset it.
-
description(Optional[UpdatedDescription], default:None) –The updated description of the registry record. Omit to leave the description unchanged; provide an empty wrapper to unset it.
-
record_type(Optional[RecordType], default:None) –The updated type of the registry record. Omit to leave the record type unchanged.
-
descriptors(Optional[UpdatedDescriptors], default:None) –The updated typed descriptor content for the registry record. Omit to leave the descriptors unchanged.
-
artifact(Optional[UpdatedRegistryRecordArtifact], default:None) –The change to the record's uploaded skill package. Omit it to keep the current package, specify an empty object to remove an uploaded package, or specify
optionalValueto upload a new package. An empty object doesn't remove a package that the record synchronizes from a source. To stop that synchronization, removeskillPackage. A request that changesskillMd.datareplaces the record's package with that text, even if you omit this member. -
record_version(Optional[RegistryRecordVersion], default:None) –The updated version of the registry record. Omit to leave the version unchanged.
-
custom_metadata(Optional[UpdatedCustomMetadataMap], default:None) –The updated custom metadata for the registry record. Values can be strings (maximum 128 characters) or native JSON booleans (
trueorfalse). Omit to leave the existing metadata unchanged. Supply the wrapper with a full replacement set to update, or with a null value to clear all metadata. -
trigger_synchronization(Optional[bool], default:None) –Specifies whether to synchronize the record's descriptor content from its source. For a skill record, the registry reads the stored
skillMd.sourceorskillPackage.sourceagain, because it doesn't watch the source for changes. For a GitHub source, the operation also returns a new authorization link when one is needed. An update that sets a different skill source starts a synchronization even if you omit this member. -
force_authentication(Optional[bool], default:None) –Specifies whether to ask a GitHub user to authorize access again, even when the current authorization still works, for example to use a different GitHub account. You can use it only together with
triggerSynchronization, for a GitHub source whose credential provider uses theAUTHORIZATION_CODEgrant. The new authorization also replaces the one that the same IAM principal's other records in the registry use for the same host, credential provider, scopes, and custom parameters. -
provenance(Optional[ProvenanceList], default:None) –The provenance lineage re-assertion 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. The source identity of an existing lineage is immutable; a re-assertion may only refresh the source details.
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.
-
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/agent_registry_control.py
1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 | |