Class CfnApplicationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationinsights.CfnApplicationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationMixinProps>
- Enclosing interface:
CfnApplicationMixinProps
@Stability(Stable)
public static final class CfnApplicationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationMixinProps>
A builder for
CfnApplicationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachMissingPermission(Boolean attachMissingPermission) Sets the value ofCfnApplicationMixinProps.getAttachMissingPermission()attachMissingPermission(IResolvable attachMissingPermission) Sets the value ofCfnApplicationMixinProps.getAttachMissingPermission()autoConfigurationEnabled(Boolean autoConfigurationEnabled) Sets the value ofCfnApplicationMixinProps.getAutoConfigurationEnabled()autoConfigurationEnabled(IResolvable autoConfigurationEnabled) Sets the value ofCfnApplicationMixinProps.getAutoConfigurationEnabled()build()Builds the configured instance.componentMonitoringSettings(List<? extends Object> componentMonitoringSettings) Sets the value ofCfnApplicationMixinProps.getComponentMonitoringSettings()componentMonitoringSettings(IResolvable componentMonitoringSettings) Sets the value ofCfnApplicationMixinProps.getComponentMonitoringSettings()customComponents(List<? extends Object> customComponents) Sets the value ofCfnApplicationMixinProps.getCustomComponents()customComponents(IResolvable customComponents) Sets the value ofCfnApplicationMixinProps.getCustomComponents()cweMonitorEnabled(Boolean cweMonitorEnabled) Sets the value ofCfnApplicationMixinProps.getCweMonitorEnabled()cweMonitorEnabled(IResolvable cweMonitorEnabled) Sets the value ofCfnApplicationMixinProps.getCweMonitorEnabled()groupingType(String groupingType) Sets the value ofCfnApplicationMixinProps.getGroupingType()logPatternSets(List<? extends Object> logPatternSets) Sets the value ofCfnApplicationMixinProps.getLogPatternSets()logPatternSets(IResolvable logPatternSets) Sets the value ofCfnApplicationMixinProps.getLogPatternSets()opsCenterEnabled(Boolean opsCenterEnabled) Sets the value ofCfnApplicationMixinProps.getOpsCenterEnabled()opsCenterEnabled(IResolvable opsCenterEnabled) Sets the value ofCfnApplicationMixinProps.getOpsCenterEnabled()opsItemSnsTopicArn(String opsItemSnsTopicArn) Sets the value ofCfnApplicationMixinProps.getOpsItemSnsTopicArn()resourceGroupName(String resourceGroupName) Sets the value ofCfnApplicationMixinProps.getResourceGroupName()snsNotificationArn(String snsNotificationArn) Sets the value ofCfnApplicationMixinProps.getSnsNotificationArn()Sets the value ofCfnApplicationMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachMissingPermission
@Stability(Stable) public CfnApplicationMixinProps.Builder attachMissingPermission(Boolean attachMissingPermission) Sets the value ofCfnApplicationMixinProps.getAttachMissingPermission()- Parameters:
attachMissingPermission- If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.- Returns:
this
-
attachMissingPermission
@Stability(Stable) public CfnApplicationMixinProps.Builder attachMissingPermission(IResolvable attachMissingPermission) Sets the value ofCfnApplicationMixinProps.getAttachMissingPermission()- Parameters:
attachMissingPermission- If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.- Returns:
this
-
autoConfigurationEnabled
@Stability(Stable) public CfnApplicationMixinProps.Builder autoConfigurationEnabled(Boolean autoConfigurationEnabled) Sets the value ofCfnApplicationMixinProps.getAutoConfigurationEnabled()- Parameters:
autoConfigurationEnabled- If set totrue, the application components will be configured with the monitoring configuration recommended by Application Insights.- Returns:
this
-
autoConfigurationEnabled
@Stability(Stable) public CfnApplicationMixinProps.Builder autoConfigurationEnabled(IResolvable autoConfigurationEnabled) Sets the value ofCfnApplicationMixinProps.getAutoConfigurationEnabled()- Parameters:
autoConfigurationEnabled- If set totrue, the application components will be configured with the monitoring configuration recommended by Application Insights.- Returns:
this
-
componentMonitoringSettings
@Stability(Stable) public CfnApplicationMixinProps.Builder componentMonitoringSettings(IResolvable componentMonitoringSettings) Sets the value ofCfnApplicationMixinProps.getComponentMonitoringSettings()- Parameters:
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, setAutoConfigurationEnabledtotrue.- Returns:
this
-
componentMonitoringSettings
@Stability(Stable) public CfnApplicationMixinProps.Builder componentMonitoringSettings(List<? extends Object> componentMonitoringSettings) Sets the value ofCfnApplicationMixinProps.getComponentMonitoringSettings()- Parameters:
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, setAutoConfigurationEnabledtotrue.- Returns:
this
-
customComponents
@Stability(Stable) public CfnApplicationMixinProps.Builder customComponents(IResolvable customComponents) Sets the value ofCfnApplicationMixinProps.getCustomComponents()- Parameters:
customComponents- Describes a custom component by grouping similar standalone instances to monitor.- Returns:
this
-
customComponents
@Stability(Stable) public CfnApplicationMixinProps.Builder customComponents(List<? extends Object> customComponents) Sets the value ofCfnApplicationMixinProps.getCustomComponents()- Parameters:
customComponents- Describes a custom component by grouping similar standalone instances to monitor.- Returns:
this
-
cweMonitorEnabled
@Stability(Stable) public CfnApplicationMixinProps.Builder cweMonitorEnabled(Boolean cweMonitorEnabled) Sets the value ofCfnApplicationMixinProps.getCweMonitorEnabled()- Parameters:
cweMonitorEnabled- Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated,failed deployment, and others.- Returns:
this
-
cweMonitorEnabled
@Stability(Stable) public CfnApplicationMixinProps.Builder cweMonitorEnabled(IResolvable cweMonitorEnabled) Sets the value ofCfnApplicationMixinProps.getCweMonitorEnabled()- Parameters:
cweMonitorEnabled- Indicates whether Application Insights can listen to CloudWatch events for the application resources, such asinstance terminated,failed deployment, and others.- Returns:
this
-
groupingType
Sets the value ofCfnApplicationMixinProps.getGroupingType()- Parameters:
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 toACCOUNT_BASED.- Returns:
this
-
logPatternSets
@Stability(Stable) public CfnApplicationMixinProps.Builder logPatternSets(IResolvable logPatternSets) Sets the value ofCfnApplicationMixinProps.getLogPatternSets()- Parameters:
logPatternSets- The log pattern sets.- Returns:
this
-
logPatternSets
@Stability(Stable) public CfnApplicationMixinProps.Builder logPatternSets(List<? extends Object> logPatternSets) Sets the value ofCfnApplicationMixinProps.getLogPatternSets()- Parameters:
logPatternSets- The log pattern sets.- Returns:
this
-
opsCenterEnabled
@Stability(Stable) public CfnApplicationMixinProps.Builder opsCenterEnabled(Boolean opsCenterEnabled) Sets the value ofCfnApplicationMixinProps.getOpsCenterEnabled()- Parameters:
opsCenterEnabled- Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.- Returns:
this
-
opsCenterEnabled
@Stability(Stable) public CfnApplicationMixinProps.Builder opsCenterEnabled(IResolvable opsCenterEnabled) Sets the value ofCfnApplicationMixinProps.getOpsCenterEnabled()- Parameters:
opsCenterEnabled- Indicates whether Application Insights will create OpsItems for any problem that is detected by Application Insights for an application.- Returns:
this
-
opsItemSnsTopicArn
@Stability(Stable) public CfnApplicationMixinProps.Builder opsItemSnsTopicArn(String opsItemSnsTopicArn) Sets the value ofCfnApplicationMixinProps.getOpsItemSnsTopicArn()- Parameters:
opsItemSnsTopicArn- The SNS topic provided to Application Insights that is associated with the created OpsItems to receive SNS notifications for opsItem updates.- Returns:
this
-
resourceGroupName
@Stability(Stable) public CfnApplicationMixinProps.Builder resourceGroupName(String resourceGroupName) Sets the value ofCfnApplicationMixinProps.getResourceGroupName()- Parameters:
resourceGroupName- The name of the resource group used for the application.- Returns:
this
-
snsNotificationArn
@Stability(Stable) public CfnApplicationMixinProps.Builder snsNotificationArn(String snsNotificationArn) Sets the value ofCfnApplicationMixinProps.getSnsNotificationArn()- Parameters:
snsNotificationArn- The SNS topic ARN that is associated with SNS notifications for updates or issues.- Returns:
this
-
tags
Sets the value ofCfnApplicationMixinProps.getTags()- Parameters:
tags- An array ofTags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplicationMixinProps>- Returns:
- a new instance of
CfnApplicationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-