AgentRegistryControl / Client / submit_registry_record_for_approval
submit_registry_record_for_approval¶
- AgentRegistryControl.Client.submit_registry_record_for_approval(**kwargs)¶
Submits a DRAFT registry record for approval, moving it into the registry’s approval workflow. Depending on the registry’s approval configuration, the record is either auto-approved or set to PENDING_APPROVAL for a curator to approve or reject.
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 (ARN or ID)
recordId (string) –
[REQUIRED]
The identifier of the registry record to submit for approval (ARN or ID)
- 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) –
Response structure for submitting a registry record for approval
registryArn (string) –
The ARN of the registry
recordArn (string) –
The ARN of the registry record
recordId (string) –
The ID of the registry record
status (string) –
The resulting status of the registry record
updatedAt (datetime) –
The timestamp when the record was last updated
Exceptions