# AWS::RUM Construct Library

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

TypeScript:

```ts
import * as rum from 'aws-cdk-lib/aws-rum';
```

Python:

```python
import aws_cdk.aws_rum as rum
```

Java:

```java
import software.amazon.awscdk.services.rum.*;
```

C#:

```csharp
using Amazon.CDK.AWS.RUM;
```

Go:

```go
import rum "github.com/aws/aws-cdk-go/awscdk"
```

There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:

- Search [Construct Hub for RUM construct libraries](https://constructs.dev/search?q=rum)
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::RUM resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_RUM.html) directly.

There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::RUM](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_RUM.html).

(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)

## Types

### Constructs (L1)

- [`CfnAppMonitor`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rum.CfnAppMonitor.html) Construct (L1) Creates a CloudWatch RUM app monitor, which you can use to collect telemetry data from your application and send it to CloudWatch RUM.

### Structs

- [`CfnAppMonitor.AppMonitorConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rum.CfnAppMonitor.AppMonitorConfigurationProperty.html) Struct This structure contains much of the configuration data for the app monitor.
- [`CfnAppMonitor.CustomEventsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rum.CfnAppMonitor.CustomEventsProperty.html) Struct This structure specifies whether this app monitor allows the web client to define and send custom events.
- [`CfnAppMonitor.DeobfuscationConfigurationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rum.CfnAppMonitor.DeobfuscationConfigurationProperty.html) Struct A structure that contains the configuration for how an app monitor can deobfuscate stack traces.
- [`CfnAppMonitor.JavaScriptSourceMapsProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rum.CfnAppMonitor.JavaScriptSourceMapsProperty.html) Struct A structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps.
- [`CfnAppMonitor.MetricDefinitionProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rum.CfnAppMonitor.MetricDefinitionProperty.html) Struct Specifies one custom metric or extended metric that you want the CloudWatch RUM app monitor to send to a destination.
- [`CfnAppMonitor.MetricDestinationProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rum.CfnAppMonitor.MetricDestinationProperty.html) Struct Creates or updates a destination to receive extended metrics from CloudWatch RUM.
- [`CfnAppMonitor.ResourcePolicyProperty`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rum.CfnAppMonitor.ResourcePolicyProperty.html) Struct Use this structure to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it.
- [`CfnAppMonitorProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_rum.CfnAppMonitorProps.html) Struct Properties for defining a `CfnAppMonitor`.
