I couldn't find the customEvents option in the CfnAppMonitorProps while trying to create a cloudwatch RUM Monitor via CDK. This is how my app monitor in CDK looks like :
const AppMonitor = new rum.CfnAppMonitor(this, 'MyRUMMonitor', {
name: 'MyRUMMonitor',
domain: 'mydomain.com',
cwLogEnabled: true,
appMonitorConfiguration: {
allowCookies: false,
enableXRay: true,
sessionSampleRate: 1,
telemetries: [ 'errors', 'performance', 'http' ],
identityPoolId: identityPool.ref,
guestRoleArn: unauthenticatedRumRole.roleArn,
},
});
I want to enable the customEvents in this, however, i'm not able to find it.