getQualificationsAssociationTask method

Future<GetQualificationsAssociationTaskResponse> getQualificationsAssociationTask({
  1. required String catalog,
  2. required String identifier,
})

Retrieves the status and details of the most recent qualifications association task for your partner account. Use this operation to poll the progress of an association task initiated by StartQualificationsAssociationTask.

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

Parameter catalog : The catalog in which to look up the qualifications association task. Valid values: AWS, Sandbox.

Parameter identifier : Your partner identifier. You can provide either a partner ID (for example, partner-abc123) or a partner ARN. You must own this identifier.

Implementation

Future<GetQualificationsAssociationTaskResponse>
    getQualificationsAssociationTask({
  required String catalog,
  required String identifier,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'PartnerCentralAccount.GetQualificationsAssociationTask'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Catalog': catalog,
      'Identifier': identifier,
    },
  );

  return GetQualificationsAssociationTaskResponse.fromJson(jsonResponse.body);
}