interface SubComponentConfigurationDetailsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ApplicationInsights.CfnApplication.SubComponentConfigurationDetailsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapplicationinsights#CfnApplication_SubComponentConfigurationDetailsProperty |
Java | software.amazon.awscdk.services.applicationinsights.CfnApplication.SubComponentConfigurationDetailsProperty |
Python | aws_cdk.aws_applicationinsights.CfnApplication.SubComponentConfigurationDetailsProperty |
TypeScript | aws-cdk-lib » aws_applicationinsights » CfnApplication » SubComponentConfigurationDetailsProperty |
The AWS::ApplicationInsights::Application SubComponentConfigurationDetails property type specifies the configuration settings of the sub-components.
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 subComponentConfigurationDetailsProperty: applicationinsights.CfnApplication.SubComponentConfigurationDetailsProperty = {
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',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| alarm | IResolvable | (IResolvable | Alarm)[] | A list of metrics to monitor for the component. |
| logs? | IResolvable | (IResolvable | Log)[] | A list of logs to monitor for the component. |
| processes? | IResolvable | (IResolvable | Process)[] | A list of processes to monitor for the component. |
| windows | IResolvable | (IResolvable | Windows)[] | A list of Windows Events to monitor for the component. |
alarmMetrics?
Type:
IResolvable | (IResolvable | Alarm)[]
(optional)
A list of metrics to monitor for the component.
All component types can use AlarmMetrics .
logs?
Type:
IResolvable | (IResolvable | Log)[]
(optional)
A list of logs to monitor for the component.
Only Amazon EC2 instances can use Logs .
processes?
Type:
IResolvable | (IResolvable | Process)[]
(optional)
A list of processes to monitor for the component.
Only Windows EC2 instances can have a processes section.
windowsEvents?
Type:
IResolvable | (IResolvable | Windows)[]
(optional)
A list of Windows Events to monitor for the component.
Only Amazon EC2 instances running on Windows can use WindowsEvents .

.NET
Go
Java
Python
TypeScript