# CfnApplication

L1 construct · External

The `AWS::ApplicationInsights::Application` resource adds an application that is created from a resource group.

Extends: [Construct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Construct.html) › [CfnElement](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnElement.html) › [CfnRefElement](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnRefElement.html) › [CfnResource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnResource.html) › CfnApplication
Implements: [IInspectable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IInspectable.html), [ITaggable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ITaggable.html), [IEnvironmentAware](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.IEnvironmentAware.html), [IApplicationRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_applicationinsights.IApplicationRef.html), IConstruct, IDependable

- CloudFormation: [`AWS::ApplicationInsights::Application`](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-applicationinsights-application.html)
- Source: Generated at build time
- Type last changed: v2.252.0 · 30 Apr 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationinsights as applicationinsights } from 'aws-cdk-lib';
const cfnApplication = new applicationinsights.CfnApplication(this, 'MyCfnApplication', {
  resourceGroupName: 'resourceGroupName',

  // the properties below are optional
  attachMissingPermission: false,
  autoConfigurationEnabled: false,
  componentMonitoringSettings: [{
    componentConfigurationMode: 'componentConfigurationMode',
    tier: 'tier',

    // the properties below are optional
    componentArn: 'componentArn',
    componentName: 'componentName',
    customComponentConfiguration: {
      configurationDetails: {
        alarmMetrics: [{
          alarmMetricName: 'alarmMetricName',
        }],
        alarms: [{
          alarmName: 'alarmName',

          // the properties below are optional
          severity: 'severity',
        }],
        haClusterPrometheusExporter: {
          prometheusPort: 'prometheusPort',
        },
        hanaPrometheusExporter: {
          agreeToInstallHanadbClient: false,
          hanaPort: 'hanaPort',
          hanaSecretName: 'hanaSecretName',
          hanasid: 'hanasid',

          // the properties below are optional
          prometheusPort: 'prometheusPort',
        },
        jmxPrometheusExporter: {
          hostPort: 'hostPort',
          jmxurl: 'jmxurl',
          prometheusPort: 'prometheusPort',
        },
        logs: [{
          logType: 'logType',

          // the properties below are optional
          encoding: 'encoding',
          logGroupName: 'logGroupName',
          logPath: 'logPath',
          patternSet: 'patternSet',
        }],
        netWeaverPrometheusExporter: {
          instanceNumbers: ['instanceNumbers'],
          sapsid: 'sapsid',

          // the properties below are optional
          prometheusPort: 'prometheusPort',
        },
        processes: [{
          alarmMetrics: [{
            alarmMetricName: 'alarmMetricName',
          }],
          processName: 'processName',
        }],
        sqlServerPrometheusExporter: {
          prometheusPort: 'prometheusPort',
          sqlSecretName: 'sqlSecretName',
        },
        windowsEvents: [{
          eventLevels: ['eventLevels'],
          eventName: 'eventName',
          logGroupName: 'logGroupName',

          // the properties below are optional
          patternSet: 'patternSet',
        }],
      },
      subComponentTypeConfigurations: [{
        subComponentConfigurationDetails: {
          alarmMetrics: [{
            alarmMetricName: 'alarmMetricName',
          }],
          logs: [{
            logType: 'logType',

            // the properties below are optional
            encoding: 'encoding',
            logGroupName: 'logGroupName',
            logPath: 'logPath',
            patternSet: 'patternSet',
          }],
          processes: [{
            alarmMetrics: [{
              alarmMetricName: 'alarmMetricName',
            }],
            processName: 'processName',
          }],
          windowsEvents: [{
            eventLevels: ['eventLevels'],
            eventName: 'eventName',
            logGroupName: 'logGroupName',

            // the properties below are optional
            patternSet: 'patternSet',
          }],
        },
        subComponentType: 'subComponentType',
      }],
    },
    defaultOverwriteComponentConfiguration: {
      configurationDetails: {
        alarmMetrics: [{
          alarmMetricName: 'alarmMetricName',
        }],
        alarms: [{
          alarmName: 'alarmName',

          // the properties below are optional
          severity: 'severity',
        }],
        haClusterPrometheusExporter: {
          prometheusPort: 'prometheusPort',
        },
        hanaPrometheusExporter: {
          agreeToInstallHanadbClient: false,
          hanaPort: 'hanaPort',
          hanaSecretName: 'hanaSecretName',
          hanasid: 'hanasid',

          // the properties below are optional
          prometheusPort: 'prometheusPort',
        },
        jmxPrometheusExporter: {
          hostPort: 'hostPort',
          jmxurl: 'jmxurl',
          prometheusPort: 'prometheusPort',
        },
        logs: [{
          logType: 'logType',

          // the properties below are optional
          encoding: 'encoding',
          logGroupName: 'logGroupName',
          logPath: 'logPath',
          patternSet: 'patternSet',
        }],
        netWeaverPrometheusExporter: {
          instanceNumbers: ['instanceNumbers'],
          sapsid: 'sapsid',

          // the properties below are optional
          prometheusPort: 'prometheusPort',
        },
        processes: [{
          alarmMetrics: [{
            alarmMetricName: 'alarmMetricName',
          }],
          processName: 'processName',
        }],
        sqlServerPrometheusExporter: {
          prometheusPort: 'prometheusPort',
          sqlSecretName: 'sqlSecretName',
        },
        windowsEvents: [{
          eventLevels: ['eventLevels'],
          eventName: 'eventName',
          logGroupName: 'logGroupName',

          // the properties below are optional
          patternSet: 'patternSet',
        }],
      },
      subComponentTypeConfigurations: [{
        subComponentConfigurationDetails: {
          alarmMetrics: [{
            alarmMetricName: 'alarmMetricName',
          }],
          logs: [{
            logType: 'logType',

            // the properties below are optional
            encoding: 'encoding',
            logGroupName: 'logGroupName',
            logPath: 'logPath',
            patternSet: 'patternSet',
          }],
          processes: [{
            alarmMetrics: [{
              alarmMetricName: 'alarmMetricName',
            }],
            processName: 'processName',
          }],
          windowsEvents: [{
            eventLevels: ['eventLevels'],
            eventName: 'eventName',
            logGroupName: 'logGroupName',

            // the properties below are optional
            patternSet: 'patternSet',
          }],
        },
        subComponentType: 'subComponentType',
      }],
    },
  }],
  customComponents: [{
    componentName: 'componentName',
    resourceList: ['resourceList'],
  }],
  cweMonitorEnabled: false,
  groupingType: 'groupingType',
  logPatternSets: [{
    logPatterns: [{
      pattern: 'pattern',
      patternName: 'patternName',
      rank: 123,
    }],
    patternSetName: 'patternSetName',
  }],
  opsCenterEnabled: false,
  opsItemSnsTopicArn: 'opsItemSnsTopicArn',
  snsNotificationArn: 'snsNotificationArn',
  tags: [{
    key: 'key',
    value: 'value',
  }],
});
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_applicationinsights as applicationinsights

