View a markdown version of this page

ListCurationProposals - AWS Context

ListCurationProposals

Lists an agent context's curation proposals, newest first. A curation proposal holds a change to the agent context for review.

Request Parameters

accessControl

The accessControl value to list proposals for. If you omit it, every proposal in the status is listed, each with its accessControl. If you specify a value that isn't listed, the request fails with ValidationException.

Valid values:

  • ACL_RESTRICTED - Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal's title names no nodes or edges.

  • NO_ACL - Every caller can read the content.

Type: String

Valid Values: ACL_RESTRICTED | NO_ACL

Required: No

agentContextId

The agent context whose proposals you want to list, by its ID or ARN.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 180.

Pattern: (arn:(aws|aws-cn|aws-us-gov):context:[a-z0-9\-]{1,32}:\d{12}:agent-context/)?[a-z0-9]+(-[a-z0-9]+)*

Required: Yes

maxResults

Maximum number of results per page (upper bound, not a target). The service might return fewer. Defaults to 50. A value outside 1–100 fails with ValidationException.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No

nextToken

Opaque pagination cursor from a prior response. Omit for the first page.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 4096.

Required: No

status

The status to scope the queue to, for example, PENDING_REVIEW for the review queue. Required: a request lists one status, so list each status you want in its own request.

Valid values:

  • PENDING_REVIEW - Waiting for a curator's decision. The only status Accept and Reject act on.

  • APPROVED - A curator accepted it. Its change set is published or publishing.

  • REJECTED - Closed without applying its change set: a curator rejected it, or the service did when a holding policy's review window passed with no decision (statusReasonCode REQUEST_EXPIRED).

  • SUPERSEDED - A newer proposal for the same document replaced it.

  • FAILED - The proposal was accepted, but publishing its change set failed. This status is final. To apply the change, submit it again.

  • PUBLISHING - Accepted and publishing asynchronously (an ontology-schema publish). The status then changes to APPROVED or FAILED.

  • ARCHIVED - The connection that produced it was removed from the agent context. statusReason.code is CONNECTION_REMOVED.

Type: String

Valid Values: PENDING_REVIEW | APPROVED | REJECTED | SUPERSEDED | FAILED | PUBLISHING | ARCHIVED

Required: Yes

Response Elements

The following elements are returned by the service.

items

The curation proposals, as summaries. Always present, and empty when there are none.

Type: Array of CurationProposalSummary objects

nextToken

Pagination cursor for the next page. Absent when no more results exist.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 4096.

Errors

For information about the errors that are common to all actions, see Common Error Types.

AccessDeniedException

You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.

message

A message that describes the error.

HTTP Status Code: 403

InternalServerException

The request failed because of an internal error. Retry the request.

message

A message that describes the error.

HTTP Status Code: 500

ResourceNotFoundException

The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.

message

A message that describes the error.

resourceId

The ID of the resource that was not found.

resourceType

The type of the resource that wasn't found.

Valid values:

  • agent-context - An agent context.

  • connection - A connection.

  • curation-policy - A curation policy.

  • evaluation - Reserved for future use.

  • ontology - An ontology.

  • ontology-induction - An ontology induction.

  • resource-policy - A resource-based policy.

HTTP Status Code: 404

ThrottlingException

The request was denied because it exceeded a request rate quota. Wait, then retry the request.

message

A message that describes the error.

quotaCode

The code of the quota that throttled the request.

retryAfterSeconds

The number of seconds to wait before you retry the request, if AWS Context provides one.

serviceCode

The code of the service whose quota throttled the request.

HTTP Status Code: 429

ValidationException

The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.

fieldList

The fields that failed validation, each with a message that describes why.

message

A message that describes the error.

reason

The reason that the input failed validation. Valid values:

  • unknownOperation - The operation isn't recognized.

  • cannotParse - The request couldn't be parsed.

  • fieldValidationFailed - One or more fields failed validation. fieldList describes them.

  • other - Another reason. message describes it.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: