EventSubscription

class EventSubscription : KotlinCustomResource

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

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the DMS Event Subscription.

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

Whether the event subscription should be enabled.

Link copied to clipboard

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Name of event subscription.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val snsTopicArn: Output<String>

SNS topic arn to send events on.

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

Ids of sources to listen to.

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

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

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

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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>