Amazon Detective · Arazzo Workflow

Amazon Detective Tag a Behavior Graph

Version 1.0.0

Discover behavior graphs, apply tag values to one, and read the tags back.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub ForensicsInvestigationSecurityArazzoWorkflows

Provider

amazon-detective

Workflows

tag-behavior-graph
List behavior graphs, apply tags to one, and verify the applied tags.
Lists the behavior graphs the calling account administers, applies the supplied tags to the target graph ARN, and reads the tags back to confirm they were stored. Branches on whether any graphs were returned.
3 steps inputs: maxResults, resourceArn, tags outputs: graphList, tags
1
listGraphs
List the behavior graphs that the calling account administers to confirm the target graph exists before tagging it.
2
applyTags
Apply the supplied tag values to the target behavior graph. The tag operation returns 204 No Content on success.
3
verifyTags
Read the tags back from the behavior graph to confirm the supplied tag values were stored.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Detective Tag a Behavior Graph
  summary: Discover behavior graphs, apply tag values to one, and read the tags back.
  description: >-
    Applies governance tags to an Amazon Detective behavior graph and confirms
    the result. The workflow lists the behavior graphs administered by the
    calling account, applies the supplied tag name/value pairs to the target
    graph ARN, and then reads the tags back from the graph to verify they were
    stored. It branches on whether any graphs were returned. 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: graphApi
  url: ../openapi/amazon-detective-graph-api-openapi.yml
  type: openapi
- name: tagsApi
  url: ../openapi/amazon-detective-tags-api-openapi.yml
  type: openapi
workflows:
- workflowId: tag-behavior-graph
  summary: List behavior graphs, apply tags to one, and verify the applied tags.
  description: >-
    Lists the behavior graphs the calling account administers, applies the
    supplied tags to the target graph ARN, and reads the tags back to confirm
    they were stored. Branches on whether any graphs were returned.
  inputs:
    type: object
    required:
    - resourceArn
    - tags
    properties:
      resourceArn:
        type: string
        description: The ARN of the behavior graph to tag.
      tags:
        type: object
        description: The tag name/value pairs to apply to the behavior graph.
      maxResults:
        type: integer
        description: The maximum number of behavior graphs to return when listing.
  steps:
  - stepId: listGraphs
    description: >-
      List the behavior graphs that the calling account administers to confirm
      the target graph exists before tagging it.
    operationId: listGraphs
    requestBody:
      contentType: application/json
      payload:
        MaxResults: $inputs.maxResults
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      graphList: $response.body#/GraphList
    onSuccess:
    - name: graphsFound
      type: goto
      stepId: applyTags
      criteria:
      - context: $response.body
        condition: $.GraphList.length > 0
        type: jsonpath
    - name: noGraphs
      type: end
      criteria:
      - context: $response.body
        condition: $.GraphList.length == 0
        type: jsonpath
  - stepId: applyTags
    description: >-
      Apply the supplied tag values to the target behavior graph. The tag
      operation returns 204 No Content on success.
    operationId: tagResource
    parameters:
    - name: resourceArn
      in: path
      value: $inputs.resourceArn
    requestBody:
      contentType: application/json
      payload:
        Tags: $inputs.tags
    successCriteria:
    - condition: $statusCode == 204
  - stepId: verifyTags
    description: >-
      Read the tags back from the behavior graph to confirm the supplied tag
      values were stored.
    operationId: listTagsForResource
    parameters:
    - name: resourceArn
      in: path
      value: $inputs.resourceArn
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      tags: $response.body#/Tags
  outputs:
    graphList: $steps.listGraphs.outputs.graphList
    tags: $steps.verifyTags.outputs.tags

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-detective-tag-behavior-graph-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.