How to add CustomEvents to CloudWatch Rum in CDK

0

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.

已提問 1 年前檢視次數 416 次
1 個回答
0

We've released CFN support to support enabling customEvents a couple months ago, have you been able to take a look at the docs?

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南