1. Packages
  2. AWS
  3. API Docs
  4. neptune
  5. EventSubscription
AWS v6.62.1 published on Monday, Dec 2, 2024 by Pulumi

aws.neptune.EventSubscription

Explore with Pulumi AI

aws logo
AWS v6.62.1 published on Monday, Dec 2, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const _default = new aws.neptune.Cluster("default", {
        clusterIdentifier: "neptune-cluster-demo",
        engine: "neptune",
        backupRetentionPeriod: 5,
        preferredBackupWindow: "07:00-09:00",
        skipFinalSnapshot: true,
        iamDatabaseAuthenticationEnabled: true,
        applyImmediately: true,
    });
    const example = new aws.neptune.ClusterInstance("example", {
        clusterIdentifier: _default.id,
        engine: "neptune",
        instanceClass: "db.r4.large",
        applyImmediately: true,
    });
    const defaultTopic = new aws.sns.Topic("default", {name: "neptune-events"});
    const defaultEventSubscription = new aws.neptune.EventSubscription("default", {
        name: "neptune-event-sub",
        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: {
            env: "test",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    default = aws.neptune.Cluster("default",
        cluster_identifier="neptune-cluster-demo",
        engine="neptune",
        backup_retention_period=5,
        preferred_backup_window="07:00-09:00",
        skip_final_snapshot=True,
        iam_database_authentication_enabled=True,
        apply_immediately=True)
    example = aws.neptune.ClusterInstance("example",
        cluster_identifier=default.id,
        engine="neptune",
        instance_class="db.r4.large",
        apply_immediately=True)
    default_topic = aws.sns.Topic("default", name="neptune-events")
    default_event_subscription = aws.neptune.EventSubscription("default",
        name="neptune-event-sub",
        sns_topic_arn=default_topic.arn,
        source_type="db-instance",
        source_ids=[example.id],
        event_categories=[
            "maintenance",
            "availability",
            "creation",
            "backup",
            "restoration",
            "recovery",
            "deletion",
            "failover",
            "failure",
            "notification",
            "configuration change",
            "read replica",
        ],
        tags={
            "env": "test",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/neptune"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sns"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := neptune.NewCluster(ctx, "default", &neptune.ClusterArgs{
    			ClusterIdentifier:                pulumi.String("neptune-cluster-demo"),
    			Engine:                           pulumi.String("neptune"),
    			BackupRetentionPeriod:            pulumi.Int(5),
    			PreferredBackupWindow:            pulumi.String("07:00-09:00"),
    			SkipFinalSnapshot:                pulumi.Bool(true),
    			IamDatabaseAuthenticationEnabled: pulumi.Bool(true),
    			ApplyImmediately:                 pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		example, err := neptune.NewClusterInstance(ctx, "example", &neptune.ClusterInstanceArgs{
    			ClusterIdentifier: _default.ID(),
    			Engine:            pulumi.String("neptune"),
    			InstanceClass:     pulumi.String("db.r4.large"),
    			ApplyImmediately:  pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		defaultTopic, err := sns.NewTopic(ctx, "default", &sns.TopicArgs{
    			Name: pulumi.String("neptune-events"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = neptune.NewEventSubscription(ctx, "default", &neptune.EventSubscriptionArgs{
    			Name:        pulumi.String("neptune-event-sub"),
    			SnsTopicArn: defaultTopic.Arn,
    			SourceType:  pulumi.String("db-instance"),
    			SourceIds: pulumi.StringArray{
    				example.ID(),
    			},
    			EventCategories: pulumi.StringArray{
    				pulumi.String("maintenance"),
    				pulumi.String("availability"),
    				pulumi.String("creation"),
    				pulumi.String("backup"),
    				pulumi.String("restoration"),
    				pulumi.String("recovery"),
    				pulumi.String("deletion"),
    				pulumi.String("failover"),
    				pulumi.String("failure"),
    				pulumi.String("notification"),
    				pulumi.String("configuration change"),
    				pulumi.String("read replica"),
    			},
    			Tags: pulumi.StringMap{
    				"env": pulumi.String("test"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Aws.Neptune.Cluster("default", new()
        {
            ClusterIdentifier = "neptune-cluster-demo",
            Engine = "neptune",
            BackupRetentionPeriod = 5,
            PreferredBackupWindow = "07:00-09:00",
            SkipFinalSnapshot = true,
            IamDatabaseAuthenticationEnabled = true,
            ApplyImmediately = true,
        });
    
        var example = new Aws.Neptune.ClusterInstance("example", new()
        {
            ClusterIdentifier = @default.Id,
            Engine = "neptune",
            InstanceClass = "db.r4.large",
            ApplyImmediately = true,
        });
    
        var defaultTopic = new Aws.Sns.Topic("default", new()
        {
            Name = "neptune-events",
        });
    
        var defaultEventSubscription = new Aws.Neptune.EventSubscription("default", new()
        {
            Name = "neptune-event-sub",
            SnsTopicArn = defaultTopic.Arn,
            SourceType = "db-instance",
            SourceIds = new[]
            {
                example.Id,
            },
            EventCategories = new[]
            {
                "maintenance",
                "availability",
                "creation",
                "backup",
                "restoration",
                "recovery",
                "deletion",
                "failover",
                "failure",
                "notification",
                "configuration change",
                "read replica",
            },
            Tags = 
            {
                { "env", "test" },
            },
        });
    
    });
    
    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.sns.TopicArgs;
    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 default_ = new Cluster("default", 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(default_.id())
                .engine("neptune")
                .instanceClass("db.r4.large")
                .applyImmediately("true")
                .build());
    
            var defaultTopic = new Topic("defaultTopic", TopicArgs.builder()
                .name("neptune-events")
                .build());
    
            var defaultEventSubscription = new EventSubscription("defaultEventSubscription", EventSubscriptionArgs.builder()
                .name("neptune-event-sub")
                .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());
    
        }
    }
    
    resources:
      default:
        type: aws:neptune:Cluster
        properties:
          clusterIdentifier: neptune-cluster-demo
          engine: neptune
          backupRetentionPeriod: 5
          preferredBackupWindow: 07:00-09:00
          skipFinalSnapshot: true
          iamDatabaseAuthenticationEnabled: 'true'
          applyImmediately: 'true'
      example:
        type: aws:neptune:ClusterInstance
        properties:
          clusterIdentifier: ${default.id}
          engine: neptune
          instanceClass: db.r4.large
          applyImmediately: 'true'
      defaultTopic:
        type: aws:sns:Topic
        name: default
        properties:
          name: neptune-events
      defaultEventSubscription:
        type: aws:neptune:EventSubscription
        name: default
        properties:
          name: neptune-event-sub
          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:
            env: test
    

    Create EventSubscription Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EventSubscription(name: string, args: EventSubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def EventSubscription(resource_name: str,
                          args: EventSubscriptionArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def EventSubscription(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          sns_topic_arn: Optional[str] = None,
                          enabled: Optional[bool] = None,
                          event_categories: Optional[Sequence[str]] = None,
                          name: Optional[str] = None,
                          name_prefix: Optional[str] = None,
                          source_ids: Optional[Sequence[str]] = None,
                          source_type: Optional[str] = None,
                          tags: Optional[Mapping[str, str]] = None)
    func NewEventSubscription(ctx *Context, name string, args EventSubscriptionArgs, opts ...ResourceOption) (*EventSubscription, error)
    public EventSubscription(string name, EventSubscriptionArgs args, CustomResourceOptions? opts = null)
    public EventSubscription(String name, EventSubscriptionArgs args)
    public EventSubscription(String name, EventSubscriptionArgs args, CustomResourceOptions options)
    
    type: aws:neptune:EventSubscription
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EventSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EventSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EventSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EventSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EventSubscriptionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var exampleeventSubscriptionResourceResourceFromNeptuneeventSubscription = new Aws.Neptune.EventSubscription("exampleeventSubscriptionResourceResourceFromNeptuneeventSubscription", new()
    {
        SnsTopicArn = "string",
        Enabled = false,
        EventCategories = new[]
        {
            "string",
        },
        Name = "string",
        NamePrefix = "string",
        SourceIds = new[]
        {
            "string",
        },
        SourceType = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := neptune.NewEventSubscription(ctx, "exampleeventSubscriptionResourceResourceFromNeptuneeventSubscription", &neptune.EventSubscriptionArgs{
    	SnsTopicArn: pulumi.String("string"),
    	Enabled:     pulumi.Bool(false),
    	EventCategories: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name:       pulumi.String("string"),
    	NamePrefix: pulumi.String("string"),
    	SourceIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SourceType: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var exampleeventSubscriptionResourceResourceFromNeptuneeventSubscription = new EventSubscription("exampleeventSubscriptionResourceResourceFromNeptuneeventSubscription", EventSubscriptionArgs.builder()
        .snsTopicArn("string")
        .enabled(false)
        .eventCategories("string")
        .name("string")
        .namePrefix("string")
        .sourceIds("string")
        .sourceType("string")
        .tags(Map.of("string", "string"))
        .build());
    
    exampleevent_subscription_resource_resource_from_neptuneevent_subscription = aws.neptune.EventSubscription("exampleeventSubscriptionResourceResourceFromNeptuneeventSubscription",
        sns_topic_arn="string",
        enabled=False,
        event_categories=["string"],
        name="string",
        name_prefix="string",
        source_ids=["string"],
        source_type="string",
        tags={
            "string": "string",
        })
    
    const exampleeventSubscriptionResourceResourceFromNeptuneeventSubscription = new aws.neptune.EventSubscription("exampleeventSubscriptionResourceResourceFromNeptuneeventSubscription", {
        snsTopicArn: "string",
        enabled: false,
        eventCategories: ["string"],
        name: "string",
        namePrefix: "string",
        sourceIds: ["string"],
        sourceType: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:neptune:EventSubscription
    properties:
        enabled: false
        eventCategories:
            - string
        name: string
        namePrefix: string
        snsTopicArn: string
        sourceIds:
            - string
        sourceType: string
        tags:
            string: string
    

    EventSubscription Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EventSubscription resource accepts the following input properties:

    SnsTopicArn string
    The ARN of the SNS topic to send events to.
    Enabled bool
    A boolean flag to enable/disable the subscription. Defaults to true.
    EventCategories List<string>
    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.
    Name string
    The name of the Neptune event subscription. By default generated by this provider.
    NamePrefix string
    The name of the Neptune event subscription. Conflicts with name.
    SourceIds List<string>
    A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    SourceType string
    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.
    Tags Dictionary<string, string>
    A map of 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.
    SnsTopicArn string
    The ARN of the SNS topic to send events to.
    Enabled bool
    A boolean flag to enable/disable the subscription. Defaults to true.
    EventCategories []string
    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.
    Name string
    The name of the Neptune event subscription. By default generated by this provider.
    NamePrefix string
    The name of the Neptune event subscription. Conflicts with name.
    SourceIds []string
    A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    SourceType string
    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.
    Tags map[string]string
    A map of 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.
    snsTopicArn String
    The ARN of the SNS topic to send events to.
    enabled Boolean
    A boolean flag to enable/disable the subscription. Defaults to true.
    eventCategories List<String>
    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.
    name String
    The name of the Neptune event subscription. By default generated by this provider.
    namePrefix String
    The name of the Neptune event subscription. Conflicts with name.
    sourceIds List<String>
    A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    sourceType String
    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.
    tags Map<String,String>
    A map of 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.
    snsTopicArn string
    The ARN of the SNS topic to send events to.
    enabled boolean
    A boolean flag to enable/disable the subscription. Defaults to true.
    eventCategories string[]
    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.
    name string
    The name of the Neptune event subscription. By default generated by this provider.
    namePrefix string
    The name of the Neptune event subscription. Conflicts with name.
    sourceIds string[]
    A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    sourceType string
    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.
    tags {[key: string]: string}
    A map of 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.
    sns_topic_arn str
    The ARN of the SNS topic to send events to.
    enabled bool
    A boolean flag to enable/disable the subscription. Defaults to true.
    event_categories Sequence[str]
    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.
    name str
    The name of the Neptune event subscription. By default generated by this provider.
    name_prefix str
    The name of the Neptune event subscription. Conflicts with name.
    source_ids Sequence[str]
    A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    source_type str
    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.
    tags Mapping[str, str]
    A map of 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.
    snsTopicArn String
    The ARN of the SNS topic to send events to.
    enabled Boolean
    A boolean flag to enable/disable the subscription. Defaults to true.
    eventCategories List<String>
    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.
    name String
    The name of the Neptune event subscription. By default generated by this provider.
    namePrefix String
    The name of the Neptune event subscription. Conflicts with name.
    sourceIds List<String>
    A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    sourceType String
    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.
    tags Map<String>
    A map of 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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EventSubscription resource produces the following output properties:

    Arn string
    The Amazon Resource Name of the Neptune event notification subscription.
    CustomerAwsId string
    The AWS customer account associated with the Neptune event notification subscription.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    The Amazon Resource Name of the Neptune event notification subscription.
    CustomerAwsId string
    The AWS customer account associated with the Neptune event notification subscription.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name of the Neptune event notification subscription.
    customerAwsId String
    The AWS customer account associated with the Neptune event notification subscription.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    The Amazon Resource Name of the Neptune event notification subscription.
    customerAwsId string
    The AWS customer account associated with the Neptune event notification subscription.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    The Amazon Resource Name of the Neptune event notification subscription.
    customer_aws_id str
    The AWS customer account associated with the Neptune event notification subscription.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name of the Neptune event notification subscription.
    customerAwsId String
    The AWS customer account associated with the Neptune event notification subscription.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing EventSubscription Resource

    Get an existing EventSubscription resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EventSubscriptionState, opts?: CustomResourceOptions): EventSubscription
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            customer_aws_id: Optional[str] = None,
            enabled: Optional[bool] = None,
            event_categories: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            name_prefix: Optional[str] = None,
            sns_topic_arn: Optional[str] = None,
            source_ids: Optional[Sequence[str]] = None,
            source_type: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> EventSubscription
    func GetEventSubscription(ctx *Context, name string, id IDInput, state *EventSubscriptionState, opts ...ResourceOption) (*EventSubscription, error)
    public static EventSubscription Get(string name, Input<string> id, EventSubscriptionState? state, CustomResourceOptions? opts = null)
    public static EventSubscription get(String name, Output<String> id, EventSubscriptionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    The Amazon Resource Name of the Neptune event notification subscription.
    CustomerAwsId string
    The AWS customer account associated with the Neptune event notification subscription.
    Enabled bool
    A boolean flag to enable/disable the subscription. Defaults to true.
    EventCategories List<string>
    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.
    Name string
    The name of the Neptune event subscription. By default generated by this provider.
    NamePrefix string
    The name of the Neptune event subscription. Conflicts with name.
    SnsTopicArn string
    The ARN of the SNS topic to send events to.
    SourceIds List<string>
    A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    SourceType string
    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.
    Tags Dictionary<string, string>
    A map of 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.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    The Amazon Resource Name of the Neptune event notification subscription.
    CustomerAwsId string
    The AWS customer account associated with the Neptune event notification subscription.
    Enabled bool
    A boolean flag to enable/disable the subscription. Defaults to true.
    EventCategories []string
    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.
    Name string
    The name of the Neptune event subscription. By default generated by this provider.
    NamePrefix string
    The name of the Neptune event subscription. Conflicts with name.
    SnsTopicArn string
    The ARN of the SNS topic to send events to.
    SourceIds []string
    A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    SourceType string
    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.
    Tags map[string]string
    A map of 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.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name of the Neptune event notification subscription.
    customerAwsId String
    The AWS customer account associated with the Neptune event notification subscription.
    enabled Boolean
    A boolean flag to enable/disable the subscription. Defaults to true.
    eventCategories List<String>
    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.
    name String
    The name of the Neptune event subscription. By default generated by this provider.
    namePrefix String
    The name of the Neptune event subscription. Conflicts with name.
    snsTopicArn String
    The ARN of the SNS topic to send events to.
    sourceIds List<String>
    A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    sourceType String
    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.
    tags Map<String,String>
    A map of 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.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    The Amazon Resource Name of the Neptune event notification subscription.
    customerAwsId string
    The AWS customer account associated with the Neptune event notification subscription.
    enabled boolean
    A boolean flag to enable/disable the subscription. Defaults to true.
    eventCategories string[]
    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.
    name string
    The name of the Neptune event subscription. By default generated by this provider.
    namePrefix string
    The name of the Neptune event subscription. Conflicts with name.
    snsTopicArn string
    The ARN of the SNS topic to send events to.
    sourceIds string[]
    A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    sourceType string
    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.
    tags {[key: string]: string}
    A map of 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.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    The Amazon Resource Name of the Neptune event notification subscription.
    customer_aws_id str
    The AWS customer account associated with the Neptune event notification subscription.
    enabled bool
    A boolean flag to enable/disable the subscription. Defaults to true.
    event_categories Sequence[str]
    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.
    name str
    The name of the Neptune event subscription. By default generated by this provider.
    name_prefix str
    The name of the Neptune event subscription. Conflicts with name.
    sns_topic_arn str
    The ARN of the SNS topic to send events to.
    source_ids Sequence[str]
    A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    source_type str
    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.
    tags Mapping[str, str]
    A map of 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.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The Amazon Resource Name of the Neptune event notification subscription.
    customerAwsId String
    The AWS customer account associated with the Neptune event notification subscription.
    enabled Boolean
    A boolean flag to enable/disable the subscription. Defaults to true.
    eventCategories List<String>
    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.
    name String
    The name of the Neptune event subscription. By default generated by this provider.
    namePrefix String
    The name of the Neptune event subscription. Conflicts with name.
    snsTopicArn String
    The ARN of the SNS topic to send events to.
    sourceIds List<String>
    A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    sourceType String
    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.
    tags Map<String>
    A map of 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.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Import

    Using pulumi import, import aws_neptune_event_subscription using the event subscription name. For example:

    $ pulumi import aws:neptune/eventSubscription:EventSubscription example my-event-subscription
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.62.1 published on Monday, Dec 2, 2024 by Pulumi