Skip to content
v2.278.0

SubComponentTypeConfigurationProperty Struct ​

The AWS::ApplicationInsights::Application SubComponentTypeConfiguration property type specifies the sub-component configurations for a component.

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 subComponentTypeConfigurationProperty: applicationinsights.CfnApplication.SubComponentTypeConfigurationProperty = {
  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',
};
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_type_configuration_property = 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"
)
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.*;

SubComponentTypeConfigurationProperty subComponentTypeConfigurationProperty = 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();
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 subComponentTypeConfigurationProperty = 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"
};
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"

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

Properties ​

subComponentConfigurationDetailsIResolvable | CfnApplication.SubComponentConfigurationDetailsPropertysub_component_configuration_detailstyping.Union[IResolvable, SubComponentConfigurationDetailsProperty]subComponentConfigurationDetailsIResolvableSubComponentConfigurationDetailsIResolvableSubComponentConfigurationDetailsinterface{} required #
The configuration settings of the sub-components.
subComponentTypestringsub_component_typestrsubComponentTypeStringSubComponentTypestringSubComponentType*string required #
The sub-component type.