Skip to content
v2.274.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',
  }],
};

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*stringrequired#
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` .