Event Subscription
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.neptune.Cluster;
import com.pulumi.aws.neptune.ClusterArgs;
import com.pulumi.aws.neptune.ClusterInstance;
import com.pulumi.aws.neptune.ClusterInstanceArgs;
import com.pulumi.aws.sns.Topic;
import com.pulumi.aws.neptune.EventSubscription;
import com.pulumi.aws.neptune.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("neptune-cluster-demo")
.engine("neptune")
.backupRetentionPeriod(5)
.preferredBackupWindow("07:00-09:00")
.skipFinalSnapshot(true)
.iamDatabaseAuthenticationEnabled("true")
.applyImmediately("true")
.build());
var example = new ClusterInstance("example", ClusterInstanceArgs.builder()
.clusterIdentifier(defaultCluster.id())
.engine("neptune")
.instanceClass("db.r4.large")
.applyImmediately("true")
.build());
var defaultTopic = new Topic("defaultTopic");
var defaultEventSubscription = new EventSubscription("defaultEventSubscription", EventSubscriptionArgs.builder()
.snsTopicArn(defaultTopic.arn())
.sourceType("db-instance")
.sourceIds(example.id())
.eventCategories(
"maintenance",
"availability",
"creation",
"backup",
"restoration",
"recovery",
"deletion",
"failover",
"failure",
"notification",
"configuration change",
"read replica")
.tags(Map.of("env", "test"))
.build());
}
}
Content copied to clipboard
Import
aws_neptune_event_subscription
can be imported by using the event subscription name, e.g.,
$ pulumi import aws:neptune/eventSubscription:EventSubscription example my-event-subscription
Content copied to clipboard
Properties
Link copied to clipboard
The AWS customer account associated with the Neptune event notification subscription.
Link copied to clipboard
A list of event categories for a source_type
that you want to subscribe to. Run aws neptune describe-event-categories
to find all the event categories.
Link copied to clipboard
The name of the Neptune event subscription. Conflicts with name
.
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 db-instance
, db-security-group
, db-parameter-group
, db-snapshot
, db-cluster
or db-cluster-snapshot
. If not set, all sources will be subscribed to.