import * as core from "@terrascript/core"; export interface EventSubscriptionArgs extends core.ResourceArgs { /** * (Optional, Default: true) Whether the event subscription should be enabled. */ enabled?: boolean | core.BooleanOut; /** * (Optional) List of event categories to listen for, see `DescribeEventCategories` for a canonical lis * t. */ eventCategories: core.Array | core.ArrayOut; /** * (Required) Name of event subscription. */ name: string | core.StringOut; /** * (Required) SNS topic arn to send events on. */ snsTopicArn: string | core.StringOut; /** * (Required) Ids of sources to listen to. */ sourceIds?: core.Array | core.ArrayOut; /** * (Optional, Default: all events) Type of source for events. Valid values: `replication-instance` or ` * replication-task` */ sourceType?: string | core.StringOut; /** * (Optional) Map of resource tags to assign to the resource. If configured with a provider [`default_t * ags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_ * tags-configuration-block) present, tags with matching keys will overwrite those defined at the provi * der-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class EventSubscription extends core.Resource { /** * Amazon Resource Name (ARN) of the DMS Event Subscription. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional, Default: true) Whether the event subscription should be enabled. */ @core.attr(Boolean) public enabled?: boolean | core.BooleanOut; /** * (Optional) List of event categories to listen for, see `DescribeEventCategories` for a canonical lis * t. */ @core.attr(String, { kind: "array" }) public eventCategories!: core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Name of event subscription. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) SNS topic arn to send events on. */ @core.attr(String) public snsTopicArn!: string | core.StringOut; /** * (Required) Ids of sources to listen to. */ @core.attr(String, { kind: "array" }) public sourceIds?: core.Array | core.ArrayOut; /** * (Optional, Default: all events) Type of source for events. Valid values: `replication-instance` or ` * replication-task` */ @core.attr(String) public sourceType?: string | core.StringOut; /** * (Optional) Map of resource tags to assign to the resource. If configured with a provider [`default_t * ags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_ * tags-configuration-block) present, tags with matching keys will overwrite those defined at the provi * der-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: EventSubscriptionArgs) { super(name, "aws_dms_event_subscription", args); } public override getNamespace(): string { return "aws_dms"; } }