import * as core from "@terrascript/core"; export interface CloudwatchEventArchiveArgs extends core.ResourceArgs { /** * (Optional) The description of the new event archive. */ description?: string | core.StringOut; /** * (Optional) Instructs the new event archive to only capture events matched by this pattern. By defaul * t, it attempts to archive every event received in the `event_source_arn`. */ eventPattern?: string | core.StringOut; /** * (Required) Event bus source ARN from where these events should be archived. */ eventSourceArn: string | core.StringOut; /** * (Required) The name of the new event archive. The archive name cannot exceed 48 characters. */ name: string | core.StringOut; /** * (Optional) The maximum number of days to retain events in the new event archive. By default, it arch * ives indefinitely. */ retentionDays?: number | core.NumberOut; } export class CloudwatchEventArchive extends core.Resource { /** * The Amazon Resource Name (ARN) of the event archive. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The description of the new event archive. */ @core.attr(String) public description?: string | core.StringOut; /** * (Optional) Instructs the new event archive to only capture events matched by this pattern. By defaul * t, it attempts to archive every event received in the `event_source_arn`. */ @core.attr(String) public eventPattern?: string | core.StringOut; /** * (Required) Event bus source ARN from where these events should be archived. */ @core.attr(String) public eventSourceArn!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the new event archive. The archive name cannot exceed 48 characters. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) The maximum number of days to retain events in the new event archive. By default, it arch * ives indefinitely. */ @core.attr(Number) public retentionDays?: number | core.NumberOut; constructor(name: string, args?: CloudwatchEventArchiveArgs) { super(name, "aws_cloudwatch_event_archive", args); } public override getNamespace(): string { return "aws_eventbridge"; } }