describeForecastExportJob method
Future<DescribeForecastExportJobResponse>
describeForecastExportJob({
- required String forecastExportJobArn,
Describes a forecast export job created using the CreateForecastExportJob operation.
In addition to listing the properties provided by the user in the
CreateForecastExportJob
request, this operation lists the
following properties:
-
CreationTime
-
LastModificationTime
-
Status
-
Message
- If an error occurred, information about the error.
May throw InvalidInputException. May throw ResourceNotFoundException.
Parameter forecastExportJobArn
:
The Amazon Resource Name (ARN) of the forecast export job.
Implementation
Future<DescribeForecastExportJobResponse> describeForecastExportJob({
required String forecastExportJobArn,
}) async {
ArgumentError.checkNotNull(forecastExportJobArn, 'forecastExportJobArn');
_s.validateStringLength(
'forecastExportJobArn',
forecastExportJobArn,
0,
256,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonForecast.DescribeForecastExportJob'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ForecastExportJobArn': forecastExportJobArn,
},
);
return DescribeForecastExportJobResponse.fromJson(jsonResponse.body);
}