Amazon Forecast · Arazzo Workflow

Amazon Forecast Generate Forecast

Version 1.0.0

Create a forecast from a predictor, poll until ACTIVE, and tag it.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub ForecastingMachine-LearningPredictive AnalyticsTime SeriesArazzoWorkflows

Provider

amazon-forecast

Workflows

generate-forecast
Create an Amazon Forecast forecast and wait until it is ACTIVE.
Creates a forecast from a trained predictor, polls listForecasts until the matching forecast status is ACTIVE, and then associates the supplied tags with the forecast.
3 steps inputs: forecastName, forecastTypes, predictorArn, tags outputs: forecastArn, forecasts
1
createForecast
Create the forecast from the trained predictor.
2
waitForActive
List forecasts and confirm the newly created forecast has reached the ACTIVE status. Repeat this step while the forecast is still generating.
3
tagForecast
Apply the supplied metadata tags to the now-ACTIVE forecast.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Forecast Generate Forecast
  summary: Create a forecast from a predictor, poll until ACTIVE, and tag it.
  description: >-
    Generates an Amazon Forecast forecast for each item in the target
    time-series dataset using a trained predictor. The workflow creates the
    forecast, polls the forecast listing until the matching forecast reports an
    ACTIVE status, and then applies metadata tags. Because the Forecast
    description only exposes a describe operation for datasets, forecast status
    is read from listForecasts. Every step spells out its request inline so the
    flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: forecastsApi
  url: ../openapi/amazon-forecast-forecasts-api-openapi.yml
  type: openapi
- name: tagsApi
  url: ../openapi/amazon-forecast-tags-api-openapi.yml
  type: openapi
workflows:
- workflowId: generate-forecast
  summary: Create an Amazon Forecast forecast and wait until it is ACTIVE.
  description: >-
    Creates a forecast from a trained predictor, polls listForecasts until the
    matching forecast status is ACTIVE, and then associates the supplied tags
    with the forecast.
  inputs:
    type: object
    required:
    - forecastName
    - predictorArn
    properties:
      forecastName:
        type: string
        description: A name for the forecast.
      predictorArn:
        type: string
        description: The ARN of the trained predictor used to generate the forecast.
      forecastTypes:
        type: array
        description: The quantiles at which probabilistic forecasts are generated.
        items:
          type: string
      tags:
        type: array
        description: The metadata tags to apply once the forecast is ACTIVE.
        items:
          type: object
  steps:
  - stepId: createForecast
    description: >-
      Create the forecast from the trained predictor.
    operationId: createForecast
    requestBody:
      contentType: application/json
      payload:
        ForecastName: $inputs.forecastName
        PredictorArn: $inputs.predictorArn
        ForecastTypes: $inputs.forecastTypes
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      forecastArn: $response.body#/ForecastArn
  - stepId: waitForActive
    description: >-
      List forecasts and confirm the newly created forecast has reached the
      ACTIVE status. Repeat this step while the forecast is still generating.
    operationId: listForecasts
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.Forecasts[?(@.ForecastArn == "$steps.createForecast.outputs.forecastArn")].Status contains "ACTIVE"
      type: jsonpath
    onSuccess:
    - name: forecastActive
      type: goto
      stepId: tagForecast
      criteria:
      - context: $response.body
        condition: $.Forecasts[?(@.ForecastArn == "$steps.createForecast.outputs.forecastArn")].Status contains "ACTIVE"
        type: jsonpath
    onFailure:
    - name: stillGenerating
      type: retry
      retryAfter: 60
      retryLimit: 30
      criteria:
      - condition: $statusCode == 200
    outputs:
      forecasts: $response.body#/Forecasts
  - stepId: tagForecast
    description: >-
      Apply the supplied metadata tags to the now-ACTIVE forecast.
    operationId: tagResource
    parameters:
    - name: resourceArn
      in: path
      value: $steps.createForecast.outputs.forecastArn
    requestBody:
      contentType: application/json
      payload:
        Tags: $inputs.tags
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      taggedArn: $steps.createForecast.outputs.forecastArn
  outputs:
    forecastArn: $steps.createForecast.outputs.forecastArn
    forecasts: $steps.waitForActive.outputs.forecasts

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/amazon-forecast-generate-forecast-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.