cfn_application = applicationinsights.CfnApplication(self, "MyCfnApplication",
    resource_group_name="resourceGroupName",

    # the properties below are optional
    attach_missing_permission=False,
    auto_configuration_enabled=False,
    component_monitoring_settings=[applicationinsights.CfnApplication.ComponentMonitoringSettingProperty(
        component_configuration_mode="componentConfigurationMode",
        tier="tier",

        # the properties below are optional
        component_arn="componentArn",
        component_name="componentName",
        custom_component_configuration=applicationinsights.CfnApplication.ComponentConfigurationProperty(
            configuration_details=applicationinsights.CfnApplication.ConfigurationDetailsProperty(
                alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
                    alarm_metric_name="alarmMetricName"
                )],
                alarms=[applicationinsights.CfnApplication.AlarmProperty(
                    alarm_name="alarmName",

                    # the properties below are optional
                    severity="severity"
                )],
                ha_cluster_prometheus_exporter=applicationinsights.CfnApplication.HAClusterPrometheusExporterProperty(
                    prometheus_port="prometheusPort"
                ),
                hana_prometheus_exporter=applicationinsights.CfnApplication.HANAPrometheusExporterProperty(
                    agree_to_install_hanadb_client=False,
                    hana_port="hanaPort",
                    hana_secret_name="hanaSecretName",
                    hanasid="hanasid",

                    # the properties below are optional
                    prometheus_port="prometheusPort"
                ),
                jmx_prometheus_exporter=applicationinsights.CfnApplication.JMXPrometheusExporterProperty(
                    host_port="hostPort",
                    jmxurl="jmxurl",
                    prometheus_port="prometheusPort"
                ),
                logs=[applicationinsights.CfnApplication.LogProperty(
                    log_type="logType",

                    # the properties below are optional
                    encoding="encoding",
                    log_group_name="logGroupName",
                    log_path="logPath",
                    pattern_set="patternSet"
                )],
                net_weaver_prometheus_exporter=applicationinsights.CfnApplication.NetWeaverPrometheusExporterProperty(
                    instance_numbers=["instanceNumbers"],
                    sapsid="sapsid",

                    # the properties below are optional
                    prometheus_port="prometheusPort"
                ),
                processes=[applicationinsights.CfnApplication.ProcessProperty(
                    alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
                        alarm_metric_name="alarmMetricName"
                    )],
                    process_name="processName"
                )],
                sql_server_prometheus_exporter=applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty(
                    prometheus_port="prometheusPort",
                    sql_secret_name="sqlSecretName"
                ),
                windows_events=[applicationinsights.CfnApplication.WindowsEventProperty(
                    event_levels=["eventLevels"],
                    event_name="eventName",
                    log_group_name="logGroupName",

                    # the properties below are optional
                    pattern_set="patternSet"
                )]
            ),
            sub_component_type_configurations=[applicationinsights.CfnApplication.SubComponentTypeConfigurationProperty(
                sub_component_configuration_details=applicationinsights.CfnApplication.SubComponentConfigurationDetailsProperty(
                    alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
                        alarm_metric_name="alarmMetricName"
                    )],
                    logs=[applicationinsights.CfnApplication.LogProperty(
                        log_type="logType",

                        # the properties below are optional
                        encoding="encoding",
                        log_group_name="logGroupName",
                        log_path="logPath",
                        pattern_set="patternSet"
                    )],
                    processes=[applicationinsights.CfnApplication.ProcessProperty(
                        alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
                            alarm_metric_name="alarmMetricName"
                        )],
                        process_name="processName"
                    )],
                    windows_events=[applicationinsights.CfnApplication.WindowsEventProperty(
                        event_levels=["eventLevels"],
                        event_name="eventName",
                        log_group_name="logGroupName",

                        # the properties below are optional
                        pattern_set="patternSet"
                    )]
                ),
                sub_component_type="subComponentType"
            )]
        ),
        default_overwrite_component_configuration=applicationinsights.CfnApplication.ComponentConfigurationProperty(
            configuration_details=applicationinsights.CfnApplication.ConfigurationDetailsProperty(
                alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
                    alarm_metric_name="alarmMetricName"
                )],
                alarms=[applicationinsights.CfnApplication.AlarmProperty(
                    alarm_name="alarmName",

                    # the properties below are optional
                    severity="severity"
                )],
                ha_cluster_prometheus_exporter=applicationinsights.CfnApplication.HAClusterPrometheusExporterProperty(
                    prometheus_port="prometheusPort"
                ),
                hana_prometheus_exporter=applicationinsights.CfnApplication.HANAPrometheusExporterProperty(
                    agree_to_install_hanadb_client=False,
                    hana_port="hanaPort",
                    hana_secret_name="hanaSecretName",
                    hanasid="hanasid",

                    # the properties below are optional
                    prometheus_port="prometheusPort"
                ),
                jmx_prometheus_exporter=applicationinsights.CfnApplication.JMXPrometheusExporterProperty(
                    host_port="hostPort",
                    jmxurl="jmxurl",
                    prometheus_port="prometheusPort"
                ),
                logs=[applicationinsights.CfnApplication.LogProperty(
                    log_type="logType",

                    # the properties below are optional
                    encoding="encoding",
                    log_group_name="logGroupName",
                    log_path="logPath",
                    pattern_set="patternSet"
                )],
                net_weaver_prometheus_exporter=applicationinsights.CfnApplication.NetWeaverPrometheusExporterProperty(
                    instance_numbers=["instanceNumbers"],
                    sapsid="sapsid",

                    # the properties below are optional
                    prometheus_port="prometheusPort"
                ),
                processes=[applicationinsights.CfnApplication.ProcessProperty(
                    alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
                        alarm_metric_name="alarmMetricName"
                    )],
                    process_name="processName"
                )],
                sql_server_prometheus_exporter=applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty(
                    prometheus_port="prometheusPort",
                    sql_secret_name="sqlSecretName"
                ),
                windows_events=[applicationinsights.CfnApplication.WindowsEventProperty(
                    event_levels=["eventLevels"],
                    event_name="eventName",
                    log_group_name="logGroupName",

                    # the properties below are optional
                    pattern_set="patternSet"
                )]
            ),
            sub_component_type_configurations=[applicationinsights.CfnApplication.SubComponentTypeConfigurationProperty(
                sub_component_configuration_details=applicationinsights.CfnApplication.SubComponentConfigurationDetailsProperty(
                    alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
                        alarm_metric_name="alarmMetricName"
                    )],
                    logs=[applicationinsights.CfnApplication.LogProperty(
                        log_type="logType",

                        # the properties below are optional
                        encoding="encoding",
                        log_group_name="logGroupName",
                        log_path="logPath",
                        pattern_set="patternSet"
                    )],
                    processes=[applicationinsights.CfnApplication.ProcessProperty(
                        alarm_metrics=[applicationinsights.CfnApplication.AlarmMetricProperty(
                            alarm_metric_name="alarmMetricName"
                        )],
                        process_name="processName"
                    )],
                    windows_events=[applicationinsights.CfnApplication.WindowsEventProperty(
                        event_levels=["eventLevels"],
                        event_name="eventName",
                        log_group_name="logGroupName",

                        # the properties below are optional
                        pattern_set="patternSet"
                    )]
                ),
                sub_component_type="subComponentType"
            )]
        )
    )],
    custom_components=[applicationinsights.CfnApplication.CustomComponentProperty(
        component_name="componentName",
        resource_list=["resourceList"]
    )],
    cwe_monitor_enabled=False,
    grouping_type="groupingType",
    log_pattern_sets=[applicationinsights.CfnApplication.LogPatternSetProperty(
        log_patterns=[applicationinsights.CfnApplication.LogPatternProperty(
            pattern="pattern",
            pattern_name="patternName",
            rank=123
        )],
        pattern_set_name="patternSetName"
    )],
    ops_center_enabled=False,
    ops_item_sns_topic_arn="opsItemSnsTopicArn",
    sns_notification_arn="snsNotificationArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.applicationinsights.*;

