Skip to content
v2.278.0

SubComponentConfigurationDetailsProperty Struct ​

The AWS::ApplicationInsights::Application SubComponentConfigurationDetails property type specifies the configuration settings of the sub-components.

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 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',
  }],
};
python
# 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

sub_component_configuration_details_property = 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"
    )]
)
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.*;

SubComponentConfigurationDetailsProperty subComponentConfigurationDetailsProperty = 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();
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 subComponentConfigurationDetailsProperty = 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"
    } }
};
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"

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

Properties ​

alarmMetricsoptionalIResolvable | IResolvable | CfnApplication.AlarmMetricProperty[]alarm_metricsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AlarmMetricProperty]]]alarmMetricsoptionalIResolvableAlarmMetricsoptionalIResolvableAlarmMetricsoptionalinterface{} #
A list of metrics to monitor for the component.

All component types can use AlarmMetrics .

logsoptionalIResolvable | IResolvable | CfnApplication.LogProperty[]logsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LogProperty]]]logsoptionalIResolvableLogsoptionalIResolvableLogsoptionalinterface{} #
A list of logs to monitor for the component.

Only Amazon EC2 instances can use Logs .

processesoptionalIResolvable | IResolvable | CfnApplication.ProcessProperty[]processesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ProcessProperty]]]processesoptionalIResolvableProcessesoptionalIResolvableProcessesoptionalinterface{} #
A list of processes to monitor for the component.

Only Windows EC2 instances can have a processes section.

windowsEventsoptionalIResolvable | IResolvable | CfnApplication.WindowsEventProperty[]windows_eventsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, WindowsEventProperty]]]windowsEventsoptionalIResolvableWindowsEventsoptionalIResolvableWindowsEventsoptionalinterface{} #
A list of Windows Events to monitor for the component.

Only Amazon EC2 instances running on Windows can use WindowsEvents .