list_engagement_from_opportunity_tasks
async
¶
list_engagement_from_opportunity_tasks(
catalog: CatalogIdentifier,
*,
config_overrides: Optional[AsyncPartnerCentralSellingClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
sort: Optional[ListTasksSortBase] = None,
task_status: Optional[TaskStatuses] = None,
task_identifier: Optional[TaskIdentifiers] = None,
opportunity_identifier: Optional[OpportunityIdentifiers] = None,
engagement_identifier: Optional[EngagementIdentifiers] = None,
) -> ListEngagementFromOpportunityTasksResponse
Lists all in-progress, completed, or failed EngagementFromOpportunity tasks that were initiated by the caller's account.
Parameters:
-
max_results(Optional[int], default:None) –Specifies the maximum number of results to return in a single page of the response.Use this parameter to control the number of items returned in each request, which can be useful for performance tuning and managing large result sets.
-
next_token(Optional[str], default:None) –The token for requesting the next page of results. This value is obtained from the NextToken field in the response of a previous call to this API. Use this parameter for pagination when the result set spans multiple pages.
-
sort(Optional[ListTasksSortBase], default:None) –Specifies the sorting criteria for the returned results. This allows you to order the tasks based on specific attributes.
-
catalog(CatalogIdentifier) –Specifies the catalog related to the request. Valid values are:
-
AWS: Retrieves the request from the production AWS environment.
-
Sandbox: Retrieves the request from a sandbox environment used for testing or development purposes.
-
-
task_status(Optional[TaskStatuses], default:None) –Filters the tasks based on their current status. This allows you to focus on tasks in specific states.
-
task_identifier(Optional[TaskIdentifiers], default:None) –Filters tasks by their unique identifiers. Use this when you want to retrieve information about specific tasks.
-
opportunity_identifier(Optional[OpportunityIdentifiers], default:None) –The identifier of the original opportunity associated with this task.
-
engagement_identifier(Optional[EngagementIdentifiers], default:None) –Filters tasks by the identifiers of the engagements they created or are associated with.
Raises:
-
AccessDeniedException–This error occurs when you don't have permission to perform the requested action.
You don’t have access to this action or resource. Review IAM policies or contact your AWS administrator for assistance.
-
InternalServerException–This error occurs when the specified resource can’t be found or doesn't exist. Resource ID and type might be incorrect.
Suggested action: This is usually a transient error. Retry after the provided retry delay or a short interval. If the problem persists, contact AWS support.
-
ResourceNotFoundException–This error occurs when the specified resource can't be found. The resource might not exist, or isn't visible with the current credentials.
Suggested action: Verify that the resource ID is correct and the resource is in the expected AWS region. Check IAM permissions for accessing the resource.
-
ThrottlingException–This error occurs when there are too many requests sent. Review the provided quotas and adapt your usage to avoid throttling.
This error occurs when there are too many requests sent. Review the provided Quotas and retry after the provided delay.
-
ValidationException–The input fails to satisfy the constraints specified by the service or business validation rules.
Suggested action: Review the error message, including the failed fields and reasons, to correct the request payload.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_partnercentral_selling/_services/async_partner_central_selling.py
2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 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 | |