BedrockAgentCoreControl / Client / submit_registry_record_for_approval
submit_registry_record_for_approval¶
- BedrockAgentCoreControl.Client.submit_registry_record_for_approval(**kwargs)¶
Submits a registry record for approval. This transitions the record from
DRAFTstatus toPENDING_APPROVALstatus. If the registry has auto-approval enabled, the record is automatically approved.See also: AWS API Documentation
Request Syntax
response = client.submit_registry_record_for_approval( registryId='string', recordId='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 submit for approval. You can specify either the Amazon Resource Name (ARN) or the ID of the record.
- 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', '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 after submission.
updatedAt (datetime) –
The timestamp when the record was last updated.
Exceptions
BedrockAgentCoreControl.Client.exceptions.AccessDeniedExceptionBedrockAgentCoreControl.Client.exceptions.ValidationExceptionBedrockAgentCoreControl.Client.exceptions.ResourceNotFoundExceptionBedrockAgentCoreControl.Client.exceptions.ThrottlingExceptionBedrockAgentCoreControl.Client.exceptions.InternalServerException