Skip to main content

predictor_backtest_export_jobs

Creates, updates, deletes, gets or lists a predictor_backtest_export_jobs resource.

Overview

Namepredictor_backtest_export_jobs
TypeResource
Idaws.forecast.predictor_backtest_export_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)When the predictor backtest export job was created.
destinationobjectThe destination for an export job. Provide an S3 path, an Identity and Access Management (IAM) role that allows Amazon Forecast to access the location, and an Key Management Service (KMS) key (optional).
formatstringThe format of the exported data, CSV or PARQUET. (pattern: <code>^CSV|PARQUET$</code>)
last_modification_timestring (date-time)The last time the resource was modified. The timestamp depends on the status of the job: CREATE_PENDING - The CreationTime. CREATE_IN_PROGRESS - The current timestamp. CREATE_STOPPING - The current timestamp. CREATE_STOPPED - When the job stopped. ACTIVE or CREATE_FAILED - When the job finished or failed.
messagestringInformation about any errors that may have occurred during the backtest export.
predictor_arnstringThe Amazon Resource Name (ARN) of the predictor. (pattern: <code>arn:([a-z\d-]+):forecast:.:.:.+</code>)
predictor_backtest_export_job_arnstringThe Amazon Resource Name (ARN) of the predictor backtest export job. (pattern: <code>arn:([a-z\d-]+):forecast:.:.:.+</code>)
predictor_backtest_export_job_namestringThe name of the predictor backtest export job. (pattern: <code>^[a-zA-Z][a-zA-Z0-9_]*</code>)
statusstringThe status of the predictor backtest export job. States include: ACTIVE CREATE_PENDING, CREATE_IN_PROGRESS, CREATE_FAILED CREATE_STOPPING, CREATE_STOPPED DELETE_PENDING, DELETE_IN_PROGRESS, DELETE_FAILED

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_predictor_backtest_export_jobselectregionDescribes a predictor backtest export job created using the CreatePredictorBacktestExportJob operation. In addition to listing the properties provided by the user in the CreatePredictorBacktestExportJob request, this operation lists the following properties: CreationTime LastModificationTime Status Message (if an error occurred)
list_predictor_backtest_export_jobsselectregionReturns a list of predictor backtest export jobs created using the CreatePredictorBacktestExportJob operation. This operation returns a summary for each backtest export job. You can filter the list using an array of Filter objects. To retrieve the complete set of properties for a particular backtest export job, use the ARN with the DescribePredictorBacktestExportJob operation.
create_predictor_backtest_export_jobinsertregion, PredictorBacktestExportJobName, PredictorArnExports backtest forecasts and accuracy metrics generated by the CreateAutoPredictor or CreatePredictor operations. Two folders containing CSV or Parquet files are exported to your specified S3 bucket. The export file names will match the following conventions: <ExportJobName><ExportTimestamp><PartNumber>.csv The <ExportTimestamp> component is in Java SimpleDate format (yyyy-MM-ddTHH-mm-ssZ). You must specify a DataDestination object that includes an Amazon S3 bucket and an Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket. For more information, see aws-forecast-iam-roles. The Status of the export job must be ACTIVE before you can access the export in your Amazon S3 bucket. To get the status, use the DescribePredictorBacktestExportJob operation.
delete_predictor_backtest_export_jobdeleteregionDeletes a predictor backtest export job.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes a predictor backtest export job created using the CreatePredictorBacktestExportJob operation. In addition to listing the properties provided by the user in the CreatePredictorBacktestExportJob request, this operation lists the following properties: CreationTime LastModificationTime Status Message (if an error occurred)

SELECT
creation_time,
destination,
format,
last_modification_time,
message,
predictor_arn,
predictor_backtest_export_job_arn,
predictor_backtest_export_job_name,
status
FROM aws.forecast.predictor_backtest_export_jobs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Exports backtest forecasts and accuracy metrics generated by the CreateAutoPredictor or CreatePredictor operations. Two folders containing CSV or Parquet files are exported to your specified S3 bucket. The export file names will match the following conventions: <ExportJobName><ExportTimestamp><PartNumber>.csv The <ExportTimestamp> component is in Java SimpleDate format (yyyy-MM-ddTHH-mm-ssZ). You must specify a DataDestination object that includes an Amazon S3 bucket and an Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket. For more information, see aws-forecast-iam-roles. The Status of the export job must be ACTIVE before you can access the export in your Amazon S3 bucket. To get the status, use the DescribePredictorBacktestExportJob operation.

INSERT INTO aws.forecast.predictor_backtest_export_jobs (
PredictorBacktestExportJobName,
PredictorArn,
Destination,
Tags,
Format,
region
)
SELECT
'{{ PredictorBacktestExportJobName }}' /* required */,
'{{ PredictorArn }}' /* required */,
'{{ Destination }}',
'{{ Tags }}',
'{{ Format }}',
'{{ region }}'
RETURNING
predictor_backtest_export_job_arn
;

DELETE examples

Deletes a predictor backtest export job.

DELETE FROM aws.forecast.predictor_backtest_export_jobs
WHERE region = '{{ region }}' --required
;