import * as core from "@terrascript/core"; export interface ApplicationArgs extends core.ResourceArgs { /** * (Optional) Indicates whether Application Insights automatically configures unmonitored resources in * the resource group. */ autoConfigEnabled?: boolean | core.BooleanOut; /** * (Optional) Configures all of the resources in the resource group by applying the recommended configu * rations. */ autoCreate?: boolean | core.BooleanOut; /** * (Optional) Indicates whether Application Insights can listen to CloudWatch events for the applicati * on resources, such as instance terminated, failed deployment, and others. */ cweMonitorEnabled?: boolean | core.BooleanOut; /** * (Optional) Application Insights can create applications based on a resource group or on an account. * To create an account-based application using all of the resources in the account, set this parameter * to `ACCOUNT_BASED`. */ groupingType?: string | core.StringOut; /** * (Optional) When set to `true`, creates opsItems for any problems detected on an application. */ opsCenterEnabled?: boolean | core.BooleanOut; /** * (Optional) The SNS topic provided to Application Insights that is associated to the created opsItem. * Allows you to receive notifications for updates to the opsItem. */ opsItemSnsTopicArn?: string | core.StringOut; /** * (Required) The name of the resource group. */ resourceGroupName: 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 Application extends core.Resource { /** * Amazon Resource Name (ARN) of the Application. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Indicates whether Application Insights automatically configures unmonitored resources in * the resource group. */ @core.attr(Boolean) public autoConfigEnabled?: boolean | core.BooleanOut; /** * (Optional) Configures all of the resources in the resource group by applying the recommended configu * rations. */ @core.attr(Boolean) public autoCreate?: boolean | core.BooleanOut; /** * (Optional) Indicates whether Application Insights can listen to CloudWatch events for the applicati * on resources, such as instance terminated, failed deployment, and others. */ @core.attr(Boolean) public cweMonitorEnabled?: boolean | core.BooleanOut; /** * (Optional) Application Insights can create applications based on a resource group or on an account. * To create an account-based application using all of the resources in the account, set this parameter * to `ACCOUNT_BASED`. */ @core.attr(String) public groupingType?: string | core.StringOut; /** * The name of the resource group. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) When set to `true`, creates opsItems for any problems detected on an application. */ @core.attr(Boolean) public opsCenterEnabled?: boolean | core.BooleanOut; /** * (Optional) The SNS topic provided to Application Insights that is associated to the created opsItem. * Allows you to receive notifications for updates to the opsItem. */ @core.attr(String) public opsItemSnsTopicArn?: string | core.StringOut; /** * (Required) The name of the resource group. */ @core.attr(String) public resourceGroupName!: 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?: ApplicationArgs) { super(name, "aws_applicationinsights_application", args); } public override getNamespace(): string { return "aws_applicationinsights"; } }