Class CfnAppMonitor
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IAppMonitorRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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.services.rum.*;
CfnAppMonitor cfnAppMonitor = CfnAppMonitor.Builder.create(this, "MyCfnAppMonitor")
.name("name")
// the properties below are optional
.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")
// the properties below are optional
.destinationArn("destinationArn")
.iamRoleArn("iamRoleArn")
.metricDefinitions(List.of(MetricDefinitionProperty.builder()
.name("name")
// the properties below are optional
.dimensionKeys(Map.of(
"dimensionKeysKey", "dimensionKeys"))
.eventPattern("eventPattern")
.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()
.status("status")
// the properties below are optional
.s3Uri("s3Uri")
.build())
.build())
.domain("domain")
.domainList(List.of("domainList"))
.resourcePolicy(ResourcePolicyProperty.builder()
.policyDocument("policyDocument")
// the properties below are optional
.policyRevisionId("policyRevisionId")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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 forCfnAppMonitor.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.amazon.awscdk.interfaces.rum.IAppMonitorRef
IAppMonitorRef.Jsii$Default, IAppMonitorRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAppMonitor(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAppMonitor(software.amazon.jsii.JsiiObjectRef objRef) CfnAppMonitor(software.constructs.Construct scope, String id, CfnAppMonitorProps props) Create a newAWS::RUM::AppMonitor. -
Method Summary
Modifier and TypeMethodDescriptionA structure that contains much of the configuration data for the app monitor.A reference to a AppMonitor resource.The ID of the app monitor, such as123456ab-1234-4ca9-9d2f-a1b2c3456789.Specifies whether this app monitor allows the web client to define and send custom events.Data collected by CloudWatch RUM is kept by RUM for 30 days and then deleted.A structure that contains the configuration for how an app monitor can deobfuscate stack traces.The top-level internet domain name for which your application has administrative authority.List the domain names for which your application has administrative authority.getName()A name for the app monitor.Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it.getTags()Tag Manager which manages the tags for this resource.Assigns one or more tags (key-value pairs) to the app monitor.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidA structure that contains much of the configuration data for the app monitor.voidA structure that contains much of the configuration data for the app monitor.voidsetCustomEvents(IResolvable value) Specifies whether this app monitor allows the web client to define and send custom events.voidSpecifies whether this app monitor allows the web client to define and send custom events.voidsetCwLogEnabled(Boolean value) Data collected by CloudWatch RUM is kept by RUM for 30 days and then deleted.voidsetCwLogEnabled(IResolvable value) Data collected by CloudWatch RUM is kept by RUM for 30 days and then deleted.voidA structure that contains the configuration for how an app monitor can deobfuscate stack traces.voidA structure that contains the configuration for how an app monitor can deobfuscate stack traces.voidThe top-level internet domain name for which your application has administrative authority.voidsetDomainList(List<String> value) List the domain names for which your application has administrative authority.voidA name for the app monitor.voidsetResourcePolicy(IResolvable value) Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it.voidUse this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it.voidsetTagsRaw(List<CfnTag> value) Assigns one or more tags (key-value pairs) to the app monitor.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAppMonitor
protected CfnAppMonitor(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAppMonitor
protected CfnAppMonitor(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAppMonitor
@Stability(Stable) public CfnAppMonitor(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAppMonitorProps props) Create a newAWS::RUM::AppMonitor.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAppMonitorRef
A reference to a AppMonitor resource.- Specified by:
getAppMonitorRefin interfaceIAppMonitorRef
-
getAttrId
The ID of the app monitor, such as123456ab-1234-4ca9-9d2f-a1b2c3456789. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getName
A name for the app monitor. -
setName
A name for the app monitor. -
getAppMonitorConfiguration
A structure that contains much of the configuration data for the app monitor.Returns union: either
IResolvableorCfnAppMonitor.AppMonitorConfigurationProperty -
setAppMonitorConfiguration
A structure that contains much of the configuration data for the app monitor. -
setAppMonitorConfiguration
@Stability(Stable) public void setAppMonitorConfiguration(@Nullable CfnAppMonitor.AppMonitorConfigurationProperty value) A structure that contains much of the configuration data for the app monitor. -
getCustomEvents
Specifies whether this app monitor allows the web client to define and send custom events.Returns union: either
IResolvableorCfnAppMonitor.CustomEventsProperty -
setCustomEvents
Specifies whether this app monitor allows the web client to define and send custom events. -
setCustomEvents
Specifies whether this app monitor allows the web client to define and send custom events. -
getCwLogEnabled
Data collected by CloudWatch RUM is kept by RUM for 30 days and then deleted.Returns union: either
BooleanorIResolvable -
setCwLogEnabled
Data collected by CloudWatch RUM is kept by RUM for 30 days and then deleted. -
setCwLogEnabled
Data collected by CloudWatch RUM is kept by RUM for 30 days and then deleted. -
getDeobfuscationConfiguration
A structure that contains the configuration for how an app monitor can deobfuscate stack traces.Returns union: either
IResolvableorCfnAppMonitor.DeobfuscationConfigurationProperty -
setDeobfuscationConfiguration
A structure that contains the configuration for how an app monitor can deobfuscate stack traces. -
setDeobfuscationConfiguration
@Stability(Stable) public void setDeobfuscationConfiguration(@Nullable CfnAppMonitor.DeobfuscationConfigurationProperty value) A structure that contains the configuration for how an app monitor can deobfuscate stack traces. -
getDomain
The top-level internet domain name for which your application has administrative authority. -
setDomain
The top-level internet domain name for which your application has administrative authority. -
getDomainList
List the domain names for which your application has administrative authority.This parameter or the
Domainparameter is required. -
setDomainList
List the domain names for which your application has administrative authority.This parameter or the
Domainparameter is required. -
getResourcePolicy
Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it.Returns union: either
IResolvableorCfnAppMonitor.ResourcePolicyProperty -
setResourcePolicy
Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it. -
setResourcePolicy
@Stability(Stable) public void setResourcePolicy(@Nullable CfnAppMonitor.ResourcePolicyProperty value) Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it. -
getTagsRaw
Assigns one or more tags (key-value pairs) to the app monitor. -
setTagsRaw
Assigns one or more tags (key-value pairs) to the app monitor.
-