getProspectingFromEngagementTask method

Future<GetProspectingFromEngagementTaskResponse> getProspectingFromEngagementTask({
  1. required String catalog,
  2. required String taskIdentifier,
})

Retrieves the details and current status of a prospecting task previously started with StartProspectingFromEngagementTask to enable polling for completion and access to per-engagement processing results.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter catalog : Specifies the catalog associated with the task. Specify AWS for production environments and Sandbox for testing and development purposes. The value must match the catalog used when the task was created.

Parameter taskIdentifier : The unique identifier of the prospecting task to retrieve. This value is returned in the TaskId field of the StartProspectingFromEngagementTask response.

Implementation

Future<GetProspectingFromEngagementTaskResponse>
    getProspectingFromEngagementTask({
  required String catalog,
  required String taskIdentifier,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target':
        'AWSPartnerCentralSelling.GetProspectingFromEngagementTask'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Catalog': catalog,
      'TaskIdentifier': taskIdentifier,
    },
  );

  return GetProspectingFromEngagementTaskResponse.fromJson(jsonResponse.body);
}