Amazon EventBridge · Arazzo Workflow

Amazon EventBridge Inspect Rule and Targets

Version 1.0.0

Describe a rule's configuration, then list the targets attached to it.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Amazon Web ServicesEvent BusEvent-DrivenEventIntegrationServerlessArazzoWorkflows

Provider

amazon-eventbridge

Workflows

inspect-rule-and-targets
Describe a rule and list its targets for auditing.
Describes a rule to read its configuration and lists the targets attached to it, branching on whether the rule is enabled.
2 steps inputs: eventBusName, ruleName outputs: eventPattern, ruleArn, ruleState, targets
1
describeRule
Describe the rule to read its pattern, schedule, and state.
2
listTargets
List the targets attached to the rule.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon EventBridge Inspect Rule and Targets
  summary: Describe a rule's configuration, then list the targets attached to it.
  description: >-
    Reads the full picture of a single routing rule: it describes the rule to
    return its pattern, schedule, and state, and then lists the targets attached
    to the rule. Useful for auditing or troubleshooting how a given rule routes
    events. Every step spells out its AWS JSON request inline — including the
    documented X-Amz-Target header — so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: rulesApi
  url: ../openapi/amazon-eventbridge-rules-api-openapi.yml
  type: openapi
- name: targetsApi
  url: ../openapi/amazon-eventbridge-targets-api-openapi.yml
  type: openapi
workflows:
- workflowId: inspect-rule-and-targets
  summary: Describe a rule and list its targets for auditing.
  description: >-
    Describes a rule to read its configuration and lists the targets attached to
    it, branching on whether the rule is enabled.
  inputs:
    type: object
    required:
    - ruleName
    properties:
      ruleName:
        type: string
        description: The name of the rule to inspect.
      eventBusName:
        type: string
        description: The name or ARN of the event bus the rule lives on.
  steps:
  - stepId: describeRule
    description: Describe the rule to read its pattern, schedule, and state.
    operationId: DescribeRule
    parameters:
    - name: X-Amz-Target
      in: header
      value: AWSEvents.DescribeRule
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        Name: $inputs.ruleName
        EventBusName: $inputs.eventBusName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      ruleArn: $response.body#/Arn
      ruleState: $response.body#/State
      eventPattern: $response.body#/EventPattern
  - stepId: listTargets
    description: List the targets attached to the rule.
    operationId: ListTargetsByRule
    parameters:
    - name: X-Amz-Target
      in: header
      value: AWSEvents.ListTargetsByRule
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        Rule: $inputs.ruleName
        EventBusName: $inputs.eventBusName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      targets: $response.body#/Targets
  outputs:
    ruleArn: $steps.describeRule.outputs.ruleArn
    ruleState: $steps.describeRule.outputs.ruleState
    eventPattern: $steps.describeRule.outputs.eventPattern
    targets: $steps.listTargets.outputs.targets

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-eventbridge-inspect-rule-and-targets-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.