EventSubscription
Provides a DMS (Data Migration Service) event subscription resource.
Create a EventSubscription Resource
new EventSubscription(name: string, args: EventSubscriptionArgs, opts?: CustomResourceOptions);def EventSubscription(resource_name, opts=None, enabled=None, event_categories=None, name=None, sns_topic_arn=None, source_ids=None, source_type=None, tags=None, __props__=None);func NewEventSubscription(ctx *Context, name string, args EventSubscriptionArgs, opts ...ResourceOption) (*EventSubscription, error)public EventSubscription(string name, EventSubscriptionArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
EventSubscription Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The EventSubscription resource accepts the following input properties:
- Event
Categories List<string> List of event categories to listen for, see
DescribeEventCategoriesfor a canonical list.- Sns
Topic stringArn SNS topic arn to send events on.
- Enabled bool
Whether the event subscription should be enabled.
- Name string
Name of event subscription.
- Source
Ids List<string> Ids of sources to listen to.
- Source
Type string Type of source for events. Valid values:
replication-instanceorreplication-task- Dictionary<string, string>
- Event
Categories []string List of event categories to listen for, see
DescribeEventCategoriesfor a canonical list.- Sns
Topic stringArn SNS topic arn to send events on.
- Enabled bool
Whether the event subscription should be enabled.
- Name string
Name of event subscription.
- Source
Ids []string Ids of sources to listen to.
- Source
Type string Type of source for events. Valid values:
replication-instanceorreplication-task- map[string]string
- event
Categories string[] List of event categories to listen for, see
DescribeEventCategoriesfor a canonical list.- sns
Topic stringArn SNS topic arn to send events on.
- enabled boolean
Whether the event subscription should be enabled.
- name string
Name of event subscription.
- source
Ids string[] Ids of sources to listen to.
- source
Type string Type of source for events. Valid values:
replication-instanceorreplication-task- {[key: string]: string}
- event_
categories List[str] List of event categories to listen for, see
DescribeEventCategoriesfor a canonical list.- sns_
topic_ strarn SNS topic arn to send events on.
- enabled bool
Whether the event subscription should be enabled.
- name str
Name of event subscription.
- source_
ids List[str] Ids of sources to listen to.
- source_
type str Type of source for events. Valid values:
replication-instanceorreplication-task- Dict[str, str]
Outputs
All input properties are implicitly available as output properties. Additionally, the EventSubscription resource produces the following output properties:
Look up an 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): EventSubscriptionstatic get(resource_name, id, opts=None, arn=None, enabled=None, event_categories=None, name=None, sns_topic_arn=None, source_ids=None, source_type=None, tags=None, __props__=None);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)- 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.
The following state arguments are supported:
- Arn string
- Enabled bool
Whether the event subscription should be enabled.
- Event
Categories List<string> List of event categories to listen for, see
DescribeEventCategoriesfor a canonical list.- Name string
Name of event subscription.
- Sns
Topic stringArn SNS topic arn to send events on.
- Source
Ids List<string> Ids of sources to listen to.
- Source
Type string Type of source for events. Valid values:
replication-instanceorreplication-task- Dictionary<string, string>
- Arn string
- Enabled bool
Whether the event subscription should be enabled.
- Event
Categories []string List of event categories to listen for, see
DescribeEventCategoriesfor a canonical list.- Name string
Name of event subscription.
- Sns
Topic stringArn SNS topic arn to send events on.
- Source
Ids []string Ids of sources to listen to.
- Source
Type string Type of source for events. Valid values:
replication-instanceorreplication-task- map[string]string
- arn string
- enabled boolean
Whether the event subscription should be enabled.
- event
Categories string[] List of event categories to listen for, see
DescribeEventCategoriesfor a canonical list.- name string
Name of event subscription.
- sns
Topic stringArn SNS topic arn to send events on.
- source
Ids string[] Ids of sources to listen to.
- source
Type string Type of source for events. Valid values:
replication-instanceorreplication-task- {[key: string]: string}
- arn str
- enabled bool
Whether the event subscription should be enabled.
- event_
categories List[str] List of event categories to listen for, see
DescribeEventCategoriesfor a canonical list.- name str
Name of event subscription.
- sns_
topic_ strarn SNS topic arn to send events on.
- source_
ids List[str] Ids of sources to listen to.
- source_
type str Type of source for events. Valid values:
replication-instanceorreplication-task- Dict[str, str]
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.