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 Summary
Modifier and TypeMethodDescriptionattachMissingPermission
(Boolean attachMissingPermission) If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.attachMissingPermission
(IResolvable attachMissingPermission) If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.autoConfigurationEnabled
(Boolean autoConfigurationEnabled) If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights.autoConfigurationEnabled
(IResolvable autoConfigurationEnabled) If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights.build()
componentMonitoringSettings
(List<? extends Object> componentMonitoringSettings) The monitoring settings of the components.componentMonitoringSettings
(IResolvable componentMonitoringSettings) The monitoring settings of the components.static CfnApplication.Builder
customComponents
(List<? extends Object> customComponents) Describes a custom component by grouping similar standalone instances to monitor.customComponents
(IResolvable customComponents) Describes a custom component by grouping similar standalone instances to monitor.cweMonitorEnabled
(Boolean cweMonitorEnabled) Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others.cweMonitorEnabled
(IResolvable cweMonitorEnabled) Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others.groupingType
(String groupingType) Application Insights can create applications based on a resource group or on an account.logPatternSets
(List<? extends Object> logPatternSets) The log pattern sets.logPatternSets
(IResolvable logPatternSets) The log pattern sets.opsCenterEnabled
(Boolean opsCenterEnabled) Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.opsCenterEnabled
(IResolvable opsCenterEnabled) Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.opsItemSnsTopicArn
(String opsItemSnsTopicArn) The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.resourceGroupName
(String resourceGroupName) The name of the resource group used for the application.snsNotificationArn
(String snsNotificationArn) The SNS topic ARN that is associated with SNS notifications for updates or issues.An array ofTags
.
-
Method Details
-
create
@Stability(Stable) public static CfnApplication.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnApplication.Builder
.
-
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
- See Also:
-
attachMissingPermission
@Stability(Stable) public CfnApplication.Builder attachMissingPermission(Boolean attachMissingPermission) If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.- Parameters:
attachMissingPermission
- If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing. This parameter is required.- Returns:
this
- See Also:
-
attachMissingPermission
@Stability(Stable) public CfnApplication.Builder attachMissingPermission(IResolvable attachMissingPermission) If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.- Parameters:
attachMissingPermission
- If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing. This parameter is required.- Returns:
this
- See Also:
-
autoConfigurationEnabled
@Stability(Stable) public CfnApplication.Builder autoConfigurationEnabled(Boolean autoConfigurationEnabled) If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights.- Parameters:
autoConfigurationEnabled
- If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights. This parameter is required.- Returns:
this
- See Also:
-
autoConfigurationEnabled
@Stability(Stable) public CfnApplication.Builder autoConfigurationEnabled(IResolvable autoConfigurationEnabled) If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights.- Parameters:
autoConfigurationEnabled
- If set totrue
, the application components will be configured with the monitoring configuration recommended by Application Insights. This parameter is required.- Returns:
this
- See Also:
-
componentMonitoringSettings
@Stability(Stable) public CfnApplication.Builder componentMonitoringSettings(IResolvable componentMonitoringSettings) 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
AutoConfigurationEnabled
totrue
.- Parameters:
componentMonitoringSettings
- The monitoring settings of the components. This parameter is required.- Returns:
this
- See Also:
-
componentMonitoringSettings
@Stability(Stable) public CfnApplication.Builder componentMonitoringSettings(List<? extends Object> componentMonitoringSettings) 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
AutoConfigurationEnabled
totrue
.- Parameters:
componentMonitoringSettings
- The monitoring settings of the components. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
cweMonitorEnabled
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others.- Parameters:
cweMonitorEnabled
- Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others. This parameter is required.- Returns:
this
- See Also:
-
cweMonitorEnabled
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others.- Parameters:
cweMonitorEnabled
- Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated
,failed deployment
, and others. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
logPatternSets
The log pattern sets.- Parameters:
logPatternSets
- The log pattern sets. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
snsNotificationArn
The SNS topic ARN that is associated with SNS notifications for updates or issues.- Parameters:
snsNotificationArn
- The SNS topic ARN that is associated with SNS notifications for updates or issues. This parameter is required.- Returns:
this
- See Also:
-
tags
An array ofTags
.- Parameters:
tags
- An array ofTags
. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication>
- Returns:
- a newly built instance of
CfnApplication
.
-