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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThis structure contains much of the configuration data for the app monitor.static final classA fluent builder forCfnAppMonitorPropsMixin.static interfaceThis structure specifies whether this app monitor allows the web client to define and send custom events.static interfaceA structure that contains the configuration for how an app monitor can deobfuscate stack traces.static interfaceA structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps.static interfaceSpecifies one custom metric or extended metric that you want the CloudWatch RUM app monitor to send to a destination.static interfaceCreates or updates a destination to receive extended metrics from CloudWatch RUM.static interfaceUse this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::RUM::AppMonitor.CfnAppMonitorPropsMixin(CfnAppMonitorMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::RUM::AppMonitor.protectedCfnAppMonitorPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAppMonitorPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnAppMonitorMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 toAWS::RUM::AppMonitor.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnAppMonitorPropsMixin
Create a mixin to apply properties toAWS::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. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-