Class CfnApplication
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.applicationinsights.CfnApplication
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-12T12:31:57.665Z")
@Stability(Stable)
public class CfnApplication
extends CfnResource
implements IInspectable, ITaggable
The
AWS::ApplicationInsights::Application
resource adds an application that is created from a resource group.
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.*; CfnApplication cfnApplication = CfnApplication.Builder.create(this, "MyCfnApplication") .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 TypeClassDescriptionstatic interface
TheAWS::ApplicationInsights::Application AlarmMetric
property type defines a metric to monitor for the component.static interface
TheAWS::ApplicationInsights::Application Alarm
property type defines a CloudWatch alarm to be monitored for the component.static final class
A fluent builder forCfnApplication
.static interface
TheAWS::ApplicationInsights::Application ComponentConfiguration
property type defines the configuration settings of the component.static interface
TheAWS::ApplicationInsights::Application ComponentMonitoringSetting
property type defines the monitoring setting of the component.static interface
TheAWS::ApplicationInsights::Application ConfigurationDetails
property type specifies the configuration settings.static interface
TheAWS::ApplicationInsights::Application CustomComponent
property type describes a custom component by grouping similar standalone instances to monitor.static interface
TheAWS::ApplicationInsights::Application HAClusterPrometheusExporter
property type defines the HA cluster Prometheus Exporter settings.static interface
TheAWS::ApplicationInsights::Application HANAPrometheusExporter
property type defines the HANA DB Prometheus Exporter settings.static interface
TheAWS::ApplicationInsights::Application JMXPrometheusExporter
property type defines the JMXPrometheus Exporter configuration.static interface
TheAWS::ApplicationInsights::Application LogPattern
property type specifies an object that defines the log patterns that belong to aLogPatternSet
.static interface
TheAWS::ApplicationInsights::Application LogPatternSet
property type specifies the log pattern set.static interface
TheAWS::ApplicationInsights::Application Log
property type specifies a log to monitor for the component.static interface
The NetWeaver Prometheus Exporter Settings.static interface
A process to be monitored for the component.static interface
The SQL prometheus exporter settings.static interface
TheAWS::ApplicationInsights::Application SubComponentConfigurationDetails
property type specifies the configuration settings of the sub-components.static interface
TheAWS::ApplicationInsights::Application SubComponentTypeConfiguration
property type specifies the sub-component configurations for a component.static interface
TheAWS::ApplicationInsights::Application WindowsEvent
property type specifies a Windows Event to monitor for the component.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnApplication
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnApplication
(software.amazon.jsii.JsiiObjectRef objRef) CfnApplication
(software.constructs.Construct scope, String id, CfnApplicationProps props) -
Method Summary
Modifier and TypeMethodDescriptionIf set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.Returns the Amazon Resource Name (ARN) of the application, such asarn:aws:applicationinsights:us-east-1:123456789012:application/resource-group/my_resource_group
.If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights.The monitoring settings of the components.Describes a custom component by grouping similar standalone instances to monitor.Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others.Application Insights can create applications based on a resource group or on an account.The log pattern sets.Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.The 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.The SNS topic ARN that is associated with SNS notifications for updates or issues.getTags()
Tag Manager which manages the tags for this resource.An array ofTags
.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.void
If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.void
If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights.void
If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights.void
setComponentMonitoringSettings
(List<Object> value) The monitoring settings of the components.void
The monitoring settings of the components.void
setCustomComponents
(List<Object> value) Describes a custom component by grouping similar standalone instances to monitor.void
setCustomComponents
(IResolvable value) Describes a custom component by grouping similar standalone instances to monitor.void
setCweMonitorEnabled
(Boolean value) Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others.void
setCweMonitorEnabled
(IResolvable value) Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others.void
setGroupingType
(String value) Application Insights can create applications based on a resource group or on an account.void
setLogPatternSets
(List<Object> value) The log pattern sets.void
setLogPatternSets
(IResolvable value) The log pattern sets.void
setOpsCenterEnabled
(Boolean value) Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.void
setOpsCenterEnabled
(IResolvable value) Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.void
setOpsItemSnsTopicArn
(String value) The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.void
setResourceGroupName
(String value) The name of the resource group used for the application.void
setSnsNotificationArn
(String value) The SNS topic ARN that is associated with SNS notifications for updates or issues.void
setTagsRaw
(List<CfnTag> value) An array ofTags
.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnApplication
protected CfnApplication(software.amazon.jsii.JsiiObjectRef objRef) -
CfnApplication
protected CfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnApplication
@Stability(Stable) public CfnApplication(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnApplicationProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrApplicationArn
Returns the Amazon Resource Name (ARN) of the application, such asarn:aws:applicationinsights:us-east-1:123456789012:application/resource-group/my_resource_group
. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getResourceGroupName
The name of the resource group used for the application. -
setResourceGroupName
The name of the resource group used for the application. -
getAttachMissingPermission
If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing. -
setAttachMissingPermission
If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing. -
setAttachMissingPermission
If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing. -
getAutoConfigurationEnabled
If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights. -
setAutoConfigurationEnabled
If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights. -
setAutoConfigurationEnabled
If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights. -
getComponentMonitoringSettings
The monitoring settings of the components. -
setComponentMonitoringSettings
The monitoring settings of the components. -
setComponentMonitoringSettings
The monitoring settings of the components. -
getCustomComponents
Describes a custom component by grouping similar standalone instances to monitor. -
setCustomComponents
Describes a custom component by grouping similar standalone instances to monitor. -
setCustomComponents
Describes a custom component by grouping similar standalone instances to monitor. -
getCweMonitorEnabled
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others. -
setCweMonitorEnabled
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others. -
setCweMonitorEnabled
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others. -
getGroupingType
Application Insights can create applications based on a resource group or on an account. -
setGroupingType
Application Insights can create applications based on a resource group or on an account. -
getLogPatternSets
The log pattern sets. -
setLogPatternSets
The log pattern sets. -
setLogPatternSets
The log pattern sets. -
getOpsCenterEnabled
Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application. -
setOpsCenterEnabled
Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application. -
setOpsCenterEnabled
Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application. -
getOpsItemSnsTopicArn
The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates. -
setOpsItemSnsTopicArn
The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates. -
getSnsNotificationArn
The SNS topic ARN that is associated with SNS notifications for updates or issues. -
setSnsNotificationArn
The SNS topic ARN that is associated with SNS notifications for updates or issues. -
getTagsRaw
An array ofTags
. -
setTagsRaw
An array ofTags
.
-