

# ListChangeSets

Lists an agent context's change sets that have the specified `status`, newest first. Each item is a summary of the change set, without its operations. To see what a change set wrote, call ListChangeSetOperations with its `id` as `changeSetId`.

## Request Parameters
<a name="API_ListChangeSets_RequestParameters"></a>

 ** accessControl **   
The `accessControl` value to list change sets for. If you omit it, every change set 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 change sets 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

 ** generatedBy **   
The activity that generated the change sets to list, for example `ENTITY_RESOLUTION`. If you omit it, change sets from every activity are listed. If you specify a value that isn't listed, the request fails with `ValidationException`. A change set without a `generatedBy`, for example one that AWS Context wrote when it loaded an ontology's schema, matches no value.  
Valid values:  
+  `DATA_SOURCE_EXTRACTION` - AWS Context extracted the content from a connected data source with a model, for example from the documents of an Amazon Bedrock knowledge base.
+  `DATA_SOURCE_INGESTION` - AWS Context ingested content from a connected data source as a repeatable projection of the source, such as an AWS Glue Data Catalog sync.
+  `ENTITY_RESOLUTION` - AWS Context merged duplicate entities into one canonical entity.
+  `ONTOLOGY_GROUNDING` - AWS Context linked an ontology class to the data entities that instantiate it.
+  `TRACE_ANALYSIS` - AWS Context derived skills and instructions from recorded agent sessions.
+  `IMPORT_DATA_DICTIONARY_TASK` - An `IMPORT_DATA_DICTIONARY` task wrote the content. Change sets from earlier `IMPORT_VERIFIED_QUERIES` tasks can also carry this value.
+  `IMPORT_VERIFIED_QUERIES_TASK` - An `IMPORT_VERIFIED_QUERIES` task wrote the content.
+  `IMPORT_ONTOLOGY_TASK` - An `IMPORT_ONTOLOGY` task imported an ontology.
+  `DIRECT_MODIFICATION` - A person, an agent, or an application called `CreateChangeSet` directly.
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`   
Required: No

 ** maxResults **   
Maximum number of results per page (upper bound, not a target). The service might return fewer.  
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 of the change sets to list, for example `PUBLISHED`. Required. A request lists one status, so to list several statuses, make one request for each. If you specify a value that isn't listed, the request fails with `ValidationException`.  
Type: String  
Valid Values: `DRAFT | PENDING | AUTHORIZED | SUPPRESSED | PUBLISHED | FAILED`   
Required: Yes

## Response Elements
<a name="API_ListChangeSets_ResponseElements"></a>

The following elements are returned by the service.

 ** items **   
The change set summaries. Always present, and empty when there are none. Stop paging when `nextToken` is absent, not when a page is short.  
Type: Array of [ChangeSetSummary](API_ChangeSetSummary.md) 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
<a name="API_ListChangeSets_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** 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
<a name="API_ListChangeSets_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/context-2022-07-26/ListChangeSets) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/context-2022-07-26/ListChangeSets) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/ListChangeSets) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/context-2022-07-26/ListChangeSets) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/ListChangeSets) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/context-2022-07-26/ListChangeSets) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/context-2022-07-26/ListChangeSets) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/context-2022-07-26/ListChangeSets) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/context-2022-07-26/ListChangeSets) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/ListChangeSets) 