list_change_sets
¶
list_change_sets(
agent_context_id: AgentContextIdentifier,
status: ChangeSetStatus,
*,
config_overrides: Optional[ContextClientConfig] = None,
access_control: Optional[AccessControl] = None,
generated_by: Optional[Activity] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListChangeSetsResponse
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.
Parameters:
-
agent_context_id(AgentContextIdentifier) –The agent context whose change sets you want to list, by its ID or ARN.
-
status(ChangeSetStatus) –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 withValidationException. -
access_control(Optional[AccessControl], default:None) –The
accessControlvalue to list change sets for. If you omit it, every change set in the status is listed, each with itsaccessControl. If you specify a value that isn't listed, the request fails withValidationException.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.
-
-
generated_by(Optional[Activity], default:None) –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 withValidationException. A change set without ageneratedBy, 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- AnIMPORT_DATA_DICTIONARYtask wrote the content. Change sets from earlierIMPORT_VERIFIED_QUERIEStasks can also carry this value. -
IMPORT_VERIFIED_QUERIES_TASK- AnIMPORT_VERIFIED_QUERIEStask wrote the content. -
IMPORT_ONTOLOGY_TASK- AnIMPORT_ONTOLOGYtask imported an ontology. -
DIRECT_MODIFICATION- A person, an agent, or an application calledCreateChangeSetdirectly.
-
-
max_results(Optional[MaxResults], default:None) –Maximum number of results per page (upper bound, not a target). The service might return fewer.
-
next_token(Optional[PaginationToken], default:None) –Opaque pagination cursor from a prior response. Omit for the first page.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.
-
InternalServerException–The request failed because of an internal error. Retry the request.
-
ThrottlingException–The request was denied because it exceeded a request rate quota. Wait, then retry the request.
-
ValidationException–The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.
-
ResourceNotFoundException–The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List published change sets The following example lists an agent context's published change sets, newest first, two per page.
>>> client.list_change_sets(agent_context_id='ac-4f2a9c1e7b3d4a6f8e0c2b5d7a9f1e3c', status='PUBLISHED', max_results=2)
Source code in docs_src/capo_context/_services/context.py
2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 | |