Amazon DataZone · Arazzo Workflow

Amazon DataZone Teardown Domain

Version 1.0.0

List projects in a domain and branch to delete the domain only when it is empty.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Data CatalogData GovernanceData ManagementData SharingAnalyticsArazzoWorkflows

Provider

amazon-datazone

Workflows

teardown-domain
Delete a domain only when it contains no projects, then confirm deletion.
Lists the domain's projects and, only when the list is empty, initiates domain deletion and reads the domain back to confirm it has entered the deletion lifecycle.
3 steps inputs: domainIdentifier outputs: deleteStatus, status
1
listProjects
List the projects in the domain to decide whether it is safe to delete.
2
deleteDomain
Delete the empty domain. A 202 Accepted indicates deletion was initiated asynchronously.
3
confirmDeleting
Read the domain back to confirm it has entered the deletion lifecycle (DELETING or DELETED).

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon DataZone Teardown Domain
  summary: List projects in a domain and branch to delete the domain only when it is empty.
  description: >-
    Decommissions a DataZone domain guarded by a safety check. It lists the
    projects in the domain and branches: when no projects remain, it deletes the
    domain and polls until the domain reports a DELETING or DELETED status; when
    projects still exist, it ends without deleting to avoid destroying active
    workspaces. 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: domainsApi
  url: ../openapi/amazon-datazone-domains-api-openapi.yml
  type: openapi
- name: projectsApi
  url: ../openapi/amazon-datazone-projects-api-openapi.yml
  type: openapi
workflows:
- workflowId: teardown-domain
  summary: Delete a domain only when it contains no projects, then confirm deletion.
  description: >-
    Lists the domain's projects and, only when the list is empty, initiates
    domain deletion and reads the domain back to confirm it has entered the
    deletion lifecycle.
  inputs:
    type: object
    required:
    - domainIdentifier
    properties:
      domainIdentifier:
        type: string
        description: The identifier of the domain to tear down.
  steps:
  - stepId: listProjects
    description: >-
      List the projects in the domain to decide whether it is safe to delete.
    operationId: listProjects
    parameters:
    - name: domainIdentifier
      in: path
      value: $inputs.domainIdentifier
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      projects: $response.body#/items
    onSuccess:
    - name: domainEmpty
      type: goto
      stepId: deleteDomain
      criteria:
      - context: $response.body
        condition: $.items.length == 0
        type: jsonpath
    - name: domainNotEmpty
      type: end
      criteria:
      - context: $response.body
        condition: $.items.length > 0
        type: jsonpath
  - stepId: deleteDomain
    description: >-
      Delete the empty domain. A 202 Accepted indicates deletion was initiated
      asynchronously.
    operationId: deleteDomain
    parameters:
    - name: domainIdentifier
      in: path
      value: $inputs.domainIdentifier
    successCriteria:
    - condition: $statusCode == 202
    outputs:
      deleteStatus: $response.body#/status
  - stepId: confirmDeleting
    description: >-
      Read the domain back to confirm it has entered the deletion lifecycle
      (DELETING or DELETED).
    operationId: getDomain
    parameters:
    - name: domainIdentifier
      in: path
      value: $inputs.domainIdentifier
    successCriteria:
    - condition: $statusCode == 200
    - context: $response.body
      condition: $.status == "DELETING" || $.status == "DELETED"
      type: jsonpath
    outputs:
      status: $response.body#/status
  outputs:
    deleteStatus: $steps.deleteDomain.outputs.deleteStatus
    status: $steps.confirmDeleting.outputs.status

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-datazone-teardown-domain-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.