Amazon EventBridge Rules API

Operations for managing EventBridge rules.

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /#DeleteRule Delete an EventBridge rule · Delete Rule #
Ask an LLM
“How do I delete an EventBridge rule?”
“Can I force-delete a managed rule that I didn't create?”
Tell an agent destructive · confirm first
Delete rule {Name}.
Delete rule {Name} on event bus {EventBusName}.
POST /#DescribeRule Describe an EventBridge rule · Describe Rule #
Ask an LLM
“What is the schedule and state of a particular rule?”
“Can I look up one EventBridge rule by name?”
Tell an agent
Describe rule {Name}.
Show the details of rule {Name} on event bus {EventBusName}.
POST /#DisableRule Disable an EventBridge rule · Disable Rule #
Ask an LLM
“How do I stop a scheduled rule from matching events?”
“Does disabling a rule remove its targets?”
Tell an agent
Disable rule {Name}.
Stop rule {Name} on event bus {EventBusName} from matching events.
POST /#EnableRule Enable an EventBridge rule · Enable Rule #
Ask an LLM
“How do I re-enable a disabled rule?”
“Can I turn a scheduled rule back on?”
Tell an agent
Enable rule {Name}.
Re-enable rule {Name} on event bus {EventBusName}.
POST /#ListRules List EventBridge rules · List Rules #
Ask an LLM
“Which EventBridge rules do I have?”
“Can I list only the rules whose names start with a prefix?”
Tell an agent
List my EventBridge rules.
List rules on event bus {EventBusName} whose names start with {NamePrefix}.
POST /#PutRule Create or update an EventBridge rule · Put Rule #
Ask an LLM
“How do I create a scheduled rule that runs on a cron schedule?”
“Can I set a rule's state to disabled when I create it?”
Tell an agent
Create rule {Name} with schedule {ScheduleExpression}.
Create rule {Name} matching pattern {EventPattern} in state {State}.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/amazon-eventbridge:amazon-eventbridge-rules-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

