MetricsDestination

class MetricsDestination : KotlinCustomResource

Provides a CloudWatch RUM Metrics Destination resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rum.MetricsDestination;
import com.pulumi.aws.rum.MetricsDestinationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new MetricsDestination("example", MetricsDestinationArgs.builder()
.appMonitorName(aws_rum_app_monitor.example().name())
.destination("CloudWatch")
.build());
}
}

Import

Cloudwatch RUM Metrics Destination can be imported using the id, e.g.,

$ pulumi import aws:rum/metricsDestination:MetricsDestination example example

Properties

Link copied to clipboard
val appMonitorName: Output<String>

The name of the CloudWatch RUM app monitor that will send the metrics.

Link copied to clipboard
val destination: Output<String>

Defines the destination to send the metrics to. Valid values are CloudWatch and Evidently. If you specify Evidently, 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.

Link copied to clipboard
val destinationArn: Output<String>?

Use this parameter only if Destination is Evidently. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics.

Link copied to clipboard
val iamRoleArn: Output<String>?

This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>