update_registry_record_status
async
¶
update_registry_record_status(
registry_id: RegistryIdentifier,
record_id: RecordIdentifier,
status: RegistryRecordStatus,
status_reason: str,
*,
config_overrides: Optional[AsyncAgentRegistryControlClientConfig] = None,
) -> UpdateRegistryRecordStatusResponse
Updates the status of a registry record as part of the registry's curation workflow, for example to approve or reject a record that is pending approval, or to deprecate an approved record so that it is no longer discoverable
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 the status of (ARN or ID)
-
status(RegistryRecordStatus) –The target status for the registry record
-
status_reason(str) –The reason for the status change, for example why the record was approved, rejected, or deprecated
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.