Class: Aws::ForecastService::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::ForecastService::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-forecastservice/client.rb
Overview
An API client for ForecastService. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::ForecastService::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#create_auto_predictor(params = {}) ⇒ Types::CreateAutoPredictorResponse
Creates an Amazon Forecast predictor.
-
#create_dataset(params = {}) ⇒ Types::CreateDatasetResponse
Creates an Amazon Forecast dataset.
-
#create_dataset_group(params = {}) ⇒ Types::CreateDatasetGroupResponse
Creates a dataset group, which holds a collection of related datasets.
-
#create_dataset_import_job(params = {}) ⇒ Types::CreateDatasetImportJobResponse
Imports your training data to an Amazon Forecast dataset.
-
#create_explainability(params = {}) ⇒ Types::CreateExplainabilityResponse
<note markdown=“1”> Explainability is only available for Forecasts and Predictors generated from an AutoPredictor (CreateAutoPredictor).
-
#create_explainability_export(params = {}) ⇒ Types::CreateExplainabilityExportResponse
Exports an Explainability resource created by the CreateExplainability operation.
-
#create_forecast(params = {}) ⇒ Types::CreateForecastResponse
Creates a forecast for each item in the ‘TARGET_TIME_SERIES` dataset that was used to train the predictor.
-
#create_forecast_export_job(params = {}) ⇒ Types::CreateForecastExportJobResponse
Exports a forecast created by the CreateForecast operation to your Amazon Simple Storage Service (Amazon S3) bucket.
-
#create_monitor(params = {}) ⇒ Types::CreateMonitorResponse
Creates a predictor monitor resource for an existing auto predictor.
-
#create_predictor(params = {}) ⇒ Types::CreatePredictorResponse
<note markdown=“1”> This operation creates a legacy predictor that does not include all the predictor functionalities provided by Amazon Forecast.
-
#create_predictor_backtest_export_job(params = {}) ⇒ Types::CreatePredictorBacktestExportJobResponse
Exports backtest forecasts and accuracy metrics generated by the CreateAutoPredictor or CreatePredictor operations.
-
#create_what_if_analysis(params = {}) ⇒ Types::CreateWhatIfAnalysisResponse
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.
-
#create_what_if_forecast(params = {}) ⇒ Types::CreateWhatIfForecastResponse
A what-if forecast is a forecast that is created from a modified version of the baseline forecast.
-
#create_what_if_forecast_export(params = {}) ⇒ Types::CreateWhatIfForecastExportResponse
Exports a forecast created by the CreateWhatIfForecast operation to your Amazon Simple Storage Service (Amazon S3) bucket.
-
#delete_dataset(params = {}) ⇒ Struct
Deletes an Amazon Forecast dataset that was created using the [CreateDataset] operation.
-
#delete_dataset_group(params = {}) ⇒ Struct
Deletes a dataset group created using the [CreateDatasetGroup] operation.
-
#delete_dataset_import_job(params = {}) ⇒ Struct
Deletes a dataset import job created using the [CreateDatasetImportJob] operation.
-
#delete_explainability(params = {}) ⇒ Struct
Deletes an Explainability resource.
-
#delete_explainability_export(params = {}) ⇒ Struct
Deletes an Explainability export.
-
#delete_forecast(params = {}) ⇒ Struct
Deletes a forecast created using the CreateForecast operation.
-
#delete_forecast_export_job(params = {}) ⇒ Struct
Deletes a forecast export job created using the CreateForecastExportJob operation.
-
#delete_monitor(params = {}) ⇒ Struct
Deletes a monitor resource.
-
#delete_predictor(params = {}) ⇒ Struct
Deletes a predictor created using the DescribePredictor or CreatePredictor operations.
-
#delete_predictor_backtest_export_job(params = {}) ⇒ Struct
Deletes a predictor backtest export job.
-
#delete_resource_tree(params = {}) ⇒ Struct
Deletes an entire resource tree.
-
#delete_what_if_analysis(params = {}) ⇒ Struct
Deletes a what-if analysis created using the CreateWhatIfAnalysis operation.
-
#delete_what_if_forecast(params = {}) ⇒ Struct
Deletes a what-if forecast created using the CreateWhatIfForecast operation.
-
#delete_what_if_forecast_export(params = {}) ⇒ Struct
Deletes a what-if forecast export created using the CreateWhatIfForecastExport operation.
-
#describe_auto_predictor(params = {}) ⇒ Types::DescribeAutoPredictorResponse
Describes a predictor created using the CreateAutoPredictor operation.
-
#describe_dataset(params = {}) ⇒ Types::DescribeDatasetResponse
Describes an Amazon Forecast dataset created using the [CreateDataset] operation.
-
#describe_dataset_group(params = {}) ⇒ Types::DescribeDatasetGroupResponse
Describes a dataset group created using the [CreateDatasetGroup] operation.
-
#describe_dataset_import_job(params = {}) ⇒ Types::DescribeDatasetImportJobResponse
Describes a dataset import job created using the [CreateDatasetImportJob] operation.
-
#describe_explainability(params = {}) ⇒ Types::DescribeExplainabilityResponse
Describes an Explainability resource created using the CreateExplainability operation.
-
#describe_explainability_export(params = {}) ⇒ Types::DescribeExplainabilityExportResponse
Describes an Explainability export created using the CreateExplainabilityExport operation.
-
#describe_forecast(params = {}) ⇒ Types::DescribeForecastResponse
Describes a forecast created using the CreateForecast operation.
-
#describe_forecast_export_job(params = {}) ⇒ Types::DescribeForecastExportJobResponse
Describes a forecast export job created using the CreateForecastExportJob operation.
-
#describe_monitor(params = {}) ⇒ Types::DescribeMonitorResponse
Describes a monitor resource.
-
#describe_predictor(params = {}) ⇒ Types::DescribePredictorResponse
<note markdown=“1”> This operation is only valid for legacy predictors created with CreatePredictor.
-
#describe_predictor_backtest_export_job(params = {}) ⇒ Types::DescribePredictorBacktestExportJobResponse
Describes a predictor backtest export job created using the CreatePredictorBacktestExportJob operation.
-
#describe_what_if_analysis(params = {}) ⇒ Types::DescribeWhatIfAnalysisResponse
Describes the what-if analysis created using the CreateWhatIfAnalysis operation.
-
#describe_what_if_forecast(params = {}) ⇒ Types::DescribeWhatIfForecastResponse
Describes the what-if forecast created using the CreateWhatIfForecast operation.
-
#describe_what_if_forecast_export(params = {}) ⇒ Types::DescribeWhatIfForecastExportResponse
Describes the what-if forecast export created using the CreateWhatIfForecastExport operation.
-
#get_accuracy_metrics(params = {}) ⇒ Types::GetAccuracyMetricsResponse
Provides metrics on the accuracy of the models that were trained by the CreatePredictor operation.
-
#list_dataset_groups(params = {}) ⇒ Types::ListDatasetGroupsResponse
Returns a list of dataset groups created using the [CreateDatasetGroup] operation.
-
#list_dataset_import_jobs(params = {}) ⇒ Types::ListDatasetImportJobsResponse
Returns a list of dataset import jobs created using the [CreateDatasetImportJob] operation.
-
#list_datasets(params = {}) ⇒ Types::ListDatasetsResponse
Returns a list of datasets created using the [CreateDataset] operation.
-
#list_explainabilities(params = {}) ⇒ Types::ListExplainabilitiesResponse
Returns a list of Explainability resources created using the CreateExplainability operation.
-
#list_explainability_exports(params = {}) ⇒ Types::ListExplainabilityExportsResponse
Returns a list of Explainability exports created using the CreateExplainabilityExport operation.
-
#list_forecast_export_jobs(params = {}) ⇒ Types::ListForecastExportJobsResponse
Returns a list of forecast export jobs created using the CreateForecastExportJob operation.
-
#list_forecasts(params = {}) ⇒ Types::ListForecastsResponse
Returns a list of forecasts created using the CreateForecast operation.
-
#list_monitor_evaluations(params = {}) ⇒ Types::ListMonitorEvaluationsResponse
Returns a list of the monitoring evaluation results and predictor events collected by the monitor resource during different windows of time.
-
#list_monitors(params = {}) ⇒ Types::ListMonitorsResponse
Returns a list of monitors created with the CreateMonitor operation and CreateAutoPredictor operation.
-
#list_predictor_backtest_export_jobs(params = {}) ⇒ Types::ListPredictorBacktestExportJobsResponse
Returns a list of predictor backtest export jobs created using the CreatePredictorBacktestExportJob operation.
-
#list_predictors(params = {}) ⇒ Types::ListPredictorsResponse
Returns a list of predictors created using the CreateAutoPredictor or CreatePredictor operations.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for an Amazon Forecast resource.
-
#list_what_if_analyses(params = {}) ⇒ Types::ListWhatIfAnalysesResponse
Returns a list of what-if analyses created using the CreateWhatIfAnalysis operation.
-
#list_what_if_forecast_exports(params = {}) ⇒ Types::ListWhatIfForecastExportsResponse
Returns a list of what-if forecast exports created using the CreateWhatIfForecastExport operation.
-
#list_what_if_forecasts(params = {}) ⇒ Types::ListWhatIfForecastsResponse
Returns a list of what-if forecasts created using the CreateWhatIfForecast operation.
-
#resume_resource(params = {}) ⇒ Struct
Resumes a stopped monitor resource.
-
#stop_resource(params = {}) ⇒ Struct
Stops a resource.
-
#tag_resource(params = {}) ⇒ Struct
Associates the specified tags to a resource with the specified ‘resourceArn`.
-
#untag_resource(params = {}) ⇒ Struct
Deletes the specified tags from a resource.
-
#update_dataset_group(params = {}) ⇒ Struct
Replaces the datasets in a dataset group with the specified datasets.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
474 475 476 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 474 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5393 5394 5395 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 5393 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5396 5397 5398 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 5396 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 5366 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::ForecastService') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-forecastservice' context[:gem_version] = '1.69.0' Seahorse::Client::Request.new(handlers, context) end |
#create_auto_predictor(params = {}) ⇒ Types::CreateAutoPredictorResponse
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`.
724 725 726 727 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 724 def create_auto_predictor(params = {}, = {}) req = build_request(:create_auto_predictor, params) req.send_request() end |
#create_dataset(params = {}) ⇒ Types::CreateDatasetResponse
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].
<note markdown=“1”> The ‘Status` of a dataset must be `ACTIVE` before you can import training data. Use the [DescribeDataset] operation to get the status.
</note>
[1]: docs.aws.amazon.com/forecast/latest/dg/howitworks-datasets-groups.html [2]: docs.aws.amazon.com/forecast/latest/dg/API_ListDatasets.html [3]: github.com/aws-samples/amazon-forecast-samples [4]: docs.aws.amazon.com/forecast/latest/dg/API_DescribeDataset.html
906 907 908 909 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 906 def create_dataset(params = {}, = {}) req = build_request(:create_dataset, params) req.send_request() end |
#create_dataset_group(params = {}) ⇒ Types::CreateDatasetGroupResponse
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][3
-
operation.
<note markdown=“1”> 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][4
-
operation.
</note>
[1]: docs.aws.amazon.com/forecast/latest/dg/API_UpdateDatasetGroup.html [2]: docs.aws.amazon.com/forecast/latest/dg/howitworks-datasets-groups.html [3]: docs.aws.amazon.com/forecast/latest/dg/API_ListDatasetGroups.html [4]: docs.aws.amazon.com/forecast/latest/dg/API_DescribeDatasetGroup.html
1017 1018 1019 1020 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 1017 def create_dataset_group(params = {}, = {}) req = build_request(:create_dataset_group, params) req.send_request() end |
#create_dataset_import_job(params = {}) ⇒ Types::CreateDatasetImportJobResponse
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.
[1]: docs.aws.amazon.com/forecast/latest/dg/API_DataSource.html [2]: docs.aws.amazon.com/forecast/latest/dg/aws-forecast-iam-roles.html [3]: docs.aws.amazon.com/forecast/latest/dg/API_ListDatasetImportJobs.html
1205 1206 1207 1208 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 1205 def create_dataset_import_job(params = {}, = {}) req = build_request(:create_dataset_import_job, params) req.send_request() end |
#create_explainability(params = {}) ⇒ Types::CreateExplainabilityResponse
<note markdown=“1”> Explainability is only available for Forecasts and Predictors generated from an AutoPredictor (CreateAutoPredictor)
</note>
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**
<note markdown=“1”> You can only have one Explainability resource per predictor. If you already enabled ‘ExplainPredictor` in CreateAutoPredictor, that predictor already has an Explainability resource.
</note>
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**
<note markdown=“1”> You can specify a maximum of 50 time series and 500 time points.
</note>
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.
1405 1406 1407 1408 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 1405 def create_explainability(params = {}, = {}) req = build_request(:create_explainability, params) req.send_request() end |
#create_explainability_export(params = {}) ⇒ Types::CreateExplainabilityExportResponse
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.
<note markdown=“1”> 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.
</note>
1500 1501 1502 1503 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 1500 def create_explainability_export(params = {}, = {}) req = build_request(:create_explainability_export, params) req.send_request() end |
#create_forecast(params = {}) ⇒ Types::CreateForecastResponse
Creates a forecast for each item in the ‘TARGET_TIME_SERIES` dataset that was used to train the predictor. This is known as inference. To retrieve the forecast for a single item at low latency, use the operation. To export the complete forecast into your Amazon Simple Storage Service (Amazon S3) bucket, use the CreateForecastExportJob operation.
The range of the forecast is determined by the ‘ForecastHorizon` value, which you specify in the CreatePredictor request. When you query a forecast, you can request a specific date range within the forecast.
To get a list of all your forecasts, use the ListForecasts operation.
<note markdown=“1”> The forecasts generated by Amazon Forecast are in the same time zone as the dataset that was used to create the predictor.
</note>
For more information, see howitworks-forecast.
<note markdown=“1”> The ‘Status` of the forecast must be `ACTIVE` before you can query or export the forecast. Use the DescribeForecast operation to get the status.
</note>
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.
1649 1650 1651 1652 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 1649 def create_forecast(params = {}, = {}) req = build_request(:create_forecast, params) req.send_request() end |
#create_forecast_export_job(params = {}) ⇒ Types::CreateForecastExportJobResponse
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.
<note markdown=“1”> 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.
</note>
1764 1765 1766 1767 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 1764 def create_forecast_export_job(params = {}, = {}) req = build_request(:create_forecast_export_job, params) req.send_request() end |
#create_monitor(params = {}) ⇒ Types::CreateMonitorResponse
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].
[1]: docs.aws.amazon.com/forecast/latest/dg/predictor-monitoring.html
1816 1817 1818 1819 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 1816 def create_monitor(params = {}, = {}) req = build_request(:create_monitor, params) req.send_request() end |
#create_predictor(params = {}) ⇒ Types::CreatePredictorResponse
<note markdown=“1”> 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.
</note>
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.
<note markdown=“1”> 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.
</note>
2133 2134 2135 2136 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2133 def create_predictor(params = {}, = {}) req = build_request(:create_predictor, params) req.send_request() end |
#create_predictor_backtest_export_job(params = {}) ⇒ Types::CreatePredictorBacktestExportJobResponse
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.
<note markdown=“1”> 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.
</note>
2238 2239 2240 2241 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2238 def create_predictor_backtest_export_job(params = {}, = {}) req = build_request(:create_predictor_backtest_export_job, params) req.send_request() end |
#create_what_if_analysis(params = {}) ⇒ Types::CreateWhatIfAnalysisResponse
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.
2342 2343 2344 2345 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2342 def create_what_if_analysis(params = {}, = {}) req = build_request(:create_what_if_analysis, params) req.send_request() end |
#create_what_if_forecast(params = {}) ⇒ Types::CreateWhatIfForecastResponse
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.
2448 2449 2450 2451 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2448 def create_what_if_forecast(params = {}, = {}) req = build_request(:create_what_if_forecast, params) req.send_request() end |
#create_what_if_forecast_export(params = {}) ⇒ Types::CreateWhatIfForecastExportResponse
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.
<note markdown=“1”> 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.
</note>
2536 2537 2538 2539 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2536 def create_what_if_forecast_export(params = {}, = {}) req = build_request(:create_what_if_forecast_export, params) req.send_request() end |
#delete_dataset(params = {}) ⇒ Struct
Deletes an Amazon Forecast dataset that was created using the
- CreateDataset][1
-
operation. You can only delete datasets that have a
status of ‘ACTIVE` or `CREATE_FAILED`. To get the status use the
- DescribeDataset][2
-
operation.
<note markdown=“1”> Forecast does not automatically update any dataset groups that contain the deleted dataset. In order to update the dataset group, use the
- UpdateDatasetGroup][3
-
operation, omitting the deleted dataset’s
ARN.
</note>
[1]: docs.aws.amazon.com/forecast/latest/dg/API_CreateDataset.html [2]: docs.aws.amazon.com/forecast/latest/dg/API_DescribeDataset.html [3]: docs.aws.amazon.com/forecast/latest/dg/API_UpdateDatasetGroup.html
2574 2575 2576 2577 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2574 def delete_dataset(params = {}, = {}) req = build_request(:delete_dataset, params) req.send_request() end |
#delete_dataset_group(params = {}) ⇒ Struct
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.
[1]: docs.aws.amazon.com/forecast/latest/dg/API_CreateDatasetGroup.html [2]: docs.aws.amazon.com/forecast/latest/dg/API_DescribeDatasetGroup.html
2607 2608 2609 2610 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2607 def delete_dataset_group(params = {}, = {}) req = build_request(:delete_dataset_group, params) req.send_request() end |
#delete_dataset_import_job(params = {}) ⇒ Struct
Deletes a dataset import job created using the
- CreateDatasetImportJob][1
-
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.
[1]: docs.aws.amazon.com/forecast/latest/dg/API_CreateDatasetImportJob.html [2]: docs.aws.amazon.com/forecast/latest/dg/API_DescribeDatasetImportJob.html
2637 2638 2639 2640 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2637 def delete_dataset_import_job(params = {}, = {}) req = build_request(:delete_dataset_import_job, params) req.send_request() end |
#delete_explainability(params = {}) ⇒ Struct
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.
2664 2665 2666 2667 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2664 def delete_explainability(params = {}, = {}) req = build_request(:delete_explainability, params) req.send_request() end |
#delete_explainability_export(params = {}) ⇒ Struct
Deletes an Explainability export.
2686 2687 2688 2689 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2686 def delete_explainability_export(params = {}, = {}) req = build_request(:delete_explainability_export, params) req.send_request() end |
#delete_forecast(params = {}) ⇒ Struct
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.
2714 2715 2716 2717 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2714 def delete_forecast(params = {}, = {}) req = build_request(:delete_forecast, params) req.send_request() end |
#delete_forecast_export_job(params = {}) ⇒ Struct
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.
2739 2740 2741 2742 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2739 def delete_forecast_export_job(params = {}, = {}) req = build_request(:delete_forecast_export_job, params) req.send_request() end |
#delete_monitor(params = {}) ⇒ Struct
Deletes a monitor resource. You can only delete a monitor resource with a status of ‘ACTIVE`, `ACTIVE_STOPPED`, `CREATE_FAILED`, or `CREATE_STOPPED`.
2763 2764 2765 2766 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2763 def delete_monitor(params = {}, = {}) req = build_request(:delete_monitor, params) req.send_request() end |
#delete_predictor(params = {}) ⇒ Struct
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.
2788 2789 2790 2791 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2788 def delete_predictor(params = {}, = {}) req = build_request(:delete_predictor, params) req.send_request() end |
#delete_predictor_backtest_export_job(params = {}) ⇒ Struct
Deletes a predictor backtest export job.
2811 2812 2813 2814 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2811 def delete_predictor_backtest_export_job(params = {}, = {}) req = build_request(:delete_predictor_backtest_export_job, params) req.send_request() end |
#delete_resource_tree(params = {}) ⇒ Struct
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
<note markdown=“1”> ‘DeleteResourceTree` will only delete Amazon Forecast resources, and will not delete datasets or exported files stored in Amazon S3.
</note>
2858 2859 2860 2861 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2858 def delete_resource_tree(params = {}, = {}) req = build_request(:delete_resource_tree, params) req.send_request() end |
#delete_what_if_analysis(params = {}) ⇒ Struct
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.
2887 2888 2889 2890 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2887 def delete_what_if_analysis(params = {}, = {}) req = build_request(:delete_what_if_analysis, params) req.send_request() end |
#delete_what_if_forecast(params = {}) ⇒ Struct
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.
2917 2918 2919 2920 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2917 def delete_what_if_forecast(params = {}, = {}) req = build_request(:delete_what_if_forecast, params) req.send_request() end |
#delete_what_if_forecast_export(params = {}) ⇒ Struct
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.
2943 2944 2945 2946 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 2943 def delete_what_if_forecast_export(params = {}, = {}) req = build_request(:delete_what_if_forecast_export, params) req.send_request() end |
#describe_auto_predictor(params = {}) ⇒ Types::DescribeAutoPredictorResponse
Describes a predictor created using the CreateAutoPredictor operation.
3026 3027 3028 3029 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3026 def describe_auto_predictor(params = {}, = {}) req = build_request(:describe_auto_predictor, params) req.send_request() end |
#describe_dataset(params = {}) ⇒ Types::DescribeDatasetResponse
Describes an Amazon Forecast dataset created using the
- CreateDataset][1
-
operation.
In addition to listing the parameters specified in the ‘CreateDataset` request, this operation includes the following dataset properties:
-
‘CreationTime`
-
‘LastModificationTime`
-
‘Status`
[1]: docs.aws.amazon.com/forecast/latest/dg/API_CreateDataset.html
3089 3090 3091 3092 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3089 def describe_dataset(params = {}, = {}) req = build_request(:describe_dataset, params) req.send_request() end |
#describe_dataset_group(params = {}) ⇒ Types::DescribeDatasetGroupResponse
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`
[1]: docs.aws.amazon.com/forecast/latest/dg/API_CreateDatasetGroup.html
3147 3148 3149 3150 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3147 def describe_dataset_group(params = {}, = {}) req = build_request(:describe_dataset_group, params) req.send_request() end |
#describe_dataset_import_job(params = {}) ⇒ Types::DescribeDatasetImportJobResponse
Describes a dataset import job created using the
- CreateDatasetImportJob][1
-
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.
[1]: docs.aws.amazon.com/forecast/latest/dg/API_CreateDatasetImportJob.html
3242 3243 3244 3245 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3242 def describe_dataset_import_job(params = {}, = {}) req = build_request(:describe_dataset_import_job, params) req.send_request() end |
#describe_explainability(params = {}) ⇒ Types::DescribeExplainabilityResponse
Describes an Explainability resource created using the CreateExplainability operation.
3302 3303 3304 3305 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3302 def describe_explainability(params = {}, = {}) req = build_request(:describe_explainability, params) req.send_request() end |
#describe_explainability_export(params = {}) ⇒ Types::DescribeExplainabilityExportResponse
Describes an Explainability export created using the CreateExplainabilityExport operation.
3349 3350 3351 3352 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3349 def describe_explainability_export(params = {}, = {}) req = build_request(:describe_explainability_export, params) req.send_request() end |
#describe_forecast(params = {}) ⇒ Types::DescribeForecastResponse
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.
3418 3419 3420 3421 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3418 def describe_forecast(params = {}, = {}) req = build_request(:describe_forecast, params) req.send_request() end |
#describe_forecast_export_job(params = {}) ⇒ Types::DescribeForecastExportJobResponse
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.
3477 3478 3479 3480 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3477 def describe_forecast_export_job(params = {}, = {}) req = build_request(:describe_forecast_export_job, params) req.send_request() end |
#describe_monitor(params = {}) ⇒ Types::DescribeMonitorResponse
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`
3543 3544 3545 3546 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3543 def describe_monitor(params = {}, = {}) req = build_request(:describe_monitor, params) req.send_request() end |
#describe_predictor(params = {}) ⇒ Types::DescribePredictorResponse
<note markdown=“1”> This operation is only valid for legacy predictors created with CreatePredictor. If you are not using a legacy predictor, use DescribeAutoPredictor.
</note>
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.
3678 3679 3680 3681 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3678 def describe_predictor(params = {}, = {}) req = build_request(:describe_predictor, params) req.send_request() end |
#describe_predictor_backtest_export_job(params = {}) ⇒ Types::DescribePredictorBacktestExportJobResponse
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)
3737 3738 3739 3740 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3737 def describe_predictor_backtest_export_job(params = {}, = {}) req = build_request(:describe_predictor_backtest_export_job, params) req.send_request() end |
#describe_what_if_analysis(params = {}) ⇒ Types::DescribeWhatIfAnalysisResponse
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`
3801 3802 3803 3804 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3801 def describe_what_if_analysis(params = {}, = {}) req = build_request(:describe_what_if_analysis, params) req.send_request() end |
#describe_what_if_forecast(params = {}) ⇒ Types::DescribeWhatIfForecastResponse
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`
3878 3879 3880 3881 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3878 def describe_what_if_forecast(params = {}, = {}) req = build_request(:describe_what_if_forecast, params) req.send_request() end |
#describe_what_if_forecast_export(params = {}) ⇒ Types::DescribeWhatIfForecastExportResponse
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`
3941 3942 3943 3944 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 3941 def describe_what_if_forecast_export(params = {}, = {}) req = build_request(:describe_what_if_forecast_export, params) req.send_request() end |
#get_accuracy_metrics(params = {}) ⇒ Types::GetAccuracyMetricsResponse
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.
<note markdown=“1”> 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.
</note>
4018 4019 4020 4021 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4018 def get_accuracy_metrics(params = {}, = {}) req = build_request(:get_accuracy_metrics, params) req.send_request() end |
#list_dataset_groups(params = {}) ⇒ Types::ListDatasetGroupsResponse
Returns a list of dataset groups created using the
- CreateDatasetGroup][1
-
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.
[1]: docs.aws.amazon.com/forecast/latest/dg/API_CreateDatasetGroup.html [2]: docs.aws.amazon.com/forecast/latest/dg/API_DescribeDatasetGroup.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4070 4071 4072 4073 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4070 def list_dataset_groups(params = {}, = {}) req = build_request(:list_dataset_groups, params) req.send_request() end |
#list_dataset_import_jobs(params = {}) ⇒ Types::ListDatasetImportJobsResponse
Returns a list of dataset import jobs created using the
- CreateDatasetImportJob][1
-
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.
[1]: docs.aws.amazon.com/forecast/latest/dg/API_CreateDatasetImportJob.html [2]: docs.aws.amazon.com/forecast/latest/dg/API_DescribeDatasetImportJob.html [3]: docs.aws.amazon.com/forecast/latest/dg/API_Filter.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4160 4161 4162 4163 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4160 def list_dataset_import_jobs(params = {}, = {}) req = build_request(:list_dataset_import_jobs, params) req.send_request() end |
#list_datasets(params = {}) ⇒ Types::ListDatasetsResponse
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.
[1]: docs.aws.amazon.com/forecast/latest/dg/API_CreateDataset.html [2]: docs.aws.amazon.com/forecast/latest/dg/API_DescribeDataset.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4213 4214 4215 4216 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4213 def list_datasets(params = {}, = {}) req = build_request(:list_datasets, params) req.send_request() end |
#list_explainabilities(params = {}) ⇒ Types::ListExplainabilitiesResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4290 4291 4292 4293 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4290 def list_explainabilities(params = {}, = {}) req = build_request(:list_explainabilities, params) req.send_request() end |
#list_explainability_exports(params = {}) ⇒ Types::ListExplainabilityExportsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4367 4368 4369 4370 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4367 def list_explainability_exports(params = {}, = {}) req = build_request(:list_explainability_exports, params) req.send_request() end |
#list_forecast_export_jobs(params = {}) ⇒ Types::ListForecastExportJobsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4452 4453 4454 4455 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4452 def list_forecast_export_jobs(params = {}, = {}) req = build_request(:list_forecast_export_jobs, params) req.send_request() end |
#list_forecasts(params = {}) ⇒ Types::ListForecastsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4534 4535 4536 4537 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4534 def list_forecasts(params = {}, = {}) req = build_request(:list_forecasts, params) req.send_request() end |
#list_monitor_evaluations(params = {}) ⇒ Types::ListMonitorEvaluationsResponse
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].
[1]: docs.aws.amazon.com/forecast/latest/dg/predictor-monitoring-results.html
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4633 4634 4635 4636 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4633 def list_monitor_evaluations(params = {}, = {}) req = build_request(:list_monitor_evaluations, params) req.send_request() end |
#list_monitors(params = {}) ⇒ Types::ListMonitorsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4711 4712 4713 4714 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4711 def list_monitors(params = {}, = {}) req = build_request(:list_monitors, params) req.send_request() end |
#list_predictor_backtest_export_jobs(params = {}) ⇒ Types::ListPredictorBacktestExportJobsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4791 4792 4793 4794 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4791 def list_predictor_backtest_export_jobs(params = {}, = {}) req = build_request(:list_predictor_backtest_export_jobs, params) req.send_request() end |
#list_predictors(params = {}) ⇒ Types::ListPredictorsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4876 4877 4878 4879 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4876 def list_predictors(params = {}, = {}) req = build_request(:list_predictors, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags for an Amazon Forecast resource.
4907 4908 4909 4910 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4907 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_what_if_analyses(params = {}) ⇒ Types::ListWhatIfAnalysesResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4990 4991 4992 4993 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 4990 def list_what_if_analyses(params = {}, = {}) req = build_request(:list_what_if_analyses, params) req.send_request() end |
#list_what_if_forecast_exports(params = {}) ⇒ Types::ListWhatIfForecastExportsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5078 5079 5080 5081 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 5078 def list_what_if_forecast_exports(params = {}, = {}) req = build_request(:list_what_if_forecast_exports, params) req.send_request() end |
#list_what_if_forecasts(params = {}) ⇒ Types::ListWhatIfForecastsResponse
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.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5162 5163 5164 5165 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 5162 def list_what_if_forecasts(params = {}, = {}) req = build_request(:list_what_if_forecasts, params) req.send_request() end |
#resume_resource(params = {}) ⇒ Struct
Resumes a stopped monitor resource.
5184 5185 5186 5187 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 5184 def resume_resource(params = {}, = {}) req = build_request(:resume_resource, params) req.send_request() end |
#stop_resource(params = {}) ⇒ Struct
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
5231 5232 5233 5234 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 5231 def stop_resource(params = {}, = {}) req = build_request(:stop_resource, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
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.
5293 5294 5295 5296 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 5293 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Deletes the specified tags from a resource.
5320 5321 5322 5323 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 5320 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_dataset_group(params = {}) ⇒ Struct
Replaces the datasets in a dataset group with the specified datasets.
<note markdown=“1”> The ‘Status` of the dataset group must be `ACTIVE` before you can use the dataset group to create a predictor. Use the
- DescribeDatasetGroup][1
-
operation to get the status.
</note>
[1]: docs.aws.amazon.com/forecast/latest/dg/API_DescribeDatasetGroup.html
5357 5358 5359 5360 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 5357 def update_dataset_group(params = {}, = {}) req = build_request(:update_dataset_group, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5386 5387 5388 |
# File 'lib/aws-sdk-forecastservice/client.rb', line 5386 def waiter_names [] end |