EventSubscriptionArgs

data class EventSubscriptionArgs(val enabled: Output<Boolean>? = null, val eventCategories: Output<List<String>>? = null, val name: Output<String>? = null, val snsTopicArn: Output<String>? = null, val sourceIds: Output<List<String>>? = null, val sourceType: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<EventSubscriptionArgs>

Provides a DMS (Data Migration Service) event subscription resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.dms.EventSubscription;
import com.pulumi.aws.dms.EventSubscriptionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new EventSubscription("example", EventSubscriptionArgs.builder()
.enabled(true)
.eventCategories(
"creation",
"failure")
.snsTopicArn(aws_sns_topic.example().arn())
.sourceIds(aws_dms_replication_task.example().replication_task_id())
.sourceType("replication-task")
.tags(Map.of("Name", "example"))
.build());
}
}

Import

Event subscriptions can be imported using the name, e.g.,

$ pulumi import aws:dms/eventSubscription:EventSubscription test my-awesome-event-subscription

Constructors

Link copied to clipboard
constructor(enabled: Output<Boolean>? = null, eventCategories: Output<List<String>>? = null, name: Output<String>? = null, snsTopicArn: Output<String>? = null, sourceIds: Output<List<String>>? = null, sourceType: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val enabled: Output<Boolean>? = null

Whether the event subscription should be enabled.

Link copied to clipboard
val eventCategories: Output<List<String>>? = null

List of event categories to listen for, see DescribeEventCategories for a canonical list.

Link copied to clipboard
val name: Output<String>? = null

Name of event subscription.

Link copied to clipboard
val snsTopicArn: Output<String>? = null

SNS topic arn to send events on.

Link copied to clipboard
val sourceIds: Output<List<String>>? = null

Ids of sources to listen to.

Link copied to clipboard
val sourceType: Output<String>? = null

Type of source for events. Valid values: replication-instance or replication-task

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Map of resource tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): EventSubscriptionArgs