Amazon Forecast Service

2022/06/01 - Amazon Forecast Service - 10 updated api methods

Changes  Added Format field to Import and Export APIs in Amazon Forecast. Added TimeSeriesSelector to Create Forecast API.

CreateDatasetImportJob (updated) Link ¶
Changes (request)
{'Format': 'string'}

Imports your training data to an Amazon Forecast dataset. You provide the location of your training data in an Amazon Simple Storage Service (Amazon S3) bucket and the Amazon Resource Name (ARN) of the dataset that you want to import the data to.

You must specify a DataSource object that includes an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the data, as Amazon Forecast makes a copy of your data and processes it in an internal AWS system. For more information, see Set up permissions.

The training data must be in CSV or Parquet format. The delimiter must be a comma (,).

You can specify the path to a specific file, the S3 bucket, or to a folder in the S3 bucket. For the latter two cases, Amazon Forecast imports all files up to the limit of 10,000 files.

Because dataset imports are not aggregated, your most recent dataset import is the one that is used when training a predictor or generating a forecast. Make sure that your most recent dataset import contains all of the data you want to model off of, and not just the new data collected since the previous import.

To get a list of all your dataset import jobs, filtered by specified criteria, use the ListDatasetImportJobs operation.

See also: AWS API Documentation

Request Syntax

client.create_dataset_import_job(
    DatasetImportJobName='string',
    DatasetArn='string',
    DataSource={
        'S3Config': {
            'Path': 'string',
            'RoleArn': 'string',
            'KMSKeyArn': 'string'
        }
    },
    TimestampFormat='string',
    TimeZone='string',
    UseGeolocationForTimeZone=True|False,
    GeolocationFormat='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    Format='string'
)
type DatasetImportJobName

string

param DatasetImportJobName

[REQUIRED]

The name for the dataset import job. We recommend including the current timestamp in the name, for example, 20190721DatasetImport . This can help you avoid getting a ResourceAlreadyExistsException exception.

type DatasetArn

string

param DatasetArn

[REQUIRED]

The Amazon Resource Name (ARN) of the Amazon Forecast dataset that you want to import data to.

type DataSource

dict

param DataSource

[REQUIRED]

The location of the training data to import and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the data. The training data must be stored in an Amazon S3 bucket.

If encryption is used, DataSource must include an AWS Key Management Service (KMS) key and the IAM role must allow Amazon Forecast permission to access the key. The KMS key and IAM role must match those specified in the EncryptionConfig parameter of the CreateDataset operation.

  • S3Config (dict) -- [REQUIRED]

    The path to the data stored in an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the data.

    • Path (string) -- [REQUIRED]

      The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.

    • RoleArn (string) -- [REQUIRED]

      The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn key, the role must allow access to the key.

      Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException error.

    • KMSKeyArn (string) --

      The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.

type TimestampFormat

string

param TimestampFormat

The format of timestamps in the dataset. The format that you specify depends on the DataFrequency specified when the dataset was created. The following formats are supported

  • "yyyy-MM-dd" For the following data frequencies: Y, M, W, and D

  • "yyyy-MM-dd HH:mm:ss" For the following data frequencies: H, 30min, 15min, and 1min; and optionally, for: Y, M, W, and D

If the format isn't specified, Amazon Forecast expects the format to be "yyyy-MM-dd HH:mm:ss".

type TimeZone

string

param TimeZone

A single time zone for every item in your dataset. This option is ideal for datasets with all timestamps within a single time zone, or if all timestamps are normalized to a single time zone.

Refer to the Joda-Time API for a complete list of valid time zone names.

type UseGeolocationForTimeZone

boolean

param UseGeolocationForTimeZone

Automatically derive time zone information from the geolocation attribute. This option is ideal for datasets that contain timestamps in multiple time zones and those timestamps are expressed in local time.

type GeolocationFormat

string

param GeolocationFormat

The format of the geolocation attribute. The geolocation attribute can be formatted in one of two ways:

  • LAT_LONG - the latitude and longitude in decimal format (Example: 47.61_-122.33).

  • CC_POSTALCODE (US Only) - the country code (US), followed by the 5-digit ZIP code (Example: US_98121).

type Tags

list

param Tags

The optional metadata that you apply to the dataset import job to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.