CfnApplication cfnApplication = CfnApplication.Builder.create(this, "MyCfnApplication")
        .resourceGroupName("resourceGroupName")

        // the properties below are optional
        .attachMissingPermission(false)
        .autoConfigurationEnabled(false)
        .componentMonitoringSettings(List.of(ComponentMonitoringSettingProperty.builder()
                .componentConfigurationMode("componentConfigurationMode")
                .tier("tier")

                // the properties below are optional
                .componentArn("componentArn")
                .componentName("componentName")
                .customComponentConfiguration(ComponentConfigurationProperty.builder()
                        .configurationDetails(ConfigurationDetailsProperty.builder()
                                .alarmMetrics(List.of(AlarmMetricProperty.builder()
                                        .alarmMetricName("alarmMetricName")
                                        .build()))
                                .alarms(List.of(AlarmProperty.builder()
                                        .alarmName("alarmName")

                                        // the properties below are optional
                                        .severity("severity")
                                        .build()))
                                .haClusterPrometheusExporter(HAClusterPrometheusExporterProperty.builder()
                                        .prometheusPort("prometheusPort")
                                        .build())
                                .hanaPrometheusExporter(HANAPrometheusExporterProperty.builder()
                                        .agreeToInstallHanadbClient(false)
                                        .hanaPort("hanaPort")
                                        .hanaSecretName("hanaSecretName")
                                        .hanasid("hanasid")

                                        // the properties below are optional
                                        .prometheusPort("prometheusPort")
                                        .build())
                                .jmxPrometheusExporter(JMXPrometheusExporterProperty.builder()
                                        .hostPort("hostPort")
                                        .jmxurl("jmxurl")
                                        .prometheusPort("prometheusPort")
                                        .build())
                                .logs(List.of(LogProperty.builder()
                                        .logType("logType")

                                        // the properties below are optional
                                        .encoding("encoding")
                                        .logGroupName("logGroupName")
                                        .logPath("logPath")
                                        .patternSet("patternSet")
                                        .build()))
                                .netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder()
                                        .instanceNumbers(List.of("instanceNumbers"))
                                        .sapsid("sapsid")

                                        // the properties below are optional
                                        .prometheusPort("prometheusPort")
                                        .build())
                                .processes(List.of(ProcessProperty.builder()
                                        .alarmMetrics(List.of(AlarmMetricProperty.builder()
                                                .alarmMetricName("alarmMetricName")
                                                .build()))
                                        .processName("processName")
                                        .build()))
                                .sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder()
                                        .prometheusPort("prometheusPort")
                                        .sqlSecretName("sqlSecretName")
                                        .build())
                                .windowsEvents(List.of(WindowsEventProperty.builder()
                                        .eventLevels(List.of("eventLevels"))
                                        .eventName("eventName")
                                        .logGroupName("logGroupName")

                                        // the properties below are optional
                                        .patternSet("patternSet")
                                        .build()))
                                .build())
                        .subComponentTypeConfigurations(List.of(SubComponentTypeConfigurationProperty.builder()
                                .subComponentConfigurationDetails(SubComponentConfigurationDetailsProperty.builder()
                                        .alarmMetrics(List.of(AlarmMetricProperty.builder()
                                                .alarmMetricName("alarmMetricName")
                                                .build()))
                                        .logs(List.of(LogProperty.builder()
                                                .logType("logType")

                                                // the properties below are optional
                                                .encoding("encoding")
                                                .logGroupName("logGroupName")
                                                .logPath("logPath")
                                                .patternSet("patternSet")
                                                .build()))
                                        .processes(List.of(ProcessProperty.builder()
                                                .alarmMetrics(List.of(AlarmMetricProperty.builder()
                                                        .alarmMetricName("alarmMetricName")
                                                        .build()))
                                                .processName("processName")
                                                .build()))
                                        .windowsEvents(List.of(WindowsEventProperty.builder()
                                                .eventLevels(List.of("eventLevels"))
                                                .eventName("eventName")
                                                .logGroupName("logGroupName")

                                                // the properties below are optional
                                                .patternSet("patternSet")
                                                .build()))
                                        .build())
                                .subComponentType("subComponentType")
                                .build()))
                        .build())
                .defaultOverwriteComponentConfiguration(ComponentConfigurationProperty.builder()
                        .configurationDetails(ConfigurationDetailsProperty.builder()
                                .alarmMetrics(List.of(AlarmMetricProperty.builder()
                                        .alarmMetricName("alarmMetricName")
                                        .build()))
                                .alarms(List.of(AlarmProperty.builder()
                                        .alarmName("alarmName")

                                        // the properties below are optional
                                        .severity("severity")
                                        .build()))
                                .haClusterPrometheusExporter(HAClusterPrometheusExporterProperty.builder()
                                        .prometheusPort("prometheusPort")
                                        .build())
                                .hanaPrometheusExporter(HANAPrometheusExporterProperty.builder()
                                        .agreeToInstallHanadbClient(false)
                                        .hanaPort("hanaPort")
                                        .hanaSecretName("hanaSecretName")
                                        .hanasid("hanasid")

                                        // the properties below are optional
                                        .prometheusPort("prometheusPort")
                                        .build())
                                .jmxPrometheusExporter(JMXPrometheusExporterProperty.builder()
                                        .hostPort("hostPort")
                                        .jmxurl("jmxurl")
                                        .prometheusPort("prometheusPort")
                                        .build())
                                .logs(List.of(LogProperty.builder()
                                        .logType("logType")

                                        // the properties below are optional
                                        .encoding("encoding")
                                        .logGroupName("logGroupName")
                                        .logPath("logPath")
                                        .patternSet("patternSet")
                                        .build()))
                                .netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder()
                                        .instanceNumbers(List.of("instanceNumbers"))
                                        .sapsid("sapsid")

                                        // the properties below are optional
                                        .prometheusPort("prometheusPort")
                                        .build())
                                .processes(List.of(ProcessProperty.builder()
                                        .alarmMetrics(List.of(AlarmMetricProperty.builder()
                                                .alarmMetricName("alarmMetricName")
                                                .build()))
                                        .processName("processName")
                                        .build()))
                                .sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder()
                                        .prometheusPort("prometheusPort")
                                        .sqlSecretName("sqlSecretName")
                                        .build())
                                .windowsEvents(List.of(WindowsEventProperty.builder()
                                        .eventLevels(List.of("eventLevels"))
                                        .eventName("eventName")
                                        .logGroupName("logGroupName")

                                        // the properties below are optional
                                        .patternSet("patternSet")
                                        .build()))
                                .build())
                        .subComponentTypeConfigurations(List.of(SubComponentTypeConfigurationProperty.builder()
                                .subComponentConfigurationDetails(SubComponentConfigurationDetailsProperty.builder()
                                        .alarmMetrics(List.of(AlarmMetricProperty.builder()
                                                .alarmMetricName("alarmMetricName")
                                                .build()))
                                        .logs(List.of(LogProperty.builder()
                                                .logType("logType")

                                                // the properties below are optional
                                                .encoding("encoding")
                                                .logGroupName("logGroupName")
                                                .logPath("logPath")
                                                .patternSet("patternSet")
                                                .build()))
                                        .processes(List.of(ProcessProperty.builder()
                                                .alarmMetrics(List.of(AlarmMetricProperty.builder()
                                                        .alarmMetricName("alarmMetricName")
                                                        .build()))
                                                .processName("processName")
                                                .build()))
                                        .windowsEvents(List.of(WindowsEventProperty.builder()
                                                .eventLevels(List.of("eventLevels"))
                                                .eventName("eventName")
                                                .logGroupName("logGroupName")

                                                // the properties below are optional
                                                .patternSet("patternSet")
                                                .build()))
                                        .build())
                                .subComponentType("subComponentType")
                                .build()))
                        .build())
                .build()))
        .customComponents(List.of(CustomComponentProperty.builder()
                .componentName("componentName")
                .resourceList(List.of("resourceList"))
                .build()))
        .cweMonitorEnabled(false)
        .groupingType("groupingType")
        .logPatternSets(List.of(LogPatternSetProperty.builder()
                .logPatterns(List.of(LogPatternProperty.builder()
                        .pattern("pattern")
                        .patternName("patternName")
                        .rank(123)
                        .build()))
                .patternSetName("patternSetName")
                .build()))
        .opsCenterEnabled(false)
        .opsItemSnsTopicArn("opsItemSnsTopicArn")
        .snsNotificationArn("snsNotificationArn")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationInsights;

