list_engagement_from_opportunity_tasks
¶
list_engagement_from_opportunity_tasks(
catalog: CatalogIdentifier,
*,
config_overrides: Optional[PartnerCentralSellingClientConfig] = 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/partner_central_selling.py
1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 | |