:doc:`PartnerCentralSellingAPI <../../partnercentral-selling>` / Client / list_engagement_by_accepting_invitation_tasks

*********************************************
list_engagement_by_accepting_invitation_tasks
*********************************************



.. py:method:: PartnerCentralSellingAPI.Client.list_engagement_by_accepting_invitation_tasks(**kwargs)

  

  Lists all in-progress, completed, or failed StartEngagementByAcceptingInvitationTask tasks that were initiated by the caller's account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/partnercentral-selling-2022-07-26/ListEngagementByAcceptingInvitationTasks>`_  


  **Request Syntax**
  ::

    response = client.list_engagement_by_accepting_invitation_tasks(
        MaxResults=123,
        NextToken='string',
        Sort={
            'SortOrder': 'ASCENDING'|'DESCENDING',
            'SortBy': 'StartTime'
        },
        Catalog='string',
        TaskStatus=[
            'IN_PROGRESS'|'COMPLETE'|'FAILED',
        ],
        OpportunityIdentifier=[
            'string',
        ],
        EngagementInvitationIdentifier=[
            'string',
        ],
        TaskIdentifier=[
            'string',
        ]
    )
    
  :type MaxResults: integer
  :param MaxResults: 

    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.

    

  
  :type NextToken: string
  :param NextToken: 

    Use this parameter for pagination when the result set spans multiple pages. This value is obtained from the NextToken field in the response of a previous call to this API.

    

  
  :type Sort: dict
  :param Sort: 

    Specifies the sorting criteria for the returned results. This allows you to order the tasks based on specific attributes.

    

  
    - **SortOrder** *(string) --* **[REQUIRED]** 

      Determines the order in which the sorted results are presented.

      

    
    - **SortBy** *(string) --* **[REQUIRED]** 

      Specifies the field by which the task list should be sorted.

      

    
  
  :type Catalog: string
  :param Catalog: **[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.
    

    

  
  :type TaskStatus: list
  :param TaskStatus: 

    Filters the tasks based on their current status. This allows you to focus on tasks in specific states.

    

  
    - *(string) --* 

    

  :type OpportunityIdentifier: list
  :param OpportunityIdentifier: 

    Filters tasks by the identifiers of the opportunities they created or are associated with.

    

  
    - *(string) --* 

    

  :type EngagementInvitationIdentifier: list
  :param EngagementInvitationIdentifier: 

    Filters tasks by the identifiers of the engagement invitations they are processing.

    

  
    - *(string) --* 

    

  :type TaskIdentifier: list
  :param TaskIdentifier: 

    Filters tasks by their unique identifiers. Use this when you want to retrieve information about specific tasks.

    

  
    - *(string) --* 

    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'TaskSummaries': [
              {
                  'TaskId': 'string',
                  'TaskArn': 'string',
                  'StartTime': datetime(2015, 1, 1),
                  'TaskStatus': 'IN_PROGRESS'|'COMPLETE'|'FAILED',
                  'Message': 'string',
                  'ReasonCode': 'InvitationAccessDenied'|'InvitationValidationFailed'|'EngagementAccessDenied'|'OpportunityAccessDenied'|'ResourceSnapshotJobAccessDenied'|'ResourceSnapshotJobValidationFailed'|'ResourceSnapshotJobConflict'|'EngagementValidationFailed'|'EngagementConflict'|'OpportunitySubmissionFailed'|'EngagementInvitationConflict'|'InternalError'|'OpportunityValidationFailed'|'OpportunityConflict'|'ResourceSnapshotAccessDenied'|'ResourceSnapshotValidationFailed'|'ResourceSnapshotConflict'|'ServiceQuotaExceeded'|'RequestThrottled'|'ContextNotFound'|'CustomerProjectContextNotPermitted'|'DisqualifiedLeadNotPermitted',
                  'OpportunityId': 'string',
                  'ResourceSnapshotJobId': 'string',
                  'EngagementInvitationId': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TaskSummaries** *(list) --* 

        An array of ``EngagementByAcceptingInvitationTaskSummary`` objects, each representing a task that matches the specified filters. The array may be empty if no tasks match the criteria.

        
        

        - *(dict) --* 

          Specifies a subset of fields associated with tasks related to accepting an engagement invitation.

          
          

          - **TaskId** *(string) --* 

            Unique identifier of the task.

            
          

          - **TaskArn** *(string) --* 

            The Amazon Resource Name (ARN) that uniquely identifies the task.

            
          

          - **StartTime** *(datetime) --* 

            Task start timestamp.

            
          

          - **TaskStatus** *(string) --* 

            Status of the task.

            
          

          - **Message** *(string) --* 

            Detailed message describing the failure and possible recovery steps.

            
          

          - **ReasonCode** *(string) --* 

            A code pointing to the specific reason for the failure.

            
          

          - **OpportunityId** *(string) --* 

            Unique identifier of opportunity that was created.

            
          

          - **ResourceSnapshotJobId** *(string) --* 

            Unique identifier of the resource snapshot job that was created.

            
          

          - **EngagementInvitationId** *(string) --* 

            The unique identifier of the engagement invitation that was accepted.

            
      
    
      

      - **NextToken** *(string) --* 

        A token used for pagination to retrieve the next page of results.If there are more results available, this field will contain a token that can be used in a subsequent API call to retrieve the next page. If there are no more results, this field will be null or an empty string.

        
  
  **Exceptions**
  
  *   :py:class:`PartnerCentralSellingAPI.Client.exceptions.ThrottlingException`

  
  *   :py:class:`PartnerCentralSellingAPI.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`PartnerCentralSellingAPI.Client.exceptions.InternalServerException`

  
  *   :py:class:`PartnerCentralSellingAPI.Client.exceptions.ValidationException`

  
  *   :py:class:`PartnerCentralSellingAPI.Client.exceptions.ResourceNotFoundException`

  