Class CfnApplication.Builder

java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplication.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication>
Enclosing class:
CfnApplication

@Stability(Stable) public static final class CfnApplication.Builder extends Object implements software.amazon.jsii.Builder<CfnApplication>
A fluent builder for CfnApplication.
  • Method Details

    • create

      @Stability(Stable) public static CfnApplication.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnApplication.Builder.
    • resourceGroupName

      @Stability(Stable) public CfnApplication.Builder resourceGroupName(String resourceGroupName)
      The name of the resource group used for the application.

      Parameters:
      resourceGroupName - The name of the resource group used for the application. This parameter is required.
      Returns:
      this
    • autoConfigurationEnabled

      @Stability(Stable) public CfnApplication.Builder autoConfigurationEnabled(Boolean autoConfigurationEnabled)
      If set to true , the application components will be configured with the monitoring configuration recommended by Application Insights.

      Parameters:
      autoConfigurationEnabled - If set to true , the application components will be configured with the monitoring configuration recommended by Application Insights. This parameter is required.
      Returns:
      this
    • autoConfigurationEnabled

      @Stability(Stable) public CfnApplication.Builder autoConfigurationEnabled(IResolvable autoConfigurationEnabled)
      If set to true , the application components will be configured with the monitoring configuration recommended by Application Insights.

      Parameters:
      autoConfigurationEnabled - If set to true , the application components will be configured with the monitoring configuration recommended by Application Insights. This parameter is required.
      Returns:
      this
    • componentMonitoringSettings

      @Stability(Stable) public CfnApplication.Builder componentMonitoringSettings(IResolvable componentMonitoringSettings)
      The monitoring settings of the components.

      Parameters:
      componentMonitoringSettings - The monitoring settings of the components. This parameter is required.
      Returns:
      this
    • componentMonitoringSettings

      @Stability(Stable) public CfnApplication.Builder componentMonitoringSettings(List<? extends Object> componentMonitoringSettings)
      The monitoring settings of the components.

      Parameters:
      componentMonitoringSettings - The monitoring settings of the components. This parameter is required.
      Returns:
      this
    • customComponents

      @Stability(Stable) public CfnApplication.Builder customComponents(IResolvable customComponents)
      Describes a custom component by grouping similar standalone instances to monitor.

      Parameters:
      customComponents - Describes a custom component by grouping similar standalone instances to monitor. This parameter is required.
      Returns:
      this
    • customComponents

      @Stability(Stable) public CfnApplication.Builder customComponents(List<? extends Object> customComponents)
      Describes a custom component by grouping similar standalone instances to monitor.

      Parameters:
      customComponents - Describes a custom component by grouping similar standalone instances to monitor. This parameter is required.
      Returns:
      this
    • cweMonitorEnabled

      @Stability(Stable) public CfnApplication.Builder cweMonitorEnabled(Boolean cweMonitorEnabled)
      Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated , failed deployment , and others.

      Parameters:
      cweMonitorEnabled - Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated , failed deployment , and others. This parameter is required.
      Returns:
      this
    • cweMonitorEnabled

      @Stability(Stable) public CfnApplication.Builder cweMonitorEnabled(IResolvable cweMonitorEnabled)
      Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated , failed deployment , and others.

      Parameters:
      cweMonitorEnabled - Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated , failed deployment , and others. This parameter is required.
      Returns:
      this
    • groupingType

      @Stability(Stable) public CfnApplication.Builder groupingType(String groupingType)
      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 .

      Parameters:
      groupingType - Application Insights can create applications based on a resource group or on an account. This parameter is required.
      Returns:
      this
    • logPatternSets

      @Stability(Stable) public CfnApplication.Builder logPatternSets(IResolvable logPatternSets)
      The log pattern sets.

      Parameters:
      logPatternSets - The log pattern sets. This parameter is required.
      Returns:
      this
    • logPatternSets

      @Stability(Stable) public CfnApplication.Builder logPatternSets(List<? extends Object> logPatternSets)
      The log pattern sets.

      Parameters:
      logPatternSets - The log pattern sets. This parameter is required.
      Returns:
      this
    • opsCenterEnabled

      @Stability(Stable) public CfnApplication.Builder opsCenterEnabled(Boolean opsCenterEnabled)
      Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.

      Parameters:
      opsCenterEnabled - Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application. This parameter is required.
      Returns:
      this
    • opsCenterEnabled

      @Stability(Stable) public CfnApplication.Builder opsCenterEnabled(IResolvable opsCenterEnabled)
      Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.

      Parameters:
      opsCenterEnabled - Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application. This parameter is required.
      Returns:
      this
    • opsItemSnsTopicArn

      @Stability(Stable) public CfnApplication.Builder opsItemSnsTopicArn(String opsItemSnsTopicArn)
      The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.

      Parameters:
      opsItemSnsTopicArn - The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnApplication.Builder tags(List<? extends CfnTag> tags)
      An array of Tags .

      Parameters:
      tags - An array of Tags . This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnApplication build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnApplication>
      Returns:
      a newly built instance of CfnApplication.