Skip to content

list_acts

list_acts(
    workflow_definition_name: WorkflowDefinitionName,
    *,
    config_overrides: Optional[NovaActClientConfig] = None,
    workflow_run_id: Optional[UuidString] = None,
    session_id: Optional[UuidString] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
    sort_order: Optional[SortOrder] = None,
) -> ListActsResponse

Lists all acts within a specific session with their current status and execution details.

Parameters:

  • workflow_definition_name (WorkflowDefinitionName) –

    The name of the workflow definition containing the session.

  • workflow_run_id (Optional[UuidString], default: None ) –

    The unique identifier of the workflow run containing the session.

  • session_id (Optional[UuidString], default: None ) –

    The unique identifier of the session to list acts for.

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of acts 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 acts (ascending or descending).

Raises:

Source code in docs_src/capo_nova_act/_services/nova_act.py
def list_acts(
    self,
    workflow_definition_name: "capo_nova_act.types.workflow_definition_name.WorkflowDefinitionName",
    *,
    config_overrides: Optional[NovaActClientConfig] = None,
    workflow_run_id: Optional["capo_nova_act.types.uuid_string.UuidString"] = None,
    session_id: Optional["capo_nova_act.types.uuid_string.UuidString"] = None,
    max_results: Optional["capo_nova_act.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_nova_act.types.next_token.NextToken"] = None,
    sort_order: Optional["capo_nova_act.types.sort_order.SortOrder"] = None,
) -> "capo_nova_act.types.list_acts_response.ListActsResponse":
    """<p>Lists all acts within a specific session with their current status and execution details.</p>

    Args:
        workflow_definition_name: <p>The name of the workflow definition containing the session.</p>
        workflow_run_id: <p>The unique identifier of the workflow run containing the session.</p>
        session_id: <p>The unique identifier of the session to list acts for.</p>
        max_results: <p>The maximum number of acts to return in a single response.</p>
        next_token: <p>The token for retrieving the next page of results.</p>
        sort_order: <p>The sort order for the returned acts (ascending or descending).</p>

    Raises:
        capo_nova_act.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permissions to perform this action.</p>
        capo_nova_act.errors.conflict_exception.ConflictException: <p>The request could not be completed due to a conflict with the current state of the resource.</p>
        capo_nova_act.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Please try again later.</p>
        capo_nova_act.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource was not found.</p>
        capo_nova_act.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Please try again later.</p>
        capo_nova_act.errors.validation_exception.ValidationException: <p>The input parameters for the request are invalid.</p>
        capo_nova_act.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_nova_act.types.list_acts_request.ListActsRequest]",
    ) -> OperationResponse[
        "capo_nova_act.types.list_acts_response.ListActsResponse"
    ]:
        import capo_nova_act._operations.amazon_nova_agents_data_plane.list_acts

        output, http_response = (
            capo_nova_act._operations.amazon_nova_agents_data_plane.list_acts.list_acts(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListActs")
    )
    input_: capo_nova_act.types.list_acts_request.ListActsRequest = {
        "workflow_definition_name": workflow_definition_name
    }
    if workflow_run_id is not None:
        input_["workflow_run_id"] = workflow_run_id
    if session_id is not None:
        input_["session_id"] = session_id
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if sort_order is not None:
        input_["sort_order"] = sort_order

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output