class CfnAppMonitorLogsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.RUM.Mixins.CfnAppMonitorLogsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsrum/mixins#CfnAppMonitorLogsMixin |
Java | software.amazon.awscdk.mixins.preview.services.rum.mixins.CfnAppMonitorLogsMixin |
Python | aws_cdk.mixins_preview.aws_rum.mixins.CfnAppMonitorLogsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_rum » mixins » CfnAppMonitorLogsMixin |
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 { aws_logs as logs } from '@aws-cdk/mixins-preview';
import { mixins as rum_mixins } from '@aws-cdk/mixins-preview/aws-rum';
declare const logsDelivery: logs.ILogsDelivery;
const cfnAppMonitorLogsMixin = new rum_mixins.CfnAppMonitorLogsMixin('logType', logsDelivery);
Initializer
new CfnAppMonitorLogsMixin(logType: string, logDelivery: ILogsDelivery)
Parameters
- logType
string— Type of logs that are getting vended. - logDelivery
ILogs— Object in charge of setting up the delivery source, delivery destination, and delivery connection.Delivery
Create a mixin to enable vended logs for AWS::RUM::AppMonitor.
Properties
| Name | Type | Description |
|---|---|---|
| log | ILogs | |
| log | string | |
| static RUM_OTEL_LOGS | Cfn | |
| static RUM_OTEL_SPANS | Cfn | |
| static RUM_TELEMETRY_LOGS | Cfn |
logDelivery
Type:
ILogs
logType
Type:
string
static RUM_OTEL_LOGS
Type:
Cfn
static RUM_OTEL_SPANS
Type:
Cfn
static RUM_TELEMETRY_LOGS
Type:
Cfn
Methods
| Name | Description |
|---|---|
| apply | Apply vended logs configuration to the construct. |
| supports(construct) | Check if this mixin supports the given construct (has vendedLogs property). |
applyTo(resource)
public applyTo(resource: IConstruct): IConstruct
Parameters
- resource
IConstruct
Returns
Apply vended logs configuration to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct (has vendedLogs property).

.NET
Go
Java
Python
TypeScript