Event Subscription
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());
}
}
Content copied to clipboard
Import
Event subscriptions can be imported using the name
, e.g.,
$ pulumi import aws:dms/eventSubscription:EventSubscription test my-awesome-event-subscription
Content copied to clipboard
Properties
Link copied to clipboard
List of event categories to listen for, see DescribeEventCategories
for a canonical list.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
SNS topic arn to send events on.
Link copied to clipboard
Type of source for events. Valid values: replication-instance
or replication-task