1. Packages
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. docdb
  6. getEventSubscription

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.74.1
published on Monday, Aug 3, 2026 by Pulumi
aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.74.1
published on Monday, Aug 3, 2026 by Pulumi

    Resource Type definition for AWS::DocDB::EventSubscription

    Using getEventSubscription

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getEventSubscription(args: GetEventSubscriptionArgs, opts?: InvokeOptions): Promise<GetEventSubscriptionResult>
    function getEventSubscriptionOutput(args: GetEventSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetEventSubscriptionResult>
    def get_event_subscription(subscription_name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetEventSubscriptionResult
    def get_event_subscription_output(subscription_name: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetEventSubscriptionResult]
    func LookupEventSubscription(ctx *Context, args *LookupEventSubscriptionArgs, opts ...InvokeOption) (*LookupEventSubscriptionResult, error)
    func LookupEventSubscriptionOutput(ctx *Context, args *LookupEventSubscriptionOutputArgs, opts ...InvokeOption) LookupEventSubscriptionResultOutput

    > Note: This function is named LookupEventSubscription in the Go SDK.

    public static class GetEventSubscription 
    {
        public static Task<GetEventSubscriptionResult> InvokeAsync(GetEventSubscriptionArgs args, InvokeOptions? opts = null)
        public static Output<GetEventSubscriptionResult> Invoke(GetEventSubscriptionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEventSubscriptionResult> getEventSubscription(GetEventSubscriptionArgs args, InvokeOptions options)
    public static Output<GetEventSubscriptionResult> getEventSubscription(GetEventSubscriptionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:docdb:getEventSubscription
      arguments:
        # arguments dictionary
    data "aws-native_docdb_get_event_subscription" "name" {
        # arguments
    }

    The following arguments are supported:

    SubscriptionName string
    The name of the subscription.
    SubscriptionName string
    The name of the subscription.
    subscription_name string
    The name of the subscription.
    subscriptionName String
    The name of the subscription.
    subscriptionName string
    The name of the subscription.
    subscription_name str
    The name of the subscription.
    subscriptionName String
    The name of the subscription.

    getEventSubscription Result

    The following output properties are available:

    Enabled bool
    A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.
    EventCategories List<string>
    A list of event categories for a SourceType that you want to subscribe to.
    SourceIds List<string>
    The list of identifiers of the event sources for which events are returned
    SourceType Pulumi.AwsNative.DocDb.EventSubscriptionSourceType
    The type of source that is generating the events.
    Enabled bool
    A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.
    EventCategories []string
    A list of event categories for a SourceType that you want to subscribe to.
    SourceIds []string
    The list of identifiers of the event sources for which events are returned
    SourceType EventSubscriptionSourceType
    The type of source that is generating the events.
    enabled bool
    A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.
    event_categories list(string)
    A list of event categories for a SourceType that you want to subscribe to.
    source_ids list(string)
    The list of identifiers of the event sources for which events are returned
    source_type "db-instance" | "db-cluster" | "db-parameter-group" | "db-security-group" | "db-cluster-snapshot"
    The type of source that is generating the events.
    enabled Boolean
    A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.
    eventCategories List<String>
    A list of event categories for a SourceType that you want to subscribe to.
    sourceIds List<String>
    The list of identifiers of the event sources for which events are returned
    sourceType EventSubscriptionSourceType
    The type of source that is generating the events.
    enabled boolean
    A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.
    eventCategories string[]
    A list of event categories for a SourceType that you want to subscribe to.
    sourceIds string[]
    The list of identifiers of the event sources for which events are returned
    sourceType EventSubscriptionSourceType
    The type of source that is generating the events.
    enabled bool
    A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.
    event_categories Sequence[str]
    A list of event categories for a SourceType that you want to subscribe to.
    source_ids Sequence[str]
    The list of identifiers of the event sources for which events are returned
    source_type EventSubscriptionSourceType
    The type of source that is generating the events.
    enabled Boolean
    A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.
    eventCategories List<String>
    A list of event categories for a SourceType that you want to subscribe to.
    sourceIds List<String>
    The list of identifiers of the event sources for which events are returned
    sourceType "db-instance" | "db-cluster" | "db-parameter-group" | "db-security-group" | "db-cluster-snapshot"
    The type of source that is generating the events.

    Supporting Types

    EventSubscriptionSourceType

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.74.1
    published on Monday, Aug 3, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial