PartnerCentralSellingAPI / Paginator / ListEngagementFromOpportunityTasks
ListEngagementFromOpportunityTasks¶
- class PartnerCentralSellingAPI.Paginator.ListEngagementFromOpportunityTasks¶
paginator = client.get_paginator('list_engagement_from_opportunity_tasks')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
PartnerCentralSellingAPI.Client.list_engagement_from_opportunity_tasks()
.See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( Catalog='string', EngagementIdentifier=[ 'string', ], OpportunityIdentifier=[ 'string', ], Sort={ 'SortBy': 'StartTime', 'SortOrder': 'ASCENDING'|'DESCENDING' }, TaskIdentifier=[ 'string', ], TaskStatus=[ 'IN_PROGRESS'|'COMPLETE'|'FAILED', ], PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
Catalog (string) –
[REQUIRED]
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.
EngagementIdentifier (list) –
Filters tasks by the identifiers of the engagements they created or are associated with.
(string) –
OpportunityIdentifier (list) –
The identifier of the original opportunity associated with this task.
(string) –
Sort (dict) –
Specifies the sorting criteria for the returned results. This allows you to order the tasks based on specific attributes.
SortBy (string) – [REQUIRED]
Specifies the field by which the task list should be sorted.
SortOrder (string) – [REQUIRED]
Determines the order in which the sorted results are presented.
TaskIdentifier (list) –
Filters tasks by their unique identifiers. Use this when you want to retrieve information about specific tasks.
(string) –
TaskStatus (list) –
Filters the tasks based on their current status. This allows you to focus on tasks in specific states.
(string) –
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextToken
will be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextToken
from a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'TaskSummaries': [ { 'EngagementId': 'string', 'EngagementInvitationId': 'string', 'Message': 'string', 'OpportunityId': 'string', 'ReasonCode': 'InvitationAccessDenied'|'InvitationValidationFailed'|'EngagementAccessDenied'|'OpportunityAccessDenied'|'ResourceSnapshotJobAccessDenied'|'ResourceSnapshotJobValidationFailed'|'ResourceSnapshotJobConflict'|'EngagementValidationFailed'|'EngagementConflict'|'OpportunitySubmissionFailed'|'EngagementInvitationConflict'|'InternalError'|'OpportunityValidationFailed'|'OpportunityConflict'|'ResourceSnapshotAccessDenied'|'ResourceSnapshotValidationFailed'|'ResourceSnapshotConflict'|'ServiceQuotaExceeded'|'RequestThrottled', 'ResourceSnapshotJobId': 'string', 'StartTime': datetime(2015, 1, 1), 'TaskArn': 'string', 'TaskId': 'string', 'TaskStatus': 'IN_PROGRESS'|'COMPLETE'|'FAILED' }, ] }
Response Structure
(dict) –
TaskSummaries (list) –
TaskSummaries An array of TaskSummary objects containing details about each task.
(dict) –
Provides a summary of a task related to creating an engagement from an opportunity. This structure contains key information about the task’s status, associated identifiers, and any failure details.
EngagementId (string) –
The unique identifier of the engagement created as a result of the task. This field is populated when the task is completed successfully.
EngagementInvitationId (string) –
The unique identifier of the Engagement Invitation.
Message (string) –
A detailed message providing additional information about the task, especially useful in case of failures. This field may contain error details or other relevant information about the task’s execution
OpportunityId (string) –
The unique identifier of the original Opportunity from which the Engagement is being created. This field helps track the source of the Engagement creation task.
ReasonCode (string) –
A code indicating the specific reason for a task failure. This field is populated when the task status is FAILED and provides a categorized reason for the failure.
ResourceSnapshotJobId (string) –
The identifier of the resource snapshot job associated with this task, if a snapshot was created as part of the Engagement creation process.
StartTime (datetime) –
The timestamp indicating when the task was initiated, in RFC 3339 5.6 date-time format.
TaskArn (string) –
The Amazon Resource Name (ARN) uniquely identifying this task within AWS. This ARN can be used for referencing the task in other AWS services or APIs.
TaskId (string) –
A unique identifier for a specific task.
TaskStatus (string) –
The current status of the task.