GetChangeSet
Returns one change set's metadata: its status and the other fields of the change set, without its operations. To see what the change set wrote, list its operations with ListChangeSetOperations. For changeSetId, pass a change set's id from ListChangeSets.
Request Parameters
- agentContextId
-
The agent context that owns the change set, 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
- changeSetId
-
The change set to fetch, by its opaque instance ID.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
[a-z0-9]+(-[a-z0-9]+)*Required: Yes
Response Elements
The following elements are returned by the service.
- accessControl
-
See
AccessControl. The service returns it on every item.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'stitlenames no nodes or edges. -
NO_ACL- Every caller can read the content.
Type: String
Valid Values:
ACL_RESTRICTED | NO_ACL -
- agentContextId
-
The agent context's ID.
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]+)* - changeSetVersion
-
The change set's latest version. Pass it to
UpdateChangeSet. Each version is immutable. The number increases by one on each edit and each status change.Type: Integer
Valid Range: Minimum value of 1.
- connectionArn
-
The ARN of the connection that produced this change set. Absent for a change that no connection produced, such as a direct
CreateChangeSetcall, and for everyACL_RESTRICTEDchange set, because the connection would identify the source of the restricted content.Type: String
Length Constraints: Minimum length of 1. Maximum length of 2048.
Pattern:
[^\s`]+ - createdAt
-
The date and time when the change set was created.
Type: Timestamp
- generatedBy
-
The activity that generated the change set. A change set that an
IMPORT_ONTOLOGYtask writes carriesIMPORT_ONTOLOGY_TASK, and one that aCreateChangeSetcall makes carriesDIRECT_MODIFICATION. A sync of a connected data source's own metadata, such as an AWS Glue Data Catalog sync, carriesDATA_SOURCE_INGESTION. To list the change sets that carry a value, filterListChangeSetson it.This member can be absent, so handle a change set that has no activity. For example, it's absent on a change set that records a connection's removal, on a change set that AWS Context wrote when it loaded an ontology's schema, and on a change set whose activity this API version doesn't recognize.
Type: String
Valid Values:
DATA_SOURCE_EXTRACTION | DATA_SOURCE_INGESTION | ENTITY_RESOLUTION | ONTOLOGY_GROUNDING | TRACE_ANALYSIS | IMPORT_DATA_DICTIONARY_TASK | IMPORT_VERIFIED_QUERIES_TASK | IMPORT_ONTOLOGY_TASK | DIRECT_MODIFICATION - id
-
The change set's opaque instance ID. Requests take it as
changeSetId.Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
[a-z0-9]+(-[a-z0-9]+)* - status
-
The status of the change set. Valid values:
-
DRAFT- AWS Context is evaluating the change set against the agent context's curation policies. -
PENDING- Held for review as a curation proposal. While the change set isPENDING, you can remove operations from it withUpdateChangeSet. -
AUTHORIZED- The change set is approved, and AWS Context is applying it. -
SUPPRESSED- AWS Context won't apply the change set, because a curation policy denied it or its curation proposal was closed without approval. -
PUBLISHED- AWS Context applied the change set to the agent context. -
FAILED- AWS Context couldn't apply the change set.
SUPPRESSEDandPUBLISHEDare final. AFAILEDchange set can still change toPUBLISHEDorPENDINGif AWS Context retries applying it. New values can be added, so handle a status that you don't recognize.Type: String
Valid Values:
DRAFT | PENDING | AUTHORIZED | SUPPRESSED | PUBLISHED | FAILED -
- statusReason
-
Why AWS Context created or closed the change set, for example because a connection was removed from the agent context. AWS Context keeps it across later status changes, including a curator's decision. Absent when AWS Context gave no reason.
Type: StatusReason object
- updatedAt
-
The date and time when the change set was last updated, such as when its status changed or its operations were edited.
Type: Timestamp
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.fieldListdescribes them. -
other- Another reason.messagedescribes 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: