Class CfnAppMonitorMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.rum.CfnAppMonitorMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAppMonitorMixinProps>
- Enclosing interface:
CfnAppMonitorMixinProps
@Stability(Stable)
public static final class CfnAppMonitorMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAppMonitorMixinProps>
A builder for
CfnAppMonitorMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappMonitorConfiguration(CfnAppMonitorPropsMixin.AppMonitorConfigurationProperty appMonitorConfiguration) Sets the value ofCfnAppMonitorMixinProps.getAppMonitorConfiguration()appMonitorConfiguration(IResolvable appMonitorConfiguration) Sets the value ofCfnAppMonitorMixinProps.getAppMonitorConfiguration()build()Builds the configured instance.customEvents(CfnAppMonitorPropsMixin.CustomEventsProperty customEvents) Sets the value ofCfnAppMonitorMixinProps.getCustomEvents()customEvents(IResolvable customEvents) Sets the value ofCfnAppMonitorMixinProps.getCustomEvents()cwLogEnabled(Boolean cwLogEnabled) Sets the value ofCfnAppMonitorMixinProps.getCwLogEnabled()cwLogEnabled(IResolvable cwLogEnabled) Sets the value ofCfnAppMonitorMixinProps.getCwLogEnabled()deobfuscationConfiguration(CfnAppMonitorPropsMixin.DeobfuscationConfigurationProperty deobfuscationConfiguration) Sets the value ofCfnAppMonitorMixinProps.getDeobfuscationConfiguration()deobfuscationConfiguration(IResolvable deobfuscationConfiguration) Sets the value ofCfnAppMonitorMixinProps.getDeobfuscationConfiguration()Sets the value ofCfnAppMonitorMixinProps.getDomain()domainList(List<String> domainList) Sets the value ofCfnAppMonitorMixinProps.getDomainList()Sets the value ofCfnAppMonitorMixinProps.getName()Sets the value ofCfnAppMonitorMixinProps.getPlatform()resourcePolicy(CfnAppMonitorPropsMixin.ResourcePolicyProperty resourcePolicy) Sets the value ofCfnAppMonitorMixinProps.getResourcePolicy()resourcePolicy(IResolvable resourcePolicy) Sets the value ofCfnAppMonitorMixinProps.getResourcePolicy()Sets the value ofCfnAppMonitorMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appMonitorConfiguration
@Stability(Stable) public CfnAppMonitorMixinProps.Builder appMonitorConfiguration(IResolvable appMonitorConfiguration) Sets the value ofCfnAppMonitorMixinProps.getAppMonitorConfiguration()- Parameters:
appMonitorConfiguration- A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don't includeAppMonitorConfiguration, you must set up your own authorization method. For more information, see Authorize your application to send data to AWS .If you omit this argument, the sample rate used for CloudWatch RUM is set to 10% of the user sessions.
- Returns:
this
-
appMonitorConfiguration
@Stability(Stable) public CfnAppMonitorMixinProps.Builder appMonitorConfiguration(CfnAppMonitorPropsMixin.AppMonitorConfigurationProperty appMonitorConfiguration) Sets the value ofCfnAppMonitorMixinProps.getAppMonitorConfiguration()- Parameters:
appMonitorConfiguration- A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don't includeAppMonitorConfiguration, you must set up your own authorization method. For more information, see Authorize your application to send data to AWS .If you omit this argument, the sample rate used for CloudWatch RUM is set to 10% of the user sessions.
- Returns:
this
-
customEvents
Sets the value ofCfnAppMonitorMixinProps.getCustomEvents()- Parameters:
customEvents- Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events areDISABLED.- Returns:
this
-
customEvents
@Stability(Stable) public CfnAppMonitorMixinProps.Builder customEvents(CfnAppMonitorPropsMixin.CustomEventsProperty customEvents) Sets the value ofCfnAppMonitorMixinProps.getCustomEvents()- Parameters:
customEvents- Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events areDISABLED.- Returns:
this
-
cwLogEnabled
Sets the value ofCfnAppMonitorMixinProps.getCwLogEnabled()- Parameters:
cwLogEnabled- Data collected by CloudWatch RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether CloudWatch RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges.If you omit this parameter, the default is
false.- Returns:
this
-
cwLogEnabled
Sets the value ofCfnAppMonitorMixinProps.getCwLogEnabled()- Parameters:
cwLogEnabled- Data collected by CloudWatch RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether CloudWatch RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges.If you omit this parameter, the default is
false.- Returns:
this
-
deobfuscationConfiguration
@Stability(Stable) public CfnAppMonitorMixinProps.Builder deobfuscationConfiguration(IResolvable deobfuscationConfiguration) Sets the value ofCfnAppMonitorMixinProps.getDeobfuscationConfiguration()- Parameters:
deobfuscationConfiguration- A structure that contains the configuration for how an app monitor can deobfuscate stack traces.- Returns:
this
-
deobfuscationConfiguration
@Stability(Stable) public CfnAppMonitorMixinProps.Builder deobfuscationConfiguration(CfnAppMonitorPropsMixin.DeobfuscationConfigurationProperty deobfuscationConfiguration) Sets the value ofCfnAppMonitorMixinProps.getDeobfuscationConfiguration()- Parameters:
deobfuscationConfiguration- A structure that contains the configuration for how an app monitor can deobfuscate stack traces.- Returns:
this
-
domain
Sets the value ofCfnAppMonitorMixinProps.getDomain()- Parameters:
domain- The top-level internet domain name for which your application has administrative authority. This parameter or theDomainListparameter is required.- Returns:
this
-
domainList
Sets the value ofCfnAppMonitorMixinProps.getDomainList()- Parameters:
domainList- List the domain names for which your application has administrative authority. This parameter or theDomainparameter is required. You can have a minimum of 1 and a maximum of 5DomainunderDomainList. EachDomainmust be a minimum length of 1 and a maximum of 253 characters.- Returns:
this
-
name
Sets the value ofCfnAppMonitorMixinProps.getName()- Parameters:
name- A name for the app monitor. This parameter is required.- Returns:
this
-
platform
Sets the value ofCfnAppMonitorMixinProps.getPlatform()- Parameters:
platform- the value to be set.- Returns:
this
-
resourcePolicy
@Stability(Stable) public CfnAppMonitorMixinProps.Builder resourcePolicy(IResolvable resourcePolicy) Sets the value ofCfnAppMonitorMixinProps.getResourcePolicy()- Parameters:
resourcePolicy- Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it. Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see Using resource-based policies with CloudWatch RUM .- Returns:
this
-
resourcePolicy
@Stability(Stable) public CfnAppMonitorMixinProps.Builder resourcePolicy(CfnAppMonitorPropsMixin.ResourcePolicyProperty resourcePolicy) Sets the value ofCfnAppMonitorMixinProps.getResourcePolicy()- Parameters:
resourcePolicy- Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it. Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see Using resource-based policies with CloudWatch RUM .- Returns:
this
-
tags
Sets the value ofCfnAppMonitorMixinProps.getTags()- Parameters:
tags- Assigns one or more tags (key-value pairs) to the app monitor. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with an app monitor.
For more information, see Tagging AWS resources .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAppMonitorMixinProps>- Returns:
- a new instance of
CfnAppMonitorMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-