Skip to content
v2.278.0

CfnApplicationProps Struct ​

Properties for defining a CfnApplication.

Example ​

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 cfnApplicationProps: applicationinsights.CfnApplicationProps = {
  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
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_props = applicationinsights.CfnApplicationProps(
    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
// 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.*;

CfnApplicationProps cfnApplicationProps = CfnApplicationProps.builder()
        .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();
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 cfnApplicationProps = 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
// 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"

cfnApplicationProps := &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"),
		},
	},
}

Properties ​

attachMissingPermissionoptionalboolean | IResolvableattach_missing_permissionoptionaltyping.Union[bool, IResolvable]attachMissingPermissionoptionalBooleanAttachMissingPermissionoptionalboolAttachMissingPermissionoptionalinterface{} #
If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
autoConfigurationEnabledoptionalboolean | IResolvableauto_configuration_enabledoptionaltyping.Union[bool, IResolvable]autoConfigurationEnabledoptionalBooleanAutoConfigurationEnabledoptionalboolAutoConfigurationEnabledoptionalinterface{} #
If set to `true` , the application components will be configured with the monitoring configuration recommended by Application Insights.
componentMonitoringSettingsoptionalIResolvable | IResolvable | CfnApplication.ComponentMonitoringSettingProperty[]component_monitoring_settingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ComponentMonitoringSettingProperty]]]componentMonitoringSettingsoptionalIResolvableComponentMonitoringSettingsoptionalIResolvableComponentMonitoringSettingsoptionalinterface{} #
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 .

customComponentsoptionalIResolvable | IResolvable | CfnApplication.CustomComponentProperty[]custom_componentsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CustomComponentProperty]]]customComponentsoptionalIResolvableCustomComponentsoptionalIResolvableCustomComponentsoptionalinterface{} #
Describes a custom component by grouping similar standalone instances to monitor.
cweMonitorEnabledoptionalboolean | IResolvablecwe_monitor_enabledoptionaltyping.Union[bool, IResolvable]cweMonitorEnabledoptionalBooleanCweMonitorEnabledoptionalboolCweMonitorEnabledoptionalinterface{} #
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as `instance terminated` , `failed deployment` , and others.
groupingTypeoptionalstringgrouping_typeoptionalstrgroupingTypeoptionalStringGroupingTypeoptionalstringGroupingTypeoptional*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 .

logPatternSetsoptionalIResolvable | IResolvable | CfnApplication.LogPatternSetProperty[]log_pattern_setsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LogPatternSetProperty]]]logPatternSetsoptionalIResolvableLogPatternSetsoptionalIResolvableLogPatternSetsoptionalinterface{} #
The log pattern sets.
opsCenterEnabledoptionalboolean | IResolvableops_center_enabledoptionaltyping.Union[bool, IResolvable]opsCenterEnabledoptionalBooleanOpsCenterEnabledoptionalboolOpsCenterEnabledoptionalinterface{} #
Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.
opsItemSnsTopicArnoptionalstringops_item_sns_topic_arnoptionalstropsItemSnsTopicArnoptionalStringOpsItemSnsTopicArnoptionalstringOpsItemSnsTopicArnoptional*string #
The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.
resourceGroupNamestringresource_group_namestrresourceGroupNameStringResourceGroupNamestringResourceGroupName*string required #
The name of the resource group used for the application.
snsNotificationArnoptionalstringsns_notification_arnoptionalstrsnsNotificationArnoptionalStringSnsNotificationArnoptionalstringSnsNotificationArnoptional*string #
The SNS topic ARN that is associated with SNS notifications for updates or issues.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of `Tags` .