CfnApplicationPropsMixin
- class aws_cdk.mixins_preview.aws_applicationinsights.mixins.CfnApplicationPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::ApplicationInsights::Applicationresource adds an application that is created from a resource group.- See:
- CloudformationResource:
AWS::ApplicationInsights::Application
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins cfn_application_props_mixin = applicationinsights_mixins.CfnApplicationPropsMixin(applicationinsights_mixins.CfnApplicationMixinProps( attach_missing_permission=False, auto_configuration_enabled=False, component_monitoring_settings=[applicationinsights_mixins.CfnApplicationPropsMixin.ComponentMonitoringSettingProperty( component_arn="componentArn", component_configuration_mode="componentConfigurationMode", component_name="componentName", custom_component_configuration=applicationinsights_mixins.CfnApplicationPropsMixin.ComponentConfigurationProperty( configuration_details=applicationinsights_mixins.CfnApplicationPropsMixin.ConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], alarms=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmProperty( alarm_name="alarmName", severity="severity" )], ha_cluster_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.HAClusterPrometheusExporterProperty( prometheus_port="prometheusPort" ), hana_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.HANAPrometheusExporterProperty( agree_to_install_hanadb_client=False, hana_port="hanaPort", hana_secret_name="hanaSecretName", hanasid="hanasid", prometheus_port="prometheusPort" ), jmx_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.JMXPrometheusExporterProperty( host_port="hostPort", jmxurl="jmxurl", prometheus_port="prometheusPort" ), logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], net_weaver_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.NetWeaverPrometheusExporterProperty( instance_numbers=["instanceNumbers"], prometheus_port="prometheusPort", sapsid="sapsid" ), processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], sql_server_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.SQLServerPrometheusExporterProperty( prometheus_port="prometheusPort", sql_secret_name="sqlSecretName" ), windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] ), sub_component_type_configurations=[applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentTypeConfigurationProperty( sub_component_configuration_details=applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] ), sub_component_type="subComponentType" )] ), default_overwrite_component_configuration=applicationinsights_mixins.CfnApplicationPropsMixin.ComponentConfigurationProperty( configuration_details=applicationinsights_mixins.CfnApplicationPropsMixin.ConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], alarms=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmProperty( alarm_name="alarmName", severity="severity" )], ha_cluster_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.HAClusterPrometheusExporterProperty( prometheus_port="prometheusPort" ), hana_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.HANAPrometheusExporterProperty( agree_to_install_hanadb_client=False, hana_port="hanaPort", hana_secret_name="hanaSecretName", hanasid="hanasid", prometheus_port="prometheusPort" ), jmx_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.JMXPrometheusExporterProperty( host_port="hostPort", jmxurl="jmxurl", prometheus_port="prometheusPort" ), logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], net_weaver_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.NetWeaverPrometheusExporterProperty( instance_numbers=["instanceNumbers"], prometheus_port="prometheusPort", sapsid="sapsid" ), processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], sql_server_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.SQLServerPrometheusExporterProperty( prometheus_port="prometheusPort", sql_secret_name="sqlSecretName" ), windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] ), sub_component_type_configurations=[applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentTypeConfigurationProperty( sub_component_configuration_details=applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] ), sub_component_type="subComponentType" )] ), tier="tier" )], custom_components=[applicationinsights_mixins.CfnApplicationPropsMixin.CustomComponentProperty( component_name="componentName", resource_list=["resourceList"] )], cwe_monitor_enabled=False, grouping_type="groupingType", log_pattern_sets=[applicationinsights_mixins.CfnApplicationPropsMixin.LogPatternSetProperty( log_patterns=[applicationinsights_mixins.CfnApplicationPropsMixin.LogPatternProperty( pattern="pattern", pattern_name="patternName", rank=123 )], pattern_set_name="patternSetName" )], ops_center_enabled=False, ops_item_sns_topic_arn="opsItemSnsTopicArn", resource_group_name="resourceGroupName", sns_notification_arn="snsNotificationArn", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::ApplicationInsights::Application.- Parameters:
props (
Union[CfnApplicationMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['attachMissingPermission', 'autoConfigurationEnabled', 'componentMonitoringSettings', 'customComponents', 'cweMonitorEnabled', 'groupingType', 'logPatternSets', 'opsCenterEnabled', 'opsItemSnsTopicArn', 'resourceGroupName', 'snsNotificationArn', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AlarmMetricProperty
- class CfnApplicationPropsMixin.AlarmMetricProperty(*, alarm_metric_name=None)
Bases:
objectThe
AWS::ApplicationInsights::Application AlarmMetricproperty type defines a metric to monitor for the component.- Parameters:
alarm_metric_name (
Optional[str]) – The name of the metric to be monitored for the component. For metrics supported by Application Insights, see Logs and metrics supported by Amazon CloudWatch Application Insights .- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins alarm_metric_property = applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )
Attributes
- alarm_metric_name
The name of the metric to be monitored for the component.
For metrics supported by Application Insights, see Logs and metrics supported by Amazon CloudWatch Application Insights .
AlarmProperty
- class CfnApplicationPropsMixin.AlarmProperty(*, alarm_name=None, severity=None)
Bases:
objectThe
AWS::ApplicationInsights::Application Alarmproperty type defines a CloudWatch alarm to be monitored for the component.- Parameters:
alarm_name (
Optional[str]) – The name of the CloudWatch alarm to be monitored for the component.severity (
Optional[str]) – Indicates the degree of outage when the alarm goes off.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins alarm_property = applicationinsights_mixins.CfnApplicationPropsMixin.AlarmProperty( alarm_name="alarmName", severity="severity" )
Attributes
- alarm_name
The name of the CloudWatch alarm to be monitored for the component.
- severity
Indicates the degree of outage when the alarm goes off.
ComponentConfigurationProperty
- class CfnApplicationPropsMixin.ComponentConfigurationProperty(*, configuration_details=None, sub_component_type_configurations=None)
Bases:
objectThe
AWS::ApplicationInsights::Application ComponentConfigurationproperty type defines the configuration settings of the component.- Parameters:
configuration_details (
Union[IResolvable,ConfigurationDetailsProperty,Dict[str,Any],None]) – The configuration settings.sub_component_type_configurations (
Union[IResolvable,Sequence[Union[IResolvable,SubComponentTypeConfigurationProperty,Dict[str,Any]]],None]) – Sub-component configurations of the component.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins component_configuration_property = applicationinsights_mixins.CfnApplicationPropsMixin.ComponentConfigurationProperty( configuration_details=applicationinsights_mixins.CfnApplicationPropsMixin.ConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], alarms=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmProperty( alarm_name="alarmName", severity="severity" )], ha_cluster_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.HAClusterPrometheusExporterProperty( prometheus_port="prometheusPort" ), hana_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.HANAPrometheusExporterProperty( agree_to_install_hanadb_client=False, hana_port="hanaPort", hana_secret_name="hanaSecretName", hanasid="hanasid", prometheus_port="prometheusPort" ), jmx_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.JMXPrometheusExporterProperty( host_port="hostPort", jmxurl="jmxurl", prometheus_port="prometheusPort" ), logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], net_weaver_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.NetWeaverPrometheusExporterProperty( instance_numbers=["instanceNumbers"], prometheus_port="prometheusPort", sapsid="sapsid" ), processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], sql_server_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.SQLServerPrometheusExporterProperty( prometheus_port="prometheusPort", sql_secret_name="sqlSecretName" ), windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] ), sub_component_type_configurations=[applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentTypeConfigurationProperty( sub_component_configuration_details=applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] ), sub_component_type="subComponentType" )] )
Attributes
- configuration_details
The configuration settings.
- sub_component_type_configurations
Sub-component configurations of the component.
ComponentMonitoringSettingProperty
- class CfnApplicationPropsMixin.ComponentMonitoringSettingProperty(*, component_arn=None, component_configuration_mode=None, component_name=None, custom_component_configuration=None, default_overwrite_component_configuration=None, tier=None)
Bases:
objectThe
AWS::ApplicationInsights::Application ComponentMonitoringSettingproperty type defines the monitoring setting of the component.- Parameters:
component_arn (
Optional[str]) – The ARN of the component. Either the component ARN or the component name is required.component_configuration_mode (
Optional[str]) – Component monitoring can be configured in one of the following three modes:. -DEFAULT: The component will be configured with the recommended default monitoring settings of the selectedTier. -CUSTOM: The component will be configured with the customized monitoring settings that are specified inCustomComponentConfiguration. If used,CustomComponentConfigurationmust be provided. -DEFAULT_WITH_OVERWRITE: The component will be configured with the recommended default monitoring settings of the selectedTier, and merged with customized overwrite settings that are specified inDefaultOverwriteComponentConfiguration. If used,DefaultOverwriteComponentConfigurationmust be provided.component_name (
Optional[str]) – The name of the component. Either the component ARN or the component name is required.custom_component_configuration (
Union[IResolvable,ComponentConfigurationProperty,Dict[str,Any],None]) – Customized monitoring settings. Required if CUSTOM mode is configured inComponentConfigurationMode.default_overwrite_component_configuration (
Union[IResolvable,ComponentConfigurationProperty,Dict[str,Any],None]) – Customized overwrite monitoring settings. Required if CUSTOM mode is configured inComponentConfigurationMode.tier (
Optional[str]) – The tier of the application component. Supported tiers includeDOT_NET_CORE,DOT_NET_WORKER,DOT_NET_WEB,SQL_SERVER,SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP,SQL_SERVER_FAILOVER_CLUSTER_INSTANCE,MYSQL,POSTGRESQL,JAVA_JMX,ORACLE,SAP_HANA_MULTI_NODE,SAP_HANA_SINGLE_NODE,SAP_HANA_HIGH_AVAILABILITY,SHAREPOINT.ACTIVE_DIRECTORY, andDEFAULT.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins component_monitoring_setting_property = applicationinsights_mixins.CfnApplicationPropsMixin.ComponentMonitoringSettingProperty( component_arn="componentArn", component_configuration_mode="componentConfigurationMode", component_name="componentName", custom_component_configuration=applicationinsights_mixins.CfnApplicationPropsMixin.ComponentConfigurationProperty( configuration_details=applicationinsights_mixins.CfnApplicationPropsMixin.ConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], alarms=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmProperty( alarm_name="alarmName", severity="severity" )], ha_cluster_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.HAClusterPrometheusExporterProperty( prometheus_port="prometheusPort" ), hana_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.HANAPrometheusExporterProperty( agree_to_install_hanadb_client=False, hana_port="hanaPort", hana_secret_name="hanaSecretName", hanasid="hanasid", prometheus_port="prometheusPort" ), jmx_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.JMXPrometheusExporterProperty( host_port="hostPort", jmxurl="jmxurl", prometheus_port="prometheusPort" ), logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], net_weaver_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.NetWeaverPrometheusExporterProperty( instance_numbers=["instanceNumbers"], prometheus_port="prometheusPort", sapsid="sapsid" ), processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], sql_server_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.SQLServerPrometheusExporterProperty( prometheus_port="prometheusPort", sql_secret_name="sqlSecretName" ), windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] ), sub_component_type_configurations=[applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentTypeConfigurationProperty( sub_component_configuration_details=applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] ), sub_component_type="subComponentType" )] ), default_overwrite_component_configuration=applicationinsights_mixins.CfnApplicationPropsMixin.ComponentConfigurationProperty( configuration_details=applicationinsights_mixins.CfnApplicationPropsMixin.ConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], alarms=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmProperty( alarm_name="alarmName", severity="severity" )], ha_cluster_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.HAClusterPrometheusExporterProperty( prometheus_port="prometheusPort" ), hana_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.HANAPrometheusExporterProperty( agree_to_install_hanadb_client=False, hana_port="hanaPort", hana_secret_name="hanaSecretName", hanasid="hanasid", prometheus_port="prometheusPort" ), jmx_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.JMXPrometheusExporterProperty( host_port="hostPort", jmxurl="jmxurl", prometheus_port="prometheusPort" ), logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], net_weaver_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.NetWeaverPrometheusExporterProperty( instance_numbers=["instanceNumbers"], prometheus_port="prometheusPort", sapsid="sapsid" ), processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], sql_server_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.SQLServerPrometheusExporterProperty( prometheus_port="prometheusPort", sql_secret_name="sqlSecretName" ), windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] ), sub_component_type_configurations=[applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentTypeConfigurationProperty( sub_component_configuration_details=applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] ), sub_component_type="subComponentType" )] ), tier="tier" )
Attributes
- component_arn
The ARN of the component.
Either the component ARN or the component name is required.
- component_configuration_mode
.
DEFAULT: The component will be configured with the recommended default monitoring settings of the selectedTier.CUSTOM: The component will be configured with the customized monitoring settings that are specified inCustomComponentConfiguration. If used,CustomComponentConfigurationmust be provided.DEFAULT_WITH_OVERWRITE: The component will be configured with the recommended default monitoring settings of the selectedTier, and merged with customized overwrite settings that are specified inDefaultOverwriteComponentConfiguration. If used,DefaultOverwriteComponentConfigurationmust be provided.
- See:
- Type:
Component monitoring can be configured in one of the following three modes
- component_name
The name of the component.
Either the component ARN or the component name is required.
- custom_component_configuration
Customized monitoring settings.
Required if CUSTOM mode is configured in
ComponentConfigurationMode.
- default_overwrite_component_configuration
Customized overwrite monitoring settings.
Required if CUSTOM mode is configured in
ComponentConfigurationMode.
- tier
The tier of the application component.
Supported tiers include
DOT_NET_CORE,DOT_NET_WORKER,DOT_NET_WEB,SQL_SERVER,SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP,SQL_SERVER_FAILOVER_CLUSTER_INSTANCE,MYSQL,POSTGRESQL,JAVA_JMX,ORACLE,SAP_HANA_MULTI_NODE,SAP_HANA_SINGLE_NODE,SAP_HANA_HIGH_AVAILABILITY,SHAREPOINT.ACTIVE_DIRECTORY, andDEFAULT.
ConfigurationDetailsProperty
- class CfnApplicationPropsMixin.ConfigurationDetailsProperty(*, alarm_metrics=None, alarms=None, ha_cluster_prometheus_exporter=None, hana_prometheus_exporter=None, jmx_prometheus_exporter=None, logs=None, net_weaver_prometheus_exporter=None, processes=None, sql_server_prometheus_exporter=None, windows_events=None)
Bases:
objectThe
AWS::ApplicationInsights::Application ConfigurationDetailsproperty type specifies the configuration settings.- Parameters:
alarm_metrics (
Union[IResolvable,Sequence[Union[IResolvable,AlarmMetricProperty,Dict[str,Any]]],None]) – A list of metrics to monitor for the component. All component types can useAlarmMetrics.alarms (
Union[IResolvable,Sequence[Union[IResolvable,AlarmProperty,Dict[str,Any]]],None]) – A list of alarms to monitor for the component. All component types can useAlarm.ha_cluster_prometheus_exporter (
Union[IResolvable,HAClusterPrometheusExporterProperty,Dict[str,Any],None]) – The HA cluster Prometheus Exporter settings.hana_prometheus_exporter (
Union[IResolvable,HANAPrometheusExporterProperty,Dict[str,Any],None]) – The HANA DB Prometheus Exporter settings.jmx_prometheus_exporter (
Union[IResolvable,JMXPrometheusExporterProperty,Dict[str,Any],None]) – A list of Java metrics to monitor for the component.logs (
Union[IResolvable,Sequence[Union[IResolvable,LogProperty,Dict[str,Any]]],None]) – A list of logs to monitor for the component. Only Amazon EC2 instances can useLogs.net_weaver_prometheus_exporter (
Union[IResolvable,NetWeaverPrometheusExporterProperty,Dict[str,Any],None]) – The NetWeaver Prometheus Exporter Settings.processes (
Union[IResolvable,Sequence[Union[IResolvable,ProcessProperty,Dict[str,Any]]],None]) – A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.sql_server_prometheus_exporter (
Union[IResolvable,SQLServerPrometheusExporterProperty,Dict[str,Any],None]) – The SQL prometheus exporter settings.windows_events (
Union[IResolvable,Sequence[Union[IResolvable,WindowsEventProperty,Dict[str,Any]]],None]) – A list of Windows Events to monitor for the component. Only Amazon EC2 instances running on Windows can useWindowsEvents.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins configuration_details_property = applicationinsights_mixins.CfnApplicationPropsMixin.ConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], alarms=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmProperty( alarm_name="alarmName", severity="severity" )], ha_cluster_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.HAClusterPrometheusExporterProperty( prometheus_port="prometheusPort" ), hana_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.HANAPrometheusExporterProperty( agree_to_install_hanadb_client=False, hana_port="hanaPort", hana_secret_name="hanaSecretName", hanasid="hanasid", prometheus_port="prometheusPort" ), jmx_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.JMXPrometheusExporterProperty( host_port="hostPort", jmxurl="jmxurl", prometheus_port="prometheusPort" ), logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], net_weaver_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.NetWeaverPrometheusExporterProperty( instance_numbers=["instanceNumbers"], prometheus_port="prometheusPort", sapsid="sapsid" ), processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], sql_server_prometheus_exporter=applicationinsights_mixins.CfnApplicationPropsMixin.SQLServerPrometheusExporterProperty( prometheus_port="prometheusPort", sql_secret_name="sqlSecretName" ), windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] )
Attributes
- alarm_metrics
A list of metrics to monitor for the component.
All component types can use
AlarmMetrics.
- alarms
A list of alarms to monitor for the component.
All component types can use
Alarm.
- ha_cluster_prometheus_exporter
The HA cluster Prometheus Exporter settings.
- hana_prometheus_exporter
The HANA DB Prometheus Exporter settings.
- jmx_prometheus_exporter
A list of Java metrics to monitor for the component.
- logs
A list of logs to monitor for the component.
Only Amazon EC2 instances can use
Logs.
- net_weaver_prometheus_exporter
The NetWeaver Prometheus Exporter Settings.
- processes
A list of processes to monitor for the component.
Only Windows EC2 instances can have a processes section.
- sql_server_prometheus_exporter
The SQL prometheus exporter settings.
- windows_events
A list of Windows Events to monitor for the component.
Only Amazon EC2 instances running on Windows can use
WindowsEvents.
CustomComponentProperty
- class CfnApplicationPropsMixin.CustomComponentProperty(*, component_name=None, resource_list=None)
Bases:
objectThe
AWS::ApplicationInsights::Application CustomComponentproperty type describes a custom component by grouping similar standalone instances to monitor.- Parameters:
component_name (
Optional[str]) – The name of the component.resource_list (
Optional[Sequence[str]]) – The list of resource ARNs that belong to the component.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins custom_component_property = applicationinsights_mixins.CfnApplicationPropsMixin.CustomComponentProperty( component_name="componentName", resource_list=["resourceList"] )
Attributes
- component_name
The name of the component.
- resource_list
The list of resource ARNs that belong to the component.
HAClusterPrometheusExporterProperty
- class CfnApplicationPropsMixin.HAClusterPrometheusExporterProperty(*, prometheus_port=None)
Bases:
objectThe
AWS::ApplicationInsights::Application HAClusterPrometheusExporterproperty type defines the HA cluster Prometheus Exporter settings.For more information, see the component configuration in the CloudWatch Application Insights documentation.
- Parameters:
prometheus_port (
Optional[str]) – The target port to which Prometheus sends metrics. If not specified, the default port 9668 is used.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins h_aCluster_prometheus_exporter_property = applicationinsights_mixins.CfnApplicationPropsMixin.HAClusterPrometheusExporterProperty( prometheus_port="prometheusPort" )
Attributes
- prometheus_port
The target port to which Prometheus sends metrics.
If not specified, the default port 9668 is used.
HANAPrometheusExporterProperty
- class CfnApplicationPropsMixin.HANAPrometheusExporterProperty(*, agree_to_install_hanadb_client=None, hana_port=None, hana_secret_name=None, hanasid=None, prometheus_port=None)
Bases:
objectThe
AWS::ApplicationInsights::Application HANAPrometheusExporterproperty type defines the HANA DB Prometheus Exporter settings.For more information, see the component configuration in the CloudWatch Application Insights documentation.
- Parameters:
agree_to_install_hanadb_client (
Union[bool,IResolvable,None]) – Designates whether you agree to install the HANA DB client.hana_port (
Optional[str]) – The HANA database port by which the exporter will query HANA metrics.hana_secret_name (
Optional[str]) – The AWS Secrets Manager secret that stores HANA monitoring user credentials. The HANA Prometheus exporter uses these credentials to connect to the database and query HANA metrics.hanasid (
Optional[str]) – The three-character SAP system ID (SID) of the SAP HANA system.prometheus_port (
Optional[str]) – The target port to which Prometheus sends metrics. If not specified, the default port 9668 is used.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins h_aNAPrometheus_exporter_property = applicationinsights_mixins.CfnApplicationPropsMixin.HANAPrometheusExporterProperty( agree_to_install_hanadb_client=False, hana_port="hanaPort", hana_secret_name="hanaSecretName", hanasid="hanasid", prometheus_port="prometheusPort" )
Attributes
- agree_to_install_hanadb_client
Designates whether you agree to install the HANA DB client.
- hana_port
The HANA database port by which the exporter will query HANA metrics.
- hana_secret_name
The AWS Secrets Manager secret that stores HANA monitoring user credentials.
The HANA Prometheus exporter uses these credentials to connect to the database and query HANA metrics.
- hanasid
The three-character SAP system ID (SID) of the SAP HANA system.
- prometheus_port
The target port to which Prometheus sends metrics.
If not specified, the default port 9668 is used.
JMXPrometheusExporterProperty
- class CfnApplicationPropsMixin.JMXPrometheusExporterProperty(*, host_port=None, jmxurl=None, prometheus_port=None)
Bases:
objectThe
AWS::ApplicationInsights::Application JMXPrometheusExporterproperty type defines the JMXPrometheus Exporter configuration.For more information, see the component configuration in the CloudWatch Application Insights documentation.
- Parameters:
host_port (
Optional[str]) – The host and port to connect to through remote JMX. Only one ofjmxURLandhostPortcan be specified.jmxurl (
Optional[str]) – The complete JMX URL to connect to.prometheus_port (
Optional[str]) – The target port to send Prometheus metrics to. If not specified, the default port9404is used.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins j_mXPrometheus_exporter_property = applicationinsights_mixins.CfnApplicationPropsMixin.JMXPrometheusExporterProperty( host_port="hostPort", jmxurl="jmxurl", prometheus_port="prometheusPort" )
Attributes
- host_port
The host and port to connect to through remote JMX.
Only one of
jmxURLandhostPortcan be specified.
- jmxurl
The complete JMX URL to connect to.
- prometheus_port
The target port to send Prometheus metrics to.
If not specified, the default port
9404is used.
LogPatternProperty
- class CfnApplicationPropsMixin.LogPatternProperty(*, pattern=None, pattern_name=None, rank=None)
Bases:
objectThe
AWS::ApplicationInsights::Application LogPatternproperty type specifies an object that defines the log patterns that belong to aLogPatternSet.- Parameters:
pattern (
Optional[str]) – A regular expression that defines the log pattern. A log pattern can contain up to 50 characters, and it cannot be empty.pattern_name (
Optional[str]) – The name of the log pattern. A log pattern name can contain up to 50 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.rank (
Union[int,float,None]) – The rank of the log pattern.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins log_pattern_property = applicationinsights_mixins.CfnApplicationPropsMixin.LogPatternProperty( pattern="pattern", pattern_name="patternName", rank=123 )
Attributes
- pattern
A regular expression that defines the log pattern.
A log pattern can contain up to 50 characters, and it cannot be empty.
- pattern_name
The name of the log pattern.
A log pattern name can contain up to 50 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.
LogPatternSetProperty
- class CfnApplicationPropsMixin.LogPatternSetProperty(*, log_patterns=None, pattern_set_name=None)
Bases:
objectThe
AWS::ApplicationInsights::Application LogPatternSetproperty type specifies the log pattern set.- Parameters:
log_patterns (
Union[IResolvable,Sequence[Union[IResolvable,LogPatternProperty,Dict[str,Any]]],None]) – A list of objects that define the log patterns that belong toLogPatternSet.pattern_set_name (
Optional[str]) – The name of the log pattern. A log pattern name can contain up to 30 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins log_pattern_set_property = applicationinsights_mixins.CfnApplicationPropsMixin.LogPatternSetProperty( log_patterns=[applicationinsights_mixins.CfnApplicationPropsMixin.LogPatternProperty( pattern="pattern", pattern_name="patternName", rank=123 )], pattern_set_name="patternSetName" )
Attributes
- log_patterns
A list of objects that define the log patterns that belong to
LogPatternSet.
- pattern_set_name
The name of the log pattern.
A log pattern name can contain up to 30 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.
LogProperty
- class CfnApplicationPropsMixin.LogProperty(*, encoding=None, log_group_name=None, log_path=None, log_type=None, pattern_set=None)
Bases:
objectThe
AWS::ApplicationInsights::Application Logproperty type specifies a log to monitor for the component.- Parameters:
encoding (
Optional[str]) – The type of encoding of the logs to be monitored. The specified encoding should be included in the list of CloudWatch agent supported encodings. If not provided, CloudWatch Application Insights uses the default encoding type for the log type: -APPLICATION/DEFAULT: utf-8 encoding -SQL_SERVER: utf-16 encoding -IIS: ascii encodinglog_group_name (
Optional[str]) – The CloudWatch log group name to be associated with the monitored log.log_path (
Optional[str]) – The path of the logs to be monitored. The log path must be an absolute Windows or Linux system file path. For more information, see CloudWatch Agent Configuration File: Logs Section .log_type (
Optional[str]) – The log type decides the log patterns against which Application Insights analyzes the log. The log type is selected from the following:SQL_SERVER,MYSQL,MYSQL_SLOW_QUERY,POSTGRESQL,ORACLE_ALERT,ORACLE_LISTENER,IIS,APPLICATION,WINDOWS_EVENTS,WINDOWS_EVENTS_ACTIVE_DIRECTORY,WINDOWS_EVENTS_DNS,WINDOWS_EVENTS_IIS,WINDOWS_EVENTS_SHAREPOINT,SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP,SQL_SERVER_FAILOVER_CLUSTER_INSTANCE,STEP_FUNCTION,API_GATEWAY_ACCESS,API_GATEWAY_EXECUTION,SAP_HANA_LOGS,SAP_HANA_TRACE,SAP_HANA_HIGH_AVAILABILITY, andDEFAULT.pattern_set (
Optional[str]) – The log pattern set.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins log_property = applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )
Attributes
- encoding
The type of encoding of the logs to be monitored.
The specified encoding should be included in the list of CloudWatch agent supported encodings. If not provided, CloudWatch Application Insights uses the default encoding type for the log type:
APPLICATION/DEFAULT: utf-8 encodingSQL_SERVER: utf-16 encodingIIS: ascii encoding
- log_group_name
The CloudWatch log group name to be associated with the monitored log.
- log_path
The path of the logs to be monitored.
The log path must be an absolute Windows or Linux system file path. For more information, see CloudWatch Agent Configuration File: Logs Section .
- log_type
The log type decides the log patterns against which Application Insights analyzes the log.
The log type is selected from the following:
SQL_SERVER,MYSQL,MYSQL_SLOW_QUERY,POSTGRESQL,ORACLE_ALERT,ORACLE_LISTENER,IIS,APPLICATION,WINDOWS_EVENTS,WINDOWS_EVENTS_ACTIVE_DIRECTORY,WINDOWS_EVENTS_DNS,WINDOWS_EVENTS_IIS,WINDOWS_EVENTS_SHAREPOINT,SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP,SQL_SERVER_FAILOVER_CLUSTER_INSTANCE,STEP_FUNCTION,API_GATEWAY_ACCESS,API_GATEWAY_EXECUTION,SAP_HANA_LOGS,SAP_HANA_TRACE,SAP_HANA_HIGH_AVAILABILITY, andDEFAULT.
NetWeaverPrometheusExporterProperty
- class CfnApplicationPropsMixin.NetWeaverPrometheusExporterProperty(*, instance_numbers=None, prometheus_port=None, sapsid=None)
Bases:
objectThe NetWeaver Prometheus Exporter Settings.
- Parameters:
instance_numbers (
Optional[Sequence[str]]) – SAP instance numbers for ASCS, ERS, and App Servers.prometheus_port (
Optional[str]) – Prometheus exporter port.sapsid (
Optional[str]) – SAP NetWeaver SID.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins net_weaver_prometheus_exporter_property = applicationinsights_mixins.CfnApplicationPropsMixin.NetWeaverPrometheusExporterProperty( instance_numbers=["instanceNumbers"], prometheus_port="prometheusPort", sapsid="sapsid" )
Attributes
- instance_numbers
SAP instance numbers for ASCS, ERS, and App Servers.
- prometheus_port
Prometheus exporter port.
ProcessProperty
- class CfnApplicationPropsMixin.ProcessProperty(*, alarm_metrics=None, process_name=None)
Bases:
objectA process to be monitored for the component.
- Parameters:
alarm_metrics (
Union[IResolvable,Sequence[Union[IResolvable,AlarmMetricProperty,Dict[str,Any]]],None]) – A list of metrics to monitor for the component.process_name (
Optional[str]) – The name of the process to be monitored for the component.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins process_property = applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )
Attributes
- alarm_metrics
A list of metrics to monitor for the component.
- process_name
The name of the process to be monitored for the component.
SQLServerPrometheusExporterProperty
- class CfnApplicationPropsMixin.SQLServerPrometheusExporterProperty(*, prometheus_port=None, sql_secret_name=None)
Bases:
objectThe SQL prometheus exporter settings.
- Parameters:
prometheus_port (
Optional[str]) – Prometheus exporter port.sql_secret_name (
Optional[str]) – Secret name which managers SQL exporter connection. e.g. {“data_source_name”: “sqlserver://:@localhost:1433”}
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins s_qLServer_prometheus_exporter_property = applicationinsights_mixins.CfnApplicationPropsMixin.SQLServerPrometheusExporterProperty( prometheus_port="prometheusPort", sql_secret_name="sqlSecretName" )
Attributes
- prometheus_port
Prometheus exporter port.
- sql_secret_name
Secret name which managers SQL exporter connection.
e.g. {“data_source_name”: “sqlserver://:@localhost:1433”}
SubComponentConfigurationDetailsProperty
- class CfnApplicationPropsMixin.SubComponentConfigurationDetailsProperty(*, alarm_metrics=None, logs=None, processes=None, windows_events=None)
Bases:
objectThe
AWS::ApplicationInsights::Application SubComponentConfigurationDetailsproperty type specifies the configuration settings of the sub-components.- Parameters:
alarm_metrics (
Union[IResolvable,Sequence[Union[IResolvable,AlarmMetricProperty,Dict[str,Any]]],None]) – A list of metrics to monitor for the component. All component types can useAlarmMetrics.logs (
Union[IResolvable,Sequence[Union[IResolvable,LogProperty,Dict[str,Any]]],None]) – A list of logs to monitor for the component. Only Amazon EC2 instances can useLogs.processes (
Union[IResolvable,Sequence[Union[IResolvable,ProcessProperty,Dict[str,Any]]],None]) – A list of processes to monitor for the component. Only Windows EC2 instances can have a processes section.windows_events (
Union[IResolvable,Sequence[Union[IResolvable,WindowsEventProperty,Dict[str,Any]]],None]) – A list of Windows Events to monitor for the component. Only Amazon EC2 instances running on Windows can useWindowsEvents.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins sub_component_configuration_details_property = applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] )
Attributes
- alarm_metrics
A list of metrics to monitor for the component.
All component types can use
AlarmMetrics.
- logs
A list of logs to monitor for the component.
Only Amazon EC2 instances can use
Logs.
- processes
A list of processes to monitor for the component.
Only Windows EC2 instances can have a processes section.
- windows_events
A list of Windows Events to monitor for the component.
Only Amazon EC2 instances running on Windows can use
WindowsEvents.
SubComponentTypeConfigurationProperty
- class CfnApplicationPropsMixin.SubComponentTypeConfigurationProperty(*, sub_component_configuration_details=None, sub_component_type=None)
Bases:
objectThe
AWS::ApplicationInsights::Application SubComponentTypeConfigurationproperty type specifies the sub-component configurations for a component.- Parameters:
sub_component_configuration_details (
Union[IResolvable,SubComponentConfigurationDetailsProperty,Dict[str,Any],None]) – The configuration settings of the sub-components.sub_component_type (
Optional[str]) – The sub-component type.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins sub_component_type_configuration_property = applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentTypeConfigurationProperty( sub_component_configuration_details=applicationinsights_mixins.CfnApplicationPropsMixin.SubComponentConfigurationDetailsProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], logs=[applicationinsights_mixins.CfnApplicationPropsMixin.LogProperty( encoding="encoding", log_group_name="logGroupName", log_path="logPath", log_type="logType", pattern_set="patternSet" )], processes=[applicationinsights_mixins.CfnApplicationPropsMixin.ProcessProperty( alarm_metrics=[applicationinsights_mixins.CfnApplicationPropsMixin.AlarmMetricProperty( alarm_metric_name="alarmMetricName" )], process_name="processName" )], windows_events=[applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )] ), sub_component_type="subComponentType" )
Attributes
- sub_component_configuration_details
The configuration settings of the sub-components.
WindowsEventProperty
- class CfnApplicationPropsMixin.WindowsEventProperty(*, event_levels=None, event_name=None, log_group_name=None, pattern_set=None)
Bases:
objectThe
AWS::ApplicationInsights::Application WindowsEventproperty type specifies a Windows Event to monitor for the component.- Parameters:
event_levels (
Optional[Sequence[str]]) – The levels of event to log. You must specify each level to log. Possible values includeINFORMATION,WARNING,ERROR,CRITICAL, andVERBOSE. This field is required for each type of Windows Event to log.event_name (
Optional[str]) – The type of Windows Events to log, equivalent to the Windows Event log channel name. For example, System, Security, CustomEventName, and so on. This field is required for each type of Windows event to log.log_group_name (
Optional[str]) – The CloudWatch log group name to be associated with the monitored log.pattern_set (
Optional[str]) – The log pattern set.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_applicationinsights import mixins as applicationinsights_mixins windows_event_property = applicationinsights_mixins.CfnApplicationPropsMixin.WindowsEventProperty( event_levels=["eventLevels"], event_name="eventName", log_group_name="logGroupName", pattern_set="patternSet" )
Attributes
- event_levels
The levels of event to log.
You must specify each level to log. Possible values include
INFORMATION,WARNING,ERROR,CRITICAL, andVERBOSE. This field is required for each type of Windows Event to log.
- event_name
The type of Windows Events to log, equivalent to the Windows Event log channel name.
For example, System, Security, CustomEventName, and so on. This field is required for each type of Windows event to log.
- log_group_name
The CloudWatch log group name to be associated with the monitored log.