Interface CfnApplicationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApplicationProps.Jsii$Proxy
CfnApplication.
Example:
// 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.*;
CfnApplicationProps cfnApplicationProps = CfnApplicationProps.builder()
.resourceGroupName("resourceGroupName")
// the properties below are optional
.attachMissingPermission(false)
.autoConfigurationEnabled(false)
.componentMonitoringSettings(List.of(ComponentMonitoringSettingProperty.builder()
.componentConfigurationMode("componentConfigurationMode")
.tier("tier")
// the properties below are optional
.componentArn("componentArn")
.componentName("componentName")
.customComponentConfiguration(ComponentConfigurationProperty.builder()
.configurationDetails(ConfigurationDetailsProperty.builder()
.alarmMetrics(List.of(AlarmMetricProperty.builder()
.alarmMetricName("alarmMetricName")
.build()))
.alarms(List.of(AlarmProperty.builder()
.alarmName("alarmName")
// the properties below are optional
.severity("severity")
.build()))
.haClusterPrometheusExporter(HAClusterPrometheusExporterProperty.builder()
.prometheusPort("prometheusPort")
.build())
.hanaPrometheusExporter(HANAPrometheusExporterProperty.builder()
.agreeToInstallHanadbClient(false)
.hanaPort("hanaPort")
.hanaSecretName("hanaSecretName")
.hanasid("hanasid")
// the properties below are optional
.prometheusPort("prometheusPort")
.build())
.jmxPrometheusExporter(JMXPrometheusExporterProperty.builder()
.hostPort("hostPort")
.jmxurl("jmxurl")
.prometheusPort("prometheusPort")
.build())
.logs(List.of(LogProperty.builder()
.logType("logType")
// the properties below are optional
.encoding("encoding")
.logGroupName("logGroupName")
.logPath("logPath")
.patternSet("patternSet")
.build()))
.netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder()
.instanceNumbers(List.of("instanceNumbers"))
.sapsid("sapsid")
// the properties below are optional
.prometheusPort("prometheusPort")
.build())
.processes(List.of(ProcessProperty.builder()
.alarmMetrics(List.of(AlarmMetricProperty.builder()
.alarmMetricName("alarmMetricName")
.build()))
.processName("processName")
.build()))
.sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder()
.prometheusPort("prometheusPort")
.sqlSecretName("sqlSecretName")
.build())
.windowsEvents(List.of(WindowsEventProperty.builder()
.eventLevels(List.of("eventLevels"))
.eventName("eventName")
.logGroupName("logGroupName")
// the properties below are optional
.patternSet("patternSet")
.build()))
.build())
.subComponentTypeConfigurations(List.of(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()))
.build())
.defaultOverwriteComponentConfiguration(ComponentConfigurationProperty.builder()
.configurationDetails(ConfigurationDetailsProperty.builder()
.alarmMetrics(List.of(AlarmMetricProperty.builder()
.alarmMetricName("alarmMetricName")
.build()))
.alarms(List.of(AlarmProperty.builder()
.alarmName("alarmName")
// the properties below are optional
.severity("severity")
.build()))
.haClusterPrometheusExporter(HAClusterPrometheusExporterProperty.builder()
.prometheusPort("prometheusPort")
.build())
.hanaPrometheusExporter(HANAPrometheusExporterProperty.builder()
.agreeToInstallHanadbClient(false)
.hanaPort("hanaPort")
.hanaSecretName("hanaSecretName")
.hanasid("hanasid")
// the properties below are optional
.prometheusPort("prometheusPort")
.build())
.jmxPrometheusExporter(JMXPrometheusExporterProperty.builder()
.hostPort("hostPort")
.jmxurl("jmxurl")
.prometheusPort("prometheusPort")
.build())
.logs(List.of(LogProperty.builder()
.logType("logType")
// the properties below are optional
.encoding("encoding")
.logGroupName("logGroupName")
.logPath("logPath")
.patternSet("patternSet")
.build()))
.netWeaverPrometheusExporter(NetWeaverPrometheusExporterProperty.builder()
.instanceNumbers(List.of("instanceNumbers"))
.sapsid("sapsid")
// the properties below are optional
.prometheusPort("prometheusPort")
.build())
.processes(List.of(ProcessProperty.builder()
.alarmMetrics(List.of(AlarmMetricProperty.builder()
.alarmMetricName("alarmMetricName")
.build()))
.processName("processName")
.build()))
.sqlServerPrometheusExporter(SQLServerPrometheusExporterProperty.builder()
.prometheusPort("prometheusPort")
.sqlSecretName("sqlSecretName")
.build())
.windowsEvents(List.of(WindowsEventProperty.builder()
.eventLevels(List.of("eventLevels"))
.eventName("eventName")
.logGroupName("logGroupName")
// the properties below are optional
.patternSet("patternSet")
.build()))
.build())
.subComponentTypeConfigurations(List.of(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()))
.build())
.build()))
.customComponents(List.of(CustomComponentProperty.builder()
.componentName("componentName")
.resourceList(List.of("resourceList"))
.build()))
.cweMonitorEnabled(false)
.groupingType("groupingType")
.logPatternSets(List.of(LogPatternSetProperty.builder()
.logPatterns(List.of(LogPatternProperty.builder()
.pattern("pattern")
.patternName("patternName")
.rank(123)
.build()))
.patternSetName("patternSetName")
.build()))
.opsCenterEnabled(false)
.opsItemSnsTopicArn("opsItemSnsTopicArn")
.snsNotificationArn("snsNotificationArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnApplicationPropsstatic final classAn implementation forCfnApplicationProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnApplicationProps.Builderbuilder()default ObjectIf set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.default ObjectIf set totrue, the application components will be configured with the monitoring configuration recommended by Application Insights.default ObjectThe monitoring settings of the components.default ObjectDescribes a custom component by grouping similar standalone instances to monitor.default ObjectIndicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated,failed deployment, and others.default StringApplication Insights can create applications based on a resource group or on an account.default ObjectThe log pattern sets.default ObjectIndicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.default StringThe SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.The name of the resource group used for the application.default StringThe SNS topic ARN that is associated with SNS notifications for updates or issues.getTags()An array ofTags.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceGroupName
The name of the resource group used for the application.- See Also:
-
getAttachMissingPermission
If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.Returns union: either
BooleanorIResolvable- See Also:
-
getAutoConfigurationEnabled
If set totrue, the application components will be configured with the monitoring configuration recommended by Application Insights.Returns union: either
BooleanorIResolvable- See Also:
-
getComponentMonitoringSettings
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
AutoConfigurationEnabledtotrue.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApplication.ComponentMonitoringSettingProperty>- See Also:
-
getCustomComponents
Describes a custom component by grouping similar standalone instances to monitor.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApplication.CustomComponentProperty>- See Also:
-
getCweMonitorEnabled
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated,failed deployment, and others.Returns union: either
BooleanorIResolvable- See Also:
-
getGroupingType
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.- See Also:
-
getLogPatternSets
The log pattern sets.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApplication.LogPatternSetProperty>- See Also:
-
getOpsCenterEnabled
Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.Returns union: either
BooleanorIResolvable- See Also:
-
getOpsItemSnsTopicArn
The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.- See Also:
-
getSnsNotificationArn
The SNS topic ARN that is associated with SNS notifications for updates or issues.- See Also:
-
getTags
An array ofTags.- See Also:
-
builder
- Returns:
- a
CfnApplicationProps.BuilderofCfnApplicationProps
-