BedrockAgentCoreControl / Client / update_registry_record_status

update_registry_record_status

BedrockAgentCoreControl.Client.update_registry_record_status(**kwargs)

Updates the status of a registry record. Use this operation to approve, reject, or deprecate a registry record.

See also: AWS API Documentation

Request Syntax

response = client.update_registry_record_status(
    registryId='string',
    recordId='string',
    status='DRAFT'|'PENDING_APPROVAL'|'APPROVED'|'REJECTED'|'DEPRECATED'|'CREATING'|'UPDATING'|'CREATE_FAILED'|'UPDATE_FAILED',
    statusReason='string'
)
Parameters:
  • registryId (string) –

    [REQUIRED]

    The identifier of the registry containing the record. You can specify either the Amazon Resource Name (ARN) or the ID of the registry.

  • recordId (string) –

    [REQUIRED]

    The identifier of the registry record to update the status for. You can specify either the Amazon Resource Name (ARN) or the ID of the record.

  • status (string) –

    [REQUIRED]

    The target status for the registry record.

  • statusReason (string) –

    [REQUIRED]

    The reason for the status change, such as why the record was approved or rejected.

Return type:

dict

Returns:

Response Syntax

{
    'registryArn': 'string',
    'recordArn': 'string',
    'recordId': 'string',
    'status': 'DRAFT'|'PENDING_APPROVAL'|'APPROVED'|'REJECTED'|'DEPRECATED'|'CREATING'|'UPDATING'|'CREATE_FAILED'|'UPDATE_FAILED',
    'statusReason': 'string',
    'updatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • registryArn (string) –

      The Amazon Resource Name (ARN) of the registry that contains the record.

    • recordArn (string) –

      The Amazon Resource Name (ARN) of the registry record.

    • recordId (string) –

      The unique identifier of the registry record.

    • status (string) –

      The resulting status of the registry record.

    • statusReason (string) –

      The reason for the status change.

    • updatedAt (datetime) –

      The timestamp when the record was last updated.

Exceptions

  • BedrockAgentCoreControl.Client.exceptions.AccessDeniedException

  • BedrockAgentCoreControl.Client.exceptions.ConflictException

  • BedrockAgentCoreControl.Client.exceptions.ValidationException

  • BedrockAgentCoreControl.Client.exceptions.ResourceNotFoundException

  • BedrockAgentCoreControl.Client.exceptions.ThrottlingException

  • BedrockAgentCoreControl.Client.exceptions.InternalServerException