Resource: awsRumMetricsDestination
Provides a CloudWatch RUM Metrics Destination resource.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.rumMetricsDestination.RumMetricsDestination(this, "example", {
appMonitorName: "${aws_rum_app_monitor.example.name}",
destination: "CloudWatch",
});
Argument Reference
The following arguments are supported:
appMonitorName
- (Required) The name of the CloudWatch RUM app monitor that will send the metrics.destination
- (Required) Defines the destination to send the metrics to. Valid values arecloudWatch
andevidently
. If you specifyevidently
, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment.destinationArn
- (Optional) Use this parameter only if Destination is Evidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics.iamRoleArn
- (Optional) This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The name of the CloudWatch RUM app monitor that will send the metrics.
Import
Cloudwatch RUM Metrics Destination can be imported using the id
, e.g.,