The following basic restrictions apply to tags:

  • Maximum number of tags per resource - 50.

  • For each resource, each tag key must be unique, and each tag key can have only one value.

  • Maximum key length - 128 Unicode characters in UTF-8.

  • Maximum value length - 256 Unicode characters in UTF-8.

  • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.

  • Tag keys and values are case sensitive.

  • Do not use aws: , AWS: , or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.

  • (dict) --

    The optional metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.

    The following basic restrictions apply to tags:

    • Maximum number of tags per resource - 50.

    • For each resource, each tag key must be unique, and each tag key can have only one value.

    • Maximum key length - 128 Unicode characters in UTF-8.

    • Maximum value length - 256 Unicode characters in UTF-8.

    • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.

    • Tag keys and values are case sensitive.

    • Do not use aws: , AWS: , or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.

    • Key (string) -- [REQUIRED]

      One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values.

    • Value (string) -- [REQUIRED]

      The optional part of a key-value pair that makes up a tag. A value acts as a descriptor within a tag category (key).

type Format

string

param Format

The format of the imported data, CSV or PARQUET. The default value is CSV.

rtype

dict

returns

Response Syntax

{
    'DatasetImportJobArn': 'string'
}

Response Structure

  • (dict) --

    • DatasetImportJobArn (string) --

      The Amazon Resource Name (ARN) of the dataset import job.

CreateExplainabilityExport (updated) Link ¶
Changes (request)
{'Format': 'string'}

Exports an Explainability resource created by the CreateExplainability operation. Exported files are exported to an Amazon Simple Storage Service (Amazon S3) bucket.

You must specify a DataDestination object that includes an Amazon S3 bucket and an AWS 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.

Note

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 DescribeExplainabilityExport operation.

See also: AWS API Documentation

Request Syntax

