list_change_set_operations
¶
list_change_set_operations(
change_set_id: ChangeSetId,
agent_context_id: AgentContextIdentifier,
*,
config_overrides: Optional[ContextClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListChangeSetOperationsResponse
Returns what one change set wrote: every operation it holds (the nodes and relationships it adds, updates, or deletes), one page at a time, in order. This is the only read that returns a change set's contents.
Parameters:
-
change_set_id(ChangeSetId) –The change set whose operations to page through, by its opaque instance ID.
-
agent_context_id(AgentContextIdentifier) –The agent context that owns the change set, as an ID or ARN. Authorization is on this agent context's ARN, and a change set of another agent context is a ResourceNotFoundException.
-
max_results(Optional[MaxResults], default:None) –Maximum number of operations per page (upper bound, not a target). Defaults to 50. A value outside 1–100 fails with
ValidationException. -
next_token(Optional[PaginationToken], default:None) –The pagination token from a previous response. Omit it for the first page.
The request fails with
ValidationException, and you must start again without a token, in these cases:-
The token was issued before an
UpdateChangeSetedit, and the change set is stillPENDING. -
The token was issued while an edited change set was
PENDING, and the change set's status has since changed. -
The token was issued to another end user or for another change set.
On an
ACL_RESTRICTEDchange set, AWS Context checks access before it reads the token, so a caller without access getsAccessDeniedExceptionwhatever token it sends. For an allowed end user, the token also carries the access decision, which expires after a few minutes. AWS Context then checks access again before it returns the 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 the operations in a change set The following example returns the operations in a change set that ontology grounding produced for one table: a link from the table to an ontology class, and a link from each of two columns to an ontology property.
>>> client.list_change_set_operations(agent_context_id='ac-4f2a9c1e7b3d4a6f8e0c2b5d7a9f1e3c', change_set_id='cs-6d8f0b2c4e1a4c7d9f3b5e7a9c1d3f5b', max_results=25)
Source code in docs_src/capo_context/_services/context.py
2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 | |