Class CfnAppMonitorProps.Builder

java.lang.Object
software.amazon.awscdk.services.rum.CfnAppMonitorProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAppMonitorProps>
Enclosing interface:
CfnAppMonitorProps

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

    • Builder

      public Builder()
  • Method Details

    • domain

      @Stability(Stable) public CfnAppMonitorProps.Builder domain(String domain)
      Parameters:
      domain - The top-level internet domain name for which your application has administrative authority. This parameter is required. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnAppMonitorProps.Builder name(String name)
      Parameters:
      name - A name for the app monitor. This parameter is required. This parameter is required.
      Returns:
      this
    • appMonitorConfiguration

      @Stability(Stable) public CfnAppMonitorProps.Builder appMonitorConfiguration(IResolvable appMonitorConfiguration)
      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 include AppMonitorConfiguration , 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 CfnAppMonitorProps.Builder appMonitorConfiguration(CfnAppMonitor.AppMonitorConfigurationProperty appMonitorConfiguration)
      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 include AppMonitorConfiguration , 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

      @Stability(Stable) public CfnAppMonitorProps.Builder customEvents(IResolvable customEvents)
      Parameters:
      customEvents - Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are DISABLED .
      Returns:
      this
    • customEvents

      @Stability(Stable) public CfnAppMonitorProps.Builder customEvents(CfnAppMonitor.CustomEventsProperty customEvents)
      Parameters:
      customEvents - Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are DISABLED .
      Returns:
      this
    • cwLogEnabled

      @Stability(Stable) public CfnAppMonitorProps.Builder cwLogEnabled(Boolean cwLogEnabled)
      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

      @Stability(Stable) public CfnAppMonitorProps.Builder cwLogEnabled(IResolvable cwLogEnabled)
      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
    • tags

      @Stability(Stable) public CfnAppMonitorProps.Builder tags(List<? extends CfnTag> tags)
      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

      @Stability(Stable) public CfnAppMonitorProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAppMonitorProps>
      Returns:
      a new instance of CfnAppMonitorProps
      Throws:
      NullPointerException - if any required attribute was not provided