We recommend new projects start with resources from the AWS provider.
published on Monday, Aug 24, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Aug 24, 2026 by Pulumi
Resource Type definition for AWS::DMS::EventSubscription
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var myEventSubscription = new AwsNative.Dms.EventSubscription("myEventSubscription", new()
{
EventCategories = new[]
{
"configuration change",
"failure",
"deletion",
},
SnsTopicArn = "arn:aws:sns:us-west-2:123456789012:example-topic",
SourceIds = new[]
{
"rep-instance-1",
},
SourceType = "replication-instance",
Enabled = false,
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/dms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dms.NewEventSubscription(ctx, "myEventSubscription", &dms.EventSubscriptionArgs{
EventCategories: pulumi.StringArray{
pulumi.String("configuration change"),
pulumi.String("failure"),
pulumi.String("deletion"),
},
SnsTopicArn: pulumi.String("arn:aws:sns:us-west-2:123456789012:example-topic"),
SourceIds: pulumi.StringArray{
pulumi.String("rep-instance-1"),
},
SourceType: pulumi.String("replication-instance"),
Enabled: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const myEventSubscription = new aws_native.dms.EventSubscription("myEventSubscription", {
eventCategories: [
"configuration change",
"failure",
"deletion",
],
snsTopicArn: "arn:aws:sns:us-west-2:123456789012:example-topic",
sourceIds: ["rep-instance-1"],
sourceType: "replication-instance",
enabled: false,
});
import pulumi
import pulumi_aws_native as aws_native
my_event_subscription = aws_native.dms.EventSubscription("myEventSubscription",
event_categories=[
"configuration change",
"failure",
"deletion",
],
sns_topic_arn="arn:aws:sns:us-west-2:123456789012:example-topic",
source_ids=["rep-instance-1"],
source_type="replication-instance",
enabled=False)
Example coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var myEventSubscription = new AwsNative.Dms.EventSubscription("myEventSubscription", new()
{
Enabled = false,
EventCategories = new[]
{
"configuration change",
"failure",
"deletion",
},
SnsTopicArn = "arn:aws:sns:us-west-2:123456789012:example-topic",
SourceIds = new[]
{
"rep-instance-1",
},
SourceType = "replication-instance",
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/dms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dms.NewEventSubscription(ctx, "myEventSubscription", &dms.EventSubscriptionArgs{
Enabled: pulumi.Bool(false),
EventCategories: pulumi.StringArray{
pulumi.String("configuration change"),
pulumi.String("failure"),
pulumi.String("deletion"),
},
SnsTopicArn: pulumi.String("arn:aws:sns:us-west-2:123456789012:example-topic"),
SourceIds: pulumi.StringArray{
pulumi.String("rep-instance-1"),
},
SourceType: pulumi.String("replication-instance"),
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const myEventSubscription = new aws_native.dms.EventSubscription("myEventSubscription", {
enabled: false,
eventCategories: [
"configuration change",
"failure",
"deletion",
],
snsTopicArn: "arn:aws:sns:us-west-2:123456789012:example-topic",
sourceIds: ["rep-instance-1"],
sourceType: "replication-instance",
});
import pulumi
import pulumi_aws_native as aws_native
my_event_subscription = aws_native.dms.EventSubscription("myEventSubscription",
enabled=False,
event_categories=[
"configuration change",
"failure",
"deletion",
],
sns_topic_arn="arn:aws:sns:us-west-2:123456789012:example-topic",
source_ids=["rep-instance-1"],
source_type="replication-instance")
Example coming soon!
Create EventSubscription Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EventSubscription(name: string, args: EventSubscriptionArgs, opts?: CustomResourceOptions);@overload
def EventSubscription(resource_name: str,
args: EventSubscriptionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EventSubscription(resource_name: str,
opts: Optional[ResourceOptions] = None,
sns_topic_arn: Optional[str] = None,
enabled: Optional[bool] = None,
event_categories: Optional[Sequence[str]] = None,
source_ids: Optional[Sequence[str]] = None,
source_type: Optional[str] = None,
subscription_name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewEventSubscription(ctx *Context, name string, args EventSubscriptionArgs, opts ...ResourceOption) (*EventSubscription, error)public EventSubscription(string name, EventSubscriptionArgs args, CustomResourceOptions? opts = null)
public EventSubscription(String name, EventSubscriptionArgs args)
public EventSubscription(String name, EventSubscriptionArgs args, CustomResourceOptions options)
type: aws-native:dms:EventSubscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_dms_event_subscription" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args EventSubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EventSubscriptionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EventSubscriptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EventSubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EventSubscriptionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
EventSubscription Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The EventSubscription resource accepts the following input properties:
- Sns
Topic stringArn - The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
- Enabled bool
- Indicates whether to activate the subscription. If you don't specify this property, CloudFormation activates the subscription.
- Event
Categories List<string> - A list of event categories for a source type that you want to subscribe to. If you don't specify this property, you are notified about all event categories.
- Source
Ids List<string> A list of identifiers for which AWS DMS provides notification events.
If you don't specify a value, notifications are provided for all sources.
If you specify multiple values, they must be of the same type. For example, if you specify a database instance ID, then all of the other values must be database instance IDs.
- Source
Type string - The type of AWS DMS resource that generates the events. For example, if you want to be notified of events generated by a replication instance, you set this parameter to replication-instance. If this value isn't specified, all events are returned.
- Subscription
Name string - The name of the AWS DMS event notification subscription. This name must be less than 255 characters.
-
List<Pulumi.
Aws Native. Inputs. Tag> - One or more tags to be assigned to the event subscription.
- Sns
Topic stringArn - The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
- Enabled bool
- Indicates whether to activate the subscription. If you don't specify this property, CloudFormation activates the subscription.
- Event
Categories []string - A list of event categories for a source type that you want to subscribe to. If you don't specify this property, you are notified about all event categories.
- Source
Ids []string A list of identifiers for which AWS DMS provides notification events.
If you don't specify a value, notifications are provided for all sources.
If you specify multiple values, they must be of the same type. For example, if you specify a database instance ID, then all of the other values must be database instance IDs.
- Source
Type string - The type of AWS DMS resource that generates the events. For example, if you want to be notified of events generated by a replication instance, you set this parameter to replication-instance. If this value isn't specified, all events are returned.
- Subscription
Name string - The name of the AWS DMS event notification subscription. This name must be less than 255 characters.
-
Tag
Args - One or more tags to be assigned to the event subscription.
- sns_
topic_ stringarn - The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
- enabled bool
- Indicates whether to activate the subscription. If you don't specify this property, CloudFormation activates the subscription.
- event_
categories list(string) - A list of event categories for a source type that you want to subscribe to. If you don't specify this property, you are notified about all event categories.
- source_
ids list(string) A list of identifiers for which AWS DMS provides notification events.
If you don't specify a value, notifications are provided for all sources.
If you specify multiple values, they must be of the same type. For example, if you specify a database instance ID, then all of the other values must be database instance IDs.
- source_
type string - The type of AWS DMS resource that generates the events. For example, if you want to be notified of events generated by a replication instance, you set this parameter to replication-instance. If this value isn't specified, all events are returned.
- subscription_
name string - The name of the AWS DMS event notification subscription. This name must be less than 255 characters.
- list(object)
- One or more tags to be assigned to the event subscription.
- sns
Topic StringArn - The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
- enabled Boolean
- Indicates whether to activate the subscription. If you don't specify this property, CloudFormation activates the subscription.
- event
Categories List<String> - A list of event categories for a source type that you want to subscribe to. If you don't specify this property, you are notified about all event categories.
- source
Ids List<String> A list of identifiers for which AWS DMS provides notification events.
If you don't specify a value, notifications are provided for all sources.
If you specify multiple values, they must be of the same type. For example, if you specify a database instance ID, then all of the other values must be database instance IDs.
- source
Type String - The type of AWS DMS resource that generates the events. For example, if you want to be notified of events generated by a replication instance, you set this parameter to replication-instance. If this value isn't specified, all events are returned.
- subscription
Name String - The name of the AWS DMS event notification subscription. This name must be less than 255 characters.
- List<Tag>
- One or more tags to be assigned to the event subscription.
- sns
Topic stringArn - The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
- enabled boolean
- Indicates whether to activate the subscription. If you don't specify this property, CloudFormation activates the subscription.
- event
Categories string[] - A list of event categories for a source type that you want to subscribe to. If you don't specify this property, you are notified about all event categories.
- source
Ids string[] A list of identifiers for which AWS DMS provides notification events.
If you don't specify a value, notifications are provided for all sources.
If you specify multiple values, they must be of the same type. For example, if you specify a database instance ID, then all of the other values must be database instance IDs.
- source
Type string - The type of AWS DMS resource that generates the events. For example, if you want to be notified of events generated by a replication instance, you set this parameter to replication-instance. If this value isn't specified, all events are returned.
- subscription
Name string - The name of the AWS DMS event notification subscription. This name must be less than 255 characters.
- Tag[]
- One or more tags to be assigned to the event subscription.
- sns_
topic_ strarn - The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
- enabled bool
- Indicates whether to activate the subscription. If you don't specify this property, CloudFormation activates the subscription.
- event_
categories Sequence[str] - A list of event categories for a source type that you want to subscribe to. If you don't specify this property, you are notified about all event categories.
- source_
ids Sequence[str] A list of identifiers for which AWS DMS provides notification events.
If you don't specify a value, notifications are provided for all sources.
If you specify multiple values, they must be of the same type. For example, if you specify a database instance ID, then all of the other values must be database instance IDs.
- source_
type str - The type of AWS DMS resource that generates the events. For example, if you want to be notified of events generated by a replication instance, you set this parameter to replication-instance. If this value isn't specified, all events are returned.
- subscription_
name str - The name of the AWS DMS event notification subscription. This name must be less than 255 characters.
-
Sequence[Tag
Args] - One or more tags to be assigned to the event subscription.
- sns
Topic StringArn - The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.
- enabled Boolean
- Indicates whether to activate the subscription. If you don't specify this property, CloudFormation activates the subscription.
- event
Categories List<String> - A list of event categories for a source type that you want to subscribe to. If you don't specify this property, you are notified about all event categories.
- source
Ids List<String> A list of identifiers for which AWS DMS provides notification events.
If you don't specify a value, notifications are provided for all sources.
If you specify multiple values, they must be of the same type. For example, if you specify a database instance ID, then all of the other values must be database instance IDs.
- source
Type String - The type of AWS DMS resource that generates the events. For example, if you want to be notified of events generated by a replication instance, you set this parameter to replication-instance. If this value isn't specified, all events are returned.
- subscription
Name String - The name of the AWS DMS event notification subscription. This name must be less than 255 characters.
- List<Property Map>
- One or more tags to be assigned to the event subscription.
Outputs
All input properties are implicitly available as output properties. Additionally, the EventSubscription resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Aug 24, 2026 by Pulumi