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.97.0 (build 729de35)", date="2024-04-24T21:00:25.376Z") @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()))
                                 .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()))
                                         .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()))
                                 .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()))
                                         .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")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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 class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrApplicationArn

      @Stability(Stable) @NotNull public String getAttrApplicationArn()
      Returns the Amazon Resource Name (ARN) of the application, such as arn:aws:applicationinsights:us-east-1:123456789012:application/resource-group/my_resource_group .
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getResourceGroupName

      @Stability(Stable) @NotNull public String getResourceGroupName()
      The name of the resource group used for the application.
    • setResourceGroupName

      @Stability(Stable) public void setResourceGroupName(@NotNull String value)
      The name of the resource group used for the application.
    • getAttachMissingPermission

      @Stability(Stable) @Nullable public Object getAttachMissingPermission()
      If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
    • setAttachMissingPermission

      @Stability(Stable) public void setAttachMissingPermission(@Nullable Boolean value)
      If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
    • setAttachMissingPermission

      @Stability(Stable) public void setAttachMissingPermission(@Nullable IResolvable value)
      If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
    • getAutoConfigurationEnabled

      @Stability(Stable) @Nullable public Object getAutoConfigurationEnabled()
      If set to true , the application components will be configured with the monitoring configuration recommended by Application Insights.
    • setAutoConfigurationEnabled

      @Stability(Stable) public void setAutoConfigurationEnabled(@Nullable Boolean value)
      If set to true , the application components will be configured with the monitoring configuration recommended by Application Insights.
    • setAutoConfigurationEnabled

      @Stability(Stable) public void setAutoConfigurationEnabled(@Nullable IResolvable value)
      If set to true , the application components will be configured with the monitoring configuration recommended by Application Insights.
    • getComponentMonitoringSettings

      @Stability(Stable) @Nullable public Object getComponentMonitoringSettings()
      The monitoring settings of the components.
    • setComponentMonitoringSettings

      @Stability(Stable) public void setComponentMonitoringSettings(@Nullable IResolvable value)
      The monitoring settings of the components.
    • setComponentMonitoringSettings

      @Stability(Stable) public void setComponentMonitoringSettings(@Nullable List<Object> value)
      The monitoring settings of the components.
    • getCustomComponents

      @Stability(Stable) @Nullable public Object getCustomComponents()
      Describes a custom component by grouping similar standalone instances to monitor.
    • setCustomComponents

      @Stability(Stable) public void setCustomComponents(@Nullable IResolvable value)
      Describes a custom component by grouping similar standalone instances to monitor.
    • setCustomComponents

      @Stability(Stable) public void setCustomComponents(@Nullable List<Object> value)
      Describes a custom component by grouping similar standalone instances to monitor.
    • getCweMonitorEnabled

      @Stability(Stable) @Nullable public Object getCweMonitorEnabled()
      Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated , failed deployment , and others.
    • setCweMonitorEnabled

      @Stability(Stable) public void setCweMonitorEnabled(@Nullable Boolean value)
      Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated , failed deployment , and others.
    • setCweMonitorEnabled

      @Stability(Stable) public void setCweMonitorEnabled(@Nullable IResolvable value)
      Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated , failed deployment , and others.
    • getGroupingType

      @Stability(Stable) @Nullable public String getGroupingType()
      Application Insights can create applications based on a resource group or on an account.
    • setGroupingType

      @Stability(Stable) public void setGroupingType(@Nullable String value)
      Application Insights can create applications based on a resource group or on an account.
    • getLogPatternSets

      @Stability(Stable) @Nullable public Object getLogPatternSets()
      The log pattern sets.
    • setLogPatternSets

      @Stability(Stable) public void setLogPatternSets(@Nullable IResolvable value)
      The log pattern sets.
    • setLogPatternSets

      @Stability(Stable) public void setLogPatternSets(@Nullable List<Object> value)
      The log pattern sets.
    • getOpsCenterEnabled

      @Stability(Stable) @Nullable public Object getOpsCenterEnabled()
      Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.
    • setOpsCenterEnabled

      @Stability(Stable) public void setOpsCenterEnabled(@Nullable Boolean value)
      Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.
    • setOpsCenterEnabled

      @Stability(Stable) public void setOpsCenterEnabled(@Nullable IResolvable value)
      Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.
    • getOpsItemSnsTopicArn

      @Stability(Stable) @Nullable public String getOpsItemSnsTopicArn()
      The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.
    • setOpsItemSnsTopicArn

      @Stability(Stable) public void setOpsItemSnsTopicArn(@Nullable String value)
      The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      An array of Tags .
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      An array of Tags .