var cfnApplication = new CfnApplication(this, "MyCfnApplication", new CfnApplicationProps {
    ResourceGroupName = "resourceGroupName",

    // the properties below are optional
    AttachMissingPermission = false,
    AutoConfigurationEnabled = false,
    ComponentMonitoringSettings = new [] { new ComponentMonitoringSettingProperty {
        ComponentConfigurationMode = "componentConfigurationMode",
        Tier = "tier",

        // the properties below are optional
        ComponentArn = "componentArn",
        ComponentName = "componentName",
        CustomComponentConfiguration = new ComponentConfigurationProperty {
            ConfigurationDetails = new ConfigurationDetailsProperty {
                AlarmMetrics = new [] { new AlarmMetricProperty {
                    AlarmMetricName = "alarmMetricName"
                } },
                Alarms = new [] { new AlarmProperty {
                    AlarmName = "alarmName",

                    // the properties below are optional
                    Severity = "severity"
                } },
                HaClusterPrometheusExporter = new HAClusterPrometheusExporterProperty {
                    PrometheusPort = "prometheusPort"
                },
                HanaPrometheusExporter = new HANAPrometheusExporterProperty {
                    AgreeToInstallHanadbClient = false,
                    HanaPort = "hanaPort",
                    HanaSecretName = "hanaSecretName",
                    Hanasid = "hanasid",

                    // the properties below are optional
                    PrometheusPort = "prometheusPort"
                },
                JmxPrometheusExporter = new JMXPrometheusExporterProperty {
                    HostPort = "hostPort",
                    Jmxurl = "jmxurl",
                    PrometheusPort = "prometheusPort"
                },
                Logs = new [] { new LogProperty {
                    LogType = "logType",

                    // the properties below are optional
                    Encoding = "encoding",
                    LogGroupName = "logGroupName",
                    LogPath = "logPath",
                    PatternSet = "patternSet"
                } },
                NetWeaverPrometheusExporter = new NetWeaverPrometheusExporterProperty {
                    InstanceNumbers = new [] { "instanceNumbers" },
                    Sapsid = "sapsid",

                    // the properties below are optional
                    PrometheusPort = "prometheusPort"
                },
                Processes = new [] { new ProcessProperty {
                    AlarmMetrics = new [] { new AlarmMetricProperty {
                        AlarmMetricName = "alarmMetricName"
                    } },
                    ProcessName = "processName"
                } },
                SqlServerPrometheusExporter = new SQLServerPrometheusExporterProperty {
                    PrometheusPort = "prometheusPort",
                    SqlSecretName = "sqlSecretName"
                },
                WindowsEvents = new [] { new WindowsEventProperty {
                    EventLevels = new [] { "eventLevels" },
                    EventName = "eventName",
                    LogGroupName = "logGroupName",

                    // the properties below are optional
                    PatternSet = "patternSet"
                } }
            },
            SubComponentTypeConfigurations = new [] { new SubComponentTypeConfigurationProperty {
                SubComponentConfigurationDetails = new SubComponentConfigurationDetailsProperty {
                    AlarmMetrics = new [] { new AlarmMetricProperty {
                        AlarmMetricName = "alarmMetricName"
                    } },
                    Logs = new [] { new LogProperty {
                        LogType = "logType",

                        // the properties below are optional
                        Encoding = "encoding",
                        LogGroupName = "logGroupName",
                        LogPath = "logPath",
                        PatternSet = "patternSet"
                    } },
                    Processes = new [] { new ProcessProperty {
                        AlarmMetrics = new [] { new AlarmMetricProperty {
                            AlarmMetricName = "alarmMetricName"
                        } },
                        ProcessName = "processName"
                    } },
                    WindowsEvents = new [] { new WindowsEventProperty {
                        EventLevels = new [] { "eventLevels" },
                        EventName = "eventName",
                        LogGroupName = "logGroupName",

                        // the properties below are optional
                        PatternSet = "patternSet"
                    } }
                },
                SubComponentType = "subComponentType"
            } }
        },
        DefaultOverwriteComponentConfiguration = new ComponentConfigurationProperty {
            ConfigurationDetails = new ConfigurationDetailsProperty {
                AlarmMetrics = new [] { new AlarmMetricProperty {
                    AlarmMetricName = "alarmMetricName"
                } },
                Alarms = new [] { new AlarmProperty {
                    AlarmName = "alarmName",

                    // the properties below are optional
                    Severity = "severity"
                } },
                HaClusterPrometheusExporter = new HAClusterPrometheusExporterProperty {
                    PrometheusPort = "prometheusPort"
                },
                HanaPrometheusExporter = new HANAPrometheusExporterProperty {
                    AgreeToInstallHanadbClient = false,
                    HanaPort = "hanaPort",
                    HanaSecretName = "hanaSecretName",
                    Hanasid = "hanasid",

                    // the properties below are optional
                    PrometheusPort = "prometheusPort"
                },
                JmxPrometheusExporter = new JMXPrometheusExporterProperty {
                    HostPort = "hostPort",
                    Jmxurl = "jmxurl",
                    PrometheusPort = "prometheusPort"
                },
                Logs = new [] { new LogProperty {
                    LogType = "logType",

                    // the properties below are optional
                    Encoding = "encoding",
                    LogGroupName = "logGroupName",
                    LogPath = "logPath",
                    PatternSet = "patternSet"
                } },
                NetWeaverPrometheusExporter = new NetWeaverPrometheusExporterProperty {
                    InstanceNumbers = new [] { "instanceNumbers" },
                    Sapsid = "sapsid",

                    // the properties below are optional
                    PrometheusPort = "prometheusPort"
                },
                Processes = new [] { new ProcessProperty {
                    AlarmMetrics = new [] { new AlarmMetricProperty {
                        AlarmMetricName = "alarmMetricName"
                    } },
                    ProcessName = "processName"
                } },
                SqlServerPrometheusExporter = new SQLServerPrometheusExporterProperty {
                    PrometheusPort = "prometheusPort",
                    SqlSecretName = "sqlSecretName"
                },
                WindowsEvents = new [] { new WindowsEventProperty {
                    EventLevels = new [] { "eventLevels" },
                    EventName = "eventName",
                    LogGroupName = "logGroupName",

                    // the properties below are optional
                    PatternSet = "patternSet"
                } }
            },
            SubComponentTypeConfigurations = new [] { new SubComponentTypeConfigurationProperty {
                SubComponentConfigurationDetails = new SubComponentConfigurationDetailsProperty {
                    AlarmMetrics = new [] { new AlarmMetricProperty {
                        AlarmMetricName = "alarmMetricName"
                    } },
                    Logs = new [] { new LogProperty {
                        LogType = "logType",

                        // the properties below are optional
                        Encoding = "encoding",
                        LogGroupName = "logGroupName",
                        LogPath = "logPath",
                        PatternSet = "patternSet"
                    } },
                    Processes = new [] { new ProcessProperty {
                        AlarmMetrics = new [] { new AlarmMetricProperty {
                            AlarmMetricName = "alarmMetricName"
                        } },
                        ProcessName = "processName"
                    } },
                    WindowsEvents = new [] { new WindowsEventProperty {
                        EventLevels = new [] { "eventLevels" },
                        EventName = "eventName",
                        LogGroupName = "logGroupName",

                        // the properties below are optional
                        PatternSet = "patternSet"
                    } }
                },
                SubComponentType = "subComponentType"
            } }
        }
    } },
    CustomComponents = new [] { new CustomComponentProperty {
        ComponentName = "componentName",
        ResourceList = new [] { "resourceList" }
    } },
    CweMonitorEnabled = false,
    GroupingType = "groupingType",
    LogPatternSets = new [] { new LogPatternSetProperty {
        LogPatterns = new [] { new LogPatternProperty {
            Pattern = "pattern",
            PatternName = "patternName",
            Rank = 123
        } },
        PatternSetName = "patternSetName"
    } },
    OpsCenterEnabled = false,
    OpsItemSnsTopicArn = "opsItemSnsTopicArn",
    SnsNotificationArn = "snsNotificationArn",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
});
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnApplication := awscdk.Aws_applicationinsights.NewCfnApplication(this, jsii.String("MyCfnApplication"), &CfnApplicationProps{
	ResourceGroupName: jsii.String("resourceGroupName"),

	// the properties below are optional
	AttachMissingPermission: jsii.Boolean(false),
	AutoConfigurationEnabled: jsii.Boolean(false),
	ComponentMonitoringSettings: []interface{}{
		&ComponentMonitoringSettingProperty{
			ComponentConfigurationMode: jsii.String("componentConfigurationMode"),
			Tier: jsii.String("tier"),

			// the properties below are optional
			ComponentArn: jsii.String("componentArn"),
			ComponentName: jsii.String("componentName"),
			CustomComponentConfiguration: &ComponentConfigurationProperty{
				ConfigurationDetails: &ConfigurationDetailsProperty{
					AlarmMetrics: []interface{}{
						&AlarmMetricProperty{
							AlarmMetricName: jsii.String("alarmMetricName"),
						},
					},
					Alarms: []interface{}{
						&AlarmProperty{
							AlarmName: jsii.String("alarmName"),

							// the properties below are optional
							Severity: jsii.String("severity"),
						},
					},
					HaClusterPrometheusExporter: &HAClusterPrometheusExporterProperty{
						PrometheusPort: jsii.String("prometheusPort"),
					},
					HanaPrometheusExporter: &HANAPrometheusExporterProperty{
						AgreeToInstallHanadbClient: jsii.Boolean(false),
						HanaPort: jsii.String("hanaPort"),
						HanaSecretName: jsii.String("hanaSecretName"),
						Hanasid: jsii.String("hanasid"),

						// the properties below are optional
						PrometheusPort: jsii.String("prometheusPort"),
					},
					JmxPrometheusExporter: &JMXPrometheusExporterProperty{
						HostPort: jsii.String("hostPort"),
						Jmxurl: jsii.String("jmxurl"),
						PrometheusPort: jsii.String("prometheusPort"),
					},
					Logs: []interface{}{
						&LogProperty{
							LogType: jsii.String("logType"),

							// the properties below are optional
							Encoding: jsii.String("encoding"),
							LogGroupName: jsii.String("logGroupName"),
							LogPath: jsii.String("logPath"),
							PatternSet: jsii.String("patternSet"),
						},
					},
					NetWeaverPrometheusExporter: &NetWeaverPrometheusExporterProperty{
						InstanceNumbers: []*string{
							jsii.String("instanceNumbers"),
						},
						Sapsid: jsii.String("sapsid"),

						// the properties below are optional
						PrometheusPort: jsii.String("prometheusPort"),
					},
					Processes: []interface{}{
						&ProcessProperty{
							AlarmMetrics: []interface{}{
								&AlarmMetricProperty{
									AlarmMetricName: jsii.String("alarmMetricName"),
								},
							},
							ProcessName: jsii.String("processName"),
						},
					},
					SqlServerPrometheusExporter: &SQLServerPrometheusExporterProperty{
						PrometheusPort: jsii.String("prometheusPort"),
						SqlSecretName: jsii.String("sqlSecretName"),
					},
					WindowsEvents: []interface{}{
						&WindowsEventProperty{
							EventLevels: []*string{
								jsii.String("eventLevels"),
							},
							EventName: jsii.String("eventName"),
							LogGroupName: jsii.String("logGroupName"),

							// the properties below are optional
							PatternSet: jsii.String("patternSet"),
						},
					},
				},
				SubComponentTypeConfigurations: []interface{}{
					&SubComponentTypeConfigurationProperty{
						SubComponentConfigurationDetails: &SubComponentConfigurationDetailsProperty{
							AlarmMetrics: []interface{}{
								&AlarmMetricProperty{
									AlarmMetricName: jsii.String("alarmMetricName"),
								},
							},
							Logs: []interface{}{
								&LogProperty{
									LogType: jsii.String("logType"),

									// the properties below are optional
									Encoding: jsii.String("encoding"),
									LogGroupName: jsii.String("logGroupName"),
									LogPath: jsii.String("logPath"),
									PatternSet: jsii.String("patternSet"),
								},
							},
							Processes: []interface{}{
								&ProcessProperty{
									AlarmMetrics: []interface{}{
										&AlarmMetricProperty{
											AlarmMetricName: jsii.String("alarmMetricName"),
										},
									},
									ProcessName: jsii.String("processName"),
								},
							},
							WindowsEvents: []interface{}{
								&WindowsEventProperty{
									EventLevels: []*string{
										jsii.String("eventLevels"),
									},
									EventName: jsii.String("eventName"),
									LogGroupName: jsii.String("logGroupName"),

									// the properties below are optional
									PatternSet: jsii.String("patternSet"),
								},
							},
						},
						SubComponentType: jsii.String("subComponentType"),
					},
				},
			},
			DefaultOverwriteComponentConfiguration: &ComponentConfigurationProperty{
				ConfigurationDetails: &ConfigurationDetailsProperty{
					AlarmMetrics: []interface{}{
						&AlarmMetricProperty{
							AlarmMetricName: jsii.String("alarmMetricName"),
						},
					},
					Alarms: []interface{}{
						&AlarmProperty{
							AlarmName: jsii.String("alarmName"),

							// the properties below are optional
							Severity: jsii.String("severity"),
						},
					},
					HaClusterPrometheusExporter: &HAClusterPrometheusExporterProperty{
						PrometheusPort: jsii.String("prometheusPort"),
					},
					HanaPrometheusExporter: &HANAPrometheusExporterProperty{
						AgreeToInstallHanadbClient: jsii.Boolean(false),
						HanaPort: jsii.String("hanaPort"),
						HanaSecretName: jsii.String("hanaSecretName"),
						Hanasid: jsii.String("hanasid"),

						// the properties below are optional
						PrometheusPort: jsii.String("prometheusPort"),
					},
					JmxPrometheusExporter: &JMXPrometheusExporterProperty{
						HostPort: jsii.String("hostPort"),
						Jmxurl: jsii.String("jmxurl"),
						PrometheusPort: jsii.String("prometheusPort"),
					},
					Logs: []interface{}{
						&LogProperty{
							LogType: jsii.String("logType"),

							// the properties below are optional
							Encoding: jsii.String("encoding"),
							LogGroupName: jsii.String("logGroupName"),
							LogPath: jsii.String("logPath"),
							PatternSet: jsii.String("patternSet"),
						},
					},
					NetWeaverPrometheusExporter: &NetWeaverPrometheusExporterProperty{
						InstanceNumbers: []*string{
							jsii.String("instanceNumbers"),
						},
						Sapsid: jsii.String("sapsid"),

						// the properties below are optional
						PrometheusPort: jsii.String("prometheusPort"),
					},
					Processes: []interface{}{
						&ProcessProperty{
							AlarmMetrics: []interface{}{
								&AlarmMetricProperty{
									AlarmMetricName: jsii.String("alarmMetricName"),
								},
							},
							ProcessName: jsii.String("processName"),
						},
					},
					SqlServerPrometheusExporter: &SQLServerPrometheusExporterProperty{
						PrometheusPort: jsii.String("prometheusPort"),
						SqlSecretName: jsii.String("sqlSecretName"),
					},
					WindowsEvents: []interface{}{
						&WindowsEventProperty{
							EventLevels: []*string{
								jsii.String("eventLevels"),
							},
							EventName: jsii.String("eventName"),
							LogGroupName: jsii.String("logGroupName"),

							// the properties below are optional
							PatternSet: jsii.String("patternSet"),
						},
					},
				},
				SubComponentTypeConfigurations: []interface{}{
					&SubComponentTypeConfigurationProperty{
						SubComponentConfigurationDetails: &SubComponentConfigurationDetailsProperty{
							AlarmMetrics: []interface{}{
								&AlarmMetricProperty{
									AlarmMetricName: jsii.String("alarmMetricName"),
								},
							},
							Logs: []interface{}{
								&LogProperty{
									LogType: jsii.String("logType"),

									// the properties below are optional
									Encoding: jsii.String("encoding"),
									LogGroupName: jsii.String("logGroupName"),
									LogPath: jsii.String("logPath"),
									PatternSet: jsii.String("patternSet"),
								},
							},
							Processes: []interface{}{
								&ProcessProperty{
									AlarmMetrics: []interface{}{
										&AlarmMetricProperty{
											AlarmMetricName: jsii.String("alarmMetricName"),
										},
									},
									ProcessName: jsii.String("processName"),
								},
							},
							WindowsEvents: []interface{}{
								&WindowsEventProperty{
									EventLevels: []*string{
										jsii.String("eventLevels"),
									},
									EventName: jsii.String("eventName"),
									LogGroupName: jsii.String("logGroupName"),

									// the properties below are optional
									PatternSet: jsii.String("patternSet"),
								},
							},
						},
						SubComponentType: jsii.String("subComponentType"),
					},
				},
			},
		},
	},
	CustomComponents: []interface{}{
		&CustomComponentProperty{
			ComponentName: jsii.String("componentName"),
			ResourceList: []*string{
				jsii.String("resourceList"),
			},
		},
	},
	CweMonitorEnabled: jsii.Boolean(false),
	GroupingType: jsii.String("groupingType"),
	LogPatternSets: []interface{}{
		&LogPatternSetProperty{
			LogPatterns: []interface{}{
				&LogPatternProperty{
					Pattern: jsii.String("pattern"),
					PatternName: jsii.String("patternName"),
					Rank: jsii.Number(123),
				},
			},
			PatternSetName: jsii.String("patternSetName"),
		},
	},
	OpsCenterEnabled: jsii.Boolean(false),
	OpsItemSnsTopicArn: jsii.String("opsItemSnsTopicArn"),
	SnsNotificationArn: jsii.String("snsNotificationArn"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
})
```

## Initializer

TypeScript:

```ts
new CfnApplication(scope: Construct, id: string, props: CfnApplicationProps)
```

Python:

```python
CfnApplication(scope: Construct, id: str, props: CfnApplicationProps)
```

Java:

```java
new CfnApplication(Construct scope, String id, CfnApplicationProps props)
```

C#:

```csharp
new CfnApplication(Construct scope, string id, CfnApplicationProps props)
```

Go:

```go
NewCfnApplication(Scope Construct, Id *string, Props CfnApplicationProps)
```

## Construct Props

- `attachMissingPermission`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.

- `autoConfigurationEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — If set to `true` , the application components will be configured with the monitoring configuration recommended by Application Insights.

- `componentMonitoringSettings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.ComponentMonitoringSettingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_applicationinsights.CfnApplication.ComponentMonitoringSettingProperty.html)[] — The monitoring settings of the components.

  Not required to set up default monitoring for all components. To set up default monitoring for all components, set `AutoConfigurationEnabled` to `true` .

- `customComponents`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.CustomComponentProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_applicationinsights.CfnApplication.CustomComponentProperty.html)[] — Describes a custom component by grouping similar standalone instances to monitor.

- `cweMonitorEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as `instance terminated` , `failed deployment` , and others.

- `groupingType`: string — 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` .

- `logPatternSets`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.LogPatternSetProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_applicationinsights.CfnApplication.LogPatternSetProperty.html)[] — The log pattern sets.

- `opsCenterEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.

- `opsItemSnsTopicArn`: string — The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.

- `resourceGroupName`: string (required) — The name of the resource group used for the application.

- `snsNotificationArn`: string — The SNS topic ARN that is associated with SNS notifications for updates or issues.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of `Tags` .

## Properties

- `applicationRef`: [ApplicationReference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_applicationinsights.ApplicationReference.html) — A reference to a Application resource.

- `attachMissingPermission`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.

- `attrApplicationArn`: string — Returns the Amazon Resource Name (ARN) of the application, such as `arn:aws:applicationinsights:us-east-1:123456789012:application/resource-group/my_resource_group` .

- `autoConfigurationEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — If set to `true` , the application components will be configured with the monitoring configuration recommended by Application Insights.

- `CFN_RESOURCE_TYPE_NAME`: string (static) — The CloudFormation resource type name for this resource class.

- `cfnOptions`: [ICfnResourceOptions](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.ICfnResourceOptions.html) — Options for this resource, such as condition, update policy etc.

- `cfnResourceType`: string — AWS resource type.

- `componentMonitoringSettings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.ComponentMonitoringSettingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_applicationinsights.CfnApplication.ComponentMonitoringSettingProperty.html)[] — The monitoring settings of the components.

