Amazon DocumentDB Documentdb Event Subscription API

The Documentdb Event Subscription API from Amazon DocumentDB — 4 operation(s) for documentdb event subscription.

GitHub OpenAPI

Operations 4

POST /?Action=CreateEventSubscription Create Event Subscription #
POST /?Action=DeleteEventSubscription Delete Event Subscription #
POST /?Action=DescribeEventSubscriptions Describe Event Subscriptions #
POST /?Action=ModifyEventSubscription Modify Event Subscription #

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-documentdb:amazon-documentdb-event-subscription-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-documentdb-event-subscription-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon DocumentDB with MongoDB compatibility Event Subscription API
  version: '2014-10-31'
  description: Generated from AWS's published Smithy model for Amazon DocumentDB with MongoDB compatibility. 4 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://rds.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /?Action=CreateEventSubscription:
    post:
      operationId: CreateEventSubscription
      summary: Create Event Subscription
      description: Creates an Amazon DocumentDB event notification subscription. This action requires a topic Amazon Resource
        Name (ARN) created by using the Amazon DocumentDB console, the Amazon SNS console, or the Amazon SNS API. To obtain
        an ARN with Amazon SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in
        the Amazon SNS console. You can specify the type of source (SourceType) that you want to be notified of. You can also
        provide a list of Amazon DocumentDB sources (SourceIds) that trigger the events, and you can provide a list of event
        categories (EventCategories) for events that you want to be notified of. For example, you can specify SourceType =
        db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup. If you specify both
        the SourceType and SourceIds (such as SourceType = db-instance and SourceIdentifier = myDBInstance1), you are notified
        of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier,
        you receive notice of the events for that source type for all your Amazon DocumentDB sources. If you do not specify
        either the SourceType or the SourceId
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/CreateEventSubscriptionResult'
        '400':
          description: EventSubscriptionQuotaExceededFault; SNSInvalidTopicFault; SNSNoAuthorizationFault; SubscriptionAlreadyExistFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/EventSubscriptionQuotaExceededFault'
        '404':
          description: SNSTopicArnNotFoundFault; SourceNotFoundFault; SubscriptionCategoryNotFoundFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/SNSTopicArnNotFoundFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: CreateEventSubscription
                  Version:
                    type: string
                    const: '2014-10-31'
              - $ref: '#/components/schemas/CreateEventSubscriptionMessage'
      tags:
      - Event Subscription
  /?Action=DeleteEventSubscription:
    post:
      operationId: DeleteEventSubscription
      summary: Delete Event Subscription
      description: Deletes an Amazon DocumentDB event notification subscription.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/DeleteEventSubscriptionResult'
        '400':
          description: InvalidEventSubscriptionStateFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InvalidEventSubscriptionStateFault'
        '404':
          description: SubscriptionNotFoundFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/SubscriptionNotFoundFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DeleteEventSubscription
                  Version:
                    type: string
                    const: '2014-10-31'
              - $ref: '#/components/schemas/DeleteEventSubscriptionMessage'
      tags:
      - Event Subscription
  /?Action=DescribeEventSubscriptions:
    post:
      operationId: DescribeEventSubscriptions
      summary: Describe Event Subscriptions
      description: Lists all the subscription descriptions for a customer account. The description for a subscription includes
        SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status. If you specify a SubscriptionName,
        lists the description for that subscription.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/EventSubscriptionsMessage'
        '404':
          description: SubscriptionNotFoundFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/SubscriptionNotFoundFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DescribeEventSubscriptions
                  Version:
                    type: string
                    const: '2014-10-31'
              - $ref: '#/components/schemas/DescribeEventSubscriptionsMessage'
      tags:
      - Event Subscription
  /?Action=ModifyEventSubscription:
    post:
      operationId: ModifyEventSubscription
      summary: Modify Event Subscription
      description: Modifies an existing Amazon DocumentDB event notification subscription.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ModifyEventSubscriptionResult'
        '400':
          description: EventSubscriptionQuotaExceededFault; SNSInvalidTopicFault; SNSNoAuthorizationFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/EventSubscriptionQuotaExceededFault'
        '404':
          description: SNSTopicArnNotFoundFault; SubscriptionCategoryNotFoundFault; SubscriptionNotFoundFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/SNSTopicArnNotFoundFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: ModifyEventSubscription
                  Version:
                    type: string
                    const: '2014-10-31'
              - $ref: '#/components/schemas/ModifyEventSubscriptionMessage'
      tags:
      - Event Subscription
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: rds
  schemas:
    CreateEventSubscriptionMessage:
      type: object
      properties:
        SubscriptionName:
          type: string
          description: 'The name of the subscription. Constraints: The name must be fewer than 255 characters.'
        SnsTopicArn:
          type: string
          description: The Amazon Resource Name (ARN) of the SNS topic created for event notification. Amazon SNS creates
            the ARN when you create a topic and subscribe to it.
        SourceType:
          type: string
          description: 'The type of source that is generating the events. For example, if you want to be notified of events
            generated by an instance, you would set this parameter to db-instance. If this value is not specified, all events
            are returned. Valid values: db-instance, db-cluster, db-parameter-group, db-security-group, db-cluster-snapshot'
        EventCategories:
          type: array
          items:
            type: string
          description: A list of event categories for a SourceType that you want to subscribe to.
        SourceIds:
          type: array
          items:
            type: string
          description: 'The list of identifiers of the event sources for which events are returned. If not specified, then
            all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters,
            digits, and hyphens; it can''t end with a hyphen or contain two consecutive hyphens. Constraints: If SourceIds
            are provided, SourceType must also be provided. If the source type is an instance, a DBInstanceIdentifier must
            be provided. If the source type is a security group, a DBSecurityGroupName must be provided. If the source type
            is a parameter group, a DBParameterGroupName must '
        Enabled:
          type: boolean
          description: A Boolean value; set to true to activate the subscription, set to false to create the subscription
            but not active it.
        Tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: The tags to be assigned to the event subscription.
      required:
      - SubscriptionName
      - SnsTopicArn
    CreateEventSubscriptionResult:
      type: object
      properties:
        EventSubscription:
          $ref: '#/components/schemas/EventSubscription'
    DeleteEventSubscriptionMessage:
      type: object
      properties:
        SubscriptionName:
          type: string
          description: The name of the Amazon DocumentDB event notification subscription that you want to delete.
      required:
      - SubscriptionName
    DeleteEventSubscriptionResult:
      type: object
      properties:
        EventSubscription:
          $ref: '#/components/schemas/EventSubscription'
    DescribeEventSubscriptionsMessage:
      type: object
      properties:
        SubscriptionName:
          type: string
          description: The name of the Amazon DocumentDB event notification subscription that you want to describe.
        Filters:
          type: array
          items:
            $ref: '#/components/schemas/Filter'
          description: This parameter is not currently supported.
        MaxRecords:
          type: integer
          description: 'The maximum number of records to include in the response. If more records exist than the specified
            MaxRecords value, a pagination token (marker) is included in the response so that the remaining results can be
            retrieved. Default: 100 Constraints: Minimum 20, maximum 100.'
        Marker:
          type: string
          description: An optional pagination token provided by a previous request. If this parameter is specified, the response
            includes only records beyond the marker, up to the value specified by MaxRecords.
    EventSubscription:
      type: object
      properties:
        CustomerAwsId:
          type: string
          description: The Amazon Web Services customer account that is associated with the Amazon DocumentDB event notification
            subscription.
        CustSubscriptionId:
          type: string
          description: The Amazon DocumentDB event notification subscription ID.
        SnsTopicArn:
          type: string
          description: The topic ARN of the Amazon DocumentDB event notification subscription.
        Status:
          type: string
          description: 'The status of the Amazon DocumentDB event notification subscription. Constraints: Can be one of the
            following: creating, modifying, deleting, active, no-permission, topic-not-exist The no-permission status indicates
            that Amazon DocumentDB no longer has permission to post to the SNS topic. The topic-not-exist status indicates
            that the topic was deleted after the subscription was created.'
        SubscriptionCreationTime:
          type: string
          description: The time at which the Amazon DocumentDB event notification subscription was created.
        SourceType:
          type: string
          description: The source type for the Amazon DocumentDB event notification subscription.
        SourceIdsList:
          type: array
          items:
            type: string
          description: A list of source IDs for the Amazon DocumentDB event notification subscription.
        EventCategoriesList:
          type: array
          items:
            type: string
          description: A list of event categories for the Amazon DocumentDB event notification subscription.
        Enabled:
          type: boolean
          description: A Boolean value indicating whether the subscription is enabled. A value of true indicates that the
            subscription is enabled.
        EventSubscriptionArn:
          type: string
          description: The Amazon Resource Name (ARN) for the event subscription.
    EventSubscriptionQuotaExceededFault:
      type: object
      properties:
        message:
          type: string
    EventSubscriptionsMessage:
      type: object
      properties:
        Marker:
          type: string
          description: An optional pagination token provided by a previous request. If this parameter is specified, the response
            includes only records beyond the marker, up to the value specified by MaxRecords.
        EventSubscriptionsList:
          type: array
          items:
            $ref: '#/components/schemas/EventSubscription'
          description: A list of event subscriptions.
    Filter:
      type: object
      properties:
        Name:
          type: string
          description: The name of the filter. Filter names are case sensitive.
        Values:
          type: array
          items:
            type: string
          description: One or more filter values. Filter values are case sensitive.
      required:
      - Name
      - Values
    InvalidEventSubscriptionStateFault:
      type: object
      properties:
        message:
          type: string
    ModifyEventSubscriptionMessage:
      type: object
      properties:
        SubscriptionName:
          type: string
          description: The name of the Amazon DocumentDB event notification subscription.
        SnsTopicArn:
          type: string
          description: The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created
            by Amazon SNS when you create a topic and subscribe to it.
        SourceType:
          type: string
          description: 'The type of source that is generating the events. For example, if you want to be notified of events
            generated by an instance, set this parameter to db-instance. If this value is not specified, all events are returned.
            Valid values: db-instance, db-parameter-group, db-security-group'
        EventCategories:
          type: array
          items:
            type: string
          description: A list of event categories for a SourceType that you want to subscribe to.
        Enabled:
          type: boolean
          description: A Boolean value; set to true to activate the subscription.
      required:
      - SubscriptionName
    ModifyEventSubscriptionResult:
      type: object
      properties:
        EventSubscription:
          $ref: '#/components/schemas/EventSubscription'
    SNSTopicArnNotFoundFault:
      type: object
      properties:
        message:
          type: string
    SubscriptionNotFoundFault:
      type: object
      properties:
        message:
          type: string
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: 'The required name of the tag. The string value can be from 1 to 128 Unicode characters in length and
            can''t be prefixed with "aws:" or "rds:". The string can contain only the set of Unicode letters, digits, white
            space, ''_'', ''.'', ''/'', ''='', ''+'', ''-'' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").'
        Value:
          type: string
          description: 'The optional value of the tag. The string value can be from 1 to 256 Unicode characters in length
            and can''t be prefixed with "aws:" or "rds:". The string can contain only the set of Unicode letters, digits,
            white space, ''_'', ''.'', ''/'', ''='', ''+'', ''-'' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").'
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/docdb/service/2014-10-31/docdb-2014-10-31.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)