interface CfnApplicationProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ApplicationInsights.CfnApplicationProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapplicationinsights#CfnApplicationProps |
![]() | software.amazon.awscdk.services.applicationinsights.CfnApplicationProps |
![]() | aws_cdk.aws_applicationinsights.CfnApplicationProps |
![]() | aws-cdk-lib » aws_applicationinsights » CfnApplicationProps |
Properties for defining a CfnApplication
.
Example
// 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
Name | Type | Description |
---|---|---|
resource | string | The name of the resource group used for the application. |
attach | boolean | IResolvable | If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing. |
auto | boolean | IResolvable | If set to true , the application components will be configured with the monitoring configuration recommended by Application Insights. |
component | IResolvable | IResolvable | Component [] | The monitoring settings of the components. |
custom | IResolvable | IResolvable | Custom [] | Describes a custom component by grouping similar standalone instances to monitor. |
cwe | boolean | IResolvable | Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated , failed deployment , and others. |
grouping | string | Application Insights can create applications based on a resource group or on an account. |
log | IResolvable | IResolvable | Log [] | The log pattern sets. |
ops | boolean | IResolvable | Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application. |
ops | string | The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates. |
sns | string | The SNS topic ARN that is associated with SNS notifications for updates or issues. |
tags? | Cfn [] | An array of Tags . |
resourceGroupName
Type:
string
The name of the resource group used for the application.
attachMissingPermission?
Type:
boolean |
IResolvable
(optional)
If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
autoConfigurationEnabled?
Type:
boolean |
IResolvable
(optional)
If set to true
, the application components will be configured with the monitoring configuration recommended by Application Insights.
componentMonitoringSettings?
Type:
IResolvable
|
IResolvable
|
Component
[]
(optional)
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?
Type:
IResolvable
|
IResolvable
|
Custom
[]
(optional)
Describes a custom component by grouping similar standalone instances to monitor.
cweMonitorEnabled?
Type:
boolean |
IResolvable
(optional)
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated
, failed deployment
, and others.
groupingType?
Type:
string
(optional)
Application Insights can create applications based on a resource group or on an account.
To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED
.
logPatternSets?
Type:
IResolvable
|
IResolvable
|
Log
[]
(optional)
The log pattern sets.
opsCenterEnabled?
Type:
boolean |
IResolvable
(optional)
Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.
opsItemSnsTopicArn?
Type:
string
(optional)
The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.
snsNotificationArn?
Type:
string
(optional)
The SNS topic ARN that is associated with SNS notifications for updates or issues.
tags?
Type:
Cfn
[]
(optional)
An array of Tags
.