Amazon Forecast · Arazzo Workflow

Amazon Forecast Register Dataset to Group

Version 1.0.0

Create a dataset, wait until ACTIVE, then create a dataset group containing it.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Amazon Web ServicesForecastingMachine LearningPredictive AnalyticsTime SeriesArazzoWorkflows

Provider

amazon-forecast

Workflows

register-dataset-to-group
Create a dataset and attach it to a new dataset group once it is ACTIVE.
Creates a dataset, polls DescribeDataset until the dataset is ACTIVE, and then creates a dataset group that includes the new dataset's ARN.
3 steps inputs: dataFrequency, datasetGroupName, datasetName, datasetType, domain, schema outputs: datasetArn, datasetGroupArn
1
CreateDataset
Create the dataset that will be registered into the dataset group.
2
waitForDatasetActive
Describe the dataset and confirm it has reached the ACTIVE status. Repeat this step while the dataset is still being created.
3
CreateDatasetGroup
Create a dataset group that references the new dataset by its ARN.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Forecast Register Dataset to Group
  summary: Create a dataset, wait until ACTIVE, then create a dataset group containing it.
  description: Bootstraps a complete dataset-plus-group structure in one pass. The workflow creates a new dataset, polls DescribeDataset until the dataset reaches the ACTIVE status, and then creates a dataset group whose DatasetArns reference the freshly created dataset so the two are wired together. 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: datasetGroupsApi
  url: ../openapi/amazon-forecast-dataset-groups-api-openapi.yml
  type: openapi
- name: datasetsApi
  url: ../openapi/amazon-forecast-datasets-api-openapi.yml
  type: openapi
workflows:
- workflowId: register-dataset-to-group
  summary: Create a dataset and attach it to a new dataset group once it is ACTIVE.
  description: Creates a dataset, polls DescribeDataset until the dataset is ACTIVE, and then creates a dataset group that includes the new dataset's ARN.
  inputs:
    type: object
    required:
    - datasetName
    - domain
    - datasetType
    - schema
    - datasetGroupName
    properties:
      datasetName:
        type: string
        description: A name for the dataset.
      domain:
        type: string
        description: The domain shared by the dataset and dataset group.
      datasetType:
        type: string
        description: The dataset type (e.g. TARGET_TIME_SERIES).
      dataFrequency:
        type: string
        description: The frequency of data collection.
      schema:
        type: object
        description: The schema for the dataset.
      datasetGroupName:
        type: string
        description: A name for the dataset group to create.
  steps:
  - stepId: CreateDataset
    description: Create the dataset that will be registered into the dataset group.
    operationId: $sourceDescriptions.datasetsApi.CreateDataset
    requestBody:
      contentType: application/json
      payload:
        DatasetName: $inputs.datasetName
        Domain: $inputs.domain
        DatasetType: $inputs.datasetType
        DataFrequency: $inputs.dataFrequency
        Schema: $inputs.schema
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      datasetArn: $response.body#/DatasetArn
  - stepId: waitForDatasetActive
    description: Describe the dataset and confirm it has reached the ACTIVE status. Repeat this step while the dataset is still being created.
    operationId: $sourceDescriptions.datasetsApi.DescribeDataset
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        DatasetArn: $steps.CreateDataset.outputs.datasetArn
    successCriteria:
    - condition: $statusCode == 200
    - condition: $response.body#/Status == 'ACTIVE'
    onSuccess:
    - name: datasetActive
      type: goto
      stepId: CreateDatasetGroup
      criteria:
      - condition: $response.body#/Status == 'ACTIVE'
    onFailure:
    - name: stillCreating
      type: retry
      retryAfter: 30
      retryLimit: 20
      criteria:
      - condition: $response.body#/Status != 'ACTIVE'
      stepId: waitForDatasetActive
    outputs:
      status: $response.body#/Status
  - stepId: CreateDatasetGroup
    description: Create a dataset group that references the new dataset by its ARN.
    operationId: $sourceDescriptions.datasetGroupsApi.CreateDatasetGroup
    requestBody:
      contentType: application/json
      payload:
        DatasetGroupName: $inputs.datasetGroupName
        Domain: $inputs.domain
        DatasetArns:
        - $steps.CreateDataset.outputs.datasetArn
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      datasetGroupArn: $response.body#/DatasetGroupArn
  outputs:
    datasetArn: $steps.CreateDataset.outputs.datasetArn
    datasetGroupArn: $steps.CreateDatasetGroup.outputs.datasetGroupArn

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-register-dataset-to-group-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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