Amazon Forecast Service 2018-06-26
- Client: Aws\ForecastService\ForecastServiceClient
- Service ID: forecast
- Version: 2018-06-26
This page describes the parameters and results for the operations of the Amazon Forecast Service (2018-06-26), and shows how to use the Aws\ForecastService\ForecastServiceClient object to call the described operations. This documentation is specific to the 2018-06-26 API version of the service.
Operation Summary
Each of the following operations can be created from a client using
$client->getCommand('CommandName')
, where "CommandName" is the
name of one of the following operations. Note: a command is a value that
encapsulates an operation and the parameters used to create an HTTP request.
You can also create and send a command immediately using the magic methods
available on a client object: $client->commandName(/* parameters */)
.
You can send the command asynchronously (returning a promise) by appending the
word "Async" to the operation name: $client->commandNameAsync(/* parameters */)
.
- CreateAutoPredictor ( array $params = [] )
- Creates an Amazon Forecast predictor.
- CreateDataset ( array $params = [] )
- Creates an Amazon Forecast dataset.
- CreateDatasetGroup ( array $params = [] )
- Creates a dataset group, which holds a collection of related datasets.
- CreateDatasetImportJob ( array $params = [] )
- Imports your training data to an Amazon Forecast dataset.
- CreateExplainability ( array $params = [] )
- Explainability is only available for Forecasts and Predictors generated from an AutoPredictor (CreateAutoPredictor) Creates an Amazon Forecast Explainability.
- CreateExplainabilityExport ( array $params = [] )
- Exports an Explainability resource created by the CreateExplainability operation.
- CreateForecast ( array $params = [] )
- Creates a forecast for each item in the TARGET_TIME_SERIES dataset that was used to train the predictor.
- CreateForecastExportJob ( array $params = [] )
- Exports a forecast created by the CreateForecast operation to your Amazon Simple Storage Service (Amazon S3) bucket.
- CreateMonitor ( array $params = [] )
- Creates a predictor monitor resource for an existing auto predictor.
- CreatePredictor ( array $params = [] )
- This operation creates a legacy predictor that does not include all the predictor functionalities provided by Amazon Forecast.
- CreatePredictorBacktestExportJob ( array $params = [] )
- Exports backtest forecasts and accuracy metrics generated by the CreateAutoPredictor or CreatePredictor operations.
- CreateWhatIfAnalysis ( array $params = [] )
- What-if analysis is a scenario modeling technique where you make a hypothetical change to a time series and compare the forecasts generated by these changes against the baseline, unchanged time series.
- CreateWhatIfForecast ( array $params = [] )
- A what-if forecast is a forecast that is created from a modified version of the baseline forecast.
- CreateWhatIfForecastExport ( array $params = [] )
- Exports a forecast created by the CreateWhatIfForecast operation to your Amazon Simple Storage Service (Amazon S3) bucket.
- DeleteDataset ( array $params = [] )
- Deletes an Amazon Forecast dataset that was created using the CreateDataset operation.
- DeleteDatasetGroup ( array $params = [] )
- Deletes a dataset group created using the CreateDatasetGroup operation.
- DeleteDatasetImportJob ( array $params = [] )
- Deletes a dataset import job created using the CreateDatasetImportJob operation.
- DeleteExplainability ( array $params = [] )
- Deletes an Explainability resource.
- DeleteExplainabilityExport ( array $params = [] )
- Deletes an Explainability export.
- DeleteForecast ( array $params = [] )
- Deletes a forecast created using the CreateForecast operation.
- DeleteForecastExportJob ( array $params = [] )
- Deletes a forecast export job created using the CreateForecastExportJob operation.
- DeleteMonitor ( array $params = [] )
- Deletes a monitor resource.
- DeletePredictor ( array $params = [] )
- Deletes a predictor created using the DescribePredictor or CreatePredictor operations.
- DeletePredictorBacktestExportJob ( array $params = [] )
- Deletes a predictor backtest export job.
- DeleteResourceTree ( array $params = [] )
- Deletes an entire resource tree.
- DeleteWhatIfAnalysis ( array $params = [] )
- Deletes a what-if analysis created using the CreateWhatIfAnalysis operation.
- DeleteWhatIfForecast ( array $params = [] )
- Deletes a what-if forecast created using the CreateWhatIfForecast operation.
- DeleteWhatIfForecastExport ( array $params = [] )
- Deletes a what-if forecast export created using the CreateWhatIfForecastExport operation.
- DescribeAutoPredictor ( array $params = [] )
- Describes a predictor created using the CreateAutoPredictor operation.
- DescribeDataset ( array $params = [] )
- Describes an Amazon Forecast dataset created using the CreateDataset operation.
- DescribeDatasetGroup ( array $params = [] )
- Describes a dataset group created using the CreateDatasetGroup operation.
- DescribeDatasetImportJob ( array $params = [] )
- Describes a dataset import job created using the CreateDatasetImportJob operation.
- DescribeExplainability ( array $params = [] )
- Describes an Explainability resource created using the CreateExplainability operation.
- DescribeExplainabilityExport ( array $params = [] )
- Describes an Explainability export created using the CreateExplainabilityExport operation.
- DescribeForecast ( array $params = [] )
- Describes a forecast created using the CreateForecast operation.
- DescribeForecastExportJob ( array $params = [] )
- Describes a forecast export job created using the CreateForecastExportJob operation.
- DescribeMonitor ( array $params = [] )
- Describes a monitor resource.
- DescribePredictor ( array $params = [] )
- This operation is only valid for legacy predictors created with CreatePredictor.
- DescribePredictorBacktestExportJob ( array $params = [] )
- Describes a predictor backtest export job created using the CreatePredictorBacktestExportJob operation.
- DescribeWhatIfAnalysis ( array $params = [] )
- Describes the what-if analysis created using the CreateWhatIfAnalysis operation.
- DescribeWhatIfForecast ( array $params = [] )
- Describes the what-if forecast created using the CreateWhatIfForecast operation.
- DescribeWhatIfForecastExport ( array $params = [] )
- Describes the what-if forecast export created using the CreateWhatIfForecastExport operation.
- GetAccuracyMetrics ( array $params = [] )
- Provides metrics on the accuracy of the models that were trained by the CreatePredictor operation.
- ListDatasetGroups ( array $params = [] )
- Returns a list of dataset groups created using the CreateDatasetGroup operation.
- ListDatasetImportJobs ( array $params = [] )
- Returns a list of dataset import jobs created using the CreateDatasetImportJob operation.
- ListDatasets ( array $params = [] )
- Returns a list of datasets created using the CreateDataset operation.
- ListExplainabilities ( array $params = [] )
- Returns a list of Explainability resources created using the CreateExplainability operation.
- ListExplainabilityExports ( array $params = [] )
- Returns a list of Explainability exports created using the CreateExplainabilityExport operation.
- ListForecastExportJobs ( array $params = [] )
- Returns a list of forecast export jobs created using the CreateForecastExportJob operation.
- ListForecasts ( array $params = [] )
- Returns a list of forecasts created using the CreateForecast operation.
- ListMonitorEvaluations ( array $params = [] )
- Returns a list of the monitoring evaluation results and predictor events collected by the monitor resource during different windows of time.
- ListMonitors ( array $params = [] )
- Returns a list of monitors created with the CreateMonitor operation and CreateAutoPredictor operation.
- ListPredictorBacktestExportJobs ( array $params = [] )
- Returns a list of predictor backtest export jobs created using the CreatePredictorBacktestExportJob operation.
- ListPredictors ( array $params = [] )
- Returns a list of predictors created using the CreateAutoPredictor or CreatePredictor operations.
- ListTagsForResource ( array $params = [] )
- Lists the tags for an Amazon Forecast resource.
- ListWhatIfAnalyses ( array $params = [] )
- Returns a list of what-if analyses created using the CreateWhatIfAnalysis operation.
- ListWhatIfForecastExports ( array $params = [] )
- Returns a list of what-if forecast exports created using the CreateWhatIfForecastExport operation.
- ListWhatIfForecasts ( array $params = [] )
- Returns a list of what-if forecasts created using the CreateWhatIfForecast operation.
- ResumeResource ( array $params = [] )
- Resumes a stopped monitor resource.
- StopResource ( array $params = [] )
- Stops a resource.
- TagResource ( array $params = [] )
- Associates the specified tags to a resource with the specified resourceArn.
- UntagResource ( array $params = [] )
- Deletes the specified tags from a resource.
- UpdateDatasetGroup ( array $params = [] )
- Replaces the datasets in a dataset group with the specified datasets.
Paginators
Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:
- ListDatasetGroups
- ListDatasetImportJobs
- ListDatasets
- ListExplainabilities
- ListExplainabilityExports
- ListForecastExportJobs
- ListForecasts
- ListMonitorEvaluations
- ListMonitors
- ListPredictorBacktestExportJobs
- ListPredictors
- ListWhatIfAnalyses
- ListWhatIfForecastExports
- ListWhatIfForecasts
Operations
CreateAutoPredictor
$result = $client->createAutoPredictor
([/* ... */]); $promise = $client->createAutoPredictorAsync
([/* ... */]);
Creates an Amazon Forecast predictor.
Amazon Forecast creates predictors with AutoPredictor, which involves applying the optimal combination of algorithms to each time series in your datasets. You can use CreateAutoPredictor to create new predictors or upgrade/retrain existing predictors.
Creating new predictors
The following parameters are required when creating a new predictor:
-
PredictorName
- A unique name for the predictor. -
DatasetGroupArn
- The ARN of the dataset group used to train the predictor. -
ForecastFrequency
- The granularity of your forecasts (hourly, daily, weekly, etc). -
ForecastHorizon
- The number of time-steps that the model predicts. The forecast horizon is also called the prediction length.
When creating a new predictor, do not specify a value for ReferencePredictorArn
.
Upgrading and retraining predictors
The following parameters are required when retraining or upgrading a predictor:
-
PredictorName
- A unique name for the predictor. -
ReferencePredictorArn
- The ARN of the predictor to retrain or upgrade.
When upgrading or retraining a predictor, only specify values for the ReferencePredictorArn
and PredictorName
.
Parameter Syntax
$result = $client->createAutoPredictor([ 'DataConfig' => [ 'AdditionalDatasets' => [ [ 'Configuration' => [ '<Name>' => ['<string>', ...], // ... ], 'Name' => '<string>', // REQUIRED ], // ... ], 'AttributeConfigs' => [ [ 'AttributeName' => '<string>', // REQUIRED 'Transformations' => ['<string>', ...], // REQUIRED ], // ... ], 'DatasetGroupArn' => '<string>', // REQUIRED ], 'EncryptionConfig' => [ 'KMSKeyArn' => '<string>', // REQUIRED 'RoleArn' => '<string>', // REQUIRED ], 'ExplainPredictor' => true || false, 'ForecastDimensions' => ['<string>', ...], 'ForecastFrequency' => '<string>', 'ForecastHorizon' => <integer>, 'ForecastTypes' => ['<string>', ...], 'MonitorConfig' => [ 'MonitorName' => '<string>', // REQUIRED ], 'OptimizationMetric' => 'WAPE|RMSE|AverageWeightedQuantileLoss|MASE|MAPE', 'PredictorName' => '<string>', // REQUIRED 'ReferencePredictorArn' => '<string>', 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'TimeAlignmentBoundary' => [ 'DayOfMonth' => <integer>, 'DayOfWeek' => 'MONDAY|TUESDAY|WEDNESDAY|THURSDAY|FRIDAY|SATURDAY|SUNDAY', 'Hour' => <integer>, 'Month' => 'JANUARY|FEBRUARY|MARCH|APRIL|MAY|JUNE|JULY|AUGUST|SEPTEMBER|OCTOBER|NOVEMBER|DECEMBER', ], ]);
Parameter Details
Members
- DataConfig
-
- Type: DataConfig structure
The data configuration for your dataset group and any additional datasets.
- EncryptionConfig
-
- Type: EncryptionConfig structure
An Key Management Service (KMS) key and an Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key. You can specify this optional object in the CreateDataset and CreatePredictor requests.
- ExplainPredictor
-
- Type: boolean
Create an Explainability resource for the predictor.
- ForecastDimensions
-
- Type: Array of strings
An array of dimension (field) names that specify how to group the generated forecast.
For example, if you are generating forecasts for item sales across all your stores, and your dataset contains a
store_id
field, you would specifystore_id
as a dimension to group sales forecasts for each store. - ForecastFrequency
-
- Type: string
The frequency of predictions in a forecast.
Valid intervals are an integer followed by Y (Year), M (Month), W (Week), D (Day), H (Hour), and min (Minute). For example, "1D" indicates every day and "15min" indicates every 15 minutes. You cannot specify a value that would overlap with the next larger frequency. That means, for example, you cannot specify a frequency of 60 minutes, because that is equivalent to 1 hour. The valid values for each frequency are the following:
-
Minute - 1-59
-
Hour - 1-23
-
Day - 1-6
-
Week - 1-4
-
Month - 1-11
-
Year - 1
Thus, if you want every other week forecasts, specify "2W". Or, if you want quarterly forecasts, you specify "3M".
The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset frequency.
When a RELATED_TIME_SERIES dataset is provided, the frequency must be equal to the RELATED_TIME_SERIES dataset frequency.
- ForecastHorizon
-
- Type: int
The number of time-steps that the model predicts. The forecast horizon is also called the prediction length.
The maximum forecast horizon is the lesser of 500 time-steps or 1/4 of the TARGET_TIME_SERIES dataset length. If you are retraining an existing AutoPredictor, then the maximum forecast horizon is the lesser of 500 time-steps or 1/3 of the TARGET_TIME_SERIES dataset length.
If you are upgrading to an AutoPredictor or retraining an existing AutoPredictor, you cannot update the forecast horizon parameter. You can meet this requirement by providing longer time-series in the dataset.
- ForecastTypes
-
- Type: Array of strings
The forecast types used to train a predictor. You can specify up to five forecast types. Forecast types can be quantiles from 0.01 to 0.99, by increments of 0.01 or higher. You can also specify the mean forecast with
mean
. - MonitorConfig
-
- Type: MonitorConfig structure
The configuration details for predictor monitoring. Provide a name for the monitor resource to enable predictor monitoring.
Predictor monitoring allows you to see how your predictor's performance changes over time. For more information, see Predictor Monitoring.
- OptimizationMetric
-
- Type: string
The accuracy metric used to optimize the predictor.
- PredictorName
-
- Required: Yes
- Type: string
A unique name for the predictor
- ReferencePredictorArn
-
- Type: string
The ARN of the predictor to retrain or upgrade. This parameter is only used when retraining or upgrading a predictor. When creating a new predictor, do not specify a value for this parameter.
When upgrading or retraining a predictor, only specify values for the
ReferencePredictorArn
andPredictorName
. The value forPredictorName
must be a unique predictor name. - Tags
-
- Type: Array of Tag structures
Optional metadata to help you categorize and organize your predictors. 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:
orAWS:
. Values can have this prefix. If a tag value hasaws
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 ofaws
do not count against your tags per resource limit. You cannot edit or delete tag keys with this prefix.
- TimeAlignmentBoundary
-
- Type: TimeAlignmentBoundary structure
The time boundary Forecast uses to align and aggregate any data that doesn't align with your forecast frequency. Provide the unit of time and the time boundary as a key value pair. For more information on specifying a time boundary, see Specifying a Time Boundary. If you don't provide a time boundary, Forecast uses a set of Default Time Boundaries.
Result Syntax
[ 'PredictorArn' => '<string>', ]
Result Details
Members
- PredictorArn
-
- Type: string
The Amazon Resource Name (ARN) of the predictor.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreateDataset
$result = $client->createDataset
([/* ... */]); $promise = $client->createDatasetAsync
([/* ... */]);
Creates an Amazon Forecast dataset. The information about the dataset that you provide helps Forecast understand how to consume the data for model training. This includes the following:
-
DataFrequency
- How frequently your historical time-series data is collected. -
Domain
andDatasetType
- Each dataset has an associated dataset domain and a type within the domain. Amazon Forecast provides a list of predefined domains and types within each domain. For each unique dataset domain and type within the domain, Amazon Forecast requires your data to include a minimum set of predefined fields. -
Schema
- A schema specifies the fields in the dataset, including the field name and data type.
After creating a dataset, you import your training data into it and add the dataset to a dataset group. You use the dataset group to create a predictor. For more information, see Importing datasets.
To get a list of all your datasets, use the ListDatasets operation.
For example Forecast datasets, see the Amazon Forecast Sample GitHub repository.
The Status
of a dataset must be ACTIVE
before you can import training data. Use the DescribeDataset operation to get the status.
Parameter Syntax
$result = $client->createDataset([ 'DataFrequency' => '<string>', 'DatasetName' => '<string>', // REQUIRED 'DatasetType' => 'TARGET_TIME_SERIES|RELATED_TIME_SERIES|ITEM_METADATA', // REQUIRED 'Domain' => 'RETAIL|CUSTOM|INVENTORY_PLANNING|EC2_CAPACITY|WORK_FORCE|WEB_TRAFFIC|METRICS', // REQUIRED 'EncryptionConfig' => [ 'KMSKeyArn' => '<string>', // REQUIRED 'RoleArn' => '<string>', // REQUIRED ], 'Schema' => [ // REQUIRED 'Attributes' => [ [ 'AttributeName' => '<string>', 'AttributeType' => 'string|integer|float|timestamp|geolocation', ], // ... ], ], 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- DataFrequency
-
- Type: string
The frequency of data collection. This parameter is required for RELATED_TIME_SERIES datasets.
Valid intervals are an integer followed by Y (Year), M (Month), W (Week), D (Day), H (Hour), and min (Minute). For example, "1D" indicates every day and "15min" indicates every 15 minutes. You cannot specify a value that would overlap with the next larger frequency. That means, for example, you cannot specify a frequency of 60 minutes, because that is equivalent to 1 hour. The valid values for each frequency are the following:
-
Minute - 1-59
-
Hour - 1-23
-
Day - 1-6
-
Week - 1-4
-
Month - 1-11
-
Year - 1
Thus, if you want every other week forecasts, specify "2W". Or, if you want quarterly forecasts, you specify "3M".
- DatasetName
-
- Required: Yes
- Type: string
A name for the dataset.
- DatasetType
-
- Required: Yes
- Type: string
The dataset type. Valid values depend on the chosen
Domain
. - Domain
-
- Required: Yes
- Type: string
The domain associated with the dataset. When you add a dataset to a dataset group, this value and the value specified for the
Domain
parameter of the CreateDatasetGroup operation must match.The
Domain
andDatasetType
that you choose determine the fields that must be present in the training data that you import to the dataset. For example, if you choose theRETAIL
domain andTARGET_TIME_SERIES
as theDatasetType
, Amazon Forecast requiresitem_id
,timestamp
, anddemand
fields to be present in your data. For more information, see Importing datasets. - EncryptionConfig
-
- Type: EncryptionConfig structure
An Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
- Schema
-
- Required: Yes
- Type: Schema structure
The schema for the dataset. The schema attributes and their order must match the fields in your data. The dataset
Domain
andDatasetType
that you choose determine the minimum required fields in your training data. For information about the required fields for a specific dataset domain and type, see Dataset Domains and Dataset Types. - Tags
-
- Type: Array of Tag structures
The optional metadata that you apply to the dataset 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 Amazon Web Services use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value hasaws
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 ofaws
do not count against your tags per resource limit.
Result Syntax
[ 'DatasetArn' => '<string>', ]
Result Details
Members
- DatasetArn
-
- Type: string
The Amazon Resource Name (ARN) of the dataset.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreateDatasetGroup
$result = $client->createDatasetGroup
([/* ... */]); $promise = $client->createDatasetGroupAsync
([/* ... */]);
Creates a dataset group, which holds a collection of related datasets. You can add datasets to the dataset group when you create the dataset group, or later by using the UpdateDatasetGroup operation.
After creating a dataset group and adding datasets, you use the dataset group when you create a predictor. For more information, see Dataset groups.
To get a list of all your datasets groups, use the ListDatasetGroups operation.
The Status
of a dataset group must be ACTIVE
before you can use the dataset group to create a predictor. To get the status, use the DescribeDatasetGroup operation.
Parameter Syntax
$result = $client->createDatasetGroup([ 'DatasetArns' => ['<string>', ...], 'DatasetGroupName' => '<string>', // REQUIRED 'Domain' => 'RETAIL|CUSTOM|INVENTORY_PLANNING|EC2_CAPACITY|WORK_FORCE|WEB_TRAFFIC|METRICS', // REQUIRED 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- DatasetArns
-
- Type: Array of strings
An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.
- DatasetGroupName
-
- Required: Yes
- Type: string
A name for the dataset group.
- Domain
-
- Required: Yes
- Type: string
The domain associated with the dataset group. When you add a dataset to a dataset group, this value and the value specified for the
Domain
parameter of the CreateDataset operation must match.The
Domain
andDatasetType
that you choose determine the fields that must be present in training data that you import to a dataset. For example, if you choose theRETAIL
domain andTARGET_TIME_SERIES
as theDatasetType
, Amazon Forecast requires thatitem_id
,timestamp
, anddemand
fields are present in your data. For more information, see Dataset groups. - Tags
-
- Type: Array of Tag structures
The optional metadata that you apply to the dataset group 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 Amazon Web Services use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value hasaws
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 ofaws
do not count against your tags per resource limit.
Result Syntax
[ 'DatasetGroupArn' => '<string>', ]
Result Details
Members
- DatasetGroupArn
-
- Type: string
The Amazon Resource Name (ARN) of the dataset group.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreateDatasetImportJob
$result = $client->createDatasetImportJob
([/* ... */]); $promise = $client->createDatasetImportJobAsync
([/* ... */]);
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 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 Amazon Web Services 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.
Parameter Syntax
$result = $client->createDatasetImportJob([ 'DataSource' => [ // REQUIRED 'S3Config' => [ // REQUIRED 'KMSKeyArn' => '<string>', 'Path' => '<string>', // REQUIRED 'RoleArn' => '<string>', // REQUIRED ], ], 'DatasetArn' => '<string>', // REQUIRED 'DatasetImportJobName' => '<string>', // REQUIRED 'Format' => '<string>', 'GeolocationFormat' => '<string>', 'ImportMode' => 'FULL|INCREMENTAL', 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'TimeZone' => '<string>', 'TimestampFormat' => '<string>', 'UseGeolocationForTimeZone' => true || false, ]);
Parameter Details
Members
- DataSource
-
- Required: Yes
- Type: DataSource structure
The location of the training data to import and an 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 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 theEncryptionConfig
parameter of the CreateDataset operation. - DatasetArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Amazon Forecast dataset that you want to import data to.
- DatasetImportJobName
-
- Required: Yes
- Type: string
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 aResourceAlreadyExistsException
exception. - Format
-
- Type: string
The format of the imported data, CSV or PARQUET. The default value is CSV.
- GeolocationFormat
-
- Type: string
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).
- ImportMode
-
- Type: string
Specifies whether the dataset import job is a
FULL
orINCREMENTAL
import. AFULL
dataset import replaces all of the existing data with the newly imported data. AnINCREMENTAL
import appends the imported data to the existing data. - Tags
-
- Type: Array of Tag structures
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 Amazon Web Services use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value hasaws
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 ofaws
do not count against your tags per resource limit.
- TimeZone
-
- Type: string
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.
- TimestampFormat
-
- Type: 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
If the format isn't specified, Amazon Forecast expects the format to be "yyyy-MM-dd HH:mm:ss".
- UseGeolocationForTimeZone
-
- Type: boolean
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.
Result Syntax
[ 'DatasetImportJobArn' => '<string>', ]
Result Details
Members
- DatasetImportJobArn
-
- Type: string
The Amazon Resource Name (ARN) of the dataset import job.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreateExplainability
$result = $client->createExplainability
([/* ... */]); $promise = $client->createExplainabilityAsync
([/* ... */]);
Explainability is only available for Forecasts and Predictors generated from an AutoPredictor (CreateAutoPredictor)
Creates an Amazon Forecast Explainability.
Explainability helps you better understand how the attributes in your datasets impact forecast. Amazon Forecast uses a metric called Impact scores to quantify the relative impact of each attribute and determine whether they increase or decrease forecast values.
To enable Forecast Explainability, your predictor must include at least one of the following: related time series, item metadata, or additional datasets like Holidays and the Weather Index.
CreateExplainability accepts either a Predictor ARN or Forecast ARN. To receive aggregated Impact scores for all time series and time points in your datasets, provide a Predictor ARN. To receive Impact scores for specific time series and time points, provide a Forecast ARN.
CreateExplainability with a Predictor ARN
You can only have one Explainability resource per predictor. If you already enabled ExplainPredictor
in CreateAutoPredictor, that predictor already has an Explainability resource.
The following parameters are required when providing a Predictor ARN:
-
ExplainabilityName
- A unique name for the Explainability. -
ResourceArn
- The Arn of the predictor. -
TimePointGranularity
- Must be set to “ALL”. -
TimeSeriesGranularity
- Must be set to “ALL”.
Do not specify a value for the following parameters:
-
DataSource
- Only valid when TimeSeriesGranularity is “SPECIFIC”. -
Schema
- Only valid when TimeSeriesGranularity is “SPECIFIC”. -
StartDateTime
- Only valid when TimePointGranularity is “SPECIFIC”. -
EndDateTime
- Only valid when TimePointGranularity is “SPECIFIC”.
CreateExplainability with a Forecast ARN
You can specify a maximum of 50 time series and 500 time points.
The following parameters are required when providing a Predictor ARN:
-
ExplainabilityName
- A unique name for the Explainability. -
ResourceArn
- The Arn of the forecast. -
TimePointGranularity
- Either “ALL” or “SPECIFIC”. -
TimeSeriesGranularity
- Either “ALL” or “SPECIFIC”.
If you set TimeSeriesGranularity to “SPECIFIC”, you must also provide the following:
-
DataSource
- The S3 location of the CSV file specifying your time series. -
Schema
- The Schema defines the attributes and attribute types listed in the Data Source.
If you set TimePointGranularity to “SPECIFIC”, you must also provide the following:
-
StartDateTime
- The first timestamp in the range of time points. -
EndDateTime
- The last timestamp in the range of time points.
Parameter Syntax
$result = $client->createExplainability([ 'DataSource' => [ 'S3Config' => [ // REQUIRED 'KMSKeyArn' => '<string>', 'Path' => '<string>', // REQUIRED 'RoleArn' => '<string>', // REQUIRED ], ], 'EnableVisualization' => true || false, 'EndDateTime' => '<string>', 'ExplainabilityConfig' => [ // REQUIRED 'TimePointGranularity' => 'ALL|SPECIFIC', // REQUIRED 'TimeSeriesGranularity' => 'ALL|SPECIFIC', // REQUIRED ], 'ExplainabilityName' => '<string>', // REQUIRED 'ResourceArn' => '<string>', // REQUIRED 'Schema' => [ 'Attributes' => [ [ 'AttributeName' => '<string>', 'AttributeType' => 'string|integer|float|timestamp|geolocation', ], // ... ], ], 'StartDateTime' => '<string>', 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- DataSource
-
- Type: DataSource structure
The source of your data, an Identity and Access Management (IAM) role that allows Amazon Forecast to access the data and, optionally, an Key Management Service (KMS) key.
- EnableVisualization
-
- Type: boolean
Create an Explainability visualization that is viewable within the Amazon Web Services console.
- EndDateTime
-
- Type: string
If
TimePointGranularity
is set toSPECIFIC
, define the last time point for the Explainability.Use the following timestamp format: yyyy-MM-ddTHH:mm:ss (example: 2015-01-01T20:00:00)
- ExplainabilityConfig
-
- Required: Yes
- Type: ExplainabilityConfig structure
The configuration settings that define the granularity of time series and time points for the Explainability.
- ExplainabilityName
-
- Required: Yes
- Type: string
A unique name for the Explainability.
- ResourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Predictor or Forecast used to create the Explainability.
- Schema
-
- Type: Schema structure
Defines the fields of a dataset.
- StartDateTime
-
- Type: string
If
TimePointGranularity
is set toSPECIFIC
, define the first point for the Explainability.Use the following timestamp format: yyyy-MM-ddTHH:mm:ss (example: 2015-01-01T20:00:00)
- Tags
-
- Type: Array of Tag structures
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:
orAWS:
. Values can have this prefix. If a tag value hasaws
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 ofaws
do not count against your tags per resource limit. You cannot edit or delete tag keys with this prefix.
Result Syntax
[ 'ExplainabilityArn' => '<string>', ]
Result Details
Members
- ExplainabilityArn
-
- Type: string
The Amazon Resource Name (ARN) of the Explainability.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreateExplainabilityExport
$result = $client->createExplainabilityExport
([/* ... */]); $promise = $client->createExplainabilityExportAsync
([/* ... */]);
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 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 DescribeExplainabilityExport operation.
Parameter Syntax
$result = $client->createExplainabilityExport([ 'Destination' => [ // REQUIRED 'S3Config' => [ // REQUIRED 'KMSKeyArn' => '<string>', 'Path' => '<string>', // REQUIRED 'RoleArn' => '<string>', // REQUIRED ], ], 'ExplainabilityArn' => '<string>', // REQUIRED 'ExplainabilityExportName' => '<string>', // REQUIRED 'Format' => '<string>', 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- Destination
-
- Required: Yes
- Type: DataDestination structure
The 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).
- ExplainabilityArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Explainability to export.
- ExplainabilityExportName
-
- Required: Yes
- Type: string
A unique name for the Explainability export.
- Format
-
- Type: string
The format of the exported data, CSV or PARQUET.
- Tags
-
- Type: Array of Tag structures
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:
orAWS:
. Values can have this prefix. If a tag value hasaws
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 ofaws
do not count against your tags per resource limit. You cannot edit or delete tag keys with this prefix.
Result Syntax
[ 'ExplainabilityExportArn' => '<string>', ]
Result Details
Members
- ExplainabilityExportArn
-
- Type: string
The Amazon Resource Name (ARN) of the export.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreateForecast
$result = $client->createForecast
([/* ... */]); $promise = $client->createForecastAsync
([/* ... */]);
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.
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.
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.
Parameter Syntax
$result = $client->createForecast([ 'ForecastName' => '<string>', // REQUIRED 'ForecastTypes' => ['<string>', ...], 'PredictorArn' => '<string>', // REQUIRED 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'TimeSeriesSelector' => [ 'TimeSeriesIdentifiers' => [ 'DataSource' => [ 'S3Config' => [ // REQUIRED 'KMSKeyArn' => '<string>', 'Path' => '<string>', // REQUIRED 'RoleArn' => '<string>', // REQUIRED ], ], 'Format' => '<string>', 'Schema' => [ 'Attributes' => [ [ 'AttributeName' => '<string>', 'AttributeType' => 'string|integer|float|timestamp|geolocation', ], // ... ], ], ], ], ]);
Parameter Details
Members
- ForecastName
-
- Required: Yes
- Type: string
A name for the forecast.
- ForecastTypes
-
- Type: Array of strings
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) andmean
. 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"]
. - PredictorArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the predictor to use to generate the forecast.
- Tags
-
- Type: Array of Tag structures
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 Amazon Web Services use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value hasaws
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 ofaws
do not count against your tags per resource limit.
- TimeSeriesSelector
-
- Type: TimeSeriesSelector structure
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
Result Syntax
[ 'ForecastArn' => '<string>', ]
Result Details
Members
- ForecastArn
-
- Type: string
The Amazon Resource Name (ARN) of the forecast.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreateForecastExportJob
$result = $client->createForecastExportJob
([/* ... */]); $promise = $client->createForecastExportJobAsync
([/* ... */]);
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 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.
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.
Parameter Syntax
$result = $client->createForecastExportJob([ 'Destination' => [ // REQUIRED 'S3Config' => [ // REQUIRED 'KMSKeyArn' => '<string>', 'Path' => '<string>', // REQUIRED 'RoleArn' => '<string>', // REQUIRED ], ], 'ForecastArn' => '<string>', // REQUIRED 'ForecastExportJobName' => '<string>', // REQUIRED 'Format' => '<string>', 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- Destination
-
- Required: Yes
- Type: DataDestination structure
The location where you want to save the forecast and an 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 Key Management Service (KMS) key. The IAM role must allow Amazon Forecast permission to access the key. - ForecastArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the forecast that you want to export.
- ForecastExportJobName
-
- Required: Yes
- Type: string
The name for the forecast export job.
- Format
-
- Type: string
The format of the exported data, CSV or PARQUET. The default value is CSV.
- Tags
-
- Type: Array of Tag structures
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 Amazon Web Services use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value hasaws
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 ofaws
do not count against your tags per resource limit.
Result Syntax
[ 'ForecastExportJobArn' => '<string>', ]
Result Details
Members
- ForecastExportJobArn
-
- Type: string
The Amazon Resource Name (ARN) of the export job.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreateMonitor
$result = $client->createMonitor
([/* ... */]); $promise = $client->createMonitorAsync
([/* ... */]);
Creates a predictor monitor resource for an existing auto predictor. Predictor monitoring allows you to see how your predictor's performance changes over time. For more information, see Predictor Monitoring.
Parameter Syntax
$result = $client->createMonitor([ 'MonitorName' => '<string>', // REQUIRED 'ResourceArn' => '<string>', // REQUIRED 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
Result Syntax
[ 'MonitorArn' => '<string>', ]
Result Details
Members
- MonitorArn
-
- Type: string
The Amazon Resource Name (ARN) of the monitor resource.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreatePredictor
$result = $client->createPredictor
([/* ... */]); $promise = $client->createPredictorAsync
([/* ... */]);
This operation creates a legacy predictor that does not include all the predictor functionalities provided by Amazon Forecast. To create a predictor that is compatible with all aspects of Forecast, use CreateAutoPredictor.
Creates an Amazon Forecast predictor.
In the request, provide a dataset group and either specify an algorithm or let Amazon Forecast choose an algorithm for you using AutoML. If you specify an algorithm, you also can override algorithm-specific hyperparameters.
Amazon Forecast uses the algorithm to train a predictor using the latest version of the datasets in the specified dataset group. You can then generate a forecast using the CreateForecast operation.
To see the evaluation metrics, use the GetAccuracyMetrics operation.
You can specify a featurization configuration to fill and aggregate the data fields in the TARGET_TIME_SERIES
dataset to improve model training. For more information, see FeaturizationConfig.
For RELATED_TIME_SERIES datasets, CreatePredictor
verifies that the DataFrequency
specified when the dataset was created matches the ForecastFrequency
. TARGET_TIME_SERIES datasets don't have this restriction. Amazon Forecast also verifies the delimiter and timestamp format. For more information, see howitworks-datasets-groups.
By default, predictors are trained and evaluated at the 0.1 (P10), 0.5 (P50), and 0.9 (P90) quantiles. You can choose custom forecast types to train and evaluate your predictor by setting the ForecastTypes
.
AutoML
If you want Amazon Forecast to evaluate each algorithm and choose the one that minimizes the objective function
, set PerformAutoML
to true
. The objective function
is defined as the mean of the weighted losses over the forecast types. By default, these are the p10, p50, and p90 quantile losses. For more information, see EvaluationResult.
When AutoML is enabled, the following properties are disallowed:
-
AlgorithmArn
-
HPOConfig
-
PerformHPO
-
TrainingParameters
To get a list of all of your predictors, use the ListPredictors operation.
Before you can use the predictor to create a forecast, the Status
of the predictor must be ACTIVE
, signifying that training has completed. To get the status, use the DescribePredictor operation.
Parameter Syntax
$result = $client->createPredictor([ 'AlgorithmArn' => '<string>', 'AutoMLOverrideStrategy' => 'LatencyOptimized|AccuracyOptimized', 'EncryptionConfig' => [ 'KMSKeyArn' => '<string>', // REQUIRED 'RoleArn' => '<string>', // REQUIRED ], 'EvaluationParameters' => [ 'BackTestWindowOffset' => <integer>, 'NumberOfBacktestWindows' => <integer>, ], 'FeaturizationConfig' => [ // REQUIRED 'Featurizations' => [ [ 'AttributeName' => '<string>', // REQUIRED 'FeaturizationPipeline' => [ [ 'FeaturizationMethodName' => 'filling', // REQUIRED 'FeaturizationMethodParameters' => ['<string>', ...], ], // ... ], ], // ... ], 'ForecastDimensions' => ['<string>', ...], 'ForecastFrequency' => '<string>', // REQUIRED ], 'ForecastHorizon' => <integer>, // REQUIRED 'ForecastTypes' => ['<string>', ...], 'HPOConfig' => [ 'ParameterRanges' => [ 'CategoricalParameterRanges' => [ [ 'Name' => '<string>', // REQUIRED 'Values' => ['<string>', ...], // REQUIRED ], // ... ], 'ContinuousParameterRanges' => [ [ 'MaxValue' => <float>, // REQUIRED 'MinValue' => <float>, // REQUIRED 'Name' => '<string>', // REQUIRED 'ScalingType' => 'Auto|Linear|Logarithmic|ReverseLogarithmic', ], // ... ], 'IntegerParameterRanges' => [ [ 'MaxValue' => <integer>, // REQUIRED 'MinValue' => <integer>, // REQUIRED 'Name' => '<string>', // REQUIRED 'ScalingType' => 'Auto|Linear|Logarithmic|ReverseLogarithmic', ], // ... ], ], ], 'InputDataConfig' => [ // REQUIRED 'DatasetGroupArn' => '<string>', // REQUIRED 'SupplementaryFeatures' => [ [ 'Name' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ], 'OptimizationMetric' => 'WAPE|RMSE|AverageWeightedQuantileLoss|MASE|MAPE', 'PerformAutoML' => true || false, 'PerformHPO' => true || false, 'PredictorName' => '<string>', // REQUIRED 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'TrainingParameters' => ['<string>', ...], ]);
Parameter Details
Members
- AlgorithmArn
-
- Type: string
The Amazon Resource Name (ARN) of the algorithm to use for model training. Required if
PerformAutoML
is not set totrue
.Supported algorithms:
-
arn:aws:forecast:::algorithm/ARIMA
-
arn:aws:forecast:::algorithm/CNN-QR
-
arn:aws:forecast:::algorithm/Deep_AR_Plus
-
arn:aws:forecast:::algorithm/ETS
-
arn:aws:forecast:::algorithm/NPTS
-
arn:aws:forecast:::algorithm/Prophet
- AutoMLOverrideStrategy
-
- Type: string
The
LatencyOptimized
AutoML override strategy is only available in private beta. Contact Amazon Web Services Support or your account manager to learn more about access privileges.Used to overide the default AutoML strategy, which is to optimize predictor accuracy. To apply an AutoML strategy that minimizes training time, use
LatencyOptimized
.This parameter is only valid for predictors trained using AutoML.
- EncryptionConfig
-
- Type: EncryptionConfig structure
An Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
- EvaluationParameters
-
- Type: EvaluationParameters structure
Used to override the default evaluation parameters of the specified algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into training data and testing data. The evaluation parameters define how to perform the split and the number of iterations.
- FeaturizationConfig
-
- Required: Yes
- Type: FeaturizationConfig structure
The featurization configuration.
- ForecastHorizon
-
- Required: Yes
- Type: int
Specifies the number of time-steps that the model is trained to predict. The forecast horizon is also called the prediction length.
For example, if you configure a dataset for daily data collection (using the
DataFrequency
parameter of the CreateDataset operation) and set the forecast horizon to 10, the model returns predictions for 10 days.The maximum forecast horizon is the lesser of 500 time-steps or 1/3 of the TARGET_TIME_SERIES dataset length.
- ForecastTypes
-
- Type: Array of strings
Specifies the forecast types used to train a predictor. You can specify up to five forecast types. Forecast types can be quantiles from 0.01 to 0.99, by increments of 0.01 or higher. You can also specify the mean forecast with
mean
.The default value is
["0.10", "0.50", "0.9"]
. - HPOConfig
-
- Type: HyperParameterTuningJobConfig structure
Provides hyperparameter override values for the algorithm. If you don't provide this parameter, Amazon Forecast uses default values. The individual algorithms specify which hyperparameters support hyperparameter optimization (HPO). For more information, see aws-forecast-choosing-recipes.
If you included the
HPOConfig
object, you must setPerformHPO
to true. - InputDataConfig
-
- Required: Yes
- Type: InputDataConfig structure
Describes the dataset group that contains the data to use to train the predictor.
- OptimizationMetric
-
- Type: string
The accuracy metric used to optimize the predictor.
- PerformAutoML
-
- Type: boolean
Whether to perform AutoML. When Amazon Forecast performs AutoML, it evaluates the algorithms it provides and chooses the best algorithm and configuration for your training dataset.
The default value is
false
. In this case, you are required to specify an algorithm.Set
PerformAutoML
totrue
to have Amazon Forecast perform AutoML. This is a good option if you aren't sure which algorithm is suitable for your training data. In this case,PerformHPO
must be false. - PerformHPO
-
- Type: boolean
Whether to perform hyperparameter optimization (HPO). HPO finds optimal hyperparameter values for your training data. The process of performing HPO is known as running a hyperparameter tuning job.
The default value is
false
. In this case, Amazon Forecast uses default hyperparameter values from the chosen algorithm.To override the default values, set
PerformHPO
totrue
and, optionally, supply the HyperParameterTuningJobConfig object. The tuning job specifies a metric to optimize, which hyperparameters participate in tuning, and the valid range for each tunable hyperparameter. In this case, you are required to specify an algorithm andPerformAutoML
must be false.The following algorithms support HPO:
-
DeepAR+
-
CNN-QR
- PredictorName
-
- Required: Yes
- Type: string
A name for the predictor.
- Tags
-
- Type: Array of Tag structures
The optional metadata that you apply to the predictor 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 Amazon Web Services use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value hasaws
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 ofaws
do not count against your tags per resource limit.
- TrainingParameters
-
- Type: Associative array of custom strings keys (ParameterKey) to strings
The hyperparameters to override for model training. The hyperparameters that you can override are listed in the individual algorithms. For the list of supported algorithms, see aws-forecast-choosing-recipes.
Result Syntax
[ 'PredictorArn' => '<string>', ]
Result Details
Members
- PredictorArn
-
- Type: string
The Amazon Resource Name (ARN) of the predictor.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreatePredictorBacktestExportJob
$result = $client->createPredictorBacktestExportJob
([/* ... */]); $promise = $client->createPredictorBacktestExportJobAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->createPredictorBacktestExportJob([ 'Destination' => [ // REQUIRED 'S3Config' => [ // REQUIRED 'KMSKeyArn' => '<string>', 'Path' => '<string>', // REQUIRED 'RoleArn' => '<string>', // REQUIRED ], ], 'Format' => '<string>', 'PredictorArn' => '<string>', // REQUIRED 'PredictorBacktestExportJobName' => '<string>', // REQUIRED 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- Destination
-
- Required: Yes
- Type: DataDestination structure
The 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).
- Format
-
- Type: string
The format of the exported data, CSV or PARQUET. The default value is CSV.
- PredictorArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the predictor that you want to export.
- PredictorBacktestExportJobName
-
- Required: Yes
- Type: string
The name for the backtest export job.
- Tags
-
- Type: Array of Tag structures
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:
orAWS:
. Values can have this prefix. If a tag value hasaws
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 ofaws
do not count against your tags per resource limit. You cannot edit or delete tag keys with this prefix.
Result Syntax
[ 'PredictorBacktestExportJobArn' => '<string>', ]
Result Details
Members
- PredictorBacktestExportJobArn
-
- Type: string
The Amazon Resource Name (ARN) of the predictor backtest export job that you want to export.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreateWhatIfAnalysis
$result = $client->createWhatIfAnalysis
([/* ... */]); $promise = $client->createWhatIfAnalysisAsync
([/* ... */]);
What-if analysis is a scenario modeling technique where you make a hypothetical change to a time series and compare the forecasts generated by these changes against the baseline, unchanged time series. It is important to remember that the purpose of a what-if analysis is to understand how a forecast can change given different modifications to the baseline time series.
For example, imagine you are a clothing retailer who is considering an end of season sale to clear space for new styles. After creating a baseline forecast, you can use a what-if analysis to investigate how different sales tactics might affect your goals.
You could create a scenario where everything is given a 25% markdown, and another where everything is given a fixed dollar markdown. You could create a scenario where the sale lasts for one week and another where the sale lasts for one month. With a what-if analysis, you can compare many different scenarios against each other.
Note that a what-if analysis is meant to display what the forecasting model has learned and how it will behave in the scenarios that you are evaluating. Do not blindly use the results of the what-if analysis to make business decisions. For instance, forecasts might not be accurate for novel scenarios where there is no reference available to determine whether a forecast is good.
The TimeSeriesSelector object defines the items that you want in the what-if analysis.
Parameter Syntax
$result = $client->createWhatIfAnalysis([ 'ForecastArn' => '<string>', // REQUIRED 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'TimeSeriesSelector' => [ 'TimeSeriesIdentifiers' => [ 'DataSource' => [ 'S3Config' => [ // REQUIRED 'KMSKeyArn' => '<string>', 'Path' => '<string>', // REQUIRED 'RoleArn' => '<string>', // REQUIRED ], ], 'Format' => '<string>', 'Schema' => [ 'Attributes' => [ [ 'AttributeName' => '<string>', 'AttributeType' => 'string|integer|float|timestamp|geolocation', ], // ... ], ], ], ], 'WhatIfAnalysisName' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ForecastArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the baseline forecast.
- Tags
-
- Type: Array of Tag structures
A list of tags to apply to the what if forecast.
- TimeSeriesSelector
-
- Type: TimeSeriesSelector structure
Defines the set of time series that are used in the what-if analysis with a
TimeSeriesIdentifiers
object. What-if analyses are performed only for the time series in this object.The
TimeSeriesIdentifiers
object needs the following information:-
DataSource
-
Format
-
Schema
- WhatIfAnalysisName
-
- Required: Yes
- Type: string
The name of the what-if analysis. Each name must be unique.
Result Syntax
[ 'WhatIfAnalysisArn' => '<string>', ]
Result Details
Members
- WhatIfAnalysisArn
-
- Type: string
The Amazon Resource Name (ARN) of the what-if analysis.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreateWhatIfForecast
$result = $client->createWhatIfForecast
([/* ... */]); $promise = $client->createWhatIfForecastAsync
([/* ... */]);
A what-if forecast is a forecast that is created from a modified version of the baseline forecast. Each what-if forecast incorporates either a replacement dataset or a set of transformations to the original dataset.
Parameter Syntax
$result = $client->createWhatIfForecast([ 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'TimeSeriesReplacementsDataSource' => [ 'Format' => '<string>', 'S3Config' => [ // REQUIRED 'KMSKeyArn' => '<string>', 'Path' => '<string>', // REQUIRED 'RoleArn' => '<string>', // REQUIRED ], 'Schema' => [ // REQUIRED 'Attributes' => [ [ 'AttributeName' => '<string>', 'AttributeType' => 'string|integer|float|timestamp|geolocation', ], // ... ], ], 'TimestampFormat' => '<string>', ], 'TimeSeriesTransformations' => [ [ 'Action' => [ 'AttributeName' => '<string>', // REQUIRED 'Operation' => 'ADD|SUBTRACT|MULTIPLY|DIVIDE', // REQUIRED 'Value' => <float>, // REQUIRED ], 'TimeSeriesConditions' => [ [ 'AttributeName' => '<string>', // REQUIRED 'AttributeValue' => '<string>', // REQUIRED 'Condition' => 'EQUALS|NOT_EQUALS|LESS_THAN|GREATER_THAN', // REQUIRED ], // ... ], ], // ... ], 'WhatIfAnalysisArn' => '<string>', // REQUIRED 'WhatIfForecastName' => '<string>', // REQUIRED ]);
Parameter Details
Members
- Tags
-
- Type: Array of Tag structures
A list of tags to apply to the what if forecast.
- TimeSeriesReplacementsDataSource
-
- Type: TimeSeriesReplacementsDataSource structure
The replacement time series dataset, which contains the rows that you want to change in the related time series dataset. A replacement time series does not need to contain all rows that are in the baseline related time series. Include only the rows (measure-dimension combinations) that you want to include in the what-if forecast.
This dataset is merged with the original time series to create a transformed dataset that is used for the what-if analysis.
This dataset should contain the items to modify (such as item_id or workforce_type), any relevant dimensions, the timestamp column, and at least one of the related time series columns. This file should not contain duplicate timestamps for the same time series.
Timestamps and item_ids not included in this dataset are not included in the what-if analysis.
- TimeSeriesTransformations
-
- Type: Array of TimeSeriesTransformation structures
The transformations that are applied to the baseline time series. Each transformation contains an action and a set of conditions. An action is applied only when all conditions are met. If no conditions are provided, the action is applied to all items.
- WhatIfAnalysisArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the what-if analysis.
- WhatIfForecastName
-
- Required: Yes
- Type: string
The name of the what-if forecast. Names must be unique within each what-if analysis.
Result Syntax
[ 'WhatIfForecastArn' => '<string>', ]
Result Details
Members
- WhatIfForecastArn
-
- Type: string
The Amazon Resource Name (ARN) of the what-if forecast.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
CreateWhatIfForecastExport
$result = $client->createWhatIfForecastExport
([/* ... */]); $promise = $client->createWhatIfForecastExportAsync
([/* ... */]);
Exports a forecast created by the CreateWhatIfForecast operation to your Amazon Simple Storage Service (Amazon S3) bucket. The forecast file name will match the following conventions:
≈<ForecastExportJobName>_<ExportTimestamp>_<PartNumber>
The <ExportTimestamp> component is in Java SimpleDateFormat (yyyy-MM-ddTHH-mm-ssZ).
You must specify a DataDestination object that includes 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.
For more information, see howitworks-forecast.
To get a list of all your what-if forecast export jobs, use the ListWhatIfForecastExports operation.
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 DescribeWhatIfForecastExport operation.
Parameter Syntax
$result = $client->createWhatIfForecastExport([ 'Destination' => [ // REQUIRED 'S3Config' => [ // REQUIRED 'KMSKeyArn' => '<string>', 'Path' => '<string>', // REQUIRED 'RoleArn' => '<string>', // REQUIRED ], ], 'Format' => '<string>', 'Tags' => [ [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'WhatIfForecastArns' => ['<string>', ...], // REQUIRED 'WhatIfForecastExportName' => '<string>', // REQUIRED ]);
Parameter Details
Members
- Destination
-
- Required: Yes
- Type: DataDestination structure
The location where you want to save the forecast and an 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 Key Management Service (KMS) key. The IAM role must allow Amazon Forecast permission to access the key. - Format
-
- Type: string
The format of the exported data, CSV or PARQUET.
- Tags
-
- Type: Array of Tag structures
A list of tags to apply to the what if forecast.
- WhatIfForecastArns
-
- Required: Yes
- Type: Array of strings
The list of what-if forecast Amazon Resource Names (ARNs) to export.
- WhatIfForecastExportName
-
- Required: Yes
- Type: string
The name of the what-if forecast to export.
Result Syntax
[ 'WhatIfForecastExportArn' => '<string>', ]
Result Details
Members
- WhatIfForecastExportArn
-
- Type: string
The Amazon Resource Name (ARN) of the what-if forecast.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceAlreadyExistsException:
There is already a resource with this name. Try again with a different name.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
DeleteDataset
$result = $client->deleteDataset
([/* ... */]); $promise = $client->deleteDatasetAsync
([/* ... */]);
Deletes an Amazon Forecast dataset that was created using the CreateDataset operation. You can only delete datasets that have a status of ACTIVE
or CREATE_FAILED
. To get the status use the DescribeDataset operation.
Forecast does not automatically update any dataset groups that contain the deleted dataset. In order to update the dataset group, use the UpdateDatasetGroup operation, omitting the deleted dataset's ARN.
Parameter Syntax
$result = $client->deleteDataset([ 'DatasetArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- DatasetArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the dataset to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeleteDatasetGroup
$result = $client->deleteDatasetGroup
([/* ... */]); $promise = $client->deleteDatasetGroupAsync
([/* ... */]);
Deletes a dataset group created using the CreateDatasetGroup operation. You can only delete dataset groups that have a status of ACTIVE
, CREATE_FAILED
, or UPDATE_FAILED
. To get the status, use the DescribeDatasetGroup operation.
This operation deletes only the dataset group, not the datasets in the group.
Parameter Syntax
$result = $client->deleteDatasetGroup([ 'DatasetGroupArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- DatasetGroupArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the dataset group to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeleteDatasetImportJob
$result = $client->deleteDatasetImportJob
([/* ... */]); $promise = $client->deleteDatasetImportJobAsync
([/* ... */]);
Deletes a dataset import job created using the CreateDatasetImportJob operation. You can delete only dataset import jobs that have a status of ACTIVE
or CREATE_FAILED
. To get the status, use the DescribeDatasetImportJob operation.
Parameter Syntax
$result = $client->deleteDatasetImportJob([ 'DatasetImportJobArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- DatasetImportJobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the dataset import job to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeleteExplainability
$result = $client->deleteExplainability
([/* ... */]); $promise = $client->deleteExplainabilityAsync
([/* ... */]);
Deletes an Explainability resource.
You can delete only predictor that have a status of ACTIVE
or CREATE_FAILED
. To get the status, use the DescribeExplainability operation.
Parameter Syntax
$result = $client->deleteExplainability([ 'ExplainabilityArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ExplainabilityArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Explainability resource to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeleteExplainabilityExport
$result = $client->deleteExplainabilityExport
([/* ... */]); $promise = $client->deleteExplainabilityExportAsync
([/* ... */]);
Deletes an Explainability export.
Parameter Syntax
$result = $client->deleteExplainabilityExport([ 'ExplainabilityExportArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ExplainabilityExportArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Explainability export to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeleteForecast
$result = $client->deleteForecast
([/* ... */]); $promise = $client->deleteForecastAsync
([/* ... */]);
Deletes a forecast created using the CreateForecast operation. You can delete only forecasts that have a status of ACTIVE
or CREATE_FAILED
. To get the status, use the DescribeForecast operation.
You can't delete a forecast while it is being exported. After a forecast is deleted, you can no longer query the forecast.
Parameter Syntax
$result = $client->deleteForecast([ 'ForecastArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ForecastArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the forecast to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeleteForecastExportJob
$result = $client->deleteForecastExportJob
([/* ... */]); $promise = $client->deleteForecastExportJobAsync
([/* ... */]);
Deletes a forecast export job created using the CreateForecastExportJob operation. You can delete only export jobs that have a status of ACTIVE
or CREATE_FAILED
. To get the status, use the DescribeForecastExportJob operation.
Parameter Syntax
$result = $client->deleteForecastExportJob([ 'ForecastExportJobArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ForecastExportJobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the forecast export job to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeleteMonitor
$result = $client->deleteMonitor
([/* ... */]); $promise = $client->deleteMonitorAsync
([/* ... */]);
Deletes a monitor resource. You can only delete a monitor resource with a status of ACTIVE
, ACTIVE_STOPPED
, CREATE_FAILED
, or CREATE_STOPPED
.
Parameter Syntax
$result = $client->deleteMonitor([ 'MonitorArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- MonitorArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the monitor resource to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeletePredictor
$result = $client->deletePredictor
([/* ... */]); $promise = $client->deletePredictorAsync
([/* ... */]);
Deletes a predictor created using the DescribePredictor or CreatePredictor operations. You can delete only predictor that have a status of ACTIVE
or CREATE_FAILED
. To get the status, use the DescribePredictor operation.
Parameter Syntax
$result = $client->deletePredictor([ 'PredictorArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- PredictorArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the predictor to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeletePredictorBacktestExportJob
$result = $client->deletePredictorBacktestExportJob
([/* ... */]); $promise = $client->deletePredictorBacktestExportJobAsync
([/* ... */]);
Deletes a predictor backtest export job.
Parameter Syntax
$result = $client->deletePredictorBacktestExportJob([ 'PredictorBacktestExportJobArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- PredictorBacktestExportJobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the predictor backtest export job to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeleteResourceTree
$result = $client->deleteResourceTree
([/* ... */]); $promise = $client->deleteResourceTreeAsync
([/* ... */]);
Deletes an entire resource tree. This operation will delete the parent resource and its child resources.
Child resources are resources that were created from another resource. For example, when a forecast is generated from a predictor, the forecast is the child resource and the predictor is the parent resource.
Amazon Forecast resources possess the following parent-child resource hierarchies:
-
Dataset: dataset import jobs
-
Dataset Group: predictors, predictor backtest export jobs, forecasts, forecast export jobs
-
Predictor: predictor backtest export jobs, forecasts, forecast export jobs
-
Forecast: forecast export jobs
DeleteResourceTree
will only delete Amazon Forecast resources, and will not delete datasets or exported files stored in Amazon S3.
Parameter Syntax
$result = $client->deleteResourceTree([ 'ResourceArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ResourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the parent resource to delete. All child resources of the parent resource will also be deleted.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeleteWhatIfAnalysis
$result = $client->deleteWhatIfAnalysis
([/* ... */]); $promise = $client->deleteWhatIfAnalysisAsync
([/* ... */]);
Deletes a what-if analysis created using the CreateWhatIfAnalysis operation. You can delete only what-if analyses that have a status of ACTIVE
or CREATE_FAILED
. To get the status, use the DescribeWhatIfAnalysis operation.
You can't delete a what-if analysis while any of its forecasts are being exported.
Parameter Syntax
$result = $client->deleteWhatIfAnalysis([ 'WhatIfAnalysisArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- WhatIfAnalysisArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the what-if analysis that you want to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeleteWhatIfForecast
$result = $client->deleteWhatIfForecast
([/* ... */]); $promise = $client->deleteWhatIfForecastAsync
([/* ... */]);
Deletes a what-if forecast created using the CreateWhatIfForecast operation. You can delete only what-if forecasts that have a status of ACTIVE
or CREATE_FAILED
. To get the status, use the DescribeWhatIfForecast operation.
You can't delete a what-if forecast while it is being exported. After a what-if forecast is deleted, you can no longer query the what-if analysis.
Parameter Syntax
$result = $client->deleteWhatIfForecast([ 'WhatIfForecastArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- WhatIfForecastArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the what-if forecast that you want to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DeleteWhatIfForecastExport
$result = $client->deleteWhatIfForecastExport
([/* ... */]); $promise = $client->deleteWhatIfForecastExportAsync
([/* ... */]);
Deletes a what-if forecast export created using the CreateWhatIfForecastExport operation. You can delete only what-if forecast exports that have a status of ACTIVE
or CREATE_FAILED
. To get the status, use the DescribeWhatIfForecastExport operation.
Parameter Syntax
$result = $client->deleteWhatIfForecastExport([ 'WhatIfForecastExportArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- WhatIfForecastExportArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the what-if forecast export that you want to delete.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
DescribeAutoPredictor
$result = $client->describeAutoPredictor
([/* ... */]); $promise = $client->describeAutoPredictorAsync
([/* ... */]);
Describes a predictor created using the CreateAutoPredictor operation.
Parameter Syntax
$result = $client->describeAutoPredictor([ 'PredictorArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- PredictorArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the predictor.
Result Syntax
[ 'CreationTime' => <DateTime>, 'DataConfig' => [ 'AdditionalDatasets' => [ [ 'Configuration' => [ '<Name>' => ['<string>', ...], // ... ], 'Name' => '<string>', ], // ... ], 'AttributeConfigs' => [ [ 'AttributeName' => '<string>', 'Transformations' => ['<string>', ...], ], // ... ], 'DatasetGroupArn' => '<string>', ], 'DatasetImportJobArns' => ['<string>', ...], 'EncryptionConfig' => [ 'KMSKeyArn' => '<string>', 'RoleArn' => '<string>', ], 'EstimatedTimeRemainingInMinutes' => <integer>, 'ExplainabilityInfo' => [ 'ExplainabilityArn' => '<string>', 'Status' => '<string>', ], 'ForecastDimensions' => ['<string>', ...], 'ForecastFrequency' => '<string>', 'ForecastHorizon' => <integer>, 'ForecastTypes' => ['<string>', ...], 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'MonitorInfo' => [ 'MonitorArn' => '<string>', 'Status' => '<string>', ], 'OptimizationMetric' => 'WAPE|RMSE|AverageWeightedQuantileLoss|MASE|MAPE', 'PredictorArn' => '<string>', 'PredictorName' => '<string>', 'ReferencePredictorSummary' => [ 'Arn' => '<string>', 'State' => 'Active|Deleted', ], 'Status' => '<string>', 'TimeAlignmentBoundary' => [ 'DayOfMonth' => <integer>, 'DayOfWeek' => 'MONDAY|TUESDAY|WEDNESDAY|THURSDAY|FRIDAY|SATURDAY|SUNDAY', 'Hour' => <integer>, 'Month' => 'JANUARY|FEBRUARY|MARCH|APRIL|MAY|JUNE|JULY|AUGUST|SEPTEMBER|OCTOBER|NOVEMBER|DECEMBER', ], ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp of the CreateAutoPredictor request.
- DataConfig
-
- Type: DataConfig structure
The data configuration for your dataset group and any additional datasets.
- DatasetImportJobArns
-
- Type: Array of strings
An array of the ARNs of the dataset import jobs used to import training data for the predictor.
- EncryptionConfig
-
- Type: EncryptionConfig structure
An Key Management Service (KMS) key and an Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key. You can specify this optional object in the CreateDataset and CreatePredictor requests.
- EstimatedTimeRemainingInMinutes
-
- Type: long (int|float)
The estimated time remaining in minutes for the predictor training job to complete.
- ExplainabilityInfo
-
- Type: ExplainabilityInfo structure
Provides the status and ARN of the Predictor Explainability.
- ForecastDimensions
-
- Type: Array of strings
An array of dimension (field) names that specify the attributes used to group your time series.
- ForecastFrequency
-
- Type: string
The frequency of predictions in a forecast.
Valid intervals are Y (Year), M (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes), 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For example, "Y" indicates every year and "5min" indicates every five minutes.
- ForecastHorizon
-
- Type: int
The number of time-steps that the model predicts. The forecast horizon is also called the prediction length.
- ForecastTypes
-
- Type: Array of strings
The forecast types used during predictor training. Default value is ["0.1","0.5","0.9"].
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
In the event of an error, a message detailing the cause of the error.
- MonitorInfo
-
- Type: MonitorInfo structure
A object with the Amazon Resource Name (ARN) and status of the monitor resource.
- OptimizationMetric
-
- Type: string
The accuracy metric used to optimize the predictor.
- PredictorArn
-
- Type: string
The Amazon Resource Name (ARN) of the predictor
- PredictorName
-
- Type: string
The name of the predictor.
- ReferencePredictorSummary
-
- Type: ReferencePredictorSummary structure
The ARN and state of the reference predictor. This parameter is only valid for retrained or upgraded predictors.
- Status
-
- Type: string
The status of the predictor. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
CREATE_STOPPING
,CREATE_STOPPED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
- TimeAlignmentBoundary
-
- Type: TimeAlignmentBoundary structure
The time boundary Forecast uses when aggregating data.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribeDataset
$result = $client->describeDataset
([/* ... */]); $promise = $client->describeDatasetAsync
([/* ... */]);
Describes an Amazon Forecast dataset created using the CreateDataset operation.
In addition to listing the parameters specified in the CreateDataset
request, this operation includes the following dataset properties:
-
CreationTime
-
LastModificationTime
-
Status
Parameter Syntax
$result = $client->describeDataset([ 'DatasetArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- DatasetArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the dataset.
Result Syntax
[ 'CreationTime' => <DateTime>, 'DataFrequency' => '<string>', 'DatasetArn' => '<string>', 'DatasetName' => '<string>', 'DatasetType' => 'TARGET_TIME_SERIES|RELATED_TIME_SERIES|ITEM_METADATA', 'Domain' => 'RETAIL|CUSTOM|INVENTORY_PLANNING|EC2_CAPACITY|WORK_FORCE|WEB_TRAFFIC|METRICS', 'EncryptionConfig' => [ 'KMSKeyArn' => '<string>', 'RoleArn' => '<string>', ], 'LastModificationTime' => <DateTime>, 'Schema' => [ 'Attributes' => [ [ 'AttributeName' => '<string>', 'AttributeType' => 'string|integer|float|timestamp|geolocation', ], // ... ], ], 'Status' => '<string>', ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the dataset was created.
- DataFrequency
-
- Type: string
The frequency of data collection.
Valid intervals are Y (Year), M (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes), 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For example, "M" indicates every month and "30min" indicates every 30 minutes.
- DatasetArn
-
- Type: string
The Amazon Resource Name (ARN) of the dataset.
- DatasetName
-
- Type: string
The name of the dataset.
- DatasetType
-
- Type: string
The dataset type.
- Domain
-
- Type: string
The domain associated with the dataset.
- EncryptionConfig
-
- Type: EncryptionConfig structure
The Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When you create a dataset,
LastModificationTime
is the same asCreationTime
. While data is being imported to the dataset,LastModificationTime
is the current time of theDescribeDataset
call. After a CreateDatasetImportJob operation has finished,LastModificationTime
is when the import job completed or failed. - Schema
-
- Type: Schema structure
An array of
SchemaAttribute
objects that specify the dataset fields. EachSchemaAttribute
specifies the name and data type of a field. - Status
-
- Type: string
The status of the dataset. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
-
UPDATE_PENDING
,UPDATE_IN_PROGRESS
,UPDATE_FAILED
The
UPDATE
states apply while data is imported to the dataset from a call to the CreateDatasetImportJob operation and reflect the status of the dataset import job. For example, when the import job status isCREATE_IN_PROGRESS
, the status of the dataset isUPDATE_IN_PROGRESS
.The
Status
of the dataset must beACTIVE
before you can import training data.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribeDatasetGroup
$result = $client->describeDatasetGroup
([/* ... */]); $promise = $client->describeDatasetGroupAsync
([/* ... */]);
Describes a dataset group created using the CreateDatasetGroup operation.
In addition to listing the parameters provided in the CreateDatasetGroup
request, this operation includes the following properties:
-
DatasetArns
- The datasets belonging to the group. -
CreationTime
-
LastModificationTime
-
Status
Parameter Syntax
$result = $client->describeDatasetGroup([ 'DatasetGroupArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- DatasetGroupArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the dataset group.
Result Syntax
[ 'CreationTime' => <DateTime>, 'DatasetArns' => ['<string>', ...], 'DatasetGroupArn' => '<string>', 'DatasetGroupName' => '<string>', 'Domain' => 'RETAIL|CUSTOM|INVENTORY_PLANNING|EC2_CAPACITY|WORK_FORCE|WEB_TRAFFIC|METRICS', 'LastModificationTime' => <DateTime>, 'Status' => '<string>', ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the dataset group was created.
- DatasetArns
-
- Type: Array of strings
An array of Amazon Resource Names (ARNs) of the datasets contained in the dataset group.
- DatasetGroupArn
-
- Type: string
The ARN of the dataset group.
- DatasetGroupName
-
- Type: string
The name of the dataset group.
- Domain
-
- Type: string
The domain associated with the dataset group.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the dataset group was created or last updated from a call to the UpdateDatasetGroup operation. While the dataset group is being updated,
LastModificationTime
is the current time of theDescribeDatasetGroup
call. - Status
-
- Type: string
The status of the dataset group. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
-
UPDATE_PENDING
,UPDATE_IN_PROGRESS
,UPDATE_FAILED
The
UPDATE
states apply when you call the UpdateDatasetGroup operation.The
Status
of the dataset group must beACTIVE
before you can use the dataset group to create a predictor.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribeDatasetImportJob
$result = $client->describeDatasetImportJob
([/* ... */]); $promise = $client->describeDatasetImportJobAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->describeDatasetImportJob([ 'DatasetImportJobArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- DatasetImportJobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the dataset import job.
Result Syntax
[ 'CreationTime' => <DateTime>, 'DataSize' => <float>, 'DataSource' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'DatasetArn' => '<string>', 'DatasetImportJobArn' => '<string>', 'DatasetImportJobName' => '<string>', 'EstimatedTimeRemainingInMinutes' => <integer>, 'FieldStatistics' => [ '<String>' => [ 'Avg' => <float>, 'Count' => <integer>, 'CountDistinct' => <integer>, 'CountDistinctLong' => <integer>, 'CountLong' => <integer>, 'CountNan' => <integer>, 'CountNanLong' => <integer>, 'CountNull' => <integer>, 'CountNullLong' => <integer>, 'Max' => '<string>', 'Min' => '<string>', 'Stddev' => <float>, ], // ... ], 'Format' => '<string>', 'GeolocationFormat' => '<string>', 'ImportMode' => 'FULL|INCREMENTAL', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'Status' => '<string>', 'TimeZone' => '<string>', 'TimestampFormat' => '<string>', 'UseGeolocationForTimeZone' => true || false, ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the dataset import job was created.
- DataSize
-
- Type: double
The size of the dataset in gigabytes (GB) after the import job has finished.
- DataSource
-
- Type: DataSource structure
The location of the training data to import and an Identity and Access Management (IAM) role that Amazon Forecast can assume to access the data.
If encryption is used,
DataSource
includes an Key Management Service (KMS) key. - DatasetArn
-
- Type: string
The Amazon Resource Name (ARN) of the dataset that the training data was imported to.
- DatasetImportJobArn
-
- Type: string
The ARN of the dataset import job.
- DatasetImportJobName
-
- Type: string
The name of the dataset import job.
- EstimatedTimeRemainingInMinutes
-
- Type: long (int|float)
The estimated time remaining in minutes for the dataset import job to complete.
- FieldStatistics
-
- Type: Associative array of custom strings keys (String) to Statistics structures
Statistical information about each field in the input data.
- Format
-
- Type: string
The format of the imported data, CSV or PARQUET.
- GeolocationFormat
-
- Type: string
The format of the geolocation attribute. Valid Values:
"LAT_LONG"
and"CC_POSTALCODE"
. - ImportMode
-
- Type: string
The import mode of the dataset import job, FULL or INCREMENTAL.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- Status
-
- Type: 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
- TimeZone
-
- Type: string
The single time zone applied to every item in the dataset
- TimestampFormat
-
- Type: 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
- UseGeolocationForTimeZone
-
- Type: boolean
Whether
TimeZone
is automatically derived from the geolocation attribute.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribeExplainability
$result = $client->describeExplainability
([/* ... */]); $promise = $client->describeExplainabilityAsync
([/* ... */]);
Describes an Explainability resource created using the CreateExplainability operation.
Parameter Syntax
$result = $client->describeExplainability([ 'ExplainabilityArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ExplainabilityArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Explaianability to describe.
Result Syntax
[ 'CreationTime' => <DateTime>, 'DataSource' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'EnableVisualization' => true || false, 'EndDateTime' => '<string>', 'EstimatedTimeRemainingInMinutes' => <integer>, 'ExplainabilityArn' => '<string>', 'ExplainabilityConfig' => [ 'TimePointGranularity' => 'ALL|SPECIFIC', 'TimeSeriesGranularity' => 'ALL|SPECIFIC', ], 'ExplainabilityName' => '<string>', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'ResourceArn' => '<string>', 'Schema' => [ 'Attributes' => [ [ 'AttributeName' => '<string>', 'AttributeType' => 'string|integer|float|timestamp|geolocation', ], // ... ], ], 'StartDateTime' => '<string>', 'Status' => '<string>', ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the Explainability resource was created.
- DataSource
-
- Type: DataSource structure
The source of your data, an Identity and Access Management (IAM) role that allows Amazon Forecast to access the data and, optionally, an Key Management Service (KMS) key.
- EnableVisualization
-
- Type: boolean
Whether the visualization was enabled for the Explainability resource.
- EndDateTime
-
- Type: string
If
TimePointGranularity
is set toSPECIFIC
, the last time point in the Explainability. - EstimatedTimeRemainingInMinutes
-
- Type: long (int|float)
The estimated time remaining in minutes for the CreateExplainability job to complete.
- ExplainabilityArn
-
- Type: string
The Amazon Resource Name (ARN) of the Explainability.
- ExplainabilityConfig
-
- Type: ExplainabilityConfig structure
The configuration settings that define the granularity of time series and time points for the Explainability.
- ExplainabilityName
-
- Type: string
The name of the Explainability.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, a message about the error.
- ResourceArn
-
- Type: string
The Amazon Resource Name (ARN) of the Predictor or Forecast used to create the Explainability resource.
- Schema
-
- Type: Schema structure
Defines the fields of a dataset.
- StartDateTime
-
- Type: string
If
TimePointGranularity
is set toSPECIFIC
, the first time point in the Explainability. - Status
-
- Type: string
The status of the Explainability resource. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
CREATE_STOPPING
,CREATE_STOPPED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribeExplainabilityExport
$result = $client->describeExplainabilityExport
([/* ... */]); $promise = $client->describeExplainabilityExportAsync
([/* ... */]);
Describes an Explainability export created using the CreateExplainabilityExport operation.
Parameter Syntax
$result = $client->describeExplainabilityExport([ 'ExplainabilityExportArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ExplainabilityExportArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Explainability export.
Result Syntax
[ 'CreationTime' => <DateTime>, 'Destination' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'ExplainabilityArn' => '<string>', 'ExplainabilityExportArn' => '<string>', 'ExplainabilityExportName' => '<string>', 'Format' => '<string>', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'Status' => '<string>', ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the Explainability export was created.
- Destination
-
- Type: DataDestination structure
The 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).
- ExplainabilityArn
-
- Type: string
The Amazon Resource Name (ARN) of the Explainability export.
- ExplainabilityExportArn
-
- Type: string
The Amazon Resource Name (ARN) of the Explainability export.
- ExplainabilityExportName
-
- Type: string
The name of the Explainability export.
- Format
-
- Type: string
The format of the exported data, CSV or PARQUET.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
Information about any errors that occurred during the export.
- Status
-
- Type: 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
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribeForecast
$result = $client->describeForecast
([/* ... */]); $promise = $client->describeForecastAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->describeForecast([ 'ForecastArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ForecastArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the forecast.
Result Syntax
[ 'CreationTime' => <DateTime>, 'DatasetGroupArn' => '<string>', 'EstimatedTimeRemainingInMinutes' => <integer>, 'ForecastArn' => '<string>', 'ForecastName' => '<string>', 'ForecastTypes' => ['<string>', ...], 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'PredictorArn' => '<string>', 'Status' => '<string>', 'TimeSeriesSelector' => [ 'TimeSeriesIdentifiers' => [ 'DataSource' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'Format' => '<string>', 'Schema' => [ 'Attributes' => [ [ 'AttributeName' => '<string>', 'AttributeType' => 'string|integer|float|timestamp|geolocation', ], // ... ], ], ], ], ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the forecast creation task was created.
- DatasetGroupArn
-
- Type: string
The ARN of the dataset group that provided the data used to train the predictor.
- EstimatedTimeRemainingInMinutes
-
- Type: long (int|float)
The estimated time remaining in minutes for the forecast job to complete.
- ForecastArn
-
- Type: string
The forecast ARN as specified in the request.
- ForecastName
-
- Type: string
The name of the forecast.
- ForecastTypes
-
- Type: Array of strings
The quantiles at which probabilistic forecasts were generated.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- PredictorArn
-
- Type: string
The ARN of the predictor used to generate the forecast.
- Status
-
- Type: 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
The
Status
of the forecast must beACTIVE
before you can query or export the forecast. - TimeSeriesSelector
-
- Type: TimeSeriesSelector structure
The time series to include in the forecast.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribeForecastExportJob
$result = $client->describeForecastExportJob
([/* ... */]); $promise = $client->describeForecastExportJobAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->describeForecastExportJob([ 'ForecastExportJobArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ForecastExportJobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the forecast export job.
Result Syntax
[ 'CreationTime' => <DateTime>, 'Destination' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'ForecastArn' => '<string>', 'ForecastExportJobArn' => '<string>', 'ForecastExportJobName' => '<string>', 'Format' => '<string>', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'Status' => '<string>', ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the forecast export job was created.
- Destination
-
- Type: DataDestination structure
The path to the Amazon Simple Storage Service (Amazon S3) bucket where the forecast is exported.
- ForecastArn
-
- Type: string
The Amazon Resource Name (ARN) of the exported forecast.
- ForecastExportJobArn
-
- Type: string
The ARN of the forecast export job.
- ForecastExportJobName
-
- Type: string
The name of the forecast export job.
- Format
-
- Type: string
The format of the exported data, CSV or PARQUET.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- Status
-
- Type: 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
The
Status
of the forecast export job must beACTIVE
before you can access the forecast in your S3 bucket.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribeMonitor
$result = $client->describeMonitor
([/* ... */]); $promise = $client->describeMonitorAsync
([/* ... */]);
Describes a monitor resource. In addition to listing the properties provided in the CreateMonitor request, this operation lists the following properties:
-
Baseline
-
CreationTime
-
LastEvaluationTime
-
LastEvaluationState
-
LastModificationTime
-
Message
-
Status
Parameter Syntax
$result = $client->describeMonitor([ 'MonitorArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- MonitorArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the monitor resource to describe.
Result Syntax
[ 'Baseline' => [ 'PredictorBaseline' => [ 'BaselineMetrics' => [ [ 'Name' => '<string>', 'Value' => <float>, ], // ... ], ], ], 'CreationTime' => <DateTime>, 'EstimatedEvaluationTimeRemainingInMinutes' => <integer>, 'LastEvaluationState' => '<string>', 'LastEvaluationTime' => <DateTime>, 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'MonitorArn' => '<string>', 'MonitorName' => '<string>', 'ResourceArn' => '<string>', 'Status' => '<string>', ]
Result Details
Members
- Baseline
-
- Type: Baseline structure
Metrics you can use as a baseline for comparison purposes. Use these values you interpret monitoring results for an auto predictor.
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp for when the monitor resource was created.
- EstimatedEvaluationTimeRemainingInMinutes
-
- Type: long (int|float)
The estimated number of minutes remaining before the monitor resource finishes its current evaluation.
- LastEvaluationState
-
- Type: string
The state of the monitor's latest evaluation.
- LastEvaluationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp of the latest evaluation completed by the monitor.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp of the latest modification to the monitor.
- Message
-
- Type: string
An error message, if any, for the monitor.
- MonitorArn
-
- Type: string
The Amazon Resource Name (ARN) of the monitor resource described.
- MonitorName
-
- Type: string
The name of the monitor.
- ResourceArn
-
- Type: string
The Amazon Resource Name (ARN) of the auto predictor being monitored.
- Status
-
- Type: string
The status of the monitor resource.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribePredictor
$result = $client->describePredictor
([/* ... */]); $promise = $client->describePredictorAsync
([/* ... */]);
This operation is only valid for legacy predictors created with CreatePredictor. If you are not using a legacy predictor, use DescribeAutoPredictor.
Describes a predictor created using the CreatePredictor operation.
In addition to listing the properties provided in the CreatePredictor
request, this operation lists the following properties:
-
DatasetImportJobArns
- The dataset import jobs used to import training data. -
AutoMLAlgorithmArns
- If AutoML is performed, the algorithms that were evaluated. -
CreationTime
-
LastModificationTime
-
Status
-
Message
- If an error occurred, information about the error.
Parameter Syntax
$result = $client->describePredictor([ 'PredictorArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- PredictorArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the predictor that you want information about.
Result Syntax
[ 'AlgorithmArn' => '<string>', 'AutoMLAlgorithmArns' => ['<string>', ...], 'AutoMLOverrideStrategy' => 'LatencyOptimized|AccuracyOptimized', 'CreationTime' => <DateTime>, 'DatasetImportJobArns' => ['<string>', ...], 'EncryptionConfig' => [ 'KMSKeyArn' => '<string>', 'RoleArn' => '<string>', ], 'EstimatedTimeRemainingInMinutes' => <integer>, 'EvaluationParameters' => [ 'BackTestWindowOffset' => <integer>, 'NumberOfBacktestWindows' => <integer>, ], 'FeaturizationConfig' => [ 'Featurizations' => [ [ 'AttributeName' => '<string>', 'FeaturizationPipeline' => [ [ 'FeaturizationMethodName' => 'filling', 'FeaturizationMethodParameters' => ['<string>', ...], ], // ... ], ], // ... ], 'ForecastDimensions' => ['<string>', ...], 'ForecastFrequency' => '<string>', ], 'ForecastHorizon' => <integer>, 'ForecastTypes' => ['<string>', ...], 'HPOConfig' => [ 'ParameterRanges' => [ 'CategoricalParameterRanges' => [ [ 'Name' => '<string>', 'Values' => ['<string>', ...], ], // ... ], 'ContinuousParameterRanges' => [ [ 'MaxValue' => <float>, 'MinValue' => <float>, 'Name' => '<string>', 'ScalingType' => 'Auto|Linear|Logarithmic|ReverseLogarithmic', ], // ... ], 'IntegerParameterRanges' => [ [ 'MaxValue' => <integer>, 'MinValue' => <integer>, 'Name' => '<string>', 'ScalingType' => 'Auto|Linear|Logarithmic|ReverseLogarithmic', ], // ... ], ], ], 'InputDataConfig' => [ 'DatasetGroupArn' => '<string>', 'SupplementaryFeatures' => [ [ 'Name' => '<string>', 'Value' => '<string>', ], // ... ], ], 'IsAutoPredictor' => true || false, 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'OptimizationMetric' => 'WAPE|RMSE|AverageWeightedQuantileLoss|MASE|MAPE', 'PerformAutoML' => true || false, 'PerformHPO' => true || false, 'PredictorArn' => '<string>', 'PredictorExecutionDetails' => [ 'PredictorExecutions' => [ [ 'AlgorithmArn' => '<string>', 'TestWindows' => [ [ 'Message' => '<string>', 'Status' => '<string>', 'TestWindowEnd' => <DateTime>, 'TestWindowStart' => <DateTime>, ], // ... ], ], // ... ], ], 'PredictorName' => '<string>', 'Status' => '<string>', 'TrainingParameters' => ['<string>', ...], ]
Result Details
Members
- AlgorithmArn
-
- Type: string
The Amazon Resource Name (ARN) of the algorithm used for model training.
- AutoMLAlgorithmArns
-
- Type: Array of strings
When
PerformAutoML
is specified, the ARN of the chosen algorithm. - AutoMLOverrideStrategy
-
- Type: string
The
LatencyOptimized
AutoML override strategy is only available in private beta. Contact Amazon Web Services Support or your account manager to learn more about access privileges.The AutoML strategy used to train the predictor. Unless
LatencyOptimized
is specified, the AutoML strategy optimizes predictor accuracy.This parameter is only valid for predictors trained using AutoML.
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the model training task was created.
- DatasetImportJobArns
-
- Type: Array of strings
An array of the ARNs of the dataset import jobs used to import training data for the predictor.
- EncryptionConfig
-
- Type: EncryptionConfig structure
An Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.
- EstimatedTimeRemainingInMinutes
-
- Type: long (int|float)
The estimated time remaining in minutes for the predictor training job to complete.
- EvaluationParameters
-
- Type: EvaluationParameters structure
Used to override the default evaluation parameters of the specified algorithm. Amazon Forecast evaluates a predictor by splitting a dataset into training data and testing data. The evaluation parameters define how to perform the split and the number of iterations.
- FeaturizationConfig
-
- Type: FeaturizationConfig structure
The featurization configuration.
- ForecastHorizon
-
- Type: int
The number of time-steps of the forecast. The forecast horizon is also called the prediction length.
- ForecastTypes
-
- Type: Array of strings
The forecast types used during predictor training. Default value is
["0.1","0.5","0.9"]
- HPOConfig
-
- Type: HyperParameterTuningJobConfig structure
The hyperparameter override values for the algorithm.
- InputDataConfig
-
- Type: InputDataConfig structure
Describes the dataset group that contains the data to use to train the predictor.
- IsAutoPredictor
-
- Type: boolean
Whether the predictor was created with CreateAutoPredictor.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- OptimizationMetric
-
- Type: string
The accuracy metric used to optimize the predictor.
- PerformAutoML
-
- Type: boolean
Whether the predictor is set to perform AutoML.
- PerformHPO
-
- Type: boolean
Whether the predictor is set to perform hyperparameter optimization (HPO).
- PredictorArn
-
- Type: string
The ARN of the predictor.
- PredictorExecutionDetails
-
- Type: PredictorExecutionDetails structure
Details on the the status and results of the backtests performed to evaluate the accuracy of the predictor. You specify the number of backtests to perform when you call the operation.
- PredictorName
-
- Type: string
The name of the predictor.
- Status
-
- Type: string
The status of the predictor. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
-
CREATE_STOPPING
,CREATE_STOPPED
The
Status
of the predictor must beACTIVE
before you can use the predictor to create a forecast. - TrainingParameters
-
- Type: Associative array of custom strings keys (ParameterKey) to strings
The default training parameters or overrides selected during model training. When running AutoML or choosing HPO with CNN-QR or DeepAR+, the optimized values for the chosen hyperparameters are returned. For more information, see aws-forecast-choosing-recipes.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribePredictorBacktestExportJob
$result = $client->describePredictorBacktestExportJob
([/* ... */]); $promise = $client->describePredictorBacktestExportJobAsync
([/* ... */]);
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)
Parameter Syntax
$result = $client->describePredictorBacktestExportJob([ 'PredictorBacktestExportJobArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- PredictorBacktestExportJobArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the predictor backtest export job.
Result Syntax
[ 'CreationTime' => <DateTime>, 'Destination' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'Format' => '<string>', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'PredictorArn' => '<string>', 'PredictorBacktestExportJobArn' => '<string>', 'PredictorBacktestExportJobName' => '<string>', 'Status' => '<string>', ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the predictor backtest export job was created.
- Destination
-
- Type: DataDestination structure
The 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).
- Format
-
- Type: string
The format of the exported data, CSV or PARQUET.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
Information about any errors that may have occurred during the backtest export.
- PredictorArn
-
- Type: string
The Amazon Resource Name (ARN) of the predictor.
- PredictorBacktestExportJobArn
-
- Type: string
The Amazon Resource Name (ARN) of the predictor backtest export job.
- PredictorBacktestExportJobName
-
- Type: string
The name of the predictor backtest export job.
- Status
-
- Type: 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
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribeWhatIfAnalysis
$result = $client->describeWhatIfAnalysis
([/* ... */]); $promise = $client->describeWhatIfAnalysisAsync
([/* ... */]);
Describes the what-if analysis created using the CreateWhatIfAnalysis operation.
In addition to listing the properties provided in the CreateWhatIfAnalysis
request, this operation lists the following properties:
-
CreationTime
-
LastModificationTime
-
Message
- If an error occurred, information about the error. -
Status
Parameter Syntax
$result = $client->describeWhatIfAnalysis([ 'WhatIfAnalysisArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- WhatIfAnalysisArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the what-if analysis that you are interested in.
Result Syntax
[ 'CreationTime' => <DateTime>, 'EstimatedTimeRemainingInMinutes' => <integer>, 'ForecastArn' => '<string>', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'Status' => '<string>', 'TimeSeriesSelector' => [ 'TimeSeriesIdentifiers' => [ 'DataSource' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'Format' => '<string>', 'Schema' => [ 'Attributes' => [ [ 'AttributeName' => '<string>', 'AttributeType' => 'string|integer|float|timestamp|geolocation', ], // ... ], ], ], ], 'WhatIfAnalysisArn' => '<string>', 'WhatIfAnalysisName' => '<string>', ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the what-if analysis was created.
- EstimatedTimeRemainingInMinutes
-
- Type: long (int|float)
The approximate time remaining to complete the what-if analysis, in minutes.
- ForecastArn
-
- Type: string
The Amazon Resource Name (ARN) of the what-if forecast.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- Status
-
- Type: string
The status of the what-if analysis. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
CREATE_STOPPING
,CREATE_STOPPED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
The
Status
of the what-if analysis must beACTIVE
before you can access the analysis. - TimeSeriesSelector
-
- Type: TimeSeriesSelector structure
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
- WhatIfAnalysisArn
-
- Type: string
The Amazon Resource Name (ARN) of the what-if analysis.
- WhatIfAnalysisName
-
- Type: string
The name of the what-if analysis.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribeWhatIfForecast
$result = $client->describeWhatIfForecast
([/* ... */]); $promise = $client->describeWhatIfForecastAsync
([/* ... */]);
Describes the what-if forecast created using the CreateWhatIfForecast operation.
In addition to listing the properties provided in the CreateWhatIfForecast
request, this operation lists the following properties:
-
CreationTime
-
LastModificationTime
-
Message
- If an error occurred, information about the error. -
Status
Parameter Syntax
$result = $client->describeWhatIfForecast([ 'WhatIfForecastArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- WhatIfForecastArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the what-if forecast that you are interested in.
Result Syntax
[ 'CreationTime' => <DateTime>, 'EstimatedTimeRemainingInMinutes' => <integer>, 'ForecastTypes' => ['<string>', ...], 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'Status' => '<string>', 'TimeSeriesReplacementsDataSource' => [ 'Format' => '<string>', 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], 'Schema' => [ 'Attributes' => [ [ 'AttributeName' => '<string>', 'AttributeType' => 'string|integer|float|timestamp|geolocation', ], // ... ], ], 'TimestampFormat' => '<string>', ], 'TimeSeriesTransformations' => [ [ 'Action' => [ 'AttributeName' => '<string>', 'Operation' => 'ADD|SUBTRACT|MULTIPLY|DIVIDE', 'Value' => <float>, ], 'TimeSeriesConditions' => [ [ 'AttributeName' => '<string>', 'AttributeValue' => '<string>', 'Condition' => 'EQUALS|NOT_EQUALS|LESS_THAN|GREATER_THAN', ], // ... ], ], // ... ], 'WhatIfAnalysisArn' => '<string>', 'WhatIfForecastArn' => '<string>', 'WhatIfForecastName' => '<string>', ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the what-if forecast was created.
- EstimatedTimeRemainingInMinutes
-
- Type: long (int|float)
The approximate time remaining to complete the what-if forecast, in minutes.
- ForecastTypes
-
- Type: Array of strings
The quantiles at which probabilistic forecasts are generated. You can specify up to five quantiles per what-if forecast in the CreateWhatIfForecast operation. If you didn't specify quantiles, the default values are
["0.1", "0.5", "0.9"]
. - LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- Status
-
- Type: string
The status of the what-if forecast. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
CREATE_STOPPING
,CREATE_STOPPED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
The
Status
of the what-if forecast must beACTIVE
before you can access the forecast. - TimeSeriesReplacementsDataSource
-
- Type: TimeSeriesReplacementsDataSource structure
An array of
S3Config
,Schema
, andFormat
elements that describe the replacement time series. - TimeSeriesTransformations
-
- Type: Array of TimeSeriesTransformation structures
An array of
Action
andTimeSeriesConditions
elements that describe what transformations were applied to which time series. - WhatIfAnalysisArn
-
- Type: string
The Amazon Resource Name (ARN) of the what-if analysis that contains this forecast.
- WhatIfForecastArn
-
- Type: string
The Amazon Resource Name (ARN) of the what-if forecast.
- WhatIfForecastName
-
- Type: string
The name of the what-if forecast.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
DescribeWhatIfForecastExport
$result = $client->describeWhatIfForecastExport
([/* ... */]); $promise = $client->describeWhatIfForecastExportAsync
([/* ... */]);
Describes the what-if forecast export created using the CreateWhatIfForecastExport operation.
In addition to listing the properties provided in the CreateWhatIfForecastExport
request, this operation lists the following properties:
-
CreationTime
-
LastModificationTime
-
Message
- If an error occurred, information about the error. -
Status
Parameter Syntax
$result = $client->describeWhatIfForecastExport([ 'WhatIfForecastExportArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- WhatIfForecastExportArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the what-if forecast export that you are interested in.
Result Syntax
[ 'CreationTime' => <DateTime>, 'Destination' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'EstimatedTimeRemainingInMinutes' => <integer>, 'Format' => '<string>', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'Status' => '<string>', 'WhatIfForecastArns' => ['<string>', ...], 'WhatIfForecastExportArn' => '<string>', 'WhatIfForecastExportName' => '<string>', ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the what-if forecast export was created.
- Destination
-
- Type: DataDestination structure
The 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).
- EstimatedTimeRemainingInMinutes
-
- Type: long (int|float)
The approximate time remaining to complete the what-if forecast export, in minutes.
- Format
-
- Type: string
The format of the exported data, CSV or PARQUET.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- Status
-
- Type: string
The status of the what-if forecast. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
CREATE_STOPPING
,CREATE_STOPPED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
The
Status
of the what-if forecast export must beACTIVE
before you can access the forecast export. - WhatIfForecastArns
-
- Type: Array of strings
An array of Amazon Resource Names (ARNs) that represent all of the what-if forecasts exported in this resource.
- WhatIfForecastExportArn
-
- Type: string
The Amazon Resource Name (ARN) of the what-if forecast export.
- WhatIfForecastExportName
-
- Type: string
The name of the what-if forecast export.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
GetAccuracyMetrics
$result = $client->getAccuracyMetrics
([/* ... */]); $promise = $client->getAccuracyMetricsAsync
([/* ... */]);
Provides metrics on the accuracy of the models that were trained by the CreatePredictor operation. Use metrics to see how well the model performed and to decide whether to use the predictor to generate a forecast. For more information, see Predictor Metrics.
This operation generates metrics for each backtest window that was evaluated. The number of backtest windows (NumberOfBacktestWindows
) is specified using the EvaluationParameters object, which is optionally included in the CreatePredictor
request. If NumberOfBacktestWindows
isn't specified, the number defaults to one.
The parameters of the filling
method determine which items contribute to the metrics. If you want all items to contribute, specify zero
. If you want only those items that have complete data in the range being evaluated to contribute, specify nan
. For more information, see FeaturizationMethod.
Before you can get accuracy metrics, the Status
of the predictor must be ACTIVE
, signifying that training has completed. To get the status, use the DescribePredictor operation.
Parameter Syntax
$result = $client->getAccuracyMetrics([ 'PredictorArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- PredictorArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the predictor to get metrics for.
Result Syntax
[ 'AutoMLOverrideStrategy' => 'LatencyOptimized|AccuracyOptimized', 'IsAutoPredictor' => true || false, 'OptimizationMetric' => 'WAPE|RMSE|AverageWeightedQuantileLoss|MASE|MAPE', 'PredictorEvaluationResults' => [ [ 'AlgorithmArn' => '<string>', 'TestWindows' => [ [ 'EvaluationType' => 'SUMMARY|COMPUTED', 'ItemCount' => <integer>, 'Metrics' => [ 'AverageWeightedQuantileLoss' => <float>, 'ErrorMetrics' => [ [ 'ForecastType' => '<string>', 'MAPE' => <float>, 'MASE' => <float>, 'RMSE' => <float>, 'WAPE' => <float>, ], // ... ], 'RMSE' => <float>, 'WeightedQuantileLosses' => [ [ 'LossValue' => <float>, 'Quantile' => <float>, ], // ... ], ], 'TestWindowEnd' => <DateTime>, 'TestWindowStart' => <DateTime>, ], // ... ], ], // ... ], ]
Result Details
Members
- AutoMLOverrideStrategy
-
- Type: string
The
LatencyOptimized
AutoML override strategy is only available in private beta. Contact Amazon Web Services Support or your account manager to learn more about access privileges.The AutoML strategy used to train the predictor. Unless
LatencyOptimized
is specified, the AutoML strategy optimizes predictor accuracy.This parameter is only valid for predictors trained using AutoML.
- IsAutoPredictor
-
- Type: boolean
Whether the predictor was created with CreateAutoPredictor.
- OptimizationMetric
-
- Type: string
The accuracy metric used to optimize the predictor.
- PredictorEvaluationResults
-
- Type: Array of EvaluationResult structures
An array of results from evaluating the predictor.
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
ListDatasetGroups
$result = $client->listDatasetGroups
([/* ... */]); $promise = $client->listDatasetGroupsAsync
([/* ... */]);
Returns a list of dataset groups created using the CreateDatasetGroup operation. For each dataset group, this operation returns a summary of its properties, including its Amazon Resource Name (ARN). You can retrieve the complete set of properties by using the dataset group ARN with the DescribeDatasetGroup operation.
Parameter Syntax
$result = $client->listDatasetGroups([ 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- MaxResults
-
- Type: int
The number of items to return in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'DatasetGroups' => [ [ 'CreationTime' => <DateTime>, 'DatasetGroupArn' => '<string>', 'DatasetGroupName' => '<string>', 'LastModificationTime' => <DateTime>, ], // ... ], 'NextToken' => '<string>', ]
Result Details
Members
- DatasetGroups
-
- Type: Array of DatasetGroupSummary structures
An array of objects that summarize each dataset group's properties.
- NextToken
-
- Type: string
If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
ListDatasetImportJobs
$result = $client->listDatasetImportJobs
([/* ... */]); $promise = $client->listDatasetImportJobsAsync
([/* ... */]);
Returns a list of dataset import jobs created using the CreateDatasetImportJob operation. For each import job, this operation returns a summary of its properties, including its Amazon Resource Name (ARN). You can retrieve the complete set of properties by using the ARN with the DescribeDatasetImportJob operation. You can filter the list by providing an array of Filter objects.
Parameter Syntax
$result = $client->listDatasetImportJobs([ 'Filters' => [ [ 'Condition' => 'IS|IS_NOT', // REQUIRED 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- Filters
-
- Type: Array of Filter structures
An array of filters. For each filter, you provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the datasets that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
-
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. To include the datasets that match the statement, specifyIS
. To exclude matching datasets, specifyIS_NOT
. -
Key
- The name of the parameter to filter on. Valid values areDatasetArn
andStatus
. -
Value
- The value to match.
For example, to list all dataset import jobs whose status is ACTIVE, you specify the following filter:
"Filters": [ { "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]
- MaxResults
-
- Type: int
The number of items to return in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'DatasetImportJobs' => [ [ 'CreationTime' => <DateTime>, 'DataSource' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'DatasetImportJobArn' => '<string>', 'DatasetImportJobName' => '<string>', 'ImportMode' => 'FULL|INCREMENTAL', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'Status' => '<string>', ], // ... ], 'NextToken' => '<string>', ]
Result Details
Members
- DatasetImportJobs
-
- Type: Array of DatasetImportJobSummary structures
An array of objects that summarize each dataset import job's properties.
- NextToken
-
- Type: string
If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
ListDatasets
$result = $client->listDatasets
([/* ... */]); $promise = $client->listDatasetsAsync
([/* ... */]);
Returns a list of datasets created using the CreateDataset operation. For each dataset, a summary of its properties, including its Amazon Resource Name (ARN), is returned. To retrieve the complete set of properties, use the ARN with the DescribeDataset operation.
Parameter Syntax
$result = $client->listDatasets([ 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- MaxResults
-
- Type: int
The number of items to return in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'Datasets' => [ [ 'CreationTime' => <DateTime>, 'DatasetArn' => '<string>', 'DatasetName' => '<string>', 'DatasetType' => 'TARGET_TIME_SERIES|RELATED_TIME_SERIES|ITEM_METADATA', 'Domain' => 'RETAIL|CUSTOM|INVENTORY_PLANNING|EC2_CAPACITY|WORK_FORCE|WEB_TRAFFIC|METRICS', 'LastModificationTime' => <DateTime>, ], // ... ], 'NextToken' => '<string>', ]
Result Details
Members
- Datasets
-
- Type: Array of DatasetSummary structures
An array of objects that summarize each dataset's properties.
- NextToken
-
- Type: string
If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
ListExplainabilities
$result = $client->listExplainabilities
([/* ... */]); $promise = $client->listExplainabilitiesAsync
([/* ... */]);
Returns a list of Explainability resources created using the CreateExplainability operation. This operation returns a summary for each Explainability. You can filter the list using an array of Filter objects.
To retrieve the complete set of properties for a particular Explainability resource, use the ARN with the DescribeExplainability operation.
Parameter Syntax
$result = $client->listExplainabilities([ 'Filters' => [ [ 'Condition' => 'IS|IS_NOT', // REQUIRED 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- Filters
-
- Type: Array of Filter structures
An array of filters. For each filter, provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the resources that match the statement from the list. The match statement consists of a key and a value.Filter properties
-
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. -
Key
- The name of the parameter to filter on. Valid values areResourceArn
andStatus
. -
Value
- The value to match.
- MaxResults
-
- Type: int
The number of items returned in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'Explainabilities' => [ [ 'CreationTime' => <DateTime>, 'ExplainabilityArn' => '<string>', 'ExplainabilityConfig' => [ 'TimePointGranularity' => 'ALL|SPECIFIC', 'TimeSeriesGranularity' => 'ALL|SPECIFIC', ], 'ExplainabilityName' => '<string>', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'ResourceArn' => '<string>', 'Status' => '<string>', ], // ... ], 'NextToken' => '<string>', ]
Result Details
Members
- Explainabilities
-
- Type: Array of ExplainabilitySummary structures
An array of objects that summarize the properties of each Explainability resource.
- NextToken
-
- Type: string
Returns this token if the response is truncated. To retrieve the next set of results, use the token in the next request.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
ListExplainabilityExports
$result = $client->listExplainabilityExports
([/* ... */]); $promise = $client->listExplainabilityExportsAsync
([/* ... */]);
Returns a list of Explainability exports created using the CreateExplainabilityExport operation. This operation returns a summary for each Explainability export. You can filter the list using an array of Filter objects.
To retrieve the complete set of properties for a particular Explainability export, use the ARN with the DescribeExplainability operation.
Parameter Syntax
$result = $client->listExplainabilityExports([ 'Filters' => [ [ 'Condition' => 'IS|IS_NOT', // REQUIRED 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- Filters
-
- Type: Array of Filter structures
An array of filters. For each filter, provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude resources that match the statement from the list. The match statement consists of a key and a value.Filter properties
-
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. -
Key
- The name of the parameter to filter on. Valid values areResourceArn
andStatus
. -
Value
- The value to match.
- MaxResults
-
- Type: int
The number of items to return in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'ExplainabilityExports' => [ [ 'CreationTime' => <DateTime>, 'Destination' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'ExplainabilityExportArn' => '<string>', 'ExplainabilityExportName' => '<string>', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'Status' => '<string>', ], // ... ], 'NextToken' => '<string>', ]
Result Details
Members
- ExplainabilityExports
-
- Type: Array of ExplainabilityExportSummary structures
An array of objects that summarize the properties of each Explainability export.
- NextToken
-
- Type: string
Returns this token if the response is truncated. To retrieve the next set of results, use the token in the next request.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
ListForecastExportJobs
$result = $client->listForecastExportJobs
([/* ... */]); $promise = $client->listForecastExportJobsAsync
([/* ... */]);
Returns a list of forecast export jobs created using the CreateForecastExportJob operation. For each forecast export job, this operation returns a summary of its properties, including its Amazon Resource Name (ARN). To retrieve the complete set of properties, use the ARN with the DescribeForecastExportJob operation. You can filter the list using an array of Filter objects.
Parameter Syntax
$result = $client->listForecastExportJobs([ 'Filters' => [ [ 'Condition' => 'IS|IS_NOT', // REQUIRED 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- Filters
-
- Type: Array of Filter structures
An array of filters. For each filter, you provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the forecast export jobs that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
-
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. To include the forecast export jobs that match the statement, specifyIS
. To exclude matching forecast export jobs, specifyIS_NOT
. -
Key
- The name of the parameter to filter on. Valid values areForecastArn
andStatus
. -
Value
- The value to match.
For example, to list all jobs that export a forecast named electricityforecast, specify the following filter:
"Filters": [ { "Condition": "IS", "Key": "ForecastArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityforecast" } ]
- MaxResults
-
- Type: int
The number of items to return in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'ForecastExportJobs' => [ [ 'CreationTime' => <DateTime>, 'Destination' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'ForecastExportJobArn' => '<string>', 'ForecastExportJobName' => '<string>', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'Status' => '<string>', ], // ... ], 'NextToken' => '<string>', ]
Result Details
Members
- ForecastExportJobs
-
- Type: Array of ForecastExportJobSummary structures
An array of objects that summarize each export job's properties.
- NextToken
-
- Type: string
If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
ListForecasts
$result = $client->listForecasts
([/* ... */]); $promise = $client->listForecastsAsync
([/* ... */]);
Returns a list of forecasts created using the CreateForecast operation. For each forecast, this operation returns a summary of its properties, including its Amazon Resource Name (ARN). To retrieve the complete set of properties, specify the ARN with the DescribeForecast operation. You can filter the list using an array of Filter objects.
Parameter Syntax
$result = $client->listForecasts([ 'Filters' => [ [ 'Condition' => 'IS|IS_NOT', // REQUIRED 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- Filters
-
- Type: Array of Filter structures
An array of filters. For each filter, you provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the forecasts that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
-
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. To include the forecasts that match the statement, specifyIS
. To exclude matching forecasts, specifyIS_NOT
. -
Key
- The name of the parameter to filter on. Valid values areDatasetGroupArn
,PredictorArn
, andStatus
. -
Value
- The value to match.
For example, to list all forecasts whose status is not ACTIVE, you would specify:
"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" } ]
- MaxResults
-
- Type: int
The number of items to return in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'Forecasts' => [ [ 'CreatedUsingAutoPredictor' => true || false, 'CreationTime' => <DateTime>, 'DatasetGroupArn' => '<string>', 'ForecastArn' => '<string>', 'ForecastName' => '<string>', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'PredictorArn' => '<string>', 'Status' => '<string>', ], // ... ], 'NextToken' => '<string>', ]
Result Details
Members
- Forecasts
-
- Type: Array of ForecastSummary structures
An array of objects that summarize each forecast's properties.
- NextToken
-
- Type: string
If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
ListMonitorEvaluations
$result = $client->listMonitorEvaluations
([/* ... */]); $promise = $client->listMonitorEvaluationsAsync
([/* ... */]);
Returns a list of the monitoring evaluation results and predictor events collected by the monitor resource during different windows of time.
For information about monitoring see predictor-monitoring. For more information about retrieving monitoring results see Viewing Monitoring Results.
Parameter Syntax
$result = $client->listMonitorEvaluations([ 'Filters' => [ [ 'Condition' => 'IS|IS_NOT', // REQUIRED 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'MaxResults' => <integer>, 'MonitorArn' => '<string>', // REQUIRED 'NextToken' => '<string>', ]);
Parameter Details
Members
- Filters
-
- Type: Array of Filter structures
An array of filters. For each filter, provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the resources that match the statement from the list. The match statement consists of a key and a value.Filter properties
-
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. -
Key
- The name of the parameter to filter on. The only valid value isEvaluationState
. -
Value
- The value to match. Valid values are onlySUCCESS
orFAILURE
.
For example, to list only successful monitor evaluations, you would specify:
"Filters": [ { "Condition": "IS", "Key": "EvaluationState", "Value": "SUCCESS" } ]
- MaxResults
-
- Type: int
The maximum number of monitoring results to return.
- MonitorArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the monitor resource to get results from.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'NextToken' => '<string>', 'PredictorMonitorEvaluations' => [ [ 'EvaluationState' => '<string>', 'EvaluationTime' => <DateTime>, 'Message' => '<string>', 'MetricResults' => [ [ 'MetricName' => '<string>', 'MetricValue' => <float>, ], // ... ], 'MonitorArn' => '<string>', 'MonitorDataSource' => [ 'DatasetImportJobArn' => '<string>', 'ForecastArn' => '<string>', 'PredictorArn' => '<string>', ], 'NumItemsEvaluated' => <integer>, 'PredictorEvent' => [ 'Datetime' => <DateTime>, 'Detail' => '<string>', ], 'ResourceArn' => '<string>', 'WindowEndDatetime' => <DateTime>, 'WindowStartDatetime' => <DateTime>, ], // ... ], ]
Result Details
Members
- NextToken
-
- Type: string
If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
- PredictorMonitorEvaluations
-
- Type: Array of PredictorMonitorEvaluation structures
The monitoring results and predictor events collected by the monitor resource during different windows of time.
For information about monitoring see Viewing Monitoring Results. For more information about retrieving monitoring results see Viewing Monitoring Results.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
ListMonitors
$result = $client->listMonitors
([/* ... */]); $promise = $client->listMonitorsAsync
([/* ... */]);
Returns a list of monitors created with the CreateMonitor operation and CreateAutoPredictor operation. For each monitor resource, this operation returns of a summary of its properties, including its Amazon Resource Name (ARN). You can retrieve a complete set of properties of a monitor resource by specify the monitor's ARN in the DescribeMonitor operation.
Parameter Syntax
$result = $client->listMonitors([ 'Filters' => [ [ 'Condition' => 'IS|IS_NOT', // REQUIRED 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- Filters
-
- Type: Array of Filter structures
An array of filters. For each filter, provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the resources that match the statement from the list. The match statement consists of a key and a value.Filter properties
-
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. -
Key
- The name of the parameter to filter on. The only valid value isStatus
. -
Value
- The value to match.
For example, to list all monitors who's status is ACTIVE, you would specify:
"Filters": [ { "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]
- MaxResults
-
- Type: int
The maximum number of monitors to include in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'Monitors' => [ [ 'CreationTime' => <DateTime>, 'LastModificationTime' => <DateTime>, 'MonitorArn' => '<string>', 'MonitorName' => '<string>', 'ResourceArn' => '<string>', 'Status' => '<string>', ], // ... ], 'NextToken' => '<string>', ]
Result Details
Members
- Monitors
-
- Type: Array of MonitorSummary structures
An array of objects that summarize each monitor's properties.
- NextToken
-
- Type: string
If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
ListPredictorBacktestExportJobs
$result = $client->listPredictorBacktestExportJobs
([/* ... */]); $promise = $client->listPredictorBacktestExportJobsAsync
([/* ... */]);
Returns 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.
Parameter Syntax
$result = $client->listPredictorBacktestExportJobs([ 'Filters' => [ [ 'Condition' => 'IS|IS_NOT', // REQUIRED 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- Filters
-
- Type: Array of Filter structures
An array of filters. For each filter, provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the predictor backtest export jobs that match the statement from the list. The match statement consists of a key and a value.Filter properties
-
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. To include the predictor backtest export jobs that match the statement, specifyIS
. To exclude matching predictor backtest export jobs, specifyIS_NOT
. -
Key
- The name of the parameter to filter on. Valid values arePredictorArn
andStatus
. -
Value
- The value to match.
- MaxResults
-
- Type: int
The number of items to return in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'NextToken' => '<string>', 'PredictorBacktestExportJobs' => [ [ 'CreationTime' => <DateTime>, 'Destination' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'PredictorBacktestExportJobArn' => '<string>', 'PredictorBacktestExportJobName' => '<string>', 'Status' => '<string>', ], // ... ], ]
Result Details
Members
- NextToken
-
- Type: string
Returns this token if the response is truncated. To retrieve the next set of results, use the token in the next request.
- PredictorBacktestExportJobs
-
- Type: Array of PredictorBacktestExportJobSummary structures
An array of objects that summarize the properties of each predictor backtest export job.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
ListPredictors
$result = $client->listPredictors
([/* ... */]); $promise = $client->listPredictorsAsync
([/* ... */]);
Returns a list of predictors created using the CreateAutoPredictor or CreatePredictor operations. For each predictor, this operation returns a summary of its properties, including its Amazon Resource Name (ARN).
You can retrieve the complete set of properties by using the ARN with the DescribeAutoPredictor and DescribePredictor operations. You can filter the list using an array of Filter objects.
Parameter Syntax
$result = $client->listPredictors([ 'Filters' => [ [ 'Condition' => 'IS|IS_NOT', // REQUIRED 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- Filters
-
- Type: Array of Filter structures
An array of filters. For each filter, you provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the predictors that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
-
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. To include the predictors that match the statement, specifyIS
. To exclude matching predictors, specifyIS_NOT
. -
Key
- The name of the parameter to filter on. Valid values areDatasetGroupArn
andStatus
. -
Value
- The value to match.
For example, to list all predictors whose status is ACTIVE, you would specify:
"Filters": [ { "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } ]
- MaxResults
-
- Type: int
The number of items to return in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'NextToken' => '<string>', 'Predictors' => [ [ 'CreationTime' => <DateTime>, 'DatasetGroupArn' => '<string>', 'IsAutoPredictor' => true || false, 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'PredictorArn' => '<string>', 'PredictorName' => '<string>', 'ReferencePredictorSummary' => [ 'Arn' => '<string>', 'State' => 'Active|Deleted', ], 'Status' => '<string>', ], // ... ], ]
Result Details
Members
- NextToken
-
- Type: string
If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.
- Predictors
-
- Type: Array of PredictorSummary structures
An array of objects that summarize each predictor's properties.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
ListTagsForResource
$result = $client->listTagsForResource
([/* ... */]); $promise = $client->listTagsForResourceAsync
([/* ... */]);
Lists the tags for an Amazon Forecast resource.
Parameter Syntax
$result = $client->listTagsForResource([ 'ResourceArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ResourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the resource for which to list the tags.
Result Syntax
[ 'Tags' => [ [ 'Key' => '<string>', 'Value' => '<string>', ], // ... ], ]
Result Details
Members
- Tags
-
- Type: Array of Tag structures
The tags for the resource.
Errors
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
ListWhatIfAnalyses
$result = $client->listWhatIfAnalyses
([/* ... */]); $promise = $client->listWhatIfAnalysesAsync
([/* ... */]);
Returns a list of what-if analyses created using the CreateWhatIfAnalysis operation. For each what-if analysis, this operation returns a summary of its properties, including its Amazon Resource Name (ARN). You can retrieve the complete set of properties by using the what-if analysis ARN with the DescribeWhatIfAnalysis operation.
Parameter Syntax
$result = $client->listWhatIfAnalyses([ 'Filters' => [ [ 'Condition' => 'IS|IS_NOT', // REQUIRED 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- Filters
-
- Type: Array of Filter structures
An array of filters. For each filter, you provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the what-if analysis jobs that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
-
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. To include the what-if analysis jobs that match the statement, specifyIS
. To exclude matching what-if analysis jobs, specifyIS_NOT
. -
Key
- The name of the parameter to filter on. Valid values areWhatIfAnalysisArn
andStatus
. -
Value
- The value to match.
For example, to list all jobs that export a forecast named electricityWhatIf, specify the following filter:
"Filters": [ { "Condition": "IS", "Key": "WhatIfAnalysisArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWhatIf" } ]
- MaxResults
-
- Type: int
The number of items to return in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'NextToken' => '<string>', 'WhatIfAnalyses' => [ [ 'CreationTime' => <DateTime>, 'ForecastArn' => '<string>', 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'Status' => '<string>', 'WhatIfAnalysisArn' => '<string>', 'WhatIfAnalysisName' => '<string>', ], // ... ], ]
Result Details
Members
- NextToken
-
- Type: string
If the response is truncated, Forecast returns this token. To retrieve the next set of results, use the token in the next request.
- WhatIfAnalyses
-
- Type: Array of WhatIfAnalysisSummary structures
An array of
WhatIfAnalysisSummary
objects that describe the matched analyses.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
ListWhatIfForecastExports
$result = $client->listWhatIfForecastExports
([/* ... */]); $promise = $client->listWhatIfForecastExportsAsync
([/* ... */]);
Returns a list of what-if forecast exports created using the CreateWhatIfForecastExport operation. For each what-if forecast export, this operation returns a summary of its properties, including its Amazon Resource Name (ARN). You can retrieve the complete set of properties by using the what-if forecast export ARN with the DescribeWhatIfForecastExport operation.
Parameter Syntax
$result = $client->listWhatIfForecastExports([ 'Filters' => [ [ 'Condition' => 'IS|IS_NOT', // REQUIRED 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- Filters
-
- Type: Array of Filter structures
An array of filters. For each filter, you provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the what-if forecast export jobs that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
-
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. To include the forecast export jobs that match the statement, specifyIS
. To exclude matching forecast export jobs, specifyIS_NOT
. -
Key
- The name of the parameter to filter on. Valid values areWhatIfForecastExportArn
andStatus
. -
Value
- The value to match.
For example, to list all jobs that export a forecast named electricityWIFExport, specify the following filter:
"Filters": [ { "Condition": "IS", "Key": "WhatIfForecastExportArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWIFExport" } ]
- MaxResults
-
- Type: int
The number of items to return in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'NextToken' => '<string>', 'WhatIfForecastExports' => [ [ 'CreationTime' => <DateTime>, 'Destination' => [ 'S3Config' => [ 'KMSKeyArn' => '<string>', 'Path' => '<string>', 'RoleArn' => '<string>', ], ], 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'Status' => '<string>', 'WhatIfForecastArns' => ['<string>', ...], 'WhatIfForecastExportArn' => '<string>', 'WhatIfForecastExportName' => '<string>', ], // ... ], ]
Result Details
Members
- NextToken
-
- Type: string
If the response is truncated, Forecast returns this token. To retrieve the next set of results, use the token in the next request.
- WhatIfForecastExports
-
- Type: Array of WhatIfForecastExportSummary structures
An array of
WhatIfForecastExports
objects that describe the matched forecast exports.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
ListWhatIfForecasts
$result = $client->listWhatIfForecasts
([/* ... */]); $promise = $client->listWhatIfForecastsAsync
([/* ... */]);
Returns a list of what-if forecasts created using the CreateWhatIfForecast operation. For each what-if forecast, this operation returns a summary of its properties, including its Amazon Resource Name (ARN). You can retrieve the complete set of properties by using the what-if forecast ARN with the DescribeWhatIfForecast operation.
Parameter Syntax
$result = $client->listWhatIfForecasts([ 'Filters' => [ [ 'Condition' => 'IS|IS_NOT', // REQUIRED 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- Filters
-
- Type: Array of Filter structures
An array of filters. For each filter, you provide a condition and a match statement. The condition is either
IS
orIS_NOT
, which specifies whether to include or exclude the what-if forecast export jobs that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
-
Condition
- The condition to apply. Valid values areIS
andIS_NOT
. To include the forecast export jobs that match the statement, specifyIS
. To exclude matching forecast export jobs, specifyIS_NOT
. -
Key
- The name of the parameter to filter on. Valid values areWhatIfForecastArn
andStatus
. -
Value
- The value to match.
For example, to list all jobs that export a forecast named electricityWhatIfForecast, specify the following filter:
"Filters": [ { "Condition": "IS", "Key": "WhatIfForecastArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWhatIfForecast" } ]
- MaxResults
-
- Type: int
The number of items to return in the response.
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Result Syntax
[ 'NextToken' => '<string>', 'WhatIfForecasts' => [ [ 'CreationTime' => <DateTime>, 'LastModificationTime' => <DateTime>, 'Message' => '<string>', 'Status' => '<string>', 'WhatIfAnalysisArn' => '<string>', 'WhatIfForecastArn' => '<string>', 'WhatIfForecastName' => '<string>', ], // ... ], ]
Result Details
Members
- NextToken
-
- Type: string
If the result of the previous request was truncated, the response includes a
NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours. - WhatIfForecasts
-
- Type: Array of WhatIfForecastSummary structures
An array of
WhatIfForecasts
objects that describe the matched forecasts.
Errors
- InvalidNextTokenException:
The token is not valid. Tokens expire after 24 hours.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
ResumeResource
$result = $client->resumeResource
([/* ... */]); $promise = $client->resumeResourceAsync
([/* ... */]);
Resumes a stopped monitor resource.
Parameter Syntax
$result = $client->resumeResource([ 'ResourceArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ResourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the monitor resource to resume.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
StopResource
$result = $client->stopResource
([/* ... */]); $promise = $client->stopResourceAsync
([/* ... */]);
Stops a resource.
The resource undergoes the following states: CREATE_STOPPING
and CREATE_STOPPED
. You cannot resume a resource once it has been stopped.
This operation can be applied to the following resources (and their corresponding child resources):
-
Dataset Import Job
-
Predictor Job
-
Forecast Job
-
Forecast Export Job
-
Predictor Backtest Export Job
-
Explainability Job
-
Explainability Export Job
Parameter Syntax
$result = $client->stopResource([ 'ResourceArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ResourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the resource to stop. The supported ARNs are
DatasetImportJobArn
,PredictorArn
,PredictorBacktestExportJobArn
,ForecastArn
,ForecastExportJobArn
,ExplainabilityArn
, andExplainabilityExportArn
.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
TagResource
$result = $client->tagResource
([/* ... */]); $promise = $client->tagResourceAsync
([/* ... */]);
Associates the specified tags to a resource with the specified resourceArn
. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are also deleted.
Parameter Syntax
$result = $client->tagResource([ 'ResourceArn' => '<string>', // REQUIRED 'Tags' => [ // REQUIRED [ 'Key' => '<string>', // REQUIRED 'Value' => '<string>', // REQUIRED ], // ... ], ]);
Parameter Details
Members
- ResourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the resource for which to list the tags.
- Tags
-
- Required: Yes
- Type: Array of Tag structures
The tags to add to the resource. A tag is an array of key-value pairs.
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 Amazon Web Services use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value hasaws
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 ofaws
do not count against your tags per resource limit.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- LimitExceededException:
The limit on the number of resources per account has been exceeded.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
UntagResource
$result = $client->untagResource
([/* ... */]); $promise = $client->untagResourceAsync
([/* ... */]);
Deletes the specified tags from a resource.
Parameter Syntax
$result = $client->untagResource([ 'ResourceArn' => '<string>', // REQUIRED 'TagKeys' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
- ResourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that identifies the resource for which to list the tags.
- TagKeys
-
- Required: Yes
- Type: Array of strings
The keys of the tags to be removed.
Result Syntax
[]
Result Details
Errors
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
UpdateDatasetGroup
$result = $client->updateDatasetGroup
([/* ... */]); $promise = $client->updateDatasetGroupAsync
([/* ... */]);
Replaces the datasets in a dataset group with the specified datasets.
The Status
of the dataset group must be ACTIVE
before you can use the dataset group to create a predictor. Use the DescribeDatasetGroup operation to get the status.
Parameter Syntax
$result = $client->updateDatasetGroup([ 'DatasetArns' => ['<string>', ...], // REQUIRED 'DatasetGroupArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- DatasetArns
-
- Required: Yes
- Type: Array of strings
An array of the Amazon Resource Names (ARNs) of the datasets to add to the dataset group.
- DatasetGroupArn
-
- Required: Yes
- Type: string
The ARN of the dataset group.
Result Syntax
[]
Result Details
Errors
- InvalidInputException:
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
- ResourceNotFoundException:
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
- ResourceInUseException:
The specified resource is in use.
Shapes
Action
Description
Defines the modifications that you are making to an attribute for a what-if forecast. For example, you can use this operation to create a what-if forecast that investigates a 10% off sale on all shoes. To do this, you specify "AttributeName": "shoes"
, "Operation": "MULTIPLY"
, and "Value": "0.90"
. Pair this operation with the TimeSeriesCondition operation within the CreateWhatIfForecastRequest$TimeSeriesTransformations operation to define a subset of attribute items that are modified.
Members
- AttributeName
-
- Required: Yes
- Type: string
The related time series that you are modifying. This value is case insensitive.
- Operation
-
- Required: Yes
- Type: string
The operation that is applied to the provided attribute. Operations include:
-
ADD
- addsValue
to all rows ofAttributeName
. -
SUBTRACT
- subtractsValue
from all rows ofAttributeName
. -
MULTIPLY
- multiplies all rows ofAttributeName
byValue
. -
DIVIDE
- divides all rows ofAttributeName
byValue
.
- Value
-
- Required: Yes
- Type: double
The value that is applied for the chosen
Operation
.
AdditionalDataset
Description
Describes an additional dataset. This object is part of the DataConfig object. Forecast supports the Weather Index and Holidays additional datasets.
Weather Index
The Amazon Forecast Weather Index is a built-in dataset that incorporates historical and projected weather information into your model. The Weather Index supplements your datasets with over two years of historical weather data and up to 14 days of projected weather data. For more information, see Amazon Forecast Weather Index.
Holidays
Holidays is a built-in dataset that incorporates national holiday information into your model. It provides native support for the holiday calendars of 66 countries. To view the holiday calendars, refer to the Jollyday library. For more information, see Holidays Featurization.
Members
- Configuration
-
- Type: Associative array of custom strings keys (Name) to stringss
Weather Index
To enable the Weather Index, do not specify a value for
Configuration
.Holidays
Holidays
To enable Holidays, set
CountryCode
to one of the following two-letter country codes:-
"AL" - ALBANIA
-
"AR" - ARGENTINA
-
"AT" - AUSTRIA
-
"AU" - AUSTRALIA
-
"BA" - BOSNIA HERZEGOVINA
-
"BE" - BELGIUM
-
"BG" - BULGARIA
-
"BO" - BOLIVIA
-
"BR" - BRAZIL
-
"BY" - BELARUS
-
"CA" - CANADA
-
"CL" - CHILE
-
"CO" - COLOMBIA
-
"CR" - COSTA RICA
-
"HR" - CROATIA
-
"CZ" - CZECH REPUBLIC
-
"DK" - DENMARK
-
"EC" - ECUADOR
-
"EE" - ESTONIA
-
"ET" - ETHIOPIA
-
"FI" - FINLAND
-
"FR" - FRANCE
-
"DE" - GERMANY
-
"GR" - GREECE
-
"HU" - HUNGARY
-
"IS" - ICELAND
-
"IN" - INDIA
-
"IE" - IRELAND
-
"IT" - ITALY
-
"JP" - JAPAN
-
"KZ" - KAZAKHSTAN
-
"KR" - KOREA
-
"LV" - LATVIA
-
"LI" - LIECHTENSTEIN
-
"LT" - LITHUANIA
-
"LU" - LUXEMBOURG
-
"MK" - MACEDONIA
-
"MT" - MALTA
-
"MX" - MEXICO
-
"MD" - MOLDOVA
-
"ME" - MONTENEGRO
-
"NL" - NETHERLANDS
-
"NZ" - NEW ZEALAND
-
"NI" - NICARAGUA
-
"NG" - NIGERIA
-
"NO" - NORWAY
-
"PA" - PANAMA
-
"PY" - PARAGUAY
-
"PE" - PERU
-
"PL" - POLAND
-
"PT" - PORTUGAL
-
"RO" - ROMANIA
-
"RU" - RUSSIA
-
"RS" - SERBIA
-
"SK" - SLOVAKIA
-
"SI" - SLOVENIA
-
"ZA" - SOUTH AFRICA
-
"ES" - SPAIN
-
"SE" - SWEDEN
-
"CH" - SWITZERLAND
-
"UA" - UKRAINE
-
"AE" - UNITED ARAB EMIRATES
-
"US" - UNITED STATES
-
"UK" - UNITED KINGDOM
-
"UY" - URUGUAY
-
"VE" - VENEZUELA
- Name
-
- Required: Yes
- Type: string
The name of the additional dataset. Valid names:
"holiday"
and"weather"
.
AttributeConfig
Description
Provides information about the method used to transform attributes.
The following is an example using the RETAIL domain:
{
"AttributeName": "demand",
"Transformations": {"aggregation": "sum", "middlefill": "zero", "backfill": "zero"}
}
Members
- AttributeName
-
- Required: Yes
- Type: string
The name of the attribute as specified in the schema. Amazon Forecast supports the target field of the target time series and the related time series datasets. For example, for the RETAIL domain, the target is
demand
. - Transformations
-
- Required: Yes
- Type: Associative array of custom strings keys (Name) to strings
The method parameters (key-value pairs), which are a map of override parameters. Specify these parameters to override the default values. Related Time Series attributes do not accept aggregation parameters.
The following list shows the parameters and their valid values for the "filling" featurization method for a Target Time Series dataset. Default values are bolded.
-
aggregation
: sum,avg
,first
,min
,max
-
frontfill
: none -
middlefill
: zero,nan
(not a number),value
,median
,mean
,min
,max
-
backfill
: zero,nan
,value
,median
,mean
,min
,max
The following list shows the parameters and their valid values for a Related Time Series featurization method (there are no defaults):
-
middlefill
:zero
,value
,median
,mean
,min
,max
-
backfill
:zero
,value
,median
,mean
,min
,max
-
futurefill
:zero
,value
,median
,mean
,min
,max
To set a filling method to a specific value, set the fill parameter to
value
and define the value in a corresponding_value
parameter. For example, to set backfilling to a value of 2, include the following:"backfill": "value"
and"backfill_value":"2"
.
Baseline
Description
Metrics you can use as a baseline for comparison purposes. Use these metrics when you interpret monitoring results for an auto predictor.
Members
- PredictorBaseline
-
- Type: PredictorBaseline structure
The initial accuracy metrics for the predictor you are monitoring. Use these metrics as a baseline for comparison purposes as you use your predictor and the metrics change.
BaselineMetric
Description
An individual metric that you can use for comparison as you evaluate your monitoring results.
Members
- Name
-
- Type: string
The name of the metric.
- Value
-
- Type: double
The value for the metric.
CategoricalParameterRange
Description
Specifies a categorical hyperparameter and it's range of tunable values. This object is part of the ParameterRanges object.
Members
- Name
-
- Required: Yes
- Type: string
The name of the categorical hyperparameter to tune.
- Values
-
- Required: Yes
- Type: Array of strings
A list of the tunable categories for the hyperparameter.
ContinuousParameterRange
Description
Specifies a continuous hyperparameter and it's range of tunable values. This object is part of the ParameterRanges object.
Members
- MaxValue
-
- Required: Yes
- Type: double
The maximum tunable value of the hyperparameter.
- MinValue
-
- Required: Yes
- Type: double
The minimum tunable value of the hyperparameter.
- Name
-
- Required: Yes
- Type: string
The name of the hyperparameter to tune.
- ScalingType
-
- Type: string
The scale that hyperparameter tuning uses to search the hyperparameter range. Valid values:
- Auto
-
Amazon Forecast hyperparameter tuning chooses the best scale for the hyperparameter.
- Linear
-
Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.
- Logarithmic
-
Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.
Logarithmic scaling works only for ranges that have values greater than 0.
- ReverseLogarithmic
-
hyperparameter tuning searches the values in the hyperparameter range by using a reverse logarithmic scale.
Reverse logarithmic scaling works only for ranges that are entirely within the range 0 <= x < 1.0.
For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:
DataConfig
Description
The data configuration for your dataset group and any additional datasets.
Members
- AdditionalDatasets
-
- Type: Array of AdditionalDataset structures
Additional built-in datasets like Holidays and the Weather Index.
- AttributeConfigs
-
- Type: Array of AttributeConfig structures
Aggregation and filling options for attributes in your dataset group.
- DatasetGroupArn
-
- Required: Yes
- Type: string
The ARN of the dataset group used to train the predictor.
DataDestination
Description
The 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).
Members
- S3Config
-
- Required: Yes
- Type: S3Config structure
The path to an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the bucket.
DataSource
Description
The source of your data, an Identity and Access Management (IAM) role that allows Amazon Forecast to access the data and, optionally, an Key Management Service (KMS) key.
Members
- S3Config
-
- Required: Yes
- Type: S3Config structure
The path to the data stored in an Amazon Simple Storage Service (Amazon S3) bucket along with the credentials to access the data.
DatasetGroupSummary
Description
Provides a summary of the dataset group properties used in the ListDatasetGroups operation. To get the complete set of properties, call the DescribeDatasetGroup operation, and provide the DatasetGroupArn
.
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the dataset group was created.
- DatasetGroupArn
-
- Type: string
The Amazon Resource Name (ARN) of the dataset group.
- DatasetGroupName
-
- Type: string
The name of the dataset group.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the dataset group was created or last updated from a call to the UpdateDatasetGroup operation. While the dataset group is being updated,
LastModificationTime
is the current time of theListDatasetGroups
call.
DatasetImportJobSummary
Description
Provides a summary of the dataset import job properties used in the ListDatasetImportJobs operation. To get the complete set of properties, call the DescribeDatasetImportJob operation, and provide the DatasetImportJobArn
.
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the dataset import job was created.
- DataSource
-
- Type: DataSource structure
The location of the training data to import and an 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
includes an Key Management Service (KMS) key. - DatasetImportJobArn
-
- Type: string
The Amazon Resource Name (ARN) of the dataset import job.
- DatasetImportJobName
-
- Type: string
The name of the dataset import job.
- ImportMode
-
- Type: string
The import mode of the dataset import job, FULL or INCREMENTAL.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- Status
-
- Type: 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
DatasetSummary
Description
Provides a summary of the dataset properties used in the ListDatasets operation. To get the complete set of properties, call the DescribeDataset operation, and provide the DatasetArn
.
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the dataset was created.
- DatasetArn
-
- Type: string
The Amazon Resource Name (ARN) of the dataset.
- DatasetName
-
- Type: string
The name of the dataset.
- DatasetType
-
- Type: string
The dataset type.
- Domain
-
- Type: string
The domain associated with the dataset.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When you create a dataset,
LastModificationTime
is the same asCreationTime
. While data is being imported to the dataset,LastModificationTime
is the current time of theListDatasets
call. After a CreateDatasetImportJob operation has finished,LastModificationTime
is when the import job completed or failed.
EncryptionConfig
Description
An Key Management Service (KMS) key and an Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key. You can specify this optional object in the CreateDataset and CreatePredictor requests.
Members
- KMSKeyArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the KMS key.
- RoleArn
-
- Required: Yes
- Type: string
The ARN of the IAM role that Amazon Forecast can assume to access the KMS key.
Passing a role across Amazon Web Services accounts is not allowed. If you pass a role that isn't in your account, you get an
InvalidInputException
error.
ErrorMetric
Description
Provides detailed error metrics to evaluate the performance of a predictor. This object is part of the Metrics object.
Members
- ForecastType
-
- Type: string
The Forecast type used to compute WAPE, MAPE, MASE, and RMSE.
- MAPE
-
- Type: double
The Mean Absolute Percentage Error (MAPE)
- MASE
-
- Type: double
The Mean Absolute Scaled Error (MASE)
- RMSE
-
- Type: double
The root-mean-square error (RMSE).
- WAPE
-
- Type: double
The weighted absolute percentage error (WAPE).
EvaluationParameters
Description
Parameters that define how to split a dataset into training data and testing data, and the number of iterations to perform. These parameters are specified in the predefined algorithms but you can override them in the CreatePredictor request.
Members
- BackTestWindowOffset
-
- Type: int
The point from the end of the dataset where you want to split the data for model training and testing (evaluation). Specify the value as the number of data points. The default is the value of the forecast horizon.
BackTestWindowOffset
can be used to mimic a past virtual forecast start date. This value must be greater than or equal to the forecast horizon and less than half of the TARGET_TIME_SERIES dataset length.ForecastHorizon
<=BackTestWindowOffset
< 1/2 * TARGET_TIME_SERIES dataset length - NumberOfBacktestWindows
-
- Type: int
The number of times to split the input data. The default is 1. Valid values are 1 through 5.
EvaluationResult
Description
The results of evaluating an algorithm. Returned as part of the GetAccuracyMetrics response.
Members
- AlgorithmArn
-
- Type: string
The Amazon Resource Name (ARN) of the algorithm that was evaluated.
- TestWindows
-
- Type: Array of WindowSummary structures
The array of test windows used for evaluating the algorithm. The
NumberOfBacktestWindows
from the EvaluationParameters object determines the number of windows in the array.
ExplainabilityConfig
Description
The ExplainabilityConfig data type defines the number of time series and time points included in CreateExplainability.
If you provide a predictor ARN for ResourceArn
, you must set both TimePointGranularity
and TimeSeriesGranularity
to “ALL”. When creating Predictor Explainability, Amazon Forecast considers all time series and time points.
If you provide a forecast ARN for ResourceArn
, you can set TimePointGranularity
and TimeSeriesGranularity
to either “ALL” or “Specific”.
Members
- TimePointGranularity
-
- Required: Yes
- Type: string
To create an Explainability for all time points in your forecast horizon, use
ALL
. To create an Explainability for specific time points in your forecast horizon, useSPECIFIC
.Specify time points with the
StartDateTime
andEndDateTime
parameters within the CreateExplainability operation. - TimeSeriesGranularity
-
- Required: Yes
- Type: string
To create an Explainability for all time series in your datasets, use
ALL
. To create an Explainability for specific time series in your datasets, useSPECIFIC
.Specify time series by uploading a CSV or Parquet file to an Amazon S3 bucket and set the location within the DataDestination data type.
ExplainabilityExportSummary
Description
Provides a summary of the Explainability export properties used in the ListExplainabilityExports operation. To get a complete set of properties, call the DescribeExplainabilityExport operation, and provide the ExplainabilityExportArn
.
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the Explainability was created.
- Destination
-
- Type: DataDestination structure
The 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).
- ExplainabilityExportArn
-
- Type: string
The Amazon Resource Name (ARN) of the Explainability export.
- ExplainabilityExportName
-
- Type: string
The name of the Explainability export
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
Information about any errors that may have occurred during the Explainability export.
- Status
-
- Type: 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
ExplainabilityInfo
Description
Provides information about the Explainability resource.
Members
- ExplainabilityArn
-
- Type: string
The Amazon Resource Name (ARN) of the Explainability.
- Status
-
- Type: string
The status of the Explainability. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
CREATE_STOPPING
,CREATE_STOPPED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
ExplainabilitySummary
Description
Provides a summary of the Explainability properties used in the ListExplainabilities operation. To get a complete set of properties, call the DescribeExplainability operation, and provide the listed ExplainabilityArn
.
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the Explainability was created.
- ExplainabilityArn
-
- Type: string
The Amazon Resource Name (ARN) of the Explainability.
- ExplainabilityConfig
-
- Type: ExplainabilityConfig structure
The configuration settings that define the granularity of time series and time points for the Explainability.
- ExplainabilityName
-
- Type: string
The name of the Explainability.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
Information about any errors that may have occurred during the Explainability creation process.
- ResourceArn
-
- Type: string
The Amazon Resource Name (ARN) of the Predictor or Forecast used to create the Explainability.
- Status
-
- Type: string
The status of the Explainability. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
CREATE_STOPPING
,CREATE_STOPPED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
Featurization
Description
This object belongs to the CreatePredictor operation. If you created your predictor with CreateAutoPredictor, see AttributeConfig.
Provides featurization (transformation) information for a dataset field. This object is part of the FeaturizationConfig object.
For example:
{
"AttributeName": "demand",
FeaturizationPipeline [ {
"FeaturizationMethodName": "filling",
"FeaturizationMethodParameters": {"aggregation": "avg", "backfill": "nan"}
} ]
}
Members
- AttributeName
-
- Required: Yes
- Type: string
The name of the schema attribute that specifies the data field to be featurized. Amazon Forecast supports the target field of the
TARGET_TIME_SERIES
and theRELATED_TIME_SERIES
datasets. For example, for theRETAIL
domain, the target isdemand
, and for theCUSTOM
domain, the target istarget_value
. For more information, see howitworks-missing-values. - FeaturizationPipeline
-
- Type: Array of FeaturizationMethod structures
An array of one
FeaturizationMethod
object that specifies the feature transformation method.
FeaturizationConfig
Description
This object belongs to the CreatePredictor operation. If you created your predictor with CreateAutoPredictor, see AttributeConfig.
In a CreatePredictor operation, the specified algorithm trains a model using the specified dataset group. You can optionally tell the operation to modify data fields prior to training a model. These modifications are referred to as featurization.
You define featurization using the FeaturizationConfig
object. You specify an array of transformations, one for each field that you want to featurize. You then include the FeaturizationConfig
object in your CreatePredictor
request. Amazon Forecast applies the featurization to the TARGET_TIME_SERIES
and RELATED_TIME_SERIES
datasets before model training.
You can create multiple featurization configurations. For example, you might call the CreatePredictor
operation twice by specifying different featurization configurations.
Members
- Featurizations
-
- Type: Array of Featurization structures
An array of featurization (transformation) information for the fields of a dataset.
- ForecastDimensions
-
- Type: Array of strings
An array of dimension (field) names that specify how to group the generated forecast.
For example, suppose that you are generating a forecast for item sales across all of your stores, and your dataset contains a
store_id
field. If you want the sales forecast for each item by store, you would specifystore_id
as the dimension.All forecast dimensions specified in the
TARGET_TIME_SERIES
dataset don't need to be specified in theCreatePredictor
request. All forecast dimensions specified in theRELATED_TIME_SERIES
dataset must be specified in theCreatePredictor
request. - ForecastFrequency
-
- Required: Yes
- Type: string
The frequency of predictions in a forecast.
Valid intervals are an integer followed by Y (Year), M (Month), W (Week), D (Day), H (Hour), and min (Minute). For example, "1D" indicates every day and "15min" indicates every 15 minutes. You cannot specify a value that would overlap with the next larger frequency. That means, for example, you cannot specify a frequency of 60 minutes, because that is equivalent to 1 hour. The valid values for each frequency are the following:
-
Minute - 1-59
-
Hour - 1-23
-
Day - 1-6
-
Week - 1-4
-
Month - 1-11
-
Year - 1
Thus, if you want every other week forecasts, specify "2W". Or, if you want quarterly forecasts, you specify "3M".
The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset frequency.
When a RELATED_TIME_SERIES dataset is provided, the frequency must be equal to the TARGET_TIME_SERIES dataset frequency.
FeaturizationMethod
Description
Provides information about the method that featurizes (transforms) a dataset field. The method is part of the FeaturizationPipeline
of the Featurization object.
The following is an example of how you specify a FeaturizationMethod
object.
{
"FeaturizationMethodName": "filling",
"FeaturizationMethodParameters": {"aggregation": "sum", "middlefill": "zero", "backfill": "zero"}
}
Members
- FeaturizationMethodName
-
- Required: Yes
- Type: string
The name of the method. The "filling" method is the only supported method.
- FeaturizationMethodParameters
-
- Type: Associative array of custom strings keys (ParameterKey) to strings
The method parameters (key-value pairs), which are a map of override parameters. Specify these parameters to override the default values. Related Time Series attributes do not accept aggregation parameters.
The following list shows the parameters and their valid values for the "filling" featurization method for a Target Time Series dataset. Bold signifies the default value.
-
aggregation
: sum,avg
,first
,min
,max
-
frontfill
: none -
middlefill
: zero,nan
(not a number),value
,median
,mean
,min
,max
-
backfill
: zero,nan
,value
,median
,mean
,min
,max
The following list shows the parameters and their valid values for a Related Time Series featurization method (there are no defaults):
-
middlefill
:zero
,value
,median
,mean
,min
,max
-
backfill
:zero
,value
,median
,mean
,min
,max
-
futurefill
:zero
,value
,median
,mean
,min
,max
To set a filling method to a specific value, set the fill parameter to
value
and define the value in a corresponding_value
parameter. For example, to set backfilling to a value of 2, include the following:"backfill": "value"
and"backfill_value":"2"
.
Filter
Description
Describes a filter for choosing a subset of objects. Each filter consists of a condition and a match statement. The condition is either IS
or IS_NOT
, which specifies whether to include or exclude the objects that match the statement, respectively. The match statement consists of a key and a value.
Members
- Condition
-
- Required: Yes
- Type: string
The condition to apply. To include the objects that match the statement, specify
IS
. To exclude matching objects, specifyIS_NOT
. - Key
-
- Required: Yes
- Type: string
The name of the parameter to filter on.
- Value
-
- Required: Yes
- Type: string
The value to match.
ForecastExportJobSummary
Description
Provides a summary of the forecast export job properties used in the ListForecastExportJobs operation. To get the complete set of properties, call the DescribeForecastExportJob operation, and provide the listed ForecastExportJobArn
.
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the forecast export job was created.
- Destination
-
- Type: DataDestination structure
The path to the Amazon Simple Storage Service (Amazon S3) bucket where the forecast is exported.
- ForecastExportJobArn
-
- Type: string
The Amazon Resource Name (ARN) of the forecast export job.
- ForecastExportJobName
-
- Type: string
The name of the forecast export job.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- Status
-
- Type: 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
The
Status
of the forecast export job must beACTIVE
before you can access the forecast in your S3 bucket.
ForecastSummary
Description
Provides a summary of the forecast properties used in the ListForecasts operation. To get the complete set of properties, call the DescribeForecast operation, and provide the ForecastArn
that is listed in the summary.
Members
- CreatedUsingAutoPredictor
-
- Type: boolean
Whether the Forecast was created from an AutoPredictor.
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the forecast creation task was created.
- DatasetGroupArn
-
- Type: string
The Amazon Resource Name (ARN) of the dataset group that provided the data used to train the predictor.
- ForecastArn
-
- Type: string
The ARN of the forecast.
- ForecastName
-
- Type: string
The name of the forecast.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- PredictorArn
-
- Type: string
The ARN of the predictor used to generate the forecast.
- Status
-
- Type: 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
The
Status
of the forecast must beACTIVE
before you can query or export the forecast.
HyperParameterTuningJobConfig
Description
Configuration information for a hyperparameter tuning job. You specify this object in the CreatePredictor request.
A hyperparameter is a parameter that governs the model training process. You set hyperparameters before training starts, unlike model parameters, which are determined during training. The values of the hyperparameters effect which values are chosen for the model parameters.
In a hyperparameter tuning job, Amazon Forecast chooses the set of hyperparameter values that optimize a specified metric. Forecast accomplishes this by running many training jobs over a range of hyperparameter values. The optimum set of values depends on the algorithm, the training data, and the specified metric objective.
Members
- ParameterRanges
-
- Type: ParameterRanges structure
Specifies the ranges of valid values for the hyperparameters.
InputDataConfig
Description
This object belongs to the CreatePredictor operation. If you created your predictor with CreateAutoPredictor, see DataConfig.
The data used to train a predictor. The data includes a dataset group and any supplementary features. You specify this object in the CreatePredictor request.
Members
- DatasetGroupArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the dataset group.
- SupplementaryFeatures
-
- Type: Array of SupplementaryFeature structures
An array of supplementary features. The only supported feature is a holiday calendar.
IntegerParameterRange
Description
Specifies an integer hyperparameter and it's range of tunable values. This object is part of the ParameterRanges object.
Members
- MaxValue
-
- Required: Yes
- Type: int
The maximum tunable value of the hyperparameter.
- MinValue
-
- Required: Yes
- Type: int
The minimum tunable value of the hyperparameter.
- Name
-
- Required: Yes
- Type: string
The name of the hyperparameter to tune.
- ScalingType
-
- Type: string
The scale that hyperparameter tuning uses to search the hyperparameter range. Valid values:
- Auto
-
Amazon Forecast hyperparameter tuning chooses the best scale for the hyperparameter.
- Linear
-
Hyperparameter tuning searches the values in the hyperparameter range by using a linear scale.
- Logarithmic
-
Hyperparameter tuning searches the values in the hyperparameter range by using a logarithmic scale.
Logarithmic scaling works only for ranges that have values greater than 0.
- ReverseLogarithmic
-
Not supported for
IntegerParameterRange
.Reverse logarithmic scaling works only for ranges that are entirely within the range 0 <= x < 1.0.
For information about choosing a hyperparameter scale, see Hyperparameter Scaling. One of the following values:
InvalidInputException
Description
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
Members
- Message
-
- Type: string
InvalidNextTokenException
Description
The token is not valid. Tokens expire after 24 hours.
Members
- Message
-
- Type: string
LimitExceededException
Description
The limit on the number of resources per account has been exceeded.
Members
- Message
-
- Type: string
MetricResult
Description
An individual metric Forecast calculated when monitoring predictor usage. You can compare the value for this metric to the metric's value in the Baseline to see how your predictor's performance is changing.
For more information about metrics generated by Forecast see Evaluating Predictor Accuracy
Members
- MetricName
-
- Type: string
The name of the metric.
- MetricValue
-
- Type: double
The value for the metric.
Metrics
Description
Provides metrics that are used to evaluate the performance of a predictor. This object is part of the WindowSummary object.
Members
- AverageWeightedQuantileLoss
-
- Type: double
The average value of all weighted quantile losses.
- ErrorMetrics
-
- Type: Array of ErrorMetric structures
Provides detailed error metrics for each forecast type. Metrics include root-mean square-error (RMSE), mean absolute percentage error (MAPE), mean absolute scaled error (MASE), and weighted average percentage error (WAPE).
- RMSE
-
- Type: double
The root-mean-square error (RMSE).
- WeightedQuantileLosses
-
- Type: Array of WeightedQuantileLoss structures
An array of weighted quantile losses. Quantiles divide a probability distribution into regions of equal probability. The distribution in this case is the loss function.
MonitorConfig
Description
The configuration details for the predictor monitor.
Members
- MonitorName
-
- Required: Yes
- Type: string
The name of the monitor resource.
MonitorDataSource
Description
The source of the data the monitor used during the evaluation.
Members
- DatasetImportJobArn
-
- Type: string
The Amazon Resource Name (ARN) of the dataset import job used to import the data that initiated the monitor evaluation.
- ForecastArn
-
- Type: string
The Amazon Resource Name (ARN) of the forecast the monitor used during the evaluation.
- PredictorArn
-
- Type: string
The Amazon Resource Name (ARN) of the predictor resource you are monitoring.
MonitorInfo
Description
Provides information about the monitor resource.
Members
- MonitorArn
-
- Type: string
The Amazon Resource Name (ARN) of the monitor resource.
- Status
-
- Type: string
The status of the monitor. States include:
-
ACTIVE
-
ACTIVE_STOPPING
,ACTIVE_STOPPED
-
UPDATE_IN_PROGRESS
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
MonitorSummary
Description
Provides a summary of the monitor properties used in the ListMonitors operation. To get a complete set of properties, call the DescribeMonitor operation, and provide the listed MonitorArn
.
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the monitor resource was created.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the monitor resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
STOPPED
- When the resource stopped. -
ACTIVE
orCREATE_FAILED
- When the monitor creation finished or failed.
- MonitorArn
-
- Type: string
The Amazon Resource Name (ARN) of the monitor resource.
- MonitorName
-
- Type: string
The name of the monitor resource.
- ResourceArn
-
- Type: string
The Amazon Resource Name (ARN) of the predictor being monitored.
- Status
-
- Type: string
The status of the monitor. States include:
-
ACTIVE
-
ACTIVE_STOPPING
,ACTIVE_STOPPED
-
UPDATE_IN_PROGRESS
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
ParameterRanges
Description
Specifies the categorical, continuous, and integer hyperparameters, and their ranges of tunable values. The range of tunable values determines which values that a hyperparameter tuning job can choose for the specified hyperparameter. This object is part of the HyperParameterTuningJobConfig object.
Members
- CategoricalParameterRanges
-
- Type: Array of CategoricalParameterRange structures
Specifies the tunable range for each categorical hyperparameter.
- ContinuousParameterRanges
-
- Type: Array of ContinuousParameterRange structures
Specifies the tunable range for each continuous hyperparameter.
- IntegerParameterRanges
-
- Type: Array of IntegerParameterRange structures
Specifies the tunable range for each integer hyperparameter.
PredictorBacktestExportJobSummary
Description
Provides a summary of the predictor backtest export job properties used in the ListPredictorBacktestExportJobs operation. To get a complete set of properties, call the DescribePredictorBacktestExportJob operation, and provide the listed PredictorBacktestExportJobArn
.
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the predictor backtest export job was created.
- Destination
-
- Type: DataDestination structure
The 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).
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
Information about any errors that may have occurred during the backtest export.
- PredictorBacktestExportJobArn
-
- Type: string
The Amazon Resource Name (ARN) of the predictor backtest export job.
- PredictorBacktestExportJobName
-
- Type: string
The name of the predictor backtest export job.
- Status
-
- Type: 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
PredictorBaseline
Description
Metrics you can use as a baseline for comparison purposes. Use these metrics when you interpret monitoring results for an auto predictor.
Members
- BaselineMetrics
-
- Type: Array of BaselineMetric structures
The initial accuracy metrics for the predictor. Use these metrics as a baseline for comparison purposes as you use your predictor and the metrics change.
PredictorEvent
Description
Provides details about a predictor event, such as a retraining.
Members
- Datetime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp for when the event occurred.
- Detail
-
- Type: string
The type of event. For example,
Retrain
. A retraining event denotes the timepoint when a predictor was retrained. Any monitor results from before theDatetime
are from the previous predictor. Any new metrics are for the newly retrained predictor.
PredictorExecution
Description
The algorithm used to perform a backtest and the status of those tests.
Members
- AlgorithmArn
-
- Type: string
The ARN of the algorithm used to test the predictor.
- TestWindows
-
- Type: Array of TestWindowSummary structures
An array of test windows used to evaluate the algorithm. The
NumberOfBacktestWindows
from the object determines the number of windows in the array.
PredictorExecutionDetails
Description
Contains details on the backtests performed to evaluate the accuracy of the predictor. The tests are returned in descending order of accuracy, with the most accurate backtest appearing first. You specify the number of backtests to perform when you call the operation.
Members
- PredictorExecutions
-
- Type: Array of PredictorExecution structures
An array of the backtests performed to evaluate the accuracy of the predictor against a particular algorithm. The
NumberOfBacktestWindows
from the object determines the number of windows in the array.
PredictorMonitorEvaluation
Description
Describes the results of a monitor evaluation.
Members
- EvaluationState
-
- Type: string
The status of the monitor evaluation. The state can be
SUCCESS
orFAILURE
. - EvaluationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp that indicates when the monitor evaluation was started.
- Message
-
- Type: string
Information about any errors that may have occurred during the monitor evaluation.
- MetricResults
-
- Type: Array of MetricResult structures
A list of metrics Forecast calculated when monitoring a predictor. You can compare the value for each metric in the list to the metric's value in the Baseline to see how your predictor's performance is changing.
- MonitorArn
-
- Type: string
The Amazon Resource Name (ARN) of the monitor resource.
- MonitorDataSource
-
- Type: MonitorDataSource structure
The source of the data the monitor resource used during the evaluation.
- NumItemsEvaluated
-
- Type: long (int|float)
The number of items considered during the evaluation.
- PredictorEvent
-
- Type: PredictorEvent structure
Provides details about a predictor event, such as a retraining.
- ResourceArn
-
- Type: string
The Amazon Resource Name (ARN) of the resource to monitor.
- WindowEndDatetime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp that indicates the end of the window that is used for monitor evaluation.
- WindowStartDatetime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp that indicates the start of the window that is used for monitor evaluation.
PredictorSummary
Description
Provides a summary of the predictor properties that are used in the ListPredictors operation. To get the complete set of properties, call the DescribePredictor operation, and provide the listed PredictorArn
.
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the model training task was created.
- DatasetGroupArn
-
- Type: string
The Amazon Resource Name (ARN) of the dataset group that contains the data used to train the predictor.
- IsAutoPredictor
-
- Type: boolean
Whether AutoPredictor was used to create the predictor.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- PredictorArn
-
- Type: string
The ARN of the predictor.
- PredictorName
-
- Type: string
The name of the predictor.
- ReferencePredictorSummary
-
- Type: ReferencePredictorSummary structure
A summary of the reference predictor used if the predictor was retrained or upgraded.
- Status
-
- Type: string
The status of the predictor. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
-
CREATE_STOPPING
,CREATE_STOPPED
The
Status
of the predictor must beACTIVE
before you can use the predictor to create a forecast.
ReferencePredictorSummary
Description
Provides a summary of the reference predictor used when retraining or upgrading a predictor.
Members
- Arn
-
- Type: string
The ARN of the reference predictor.
- State
-
- Type: string
Whether the reference predictor is
Active
orDeleted
.
ResourceAlreadyExistsException
Description
There is already a resource with this name. Try again with a different name.
Members
- Message
-
- Type: string
ResourceInUseException
Description
The specified resource is in use.
Members
- Message
-
- Type: string
ResourceNotFoundException
Description
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
Members
- Message
-
- Type: string
S3Config
Description
The path to the file(s) in an Amazon Simple Storage Service (Amazon S3) bucket, and an Identity and Access Management (IAM) role that Amazon Forecast can assume to access the file(s). Optionally, includes an Key Management Service (KMS) key. This object is part of the DataSource object that is submitted in the CreateDatasetImportJob request, and part of the DataDestination object.
Members
- KMSKeyArn
-
- Type: string
The Amazon Resource Name (ARN) of an Key Management Service (KMS) key.
- Path
-
- Required: Yes
- Type: string
The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket.
- RoleArn
-
- Required: Yes
- Type: string
The ARN of the 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 Amazon Web Services accounts is not allowed. If you pass a role that isn't in your account, you get an
InvalidInputException
error.
Schema
Description
Defines the fields of a dataset.
Members
- Attributes
-
- Type: Array of SchemaAttribute structures
An array of attributes specifying the name and type of each field in a dataset.
SchemaAttribute
Description
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.
Members
- AttributeName
-
- Type: string
The name of the dataset field.
- AttributeType
-
- Type: 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).
Statistics
Description
Provides statistics for each data field imported into to an Amazon Forecast dataset with the CreateDatasetImportJob operation.
Members
- Avg
-
- Type: double
For a numeric field, the average value in the field.
- Count
-
- Type: int
The number of values in the field. If the response value is -1, refer to
CountLong
. - CountDistinct
-
- Type: int
The number of distinct values in the field. If the response value is -1, refer to
CountDistinctLong
. - CountDistinctLong
-
- Type: long (int|float)
The number of distinct values in the field.
CountDistinctLong
is used instead ofCountDistinct
if the value is greater than 2,147,483,647. - CountLong
-
- Type: long (int|float)
The number of values in the field.
CountLong
is used instead ofCount
if the value is greater than 2,147,483,647. - CountNan
-
- Type: int
The number of NAN (not a number) values in the field. If the response value is -1, refer to
CountNanLong
. - CountNanLong
-
- Type: long (int|float)
The number of NAN (not a number) values in the field.
CountNanLong
is used instead ofCountNan
if the value is greater than 2,147,483,647. - CountNull
-
- Type: int
The number of null values in the field. If the response value is -1, refer to
CountNullLong
. - CountNullLong
-
- Type: long (int|float)
The number of null values in the field.
CountNullLong
is used instead ofCountNull
if the value is greater than 2,147,483,647. - Max
-
- Type: string
For a numeric field, the maximum value in the field.
- Min
-
- Type: string
For a numeric field, the minimum value in the field.
- Stddev
-
- Type: double
For a numeric field, the standard deviation.
SupplementaryFeature
Description
This object belongs to the CreatePredictor operation. If you created your predictor with CreateAutoPredictor, see AdditionalDataset.
Describes a supplementary feature of a dataset group. This object is part of the InputDataConfig object. Forecast supports the Weather Index and Holidays built-in featurizations.
Weather Index
The Amazon Forecast Weather Index is a built-in featurization that incorporates historical and projected weather information into your model. The Weather Index supplements your datasets with over two years of historical weather data and up to 14 days of projected weather data. For more information, see Amazon Forecast Weather Index.
Holidays
Holidays is a built-in featurization that incorporates a feature-engineered dataset of national holiday information into your model. It provides native support for the holiday calendars of 66 countries. To view the holiday calendars, refer to the Jollyday library. For more information, see Holidays Featurization.
Members
- Name
-
- Required: Yes
- Type: string
The name of the feature. Valid values:
"holiday"
and"weather"
. - Value
-
- Required: Yes
- Type: string
Weather Index
To enable the Weather Index, set the value to
"true"
Holidays
To enable Holidays, specify a country with one of the following two-letter country codes:
-
"AL" - ALBANIA
-
"AR" - ARGENTINA
-
"AT" - AUSTRIA
-
"AU" - AUSTRALIA
-
"BA" - BOSNIA HERZEGOVINA
-
"BE" - BELGIUM
-
"BG" - BULGARIA
-
"BO" - BOLIVIA
-
"BR" - BRAZIL
-
"BY" - BELARUS
-
"CA" - CANADA
-
"CL" - CHILE
-
"CO" - COLOMBIA
-
"CR" - COSTA RICA
-
"HR" - CROATIA
-
"CZ" - CZECH REPUBLIC
-
"DK" - DENMARK
-
"EC" - ECUADOR
-
"EE" - ESTONIA
-
"ET" - ETHIOPIA
-
"FI" - FINLAND
-
"FR" - FRANCE
-
"DE" - GERMANY
-
"GR" - GREECE
-
"HU" - HUNGARY
-
"IS" - ICELAND
-
"IN" - INDIA
-
"IE" - IRELAND
-
"IT" - ITALY
-
"JP" - JAPAN
-
"KZ" - KAZAKHSTAN
-
"KR" - KOREA
-
"LV" - LATVIA
-
"LI" - LIECHTENSTEIN
-
"LT" - LITHUANIA
-
"LU" - LUXEMBOURG
-
"MK" - MACEDONIA
-
"MT" - MALTA
-
"MX" - MEXICO
-
"MD" - MOLDOVA
-
"ME" - MONTENEGRO
-
"NL" - NETHERLANDS
-
"NZ" - NEW ZEALAND
-
"NI" - NICARAGUA
-
"NG" - NIGERIA
-
"NO" - NORWAY
-
"PA" - PANAMA
-
"PY" - PARAGUAY
-
"PE" - PERU
-
"PL" - POLAND
-
"PT" - PORTUGAL
-
"RO" - ROMANIA
-
"RU" - RUSSIA
-
"RS" - SERBIA
-
"SK" - SLOVAKIA
-
"SI" - SLOVENIA
-
"ZA" - SOUTH AFRICA
-
"ES" - SPAIN
-
"SE" - SWEDEN
-
"CH" - SWITZERLAND
-
"UA" - UKRAINE
-
"AE" - UNITED ARAB EMIRATES
-
"US" - UNITED STATES
-
"UK" - UNITED KINGDOM
-
"UY" - URUGUAY
-
"VE" - VENEZUELA
Tag
Description
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 Amazon Web Services use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value hasaws
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 ofaws
do not count against your tags per resource limit.
Members
- Key
-
- Required: Yes
- Type: string
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
-
- Required: Yes
- Type: string
The optional part of a key-value pair that makes up a tag. A
value
acts as a descriptor within a tag category (key).
TestWindowSummary
Description
The status, start time, and end time of a backtest, as well as a failure reason if applicable.
Members
- Message
-
- Type: string
If the test failed, the reason why it failed.
- Status
-
- Type: string
The status of the test. Possible status values are:
-
ACTIVE
-
CREATE_IN_PROGRESS
-
CREATE_FAILED
- TestWindowEnd
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the test ended.
- TestWindowStart
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The time at which the test began.
TimeAlignmentBoundary
Description
The time boundary Forecast uses to align and aggregate your data to match your forecast frequency. Provide the unit of time and the time boundary as a key value pair. If you don't provide a time boundary, Forecast uses a set of Default Time Boundaries.
For more information about aggregation, see Data Aggregation for Different Forecast Frequencies. For more information setting a custom time boundary, see Specifying a Time Boundary.
Members
- DayOfMonth
-
- Type: int
The day of the month to use for time alignment during aggregation.
- DayOfWeek
-
- Type: string
The day of week to use for time alignment during aggregation. The day must be in uppercase.
- Hour
-
- Type: int
The hour of day to use for time alignment during aggregation.
- Month
-
- Type: string
The month to use for time alignment during aggregation. The month must be in uppercase.
TimeSeriesCondition
Description
Creates a subset of items within an attribute that are modified. For example, you can use this operation to create a subset of items that cost $5 or less. To do this, you specify "AttributeName": "price"
, "AttributeValue": "5"
, and "Condition": "LESS_THAN"
. Pair this operation with the Action operation within the CreateWhatIfForecastRequest$TimeSeriesTransformations operation to define how the attribute is modified.
Members
- AttributeName
-
- Required: Yes
- Type: string
The item_id, dimension name, IM name, or timestamp that you are modifying.
- AttributeValue
-
- Required: Yes
- Type: string
The value that is applied for the chosen
Condition
. - Condition
-
- Required: Yes
- Type: string
The condition to apply. Valid values are
EQUALS
,NOT_EQUALS
,LESS_THAN
andGREATER_THAN
.
TimeSeriesIdentifiers
Description
Details about the import file that contains the time series for which you want to create forecasts.
Members
- DataSource
-
- Type: DataSource structure
The source of your data, an Identity and Access Management (IAM) role that allows Amazon Forecast to access the data and, optionally, an Key Management Service (KMS) key.
- Format
-
- Type: string
The format of the data, either CSV or PARQUET.
- Schema
-
- Type: Schema structure
Defines the fields of a dataset.
TimeSeriesReplacementsDataSource
Description
A replacement dataset is a modified version of the baseline related time series that contains only the values that you want to include in a what-if forecast. The replacement dataset must contain the forecast dimensions and item identifiers in the baseline related time series as well as at least 1 changed time series. This dataset is merged with the baseline related time series to create a transformed dataset that is used for the what-if forecast.
Members
- Format
-
- Type: string
The format of the replacement data, CSV or PARQUET.
- S3Config
-
- Required: Yes
- Type: S3Config structure
The path to the file(s) in an Amazon Simple Storage Service (Amazon S3) bucket, and an Identity and Access Management (IAM) role that Amazon Forecast can assume to access the file(s). Optionally, includes an Key Management Service (KMS) key. This object is part of the DataSource object that is submitted in the CreateDatasetImportJob request, and part of the DataDestination object.
- Schema
-
- Required: Yes
- Type: Schema structure
Defines the fields of a dataset.
- TimestampFormat
-
- Type: string
The timestamp format of the replacement data.
TimeSeriesSelector
Description
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
Members
- TimeSeriesIdentifiers
-
- Type: TimeSeriesIdentifiers structure
Details about the import file that contains the time series for which you want to create forecasts.
TimeSeriesTransformation
Description
A transformation function is a pair of operations that select and modify the rows in a related time series. You select the rows that you want with a condition operation and you modify the rows with a transformation operation. All conditions are joined with an AND operation, meaning that all conditions must be true for the transformation to be applied. Transformations are applied in the order that they are listed.
Members
- Action
-
- Type: Action structure
An array of actions that define a time series and how it is transformed. These transformations create a new time series that is used for the what-if analysis.
- TimeSeriesConditions
-
- Type: Array of TimeSeriesCondition structures
An array of conditions that define which members of the related time series are transformed.
WeightedQuantileLoss
Description
The weighted loss value for a quantile. This object is part of the Metrics object.
Members
- LossValue
-
- Type: double
The difference between the predicted value and the actual value over the quantile, weighted (normalized) by dividing by the sum over all quantiles.
- Quantile
-
- Type: double
The quantile. Quantiles divide a probability distribution into regions of equal probability. For example, if the distribution was divided into 5 regions of equal probability, the quantiles would be 0.2, 0.4, 0.6, and 0.8.
WhatIfAnalysisSummary
Description
Provides a summary of the what-if analysis properties used in the ListWhatIfAnalyses operation. To get the complete set of properties, call the DescribeWhatIfAnalysis operation, and provide the WhatIfAnalysisArn
that is listed in the summary.
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the what-if analysis was created.
- ForecastArn
-
- Type: string
The Amazon Resource Name (ARN) of the baseline forecast that is being used in this what-if analysis.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- Status
-
- Type: string
The status of the what-if analysis. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
CREATE_STOPPING
,CREATE_STOPPED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
The
Status
of the what-if analysis must beACTIVE
before you can access the analysis. - WhatIfAnalysisArn
-
- Type: string
The Amazon Resource Name (ARN) of the what-if analysis.
- WhatIfAnalysisName
-
- Type: string
The name of the what-if analysis.
WhatIfForecastExportSummary
Description
Provides a summary of the what-if forecast export properties used in the ListWhatIfForecastExports operation. To get the complete set of properties, call the DescribeWhatIfForecastExport operation, and provide the WhatIfForecastExportArn
that is listed in the summary.
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the what-if forecast export was created.
- Destination
-
- Type: DataDestination structure
The path to the Amazon Simple Storage Service (Amazon S3) bucket where the forecast is exported.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- Status
-
- Type: string
The status of the what-if forecast export. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
CREATE_STOPPING
,CREATE_STOPPED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
The
Status
of the what-if analysis must beACTIVE
before you can access the analysis. - WhatIfForecastArns
-
- Type: Array of strings
An array of Amazon Resource Names (ARNs) that define the what-if forecasts included in the export.
- WhatIfForecastExportArn
-
- Type: string
The Amazon Resource Name (ARN) of the what-if forecast export.
- WhatIfForecastExportName
-
- Type: string
The what-if forecast export name.
WhatIfForecastSummary
Description
Provides a summary of the what-if forecast properties used in the ListWhatIfForecasts operation. To get the complete set of properties, call the DescribeWhatIfForecast operation, and provide the WhatIfForecastArn
that is listed in the summary.
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
When the what-if forecast was created.
- LastModificationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The last time the resource was modified. The timestamp depends on the status of the job:
-
CREATE_PENDING
- TheCreationTime
. -
CREATE_IN_PROGRESS
- The current timestamp. -
CREATE_STOPPING
- The current timestamp. -
CREATE_STOPPED
- When the job stopped. -
ACTIVE
orCREATE_FAILED
- When the job finished or failed.
- Message
-
- Type: string
If an error occurred, an informational message about the error.
- Status
-
- Type: string
The status of the what-if forecast. States include:
-
ACTIVE
-
CREATE_PENDING
,CREATE_IN_PROGRESS
,CREATE_FAILED
-
CREATE_STOPPING
,CREATE_STOPPED
-
DELETE_PENDING
,DELETE_IN_PROGRESS
,DELETE_FAILED
The
Status
of the what-if analysis must beACTIVE
before you can access the analysis. - WhatIfAnalysisArn
-
- Type: string
The Amazon Resource Name (ARN) of the what-if analysis that contains this what-if forecast.
- WhatIfForecastArn
-
- Type: string
The Amazon Resource Name (ARN) of the what-if forecast.
- WhatIfForecastName
-
- Type: string
The name of the what-if forecast.
WindowSummary
Description
The metrics for a time range within the evaluation portion of a dataset. This object is part of the EvaluationResult object.
The TestWindowStart
and TestWindowEnd
parameters are determined by the BackTestWindowOffset
parameter of the EvaluationParameters object.
Members
- EvaluationType
-
- Type: string
The type of evaluation.
-
SUMMARY
- The average metrics across all windows. -
COMPUTED
- The metrics for the specified window.
- ItemCount
-
- Type: int
The number of data points within the window.
- Metrics
-
- Type: Metrics structure
Provides metrics used to evaluate the performance of a predictor.
- TestWindowEnd
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp that defines the end of the window.
- TestWindowStart
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The timestamp that defines the start of the window.