list_sessions
async
¶
list_sessions(
workflow_definition_name: WorkflowDefinitionName,
workflow_run_id: UuidString,
*,
config_overrides: Optional[AsyncNovaActClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
sort_order: Optional[SortOrder] = None,
) -> ListSessionsResponse
Lists all sessions within a specific workflow run.
Parameters:
-
workflow_definition_name(WorkflowDefinitionName) –The name of the workflow definition containing the workflow run.
-
workflow_run_id(UuidString) –The unique identifier of the workflow run to list sessions for.
-
max_results(Optional[MaxResults], default:None) –The maximum number of sessions to return in a single response.
-
next_token(Optional[NextToken], default:None) –The token for retrieving the next page of results.
-
sort_order(Optional[SortOrder], default:None) –The sort order for the returned sessions (ascending or descending).
Raises:
-
AccessDeniedException–You don't have sufficient permissions to perform this action.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
InternalServerException–An internal server error occurred. Please try again later.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled due to too many requests. Please try again later.
-
ValidationException–The input parameters for the request are invalid.
-
UnknownServiceError–The service returned an error code this client does not model.