amazon-eventbridge-rules-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon EventBridge Rules API
  version: '2015-10-07'
  description: Generated from AWS's published Smithy model for Amazon EventBridge. 6 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://events.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#DeleteRule:
    post:
      operationId: DeleteRule
      summary: Delete Rule
      description: Deletes the specified rule. Before you can delete the rule, you must remove all targets, using RemoveTargets.
        When you delete a rule, incoming events might continue to match to the deleted rule. Allow a short period of time
        for changes to take effect. If you call delete rule multiple times for the same rule, all calls will succeed. When
        you call delete rule for a non-existent custom eventbus, ResourceNotFoundException is returned. Managed rules are
        rules created and managed by another Amazon Web Services service on your behalf. These rules are created by those
        other Amazon Web Services services to support functionality in those services. You can delete these rules using the
        Force option, but you should do so only if you are sure the other service is not still using that rule.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                type: string
        '400':
          description: ConcurrentModificationException; ManagedRuleException; ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSEvents.DeleteRule
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DeleteRuleRequest'
      tags:
      - Rules
  /#DescribeRule:
    post:
      operationId: DescribeRule
      summary: Describe Rule
      description: Describes the specified rule. DescribeRule does not list the targets of a rule. To see the targets associated
        with a rule, use ListTargetsByRule.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DescribeRuleResponse'
        '500':
          description: InternalException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalException'
        '400':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSEvents.DescribeRule
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DescribeRuleRequest'
      tags:
      - Rules
  /#DisableRule:
    post:
      operationId: DisableRule
      summary: Disable Rule
      description: Disables the specified rule. A disabled rule won't match any events, and won't self-trigger if it has a
        schedule expression. When you disable a rule, incoming events might continue to match to the disabled rule. Allow
        a short period of time for changes to take effect.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                type: string
        '400':
          description: ConcurrentModificationException; ManagedRuleException; ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSEvents.DisableRule
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DisableRuleRequest'
      tags:
      - Rules
  /#EnableRule:
    post:
      operationId: EnableRule
      summary: Enable Rule
      description: Enables the specified rule. If the rule does not exist, the operation fails. When you enable a rule, incoming
        events might not immediately start matching to a newly enabled rule. Allow a short period of time for changes to take
        effect.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                type: string
        '400':
          description: ConcurrentModificationException; ManagedRuleException; ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSEvents.EnableRule
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/EnableRuleRequest'
      tags:
      - Rules
  /#ListRules:
    post:
      operationId: ListRules
      summary: List Rules
      description: Lists your Amazon EventBridge rules. You can either list all the rules or you can provide a prefix to match
        to the rule names. The maximum number of results per page for requests is 100. ListRules does not list the targets
        of a rule. To see the targets associated with a rule, use ListTargetsByRule.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ListRulesResponse'
        '500':
          description: InternalException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalException'
        '400':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSEvents.ListRules
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListRulesRequest'
      tags:
      - Rules
  /#PutRule:
    post:
      operationId: PutRule
      summary: Put Rule
      description: Creates or updates the specified rule. Rules are enabled by default, or based on value of the state. You
        can disable a rule using DisableRule. A single rule watches for events from a single event bus. Events generated by
        Amazon Web Services services go to your account's default event bus. Events generated by SaaS partner services or
        applications go to the matching partner event bus. If you have custom applications or services, you can specify whether
        their events go to your default event bus or a custom event bus that you have created. For more information, see CreateEventBus.
        If you are updating an existing rule, the rule is replaced with what you specify in this PutRule command. If you omit
        arguments in PutRule, the old values for those arguments are not kept. Instead, they are replaced with null values.
        When you create or update a rule, incoming events might not immediately start matching to new or updated rules. Allow
        a short period of time for changes to take effect. A rule must contain at least an EventPattern or ScheduleExpression.
        Rules with EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger
        based on the given schedule
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/PutRuleResponse'
        '400':
          description: ConcurrentModificationException; InvalidEventPatternException; LimitExceededException; ManagedRuleException;
            ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSEvents.PutRule
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/PutRuleRequest'
      tags:
      - Rules
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: events
  schemas:
    ConcurrentModificationException:
      type: object
      properties:
        message:
          type: string
    DeleteRuleRequest:
      type: object
      properties:
        Name:
          type: string
          description: The name of the rule.
        EventBusName:
          type: string
          description: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus
            is used.
        Force:
          type: boolean
          description: If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify
            Force as True to delete the rule. This parameter is ignored for rules that are not managed rules. You can check
            whether a rule is a managed rule by using DescribeRule or ListRules and checking the ManagedBy field of the response.
      required:
      - Name
    DescribeRuleRequest:
      type: object
      properties:
        Name:
          type: string
          description: The name of the rule.
        EventBusName:
          type: string
          description: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus
            is used.
      required:
      - Name
    DescribeRuleResponse:
      type: object
      properties:
        Name:
          type: string
          description: The name of the rule.
        Arn:
          type: string
          description: The Amazon Resource Name (ARN) of the rule.
        EventPattern:
          type: string
          description: The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User
            Guide .
        ScheduleExpression:
          type: string
          description: The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
        State:
          type: string
          enum:
          - ENABLED
          - DISABLED
          - ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS
          description: Specifies whether the rule is enabled or disabled.
        Description:
          type: string
          description: The description of the rule.
        RoleArn:
          type: string
          description: The Amazon Resource Name (ARN) of the IAM role associated with the rule.
        ManagedBy:
          type: string
          description: If this is a managed rule, created by an Amazon Web Services service on your behalf, this field displays
            the principal name of the Amazon Web Services service that created the rule.
        EventBusName:
          type: string
          description: The name of the event bus associated with the rule.
        CreatedBy:
          type: string
          description: The account ID of the user that created the rule. If you use PutRule to put a rule on an event bus
            in another account, the other account is the owner of the rule, and the rule ARN includes the account ID for that
            account. However, the value for CreatedBy is the account ID as the account that created the rule in the other
            account.
    DisableRuleRequest:
      type: object
      properties:
        Name:
          type: string
          description: The name of the rule.
        EventBusName:
          type: string
          description: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus
            is used.
      required:
      - Name
    EnableRuleRequest:
      type: object
      properties:
        Name:
          type: string
          description: The name of the rule.
        EventBusName:
          type: string
          description: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus
            is used.
      required:
      - Name
    InternalException:
      type: object
      properties:
        message:
          type: string
    ListRulesRequest:
      type: object
      properties:
        NamePrefix:
          type: string
          description: The prefix matching the rule name.
        EventBusName:
          type: string
          description: The name or ARN of the event bus to list the rules for. If you omit this, the default event bus is
            used.
        NextToken:
          type: string
          description: The token returned by a previous call, which you can use to retrieve the next set of results. The value
            of nextToken is a unique pagination token for each page. To retrieve the next page of results, make the call again
            using the returned token. Keep all other arguments unchanged. Using an expired pagination token results in an
            HTTP 400 InvalidToken error.
        Limit:
          type: integer
          description: The maximum number of results to return.
    ListRulesResponse:
      type: object
      properties:
        Rules:
          type: array
          items:
            $ref: '#/components/schemas/Rule'
          description: The rules that match the specified criteria.
        NextToken:
          type: string
          description: A token indicating there are more results available. If there are no more results, no token is included
            in the response. The value of nextToken is a unique pagination token for each page. To retrieve the next page
            of results, make the call again using the returned token. Keep all other arguments unchanged. Using an expired
            pagination token results in an HTTP 400 InvalidToken error.
    PutRuleRequest:
      type: object
      properties:
        Name:
          type: string
          description: The name of the rule that you are creating or updating.
        ScheduleExpression:
          type: string
          description: The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
        EventPattern:
          type: string
          description: The event pattern. For more information, see Amazon EventBridge event patterns in the Amazon EventBridge
            User Guide .
        State:
          type: string
          enum:
          - ENABLED
          - DISABLED
          - ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS
          description: 'The state of the rule. Valid values include: DISABLED: The rule is disabled. EventBridge does not
            match any events against the rule. ENABLED: The rule is enabled. EventBridge matches events against the rule,
            except for Amazon Web Services management events delivered through CloudTrail. ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS:
            The rule is enabled for all events, including Amazon Web Services management events delivered through CloudTrail.
            Management events provide visibility into management operations that are performed on resources in your Amazon
            Web Services account. These are also know'
        Description:
          type: string
          description: A description of the rule.
        RoleArn:
          type: string
          description: The Amazon Resource Name (ARN) of the IAM role associated with the rule. If you're setting an event
            bus in another account as the target and that account granted permission to your account through an organization
            instead of directly by the account ID, you must specify a RoleArn with proper permissions in the Target structure,
            instead of here in this parameter.
        Tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: The list of key-value pairs to associate with the rule.
        EventBusName:
          type: string
          description: The name or ARN of the event bus to associate with this rule. If you omit this, the default event bus
            is used.
      required:
      - Name
    PutRuleResponse:
      type: object
      properties:
        RuleArn:
          type: string
          description: The Amazon Resource Name (ARN) of the rule.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
    Rule:
      type: object
      properties:
        Name:
          type: string
          description: The name of the rule.
        Arn:
          type: string
          description: The Amazon Resource Name (ARN) of the rule.
        EventPattern:
          type: string
          description: The event pattern of the rule. For more information, see Events and Event Patterns in the Amazon EventBridge
            User Guide .
        State:
          type: string
          enum:
          - ENABLED
          - DISABLED
          - ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS
          description: 'The state of the rule. Valid values include: DISABLED: The rule is disabled. EventBridge does not
            match any events against the rule. ENABLED: The rule is enabled. EventBridge matches events against the rule,
            except for Amazon Web Services management events delivered through CloudTrail. ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS:
            The rule is enabled for all events, including Amazon Web Services management events delivered through CloudTrail.
            Management events provide visibility into management operations that are performed on resources in your Amazon
            Web Services account. These are also know'
        Description:
          type: string
          description: The description of the rule.
        ScheduleExpression:
          type: string
          description: The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". For more information,
            see Creating an Amazon EventBridge rule that runs on a schedule.
        RoleArn:
          type: string
          description: The Amazon Resource Name (ARN) of the role that is used for target invocation. If you're setting an
            event bus in another account as the target and that account granted permission to your account through an organization
            instead of directly by the account ID, you must specify a RoleArn with proper permissions in the Target structure,
            instead of here in this parameter.
        ManagedBy:
          type: string
          description: If the rule was created on behalf of your account by an Amazon Web Services service, this field displays
            the principal name of the service that created the rule.
        EventBusName:
          type: string
          description: The name or ARN of the event bus associated with the rule. If you omit this, the default event bus
            is used.
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: A string you can use to assign a value. The combination of tag keys and values can help you organize
            and categorize your resources.
        Value:
          type: string
          description: The value for the specified tag key.
      required:
      - Key
      - Value
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/eventbridge/service/2015-10-07/eventbridge-2015-10-07.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)