Show / Hide Table of Contents

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" },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
EventSubscription
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Dms
Assembly: Pulumi.Aws.dll
Syntax
public class EventSubscription : CustomResource

Constructors

View Source

EventSubscription(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 Source

Arn

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

Enabled

Whether the event subscription should be enabled.

Declaration
public Output<bool?> Enabled { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

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>>
View Source

Name

Name of event subscription.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

SnsTopicArn

SNS topic arn to send events on.

Declaration
public Output<string> SnsTopicArn { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

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>
View Source

Tags

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.