Event Subscription
Provides a Redshift 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.redshift.Cluster;
import com.pulumi.aws.redshift.ClusterArgs;
import com.pulumi.aws.sns.Topic;
import com.pulumi.aws.redshift.EventSubscription;
import com.pulumi.aws.redshift.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 defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
.clusterIdentifier("default")
.databaseName("default")
.build());
var defaultTopic = new Topic("defaultTopic");
var defaultEventSubscription = new EventSubscription("defaultEventSubscription", EventSubscriptionArgs.builder()
.snsTopicArn(defaultTopic.arn())
.sourceType("cluster")
.sourceIds(defaultCluster.id())
.severity("INFO")
.eventCategories(
"configuration",
"management",
"monitoring",
"security")
.tags(Map.of("Name", "default"))
.build());
}
}
Content copied to clipboard
Import
Redshift Event Subscriptions can be imported using the name
, e.g.,
$ pulumi import aws:redshift/eventSubscription:EventSubscription default redshift-event-sub
Content copied to clipboard
Properties
Link copied to clipboard
The AWS customer account associated with the Redshift event notification subscription
Link copied to clipboard
A list of event categories for a SourceType that you want to subscribe to. See https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html or run aws redshift describe-event-categories
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The ARN of the SNS topic to send events to.
Link copied to clipboard
The type of source that will be generating the events. Valid options are cluster
, cluster-parameter-group
, cluster-security-group
, cluster-snapshot
, or scheduled-action
. If not set, all sources will be subscribed to.