client.create_explainability_export(
    ExplainabilityExportName='string',
    ExplainabilityArn='string',
    Destination={
        'S3Config': {
            'Path': 'string',
            'RoleArn': 'string',
            'KMSKeyArn': 'string'
        }
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    Format='string'
)
type ExplainabilityExportName

string

param ExplainabilityExportName

[REQUIRED]

A unique name for the Explainability export.

type ExplainabilityArn

string

param ExplainabilityArn

[REQUIRED]

The Amazon Resource Name (ARN) of the Explainability to export.

type Destination

dict

param Destination

[REQUIRED]

The destination for an export job. Provide an S3 path, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast to access the location, and an AWS Key Management Service (KMS) key (optional).

  • S3Config (dict) -- [REQUIRED]

    The path to an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the bucket.

    • Path (string) -- [REQUIRED]

      The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.

    • RoleArn (string) -- [REQUIRED]

      The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn key, the role must allow access to the key.

      Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException error.

    • KMSKeyArn (string) --

      The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.

type Tags

list

param Tags

Optional metadata to help you categorize and organize your resources. Each tag consists of a key and an optional value, both of which you define. Tag keys and values are case sensitive.

The following restrictions apply to tags:

  • For each resource, each tag key must be unique and each tag key must have one value.

  • Maximum number of tags per resource: 50.

  • Maximum key length: 128 Unicode characters in UTF-8.

  • Maximum value length: 256 Unicode characters in UTF-8.

  • Accepted characters: all letters and numbers, spaces representable in UTF-8, and + - = . _ : / @. If your tagging schema is used across other services and resources, the character restrictions of those services also apply.

  • Key prefixes cannot include any upper or lowercase combination of aws: or AWS: . Values can have this prefix. If a tag value has aws as its prefix but the key does not, Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit. You cannot edit or delete tag keys with this prefix.

  • (dict) --

    The optional metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.

    The following basic restrictions apply to tags:

    • Maximum number of tags per resource - 50.

    • For each resource, each tag key must be unique, and each tag key can have only one value.

    • Maximum key length - 128 Unicode characters in UTF-8.

    • Maximum value length - 256 Unicode characters in UTF-8.

    • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.

    • Tag keys and values are case sensitive.

    • Do not use aws: , AWS: , or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.

    • Key (string) -- [REQUIRED]

      One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values.

    • Value (string) -- [REQUIRED]

      The optional part of a key-value pair that makes up a tag. A value acts as a descriptor within a tag category (key).

type Format

string

param Format

The format of the exported data, CSV or PARQUET.

rtype

dict

returns

Response Syntax

{
    'ExplainabilityExportArn': 'string'
}

Response Structure

  • (dict) --

    • ExplainabilityExportArn (string) --

      The Amazon Resource Name (ARN) of the export.

CreateForecast (updated) Link ¶
Changes (request)
{'TimeSeriesSelector': {'TimeSeriesIdentifiers': {'DataSource': {'S3Config': {'KMSKeyArn': 'string',
                                                                              'Path': 'string',
                                                                              'RoleArn': 'string'}},
                                                  'Format': 'string',
                                                  'Schema': {'Attributes': [{'AttributeName': 'string',
                                                                             'AttributeType': 'string '
                                                                                              '| '
                                                                                              'integer '
                                                                                              '| '
                                                                                              'float '
                                                                                              '| '
                                                                                              'timestamp '
                                                                                              '| '
                                                                                              'geolocation'}]}}}}

Creates a forecast for each item in the TARGET_TIME_SERIES dataset that was used to train the predictor. This is known as inference. To retrieve the forecast for a single item at low latency, use the operation. To export the complete forecast into your Amazon Simple Storage Service (Amazon S3) bucket, use the CreateForecastExportJob operation.

The range of the forecast is determined by the ForecastHorizon value, which you specify in the CreatePredictor request. When you query a forecast, you can request a specific date range within the forecast.

To get a list of all your forecasts, use the ListForecasts operation.

Note

The forecasts generated by Amazon Forecast are in the same time zone as the dataset that was used to create the predictor.

For more information, see howitworks-forecast.

Note

The Status of the forecast must be ACTIVE before you can query or export the forecast. Use the DescribeForecast operation to get the status.

By default, a forecast includes predictions for every item ( item_id ) in the dataset group that was used to train the predictor. However, you can use the TimeSeriesSelector object to generate a forecast on a subset of time series. Forecast creation is skipped for any time series that you specify that are not in the input dataset. The forecast export file will not contain these time series or their forecasted values.

See also: AWS API Documentation

Request Syntax

client.create_forecast(
    ForecastName='string',
    PredictorArn='string',
    ForecastTypes=[
        'string',
    ],
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    TimeSeriesSelector={
        'TimeSeriesIdentifiers': {
            'DataSource': {
                'S3Config': {
                    'Path': 'string',
                    'RoleArn': 'string',
                    'KMSKeyArn': 'string'
                }
            },
            'Schema': {
                'Attributes': [
                    {
                        'AttributeName': 'string',
                        'AttributeType': 'string'|'integer'|'float'|'timestamp'|'geolocation'
                    },
                ]
            },
            'Format': 'string'
        }
    }
)
type ForecastName

string

param ForecastName

[REQUIRED]

A name for the forecast.

type PredictorArn

string

param PredictorArn

[REQUIRED]

The Amazon Resource Name (ARN) of the predictor to use to generate the forecast.

type ForecastTypes

list

param ForecastTypes

The quantiles at which probabilistic forecasts are generated. You can currently specify up to 5 quantiles per forecast . Accepted values include 0.01 to 0.99 (increments of .01 only) and mean . The mean forecast is different from the median (0.50) when the distribution is not symmetric (for example, Beta and Negative Binomial).

The default quantiles are the quantiles you specified during predictor creation. If you didn't specify quantiles, the default values are ["0.1", "0.5", "0.9"] .

  • (string) --

type Tags

list

param Tags

The optional metadata that you apply to the forecast to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.

The following basic restrictions apply to tags:

  • Maximum number of tags per resource - 50.

  • For each resource, each tag key must be unique, and each tag key can have only one value.

  • Maximum key length - 128 Unicode characters in UTF-8.

  • Maximum value length - 256 Unicode characters in UTF-8.

  • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.

  • Tag keys and values are case sensitive.

  • Do not use aws: , AWS: , or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.

  • (dict) --

    The optional metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.

    The following basic restrictions apply to tags:

    • Maximum number of tags per resource - 50.

    • For each resource, each tag key must be unique, and each tag key can have only one value.

    • Maximum key length - 128 Unicode characters in UTF-8.

    • Maximum value length - 256 Unicode characters in UTF-8.

    • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.

    • Tag keys and values are case sensitive.

    • Do not use aws: , AWS: , or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.

    • Key (string) -- [REQUIRED]

      One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values.

    • Value (string) -- [REQUIRED]

      The optional part of a key-value pair that makes up a tag. A value acts as a descriptor within a tag category (key).

type TimeSeriesSelector

dict

param TimeSeriesSelector

Defines the set of time series that are used to create the forecasts in a TimeSeriesIdentifiers object.

The TimeSeriesIdentifiers object needs the following information:

  • DataSource

  • Format

  • Schema

  • TimeSeriesIdentifiers (dict) --

    Details about the import file that contains the time series for which you want to create forecasts.

    • DataSource (dict) --

      The source of your data, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast to access the data and, optionally, an AWS Key Management Service (KMS) key.

      • S3Config (dict) -- [REQUIRED]

        The path to the data stored in an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the data.

        • Path (string) -- [REQUIRED]

          The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.

        • RoleArn (string) -- [REQUIRED]

          The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn key, the role must allow access to the key.

          Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException error.

        • KMSKeyArn (string) --

          The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.

    • Schema (dict) --

      Defines the fields of a dataset.

      • Attributes (list) --

        An array of attributes specifying the name and type of each field in a dataset.

        • (dict) --

          An attribute of a schema, which defines a dataset field. A schema attribute is required for every field in a dataset. The Schema object contains an array of SchemaAttribute objects.

          • AttributeName (string) --

            The name of the dataset field.

          • AttributeType (string) --

            The data type of the field.

            For a related time series dataset, other than date, item_id, and forecast dimensions attributes, all attributes should be of numerical type (integer/float).

    • Format (string) --

      The format of the data, either CSV or PARQUET.

rtype

dict

returns

Response Syntax

{
    'ForecastArn': 'string'
}

Response Structure

  • (dict) --

    • ForecastArn (string) --

      The Amazon Resource Name (ARN) of the forecast.

CreateForecastExportJob (updated) Link ¶
Changes (request)
{'Format': 'string'}

Exports a forecast created by the CreateForecast operation to your Amazon Simple Storage Service (Amazon S3) bucket. The forecast file name will match the following conventions:

<ForecastExportJobName>_<ExportTimestamp>_<PartNumber>

where the <ExportTimestamp> component is in Java SimpleDateFormat (yyyy-MM-ddTHH-mm-ssZ).

You must specify a DataDestination object that includes an AWS 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.

For more information, see howitworks-forecast.

To get a list of all your forecast export jobs, use the ListForecastExportJobs operation.

Note

The Status of the forecast export job must be ACTIVE before you can access the forecast in your Amazon S3 bucket. To get the status, use the DescribeForecastExportJob operation.

See also: AWS API Documentation

Request Syntax

client.create_forecast_export_job(
    ForecastExportJobName='string',
    ForecastArn='string',
    Destination={
        'S3Config': {
            'Path': 'string',
            'RoleArn': 'string',
            'KMSKeyArn': 'string'
        }
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    Format='string'
)
type ForecastExportJobName

string

param ForecastExportJobName

[REQUIRED]

The name for the forecast export job.

type ForecastArn

string

param ForecastArn

[REQUIRED]

The Amazon Resource Name (ARN) of the forecast that you want to export.

type Destination

dict

param Destination

[REQUIRED]

The location where you want to save the forecast and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the location. The forecast must be exported to an Amazon S3 bucket.

If encryption is used, Destination must include an AWS Key Management Service (KMS) key. The IAM role must allow Amazon Forecast permission to access the key.

  • S3Config (dict) -- [REQUIRED]

    The path to an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the bucket.

    • Path (string) -- [REQUIRED]

      The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.

    • RoleArn (string) -- [REQUIRED]

      The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn key, the role must allow access to the key.

      Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException error.

    • KMSKeyArn (string) --

      The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.

type Tags

list

param Tags

The optional metadata that you apply to the forecast export job to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.

The following basic restrictions apply to tags:

  • Maximum number of tags per resource - 50.

  • For each resource, each tag key must be unique, and each tag key can have only one value.

  • Maximum key length - 128 Unicode characters in UTF-8.

  • Maximum value length - 256 Unicode characters in UTF-8.

  • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.

  • Tag keys and values are case sensitive.

  • Do not use aws: , AWS: , or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.

  • (dict) --

    The optional metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.

    The following basic restrictions apply to tags:

    • Maximum number of tags per resource - 50.

    • For each resource, each tag key must be unique, and each tag key can have only one value.

    • Maximum key length - 128 Unicode characters in UTF-8.

    • Maximum value length - 256 Unicode characters in UTF-8.

    • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.

    • Tag keys and values are case sensitive.

    • Do not use aws: , AWS: , or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.

    • Key (string) -- [REQUIRED]

      One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values.

    • Value (string) -- [REQUIRED]

      The optional part of a key-value pair that makes up a tag. A value acts as a descriptor within a tag category (key).

type Format

string

param Format

The format of the exported data, CSV or PARQUET. The default value is CSV.

rtype

dict

returns

Response Syntax

{
    'ForecastExportJobArn': 'string'
}

Response Structure

  • (dict) --

    • ForecastExportJobArn (string) --

      The Amazon Resource Name (ARN) of the export job.

CreatePredictorBacktestExportJob (updated) Link ¶
Changes (request)
{'Format': 'string'}

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 AWS 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.

Note

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.

See also: AWS API Documentation

Request Syntax

client.create_predictor_backtest_export_job(
    PredictorBacktestExportJobName='string',
    PredictorArn='string',
    Destination={
        'S3Config': {
            'Path': 'string',
            'RoleArn': 'string',
            'KMSKeyArn': 'string'
        }
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    Format='string'
)
type PredictorBacktestExportJobName

string

param PredictorBacktestExportJobName

[REQUIRED]

The name for the backtest export job.

type PredictorArn

string

param PredictorArn

[REQUIRED]

The Amazon Resource Name (ARN) of the predictor that you want to export.

type Destination

dict

param Destination

[REQUIRED]

The destination for an export job. Provide an S3 path, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast to access the location, and an AWS Key Management Service (KMS) key (optional).

  • S3Config (dict) -- [REQUIRED]

    The path to an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the bucket.

    • Path (string) -- [REQUIRED]

      The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.

    • RoleArn (string) -- [REQUIRED]

      The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn key, the role must allow access to the key.

      Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException error.

    • KMSKeyArn (string) --

      The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.

type Tags

list

param Tags

Optional metadata to help you categorize and organize your backtests. Each tag consists of a key and an optional value, both of which you define. Tag keys and values are case sensitive.

The following restrictions apply to tags:

  • For each resource, each tag key must be unique and each tag key must have one value.

  • Maximum number of tags per resource: 50.

  • Maximum key length: 128 Unicode characters in UTF-8.

  • Maximum value length: 256 Unicode characters in UTF-8.

  • Accepted characters: all letters and numbers, spaces representable in UTF-8, and + - = . _ : / @. If your tagging schema is used across other services and resources, the character restrictions of those services also apply.

  • Key prefixes cannot include any upper or lowercase combination of aws: or AWS: . Values can have this prefix. If a tag value has aws as its prefix but the key does not, Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit. You cannot edit or delete tag keys with this prefix.

  • (dict) --

    The optional metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.

    The following basic restrictions apply to tags:

    • Maximum number of tags per resource - 50.

    • For each resource, each tag key must be unique, and each tag key can have only one value.

    • Maximum key length - 128 Unicode characters in UTF-8.

    • Maximum value length - 256 Unicode characters in UTF-8.

    • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.

    • Tag keys and values are case sensitive.

    • Do not use aws: , AWS: , or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.

    • Key (string) -- [REQUIRED]

      One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values.

    • Value (string) -- [REQUIRED]

      The optional part of a key-value pair that makes up a tag. A value acts as a descriptor within a tag category (key).

type Format

string

param Format

The format of the exported data, CSV or PARQUET. The default value is CSV.

rtype

dict

returns

Response Syntax

{
    'PredictorBacktestExportJobArn': 'string'
}

Response Structure

  • (dict) --

    • PredictorBacktestExportJobArn (string) --

      The Amazon Resource Name (ARN) of the predictor backtest export job that you want to export.

DescribeDatasetImportJob (updated) Link ¶
Changes (response)
{'Format': 'string'}

Describes a dataset import job created using the CreateDatasetImportJob operation.

In addition to listing the parameters provided in the CreateDatasetImportJob request, this operation includes the following properties:

  • CreationTime

  • LastModificationTime

  • DataSize

  • FieldStatistics

  • Status

  • Message - If an error occurred, information about the error.

See also: AWS API Documentation

Request Syntax

client.describe_dataset_import_job(
    DatasetImportJobArn='string'
)
type DatasetImportJobArn

string

param DatasetImportJobArn

[REQUIRED]

The Amazon Resource Name (ARN) of the dataset import job.

rtype

dict

returns

Response Syntax

{
    'DatasetImportJobName': 'string',
    'DatasetImportJobArn': 'string',
    'DatasetArn': 'string',
    'TimestampFormat': 'string',
    'TimeZone': 'string',
    'UseGeolocationForTimeZone': True|False,
    'GeolocationFormat': 'string',
    'DataSource': {
        'S3Config': {
            'Path': 'string',
            'RoleArn': 'string',
            'KMSKeyArn': 'string'
        }
    },
    'EstimatedTimeRemainingInMinutes': 123,
    'FieldStatistics': {
        'string': {
            'Count': 123,
            'CountDistinct': 123,
            'CountNull': 123,
            'CountNan': 123,
            'Min': 'string',
            'Max': 'string',
            'Avg': 123.0,
            'Stddev': 123.0,
            'CountLong': 123,
            'CountDistinctLong': 123,
            'CountNullLong': 123,
            'CountNanLong': 123
        }
    },
    'DataSize': 123.0,
    'Status': 'string',
    'Message': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModificationTime': datetime(2015, 1, 1),
    'Format': 'string'
}

Response Structure

  • (dict) --

    • DatasetImportJobName (string) --

      The name of the dataset import job.

    • DatasetImportJobArn (string) --

      The ARN of the dataset import job.

    • DatasetArn (string) --

      The Amazon Resource Name (ARN) of the dataset that the training data was imported to.

    • TimestampFormat (string) --

      The format of timestamps in the dataset. The format that you specify depends on the DataFrequency specified when the dataset was created. The following formats are supported

      • "yyyy-MM-dd" For the following data frequencies: Y, M, W, and D

      • "yyyy-MM-dd HH:mm:ss" For the following data frequencies: H, 30min, 15min, and 1min; and optionally, for: Y, M, W, and D

    • TimeZone (string) --

      The single time zone applied to every item in the dataset

    • UseGeolocationForTimeZone (boolean) --

      Whether TimeZone is automatically derived from the geolocation attribute.

    • GeolocationFormat (string) --

      The format of the geolocation attribute. Valid Values: "LAT_LONG" and "CC_POSTALCODE" .

    • DataSource (dict) --

      The location of the training data to import and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the data.

      If encryption is used, DataSource includes an AWS Key Management Service (KMS) key.

      • S3Config (dict) --

        The path to the data stored in an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the data.

        • Path (string) --

          The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.

        • RoleArn (string) --

          The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn key, the role must allow access to the key.

          Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException error.

        • KMSKeyArn (string) --

          The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.

    • EstimatedTimeRemainingInMinutes (integer) --

      The estimated time remaining in minutes for the dataset import job to complete.

    • FieldStatistics (dict) --

      Statistical information about each field in the input data.

      • (string) --

        • (dict) --

          Provides statistics for each data field imported into to an Amazon Forecast dataset with the CreateDatasetImportJob operation.

          • Count (integer) --

            The number of values in the field. If the response value is -1, refer to CountLong .

          • CountDistinct (integer) --

            The number of distinct values in the field. If the response value is -1, refer to CountDistinctLong .

          • CountNull (integer) --

            The number of null values in the field. If the response value is -1, refer to CountNullLong .

          • CountNan (integer) --

            The number of NAN (not a number) values in the field. If the response value is -1, refer to CountNanLong .

          • Min (string) --

            For a numeric field, the minimum value in the field.

          • Max (string) --

            For a numeric field, the maximum value in the field.

          • Avg (float) --

            For a numeric field, the average value in the field.

          • Stddev (float) --

            For a numeric field, the standard deviation.

          • CountLong (integer) --

            The number of values in the field. CountLong is used instead of Count if the value is greater than 2,147,483,647.

          • CountDistinctLong (integer) --

            The number of distinct values in the field. CountDistinctLong is used instead of CountDistinct if the value is greater than 2,147,483,647.

          • CountNullLong (integer) --

            The number of null values in the field. CountNullLong is used instead of CountNull if the value is greater than 2,147,483,647.

          • CountNanLong (integer) --

            The number of NAN (not a number) values in the field. CountNanLong is used instead of CountNan if the value is greater than 2,147,483,647.

    • DataSize (float) --

      The size of the dataset in gigabytes (GB) after the import job has finished.

    • Status (string) --

      The status of the dataset import job. States include:

      • ACTIVE

      • CREATE_PENDING , CREATE_IN_PROGRESS , CREATE_FAILED

      • DELETE_PENDING , DELETE_IN_PROGRESS , DELETE_FAILED

      • CREATE_STOPPING , CREATE_STOPPED

    • Message (string) --

      If an error occurred, an informational message about the error.

    • CreationTime (datetime) --

      When the dataset import job was created.

    • LastModificationTime (datetime) --

      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.

    • Format (string) --

      The format of the imported data, CSV or PARQUET.

DescribeExplainabilityExport (updated) Link ¶
Changes (response)
{'Format': 'string'}

Describes an Explainability export created using the CreateExplainabilityExport operation.

See also: AWS API Documentation

Request Syntax

client.describe_explainability_export(
    ExplainabilityExportArn='string'
)
type ExplainabilityExportArn

string

param ExplainabilityExportArn

[REQUIRED]

The Amazon Resource Name (ARN) of the Explainability export.

rtype

dict

returns

Response Syntax

{
    'ExplainabilityExportArn': 'string',
    'ExplainabilityExportName': 'string',
    'ExplainabilityArn': 'string',
    'Destination': {
        'S3Config': {
            'Path': 'string',
            'RoleArn': 'string',
            'KMSKeyArn': 'string'
        }
    },
    'Message': 'string',
    'Status': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModificationTime': datetime(2015, 1, 1),
    'Format': 'string'
}

Response Structure

  • (dict) --

    • ExplainabilityExportArn (string) --

      The Amazon Resource Name (ARN) of the Explainability export.

    • ExplainabilityExportName (string) --

      The name of the Explainability export.

    • ExplainabilityArn (string) --

      The Amazon Resource Name (ARN) of the Explainability export.

    • Destination (dict) --

      The destination for an export job. Provide an S3 path, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast to access the location, and an AWS Key Management Service (KMS) key (optional).

      • S3Config (dict) --

        The path to an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the bucket.

        • Path (string) --

          The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.

        • RoleArn (string) --

          The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn key, the role must allow access to the key.

          Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException error.

        • KMSKeyArn (string) --

          The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.

    • Message (string) --

      Information about any errors that occurred during the export.

    • Status (string) --

      The status of the Explainability export. States include:

      • ACTIVE

      • CREATE_PENDING , CREATE_IN_PROGRESS , CREATE_FAILED

      • CREATE_STOPPING , CREATE_STOPPED

      • DELETE_PENDING , DELETE_IN_PROGRESS , DELETE_FAILED

    • CreationTime (datetime) --

      When the Explainability export was created.

    • LastModificationTime (datetime) --

      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.

    • Format (string) --

      The format of the exported data, CSV or PARQUET.

DescribeForecast (updated) Link ¶
Changes (response)
{'TimeSeriesSelector': {'TimeSeriesIdentifiers': {'DataSource': {'S3Config': {'KMSKeyArn': 'string',
                                                                              'Path': 'string',
                                                                              'RoleArn': 'string'}},
                                                  'Format': 'string',
                                                  'Schema': {'Attributes': [{'AttributeName': 'string',
                                                                             'AttributeType': 'string '
                                                                                              '| '
                                                                                              'integer '
                                                                                              '| '
                                                                                              'float '
                                                                                              '| '
                                                                                              'timestamp '
                                                                                              '| '
                                                                                              'geolocation'}]}}}}

Describes a forecast created using the CreateForecast operation.

In addition to listing the properties provided in the CreateForecast request, this operation lists the following properties:

  • DatasetGroupArn - The dataset group that provided the training data.

  • CreationTime

  • LastModificationTime

  • Status

  • Message - If an error occurred, information about the error.

See also: AWS API Documentation

Request Syntax

client.describe_forecast(
    ForecastArn='string'
)
type ForecastArn

string

param ForecastArn

[REQUIRED]

The Amazon Resource Name (ARN) of the forecast.

rtype

dict

returns

Response Syntax

{
    'ForecastArn': 'string',
    'ForecastName': 'string',
    'ForecastTypes': [
        'string',
    ],
    'PredictorArn': 'string',
    'DatasetGroupArn': 'string',
    'EstimatedTimeRemainingInMinutes': 123,
    'Status': 'string',
    'Message': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModificationTime': datetime(2015, 1, 1),
    'TimeSeriesSelector': {
        'TimeSeriesIdentifiers': {
            'DataSource': {
                'S3Config': {
                    'Path': 'string',
                    'RoleArn': 'string',
                    'KMSKeyArn': 'string'
                }
            },
            'Schema': {
                'Attributes': [
                    {
                        'AttributeName': 'string',
                        'AttributeType': 'string'|'integer'|'float'|'timestamp'|'geolocation'
                    },
                ]
            },
            'Format': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • ForecastArn (string) --

      The forecast ARN as specified in the request.

    • ForecastName (string) --

      The name of the forecast.

    • ForecastTypes (list) --

      The quantiles at which probabilistic forecasts were generated.

      • (string) --

    • PredictorArn (string) --

      The ARN of the predictor used to generate the forecast.

    • DatasetGroupArn (string) --

      The ARN of the dataset group that provided the data used to train the predictor.

    • EstimatedTimeRemainingInMinutes (integer) --

      The estimated time remaining in minutes for the forecast job to complete.

    • Status (string) --

      The status of the forecast. States include:

      • ACTIVE

      • CREATE_PENDING , CREATE_IN_PROGRESS , CREATE_FAILED

      • CREATE_STOPPING , CREATE_STOPPED

      • DELETE_PENDING , DELETE_IN_PROGRESS , DELETE_FAILED

      Note

      The Status of the forecast must be ACTIVE before you can query or export the forecast.

    • Message (string) --

      If an error occurred, an informational message about the error.

    • CreationTime (datetime) --

      When the forecast creation task was created.

    • LastModificationTime (datetime) --

      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.

    • TimeSeriesSelector (dict) --

      The time series to include in the forecast.

      • TimeSeriesIdentifiers (dict) --

        Details about the import file that contains the time series for which you want to create forecasts.

        • DataSource (dict) --

          The source of your data, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast to access the data and, optionally, an AWS Key Management Service (KMS) key.

          • S3Config (dict) --

            The path to the data stored in an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the data.

            • Path (string) --

              The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.

            • RoleArn (string) --

              The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn key, the role must allow access to the key.

              Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException error.

            • KMSKeyArn (string) --

              The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.

        • Schema (dict) --

          Defines the fields of a dataset.

          • Attributes (list) --

            An array of attributes specifying the name and type of each field in a dataset.

            • (dict) --

              An attribute of a schema, which defines a dataset field. A schema attribute is required for every field in a dataset. The Schema object contains an array of SchemaAttribute objects.

              • AttributeName (string) --

                The name of the dataset field.

              • AttributeType (string) --

                The data type of the field.

                For a related time series dataset, other than date, item_id, and forecast dimensions attributes, all attributes should be of numerical type (integer/float).

        • Format (string) --

          The format of the data, either CSV or PARQUET.

DescribeForecastExportJob (updated) Link ¶
Changes (response)
{'Format': 'string'}

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.

See also: AWS API Documentation

Request Syntax

client.describe_forecast_export_job(
    ForecastExportJobArn='string'
)
type ForecastExportJobArn

string

param ForecastExportJobArn

[REQUIRED]

The Amazon Resource Name (ARN) of the forecast export job.

rtype

dict

returns

Response Syntax

{
    'ForecastExportJobArn': 'string',
    'ForecastExportJobName': 'string',
    'ForecastArn': 'string',
    'Destination': {
        'S3Config': {
            'Path': 'string',
            'RoleArn': 'string',
            'KMSKeyArn': 'string'
        }
    },
    'Message': 'string',
    'Status': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModificationTime': datetime(2015, 1, 1),
    'Format': 'string'
}

Response Structure

  • (dict) --

    • ForecastExportJobArn (string) --

      The ARN of the forecast export job.

    • ForecastExportJobName (string) --

      The name of the forecast export job.

    • ForecastArn (string) --

      The Amazon Resource Name (ARN) of the exported forecast.

    • Destination (dict) --

      The path to the Amazon Simple Storage Service (Amazon S3) bucket where the forecast is exported.

      • S3Config (dict) --

        The path to an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the bucket.

        • Path (string) --

          The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.

        • RoleArn (string) --

          The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn key, the role must allow access to the key.

          Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException error.

        • KMSKeyArn (string) --

          The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.

    • Message (string) --

      If an error occurred, an informational message about the error.

    • Status (string) --

      The status of the forecast export job. States include:

      • ACTIVE

      • CREATE_PENDING , CREATE_IN_PROGRESS , CREATE_FAILED

      • CREATE_STOPPING , CREATE_STOPPED

      • DELETE_PENDING , DELETE_IN_PROGRESS , DELETE_FAILED

      Note

      The Status of the forecast export job must be ACTIVE before you can access the forecast in your S3 bucket.

    • CreationTime (datetime) --

      When the forecast export job was created.

    • LastModificationTime (datetime) --

      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.

    • Format (string) --

      The format of the exported data, CSV or PARQUET.

DescribePredictorBacktestExportJob (updated) Link ¶
Changes (response)
{'Format': 'string'}

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)

See also: AWS API Documentation

Request Syntax

client.describe_predictor_backtest_export_job(
    PredictorBacktestExportJobArn='string'
)
type PredictorBacktestExportJobArn

string

param PredictorBacktestExportJobArn

[REQUIRED]

The Amazon Resource Name (ARN) of the predictor backtest export job.

rtype

dict

returns

Response Syntax

{
    'PredictorBacktestExportJobArn': 'string',
    'PredictorBacktestExportJobName': 'string',
    'PredictorArn': 'string',
    'Destination': {
        'S3Config': {
            'Path': 'string',
            'RoleArn': 'string',
            'KMSKeyArn': 'string'
        }
    },
    'Message': 'string',
    'Status': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'LastModificationTime': datetime(2015, 1, 1),
    'Format': 'string'
}

Response Structure

  • (dict) --

    • PredictorBacktestExportJobArn (string) --

      The Amazon Resource Name (ARN) of the predictor backtest export job.

    • PredictorBacktestExportJobName (string) --

      The name of the predictor backtest export job.

    • PredictorArn (string) --

      The Amazon Resource Name (ARN) of the predictor.

    • Destination (dict) --

      The destination for an export job. Provide an S3 path, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast to access the location, and an AWS Key Management Service (KMS) key (optional).

      • S3Config (dict) --

        The path to an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the bucket.

        • Path (string) --

          The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.

        • RoleArn (string) --

          The ARN of the AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn key, the role must allow access to the key.

          Passing a role across AWS accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException error.

        • KMSKeyArn (string) --

          The Amazon Resource Name (ARN) of an AWS Key Management Service (KMS) key.

    • Message (string) --

      Information about any errors that may have occurred during the backtest export.

    • Status (string) --

      The 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

    • CreationTime (datetime) --

      When the predictor backtest export job was created.

    • LastModificationTime (datetime) --

      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.

    • Format (string) --

      The format of the exported data, CSV or PARQUET.