CfnAppMonitorProps Struct
Properties for defining a CfnAppMonitor.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rum as rum } from 'aws-cdk-lib';
const cfnAppMonitorProps: rum.CfnAppMonitorProps = {
name: 'name',
// the properties below are optional
appMonitorConfiguration: {
allowCookies: false,
enableXRay: false,
excludedPages: ['excludedPages'],
favoritePages: ['favoritePages'],
guestRoleArn: 'guestRoleArn',
identityPoolId: 'identityPoolId',
includedPages: ['includedPages'],
metricDestinations: [{
destination: 'destination',
// the properties below are optional
destinationArn: 'destinationArn',
iamRoleArn: 'iamRoleArn',
metricDefinitions: [{
name: 'name',
// the properties below are optional
dimensionKeys: {
dimensionKeysKey: 'dimensionKeys',
},
eventPattern: 'eventPattern',
namespace: 'namespace',
unitLabel: 'unitLabel',
valueKey: 'valueKey',
}],
}],
sessionSampleRate: 123,
telemetries: ['telemetries'],
},
customEvents: {
status: 'status',
},
cwLogEnabled: false,
deobfuscationConfiguration: {
javaScriptSourceMaps: {
status: 'status',
// the properties below are optional
s3Uri: 's3Uri',
},
},
domain: 'domain',
domainList: ['domainList'],
platform: 'platform',
resourcePolicy: {
policyDocument: 'policyDocument',
// the properties below are optional
policyRevisionId: 'policyRevisionId',
},
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
appMonitorConfigurationoptionalIResolvable | CfnAppMonitor.AppMonitorConfigurationPropertyapp_monitor_configurationoptionaltyping.Union[IResolvable, AppMonitorConfigurationProperty]appMonitorConfigurationoptionalIResolvableAppMonitorConfigurationoptionalIResolvableAppMonitorConfigurationoptionalinterface{}#notes
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.
customEventsoptionalIResolvable | CfnAppMonitor.CustomEventsPropertycustom_eventsoptionaltyping.Union[IResolvable, CustomEventsProperty]customEventsoptionalIResolvableCustomEventsoptionalIResolvableCustomEventsoptionalinterface{}#If you omit this parameter, custom events are DISABLED .
cwLogEnabledoptionalboolean | IResolvablecw_log_enabledoptionaltyping.Union[bool, IResolvable]cwLogEnabledoptionalBooleanCwLogEnabledoptionalboolCwLogEnabledoptionalinterface{}#notes
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 .
deobfuscationConfigurationoptionalIResolvable | CfnAppMonitor.DeobfuscationConfigurationPropertydeobfuscation_configurationoptionaltyping.Union[IResolvable, DeobfuscationConfigurationProperty]deobfuscationConfigurationoptionalIResolvableDeobfuscationConfigurationoptionalIResolvableDeobfuscationConfigurationoptionalinterface{}#This parameter or the DomainList parameter is required.
domainListoptionalstring[]domain_listoptionaltyping.List[str]domainListoptionalList<String>DomainListoptionalstring[]DomainListoptional*[]*string#You can have a minimum of 1 and a maximum of 5 Domain under DomainList . Each Domain must be a minimum length of 1 and a maximum of 253 characters.
This parameter is required.
platformoptionalstringplatformoptionalstrplatformoptionalStringPlatformoptionalstringPlatformoptional*string#resourcePolicyoptionalIResolvable | CfnAppMonitor.ResourcePolicyPropertyresource_policyoptionaltyping.Union[IResolvable, ResourcePolicyProperty]resourcePolicyoptionalIResolvableResourcePolicyoptionalIResolvableResourcePolicyoptionalinterface{}#notes
Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see Using resource-based policies with CloudWatch RUM .
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#notes
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 .