import * as core from "@terrascript/core"; export interface CloudwatchEventBusArgs extends core.ResourceArgs { eventSourceName?: string | core.StringOut; /** * (Required) The name of the new event bus. The names of custom event buses can't contain the / charac * ter. To create a partner event bus, ensure the `name` matches the `event_source_name`. */ name: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` c * onfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-c * onfiguration-block) present, tags with matching keys will overwrite those defined at the provider-le * vel. */ 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 CloudwatchEventBus extends core.Resource { /** * The Amazon Resource Name (ARN) of the event bus. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; @core.attr(String) public eventSourceName?: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the new event bus. The names of custom event buses can't contain the / charac * ter. To create a partner event bus, ensure the `name` matches the `event_source_name`. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` c * onfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-c * onfiguration-block) present, tags with matching keys will overwrite those defined at the provider-le * vel. */ @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?: CloudwatchEventBusArgs) { super(name, "aws_cloudwatch_event_bus", args); } public override getNamespace(): string { return "aws_eventbridge"; } }