class CfnAppMonitorPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.RUM.Mixins.CfnAppMonitorPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsrum/mixins#CfnAppMonitorPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.rum.mixins.CfnAppMonitorPropsMixin |
Python | aws_cdk.mixins_preview.aws_rum.mixins.CfnAppMonitorPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_rum » mixins » CfnAppMonitorPropsMixin |
Implements
IMixin
Extends
Mixin
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?
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rum-appmonitor.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as rum_mixins } from '@aws-cdk/mixins-preview/aws-rum';
const cfnAppMonitorPropsMixin = new rum_mixins.CfnAppMonitorPropsMixin({
appMonitorConfiguration: {
allowCookies: false,
enableXRay: false,
excludedPages: ['excludedPages'],
favoritePages: ['favoritePages'],
guestRoleArn: 'guestRoleArn',
identityPoolId: 'identityPoolId',
includedPages: ['includedPages'],
metricDestinations: [{
destination: 'destination',
destinationArn: 'destinationArn',
iamRoleArn: 'iamRoleArn',
metricDefinitions: [{
dimensionKeys: {
dimensionKeysKey: 'dimensionKeys',
},
eventPattern: 'eventPattern',
name: 'name',
namespace: 'namespace',
unitLabel: 'unitLabel',
valueKey: 'valueKey',
}],
}],
sessionSampleRate: 123,
telemetries: ['telemetries'],
},
customEvents: {
status: 'status',
},
cwLogEnabled: false,
deobfuscationConfiguration: {
javaScriptSourceMaps: {
s3Uri: 's3Uri',
status: 'status',
},
},
domain: 'domain',
domainList: ['domainList'],
name: 'name',
platform: 'platform',
resourcePolicy: {
policyDocument: 'policyDocument',
policyRevisionId: 'policyRevisionId',
},
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnAppMonitorPropsMixin(props: CfnAppMonitorMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.App Monitor Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::RUM::AppMonitor.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript