import * as core from "@terrascript/core"; export interface AppMonitorConfigurationArgs extends core.SchemaArgs { allowCookies?: boolean | core.BooleanOut; enableXray?: boolean | core.BooleanOut; excludedPages?: core.Array | core.ArrayOut; favoritePages?: core.Array | core.ArrayOut; guestRoleArn?: string | core.StringOut; identityPoolId?: string | core.StringOut; includedPages?: core.Array | core.ArrayOut; sessionSampleRate?: number | core.NumberOut; telemetries?: core.Array | core.ArrayOut; } export class AppMonitorConfiguration extends core.Schema { @core.attr(Boolean) public allowCookies?: boolean | core.BooleanOut; @core.attr(Boolean) public enableXray?: boolean | core.BooleanOut; @core.attr(String, { kind: "array" }) public excludedPages?: core.Array | core.ArrayOut; @core.attr(String, { kind: "array" }) public favoritePages?: core.Array | core.ArrayOut; @core.attr(String) public guestRoleArn?: string | core.StringOut; @core.attr(String) public identityPoolId?: string | core.StringOut; @core.attr(String, { kind: "array" }) public includedPages?: core.Array | core.ArrayOut; @core.attr(Number) public sessionSampleRate?: number | core.NumberOut; @core.attr(String, { kind: "array" }) public telemetries?: core.Array | core.ArrayOut; } export interface AppMonitorArgs extends core.ResourceArgs { appMonitorConfiguration?: AppMonitorConfiguration; /** * (Optional) Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specif * ies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This * enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Lo * gs charges. Default value is `false`. */ cwLogEnabled?: boolean | core.BooleanOut; /** * (Required) The top-level internet domain name for which your application has administrative authorit * y. */ domain: string | core.StringOut; /** * (Required) The name of the log stream. */ name: 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 AppMonitor extends core.Resource { @core.attr(AppMonitorConfiguration, { computed: true }) public appMonitorConfiguration?: AppMonitorConfiguration; /** * The Amazon Resource Name (ARN) specifying the app monitor. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specif * ies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This * enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Lo * gs charges. Default value is `false`. */ @core.attr(Boolean) public cwLogEnabled?: boolean | core.BooleanOut; /** * The name of the log group where the copies are stored. */ @core.attr(String, { computed: true }) public cwLogGroup!: string | core.StringOut; /** * (Required) The top-level internet domain name for which your application has administrative authorit * y. */ @core.attr(String) public domain!: string | core.StringOut; /** * TThe Amazon Resource Name (ARN) specifying the app monitor. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the log stream. */ @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` 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?: AppMonitorArgs) { super(name, "aws_rum_app_monitor", args); } public override getNamespace(): string { return "aws_rum"; } }