createExportJob method
Future<CreateExportJobResponse>
createExportJob({
- required String applicationId,
- required ExportJobRequest exportJobRequest,
Creates an export job for an application.
May throw BadRequestException. May throw InternalServerErrorException. May throw PayloadTooLargeException. May throw ForbiddenException. May throw NotFoundException. May throw MethodNotAllowedException. May throw TooManyRequestsException.
Parameter applicationId
:
The unique identifier for the application. This identifier is displayed as
the Project ID on the Amazon Pinpoint console.
Implementation
Future<CreateExportJobResponse> createExportJob({
required String applicationId,
required ExportJobRequest exportJobRequest,
}) async {
ArgumentError.checkNotNull(applicationId, 'applicationId');
ArgumentError.checkNotNull(exportJobRequest, 'exportJobRequest');
final response = await _protocol.sendRaw(
payload: exportJobRequest,
method: 'POST',
requestUri: '/v1/apps/${Uri.encodeComponent(applicationId)}/jobs/export',
exceptionFnMap: _exceptionFns,
);
final $json = await _s.jsonFromResponse(response);
return CreateExportJobResponse(
exportJobResponse: ExportJobResponse.fromJson($json),
);
}