- `creationStack`: string[]

- `customComponents`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.CustomComponentProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_applicationinsights.CfnApplication.CustomComponentProperty.html)[] — Describes a custom component by grouping similar standalone instances to monitor.

- `cweMonitorEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as `instance terminated` , `failed deployment` , and others.

- `env`: [ResourceEnvironment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html)

- `groupingType`: string — Application Insights can create applications based on a resource group or on an account.

- `logicalId`: string — The logical ID for this CloudFormation stack element.

  The logical ID of the element
  is calculated from the path of the resource node in the construct tree.

  To override this value, use `overrideLogicalId(newLogicalId)`.

- `logPatternSets`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplication.LogPatternSetProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_applicationinsights.CfnApplication.LogPatternSetProperty.html)[] — The log pattern sets.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `opsCenterEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.

- `opsItemSnsTopicArn`: string — The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.

- `ref`: string — Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.

  If, by any chance, the intrinsic reference of a resource is not a string, you could
  coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.

- `resourceGroupName`: string — The name of the resource group used for the application.

- `snsNotificationArn`: string — The SNS topic ARN that is associated with SNS notifications for updates or issues.

- `stack`: [Stack](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack in which this element is defined.

  CfnElements must be defined within a stack scope (directly or indirectly).

- `tags`: [TagManager](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.TagManager.html) — Tag Manager which manages the tags for this resource.

- `tagsRaw`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of `Tags` .

## Methods

- `addDeletionOverride(path: string): void` — Syntactic sugar for `addOverride(path, undefined)`.

  **Parameters**

  - `path` — The path of the value to delete.

- `addDependency(target: CfnResource): void` — Use `addResourceDependency` instead.

  This method has been renamed to `addResourceDependency` to more clearly
  set it apart from `construct.node.addDependency`. See the documentation
  of that function for more details.

- `addDependsOn(target: CfnResource): void` — Use `addResourceDependency` instead.

  This can be used for resources across stacks (or nested stack) boundaries
  and the dependency will automatically be transferred to the relevant scope.

  This method has been renamed to `addResourceDependency`, which makes it
  more clear that this method operates at a different level from the
  construct-level `construct.node.addDependency()` mechanism.

- `addMetadata(key: string, value: any): void` — Add a value to the CloudFormation Resource Metadata.

- `addOverride(path: string, value: any): void` — Adds an override to the synthesized CloudFormation resource.

  To add a
  property override, either use `addPropertyOverride` or prefix `path` with
  "Properties." (i.e. `Properties.TopicName`).

  If the override is nested, separate each nested level using a dot (.) in the path parameter.
  If there is an array as part of the nesting, specify the index in the path.

  To include a literal `.` in the property name, prefix with a `\`. In most
  programming languages you will need to write this as `"\\."` because the
  `\` itself will need to be escaped.

  For example,
  ```typescript
  cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
  cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
  ```
  would add the overrides
  ```json
  "Properties": {
    "GlobalSecondaryIndexes": [
      {
        "Projection": {
          "NonKeyAttributes": [ "myattribute" ]
          ...
        }
        ...
      },
      {
        "ProjectionType": "INCLUDE"
        ...
      },
    ]
    ...
  }
  ```

  The `value` argument to `addOverride` will not be processed or translated
  in any way. Pass raw JSON values in here with the correct capitalization
  for CloudFormation. If you pass CDK classes or structs, they will be
  rendered with lowercased key names, and CloudFormation will reject the
  template.

  **Parameters**

  - `path` — - The path of the property, you can use dot notation to override values in complex types.
  - `value` — - The value.

- `addPropertyDeletionOverride(propertyPath: string): void` — Adds an override that deletes the value of a property from the resource definition.

  **Parameters**

  - `propertyPath` — The path to the property.

- `addPropertyOverride(propertyPath: string, value: any): void` — Adds an override to a resource property.

  Syntactic sugar for `addOverride("Properties.<...>", value)`.

  **Parameters**

  - `propertyPath` — The path of the property.
  - `value` — The value.

- `addResourceDependency(target: CfnResource, reason?: string): void` — Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

  This can be used for resources across stacks (or nested stack) boundaries
  and the dependency will automatically be transferred to the relevant scope.

  This method only adds dependencies between L1 resources. If you are
  looking for a generic construct-to-construct dependency mechanism that works
  for all constructs including L2s, use `construct.node.addDependency` instead.

- `applyCrossStackReferenceStrength(strength: ReferenceStrength): void` — Sets the cross-stack reference strength for this resource.

  When set, any cross-stack reference to this resource will use the specified
  strength instead of the global default from the consuming stack's context.

  **Parameters**

  - `strength` — - The reference strength to use for this resource.

- `applyRemovalPolicy(policy?: RemovalPolicy, options?: RemovalPolicyOptions): void` — Sets the deletion policy of the resource based on the removal policy specified.

  The Removal Policy controls what happens to this resource when it stops
  being managed by CloudFormation, either because you've removed it from the
  CDK application or because you've made a change that requires the resource
  to be replaced.

  The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
  account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
  cases, a snapshot can be taken of the resource prior to deletion
  (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
  can be found in the following link:

- `arnForApplication(resource: IApplicationRef): string` (static)

- `cfnPropertyName(cdkPropertyName: string): string`

- `getAtt(attributeName: string, typeHint?: ResolutionTypeHint): Reference` — Returns a token for an runtime attribute of this resource.

  Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
  in case there is no generated attribute.

  **Parameters**

  - `attributeName` — The name of the attribute.

- `getMetadata(key: string): any` — Retrieve a value value from the CloudFormation Resource Metadata.

- `inspect(inspector: TreeInspector): void` — Examines the CloudFormation resource and discloses attributes.

  **Parameters**

  - `inspector` — tree inspector to collect and process attributes.

- `isCfnApplication(x: any): boolean` (static) — Checks whether the given object is a CfnApplication.

- `isCfnElement(x: any): boolean` (static) — Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

  Uses duck-typing instead of `instanceof` to allow stack elements from different
  versions of this library to be included in the same stack.

  **Returns:** The construct as a stack element or undefined if it is not a stack element.

- `isCfnResource(x: any): boolean` (static) — Check whether the given object is a CfnResource.

- `isConstruct(x: any): boolean` (static) — Checks if `x` is a construct.

  Use this method instead of `instanceof` to properly detect `Construct`
  instances, even when the construct library is symlinked.

  Explanation: in JavaScript, multiple copies of the `constructs` library on
  disk are seen as independent, completely different libraries. As a
  consequence, the class `Construct` in each copy of the `constructs` library
  is seen as a different class, and an instance of one class will not test as
  `instanceof` the other class. `npm install` will not create installations
  like this, but users may manually symlink construct libraries together or
  use a monorepo tool: in those cases, multiple copies of the `constructs`
  library can be accidentally installed, and `instanceof` will behave
  unpredictably. It is safest to avoid using `instanceof`, and using
  this type-testing method instead.

  **Parameters**

  - `x` — Any object.

  **Returns:** true if `x` is an object created from a class which extends `Construct`.

- `obtainDependencies(): Stack | CfnResource[]` — Retrieves an array of resources and stacks this resource depends on.

  For resources depended on directly, returns the `CfnResource` object. For
  dependencies on other stacks, returns the `Stack` object. The order of the
  array is not guaranteed.

- `overrideLogicalId(newLogicalId: string): void` — Overrides the auto-generated logical ID with a specific ID.

  **Parameters**

  - `newLogicalId` — The new logical ID to use for this stack element.

- `removeDependency(target: CfnResource): void` — Use `removeResourceDependency` instead

  This can be used for resources across stacks (including nested stacks)
  and the dependency will automatically be removed from the relevant scope.

- `removeResourceDependency(target: CfnResource): void` — Indicates that this resource no longer depends on another resource.

  This can be used for resources across stacks (including nested stacks)
  and the dependency will automatically be removed from the relevant scope.

- `replaceDependency(target: CfnResource, newTarget: CfnResource): void` — Replaces one dependency with another.

  **Parameters**

  - `target` — The dependency to replace.
  - `newTarget` — The new dependency to add.

- `toString(): string` — Returns a string representation of this construct.

  **Returns:** a string representation of this resource

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.
  Use multiple `with()` calls if subsequent mixins should apply to added
  constructs.
