import * as core from "@terrascript/core"; export interface EventSubscriptionArgs extends core.ResourceArgs { /** * (Optional) A boolean flag to enable/disable the subscription. Defaults to true. */ enabled?: boolean | core.BooleanOut; /** * (Optional) A list of event categories for a SourceType that you want to subscribe to. See https://do * cs.aws.amazon.com/documentdb/latest/developerguide/API_Event.html or run `aws docdb describe-event-c * ategories`. */ eventCategories?: core.Array | core.ArrayOut; /** * (Optional) The name of the DocDB event subscription. By default generated by Terraform. */ name?: string | core.StringOut; /** * (Optional) The name of the DocDB event subscription. Conflicts with `name`. */ namePrefix?: string | core.StringOut; snsTopicArn: string | core.StringOut; /** * (Optional) A list of identifiers of the event sources for which events will be returned. If not spec * ified, then all sources are included in the response. If specified, a source_type must also be speci * fied. */ sourceIds?: core.Array | core.ArrayOut; /** * (Optional) The type of source that will be generating the events. Valid options are `db-instance`, ` * db-cluster`, `db-parameter-group`, `db-security-group`,` db-cluster-snapshot`. If not set, all sourc * es will be subscribed to. */ sourceType?: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ 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 { /** * The Amazon Resource Name of the DocDB event notification subscription */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The AWS customer account associated with the DocDB event notification subscription */ @core.attr(String, { computed: true }) public customerAwsId!: string | core.StringOut; /** * (Optional) A boolean flag to enable/disable the subscription. Defaults to true. */ @core.attr(Boolean) public enabled?: boolean | core.BooleanOut; /** * (Optional) A list of event categories for a SourceType that you want to subscribe to. See https://do * cs.aws.amazon.com/documentdb/latest/developerguide/API_Event.html or run `aws docdb describe-event-c * ategories`. */ @core.attr(String, { kind: "array" }) public eventCategories?: core.Array | core.ArrayOut; /** * The name of the DocDB event notification subscription */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The name of the DocDB event subscription. By default generated by Terraform. */ @core.attr(String, { computed: true }) public name?: string | core.StringOut; /** * (Optional) The name of the DocDB event subscription. Conflicts with `name`. */ @core.attr(String, { computed: true }) public namePrefix?: string | core.StringOut; @core.attr(String) public snsTopicArn!: string | core.StringOut; /** * (Optional) A list of identifiers of the event sources for which events will be returned. If not spec * ified, then all sources are included in the response. If specified, a source_type must also be speci * fied. */ @core.attr(String, { kind: "array" }) public sourceIds?: core.Array | core.ArrayOut; /** * (Optional) The type of source that will be generating the events. Valid options are `db-instance`, ` * db-cluster`, `db-parameter-group`, `db-security-group`,` db-cluster-snapshot`. If not set, all sourc * es will be subscribed to. */ @core.attr(String) public sourceType?: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @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_docdb_event_subscription", args); } public override getNamespace(): string { return "aws_docdb"; } }