Class EventSubscription
Provides a DMS (Data Migration Service) event subscription resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Dms.EventSubscription("example", new Aws.Dms.EventSubscriptionArgs
{
Enabled = true,
EventCategories =
{
"creation",
"failure",
},
SnsTopicArn = aws_sns_topic.Example.Arn,
SourceIds =
{
aws_dms_replication_task.Example.Replication_task_id,
},
SourceType = "replication-task",
Tags =
{
{ "Name", "example" },
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Dms
Assembly: Pulumi.Aws.dll
Syntax
public class EventSubscription : CustomResource
Constructors
View SourceEventSubscription(String, EventSubscriptionArgs, CustomResourceOptions)
Create a EventSubscription resource with the given unique name, arguments, and options.
Declaration
public EventSubscription(string name, EventSubscriptionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| EventSubscriptionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Enabled
Whether the event subscription should be enabled.
Declaration
public Output<bool?> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
EventCategories
List of event categories to listen for, see DescribeEventCategories for a canonical list.
Declaration
public Output<ImmutableArray<string>> EventCategories { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Name
Name of event subscription.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SnsTopicArn
SNS topic arn to send events on.
Declaration
public Output<string> SnsTopicArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SourceIds
Ids of sources to listen to.
Declaration
public Output<ImmutableArray<string>> SourceIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
SourceType
Type of source for events. Valid values: replication-instance or replication-task
Declaration
public Output<string> SourceType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, EventSubscriptionState, CustomResourceOptions)
Get an existing EventSubscription resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static EventSubscription Get(string name, Input<string> id, EventSubscriptionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| EventSubscriptionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| EventSubscription |