Class CfnAppMonitorPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.rum.CfnAppMonitorPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:20:04.677Z") @Stability(Stable) public class CfnAppMonitorPropsMixin extends Mixin implements software.constructs.IMixin
Creates a CloudWatch RUM app monitor, which you can use to collect telemetry data from your application and send it to CloudWatch RUM.

The data includes performance and reliability information such as page load time, client-side errors, and user behavior.

After you create an app monitor, sign in to the CloudWatch RUM console to get the JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated?

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.rum.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 CfnAppMonitorPropsMixin cfnAppMonitorPropsMixin = CfnAppMonitorPropsMixin.Builder.create(CfnAppMonitorMixinProps.builder()
         .appMonitorConfiguration(AppMonitorConfigurationProperty.builder()
                 .allowCookies(false)
                 .enableXRay(false)
                 .excludedPages(List.of("excludedPages"))
                 .favoritePages(List.of("favoritePages"))
                 .guestRoleArn("guestRoleArn")
                 .identityPoolId("identityPoolId")
                 .includedPages(List.of("includedPages"))
                 .metricDestinations(List.of(MetricDestinationProperty.builder()
                         .destination("destination")
                         .destinationArn("destinationArn")
                         .iamRoleArn("iamRoleArn")
                         .metricDefinitions(List.of(MetricDefinitionProperty.builder()
                                 .dimensionKeys(Map.of(
                                         "dimensionKeysKey", "dimensionKeys"))
                                 .eventPattern("eventPattern")
                                 .name("name")
                                 .namespace("namespace")
                                 .unitLabel("unitLabel")
                                 .valueKey("valueKey")
                                 .build()))
                         .build()))
                 .sessionSampleRate(123)
                 .telemetries(List.of("telemetries"))
                 .build())
         .customEvents(CustomEventsProperty.builder()
                 .status("status")
                 .build())
         .cwLogEnabled(false)
         .deobfuscationConfiguration(DeobfuscationConfigurationProperty.builder()
                 .javaScriptSourceMaps(JavaScriptSourceMapsProperty.builder()
                         .s3Uri("s3Uri")
                         .status("status")
                         .build())
                 .build())
         .domain("domain")
         .domainList(List.of("domainList"))
         .name("name")
         .platform("platform")
         .resourcePolicy(ResourcePolicyProperty.builder()
                 .policyDocument("policyDocument")
                 .policyRevisionId("policyRevisionId")
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnAppMonitorPropsMixin

      protected CfnAppMonitorPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnAppMonitorPropsMixin

      protected CfnAppMonitorPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnAppMonitorPropsMixin

      @Stability(Stable) public CfnAppMonitorPropsMixin(@NotNull CfnAppMonitorMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::RUM::AppMonitor.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnAppMonitorPropsMixin

      @Stability(Stable) public CfnAppMonitorPropsMixin(@NotNull CfnAppMonitorMixinProps props)
      Create a mixin to apply properties to AWS::RUM::AppMonitor.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnAppMonitorMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()