MetricsDestinationArgs

data class MetricsDestinationArgs(val appMonitorName: Output<String>? = null, val destination: Output<String>? = null, val destinationArn: Output<String>? = null, val iamRoleArn: Output<String>? = null) : ConvertibleToJava<MetricsDestinationArgs>

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

Constructors

Link copied to clipboard
constructor(appMonitorName: Output<String>? = null, destination: Output<String>? = null, destinationArn: Output<String>? = null, iamRoleArn: Output<String>? = null)

Properties

Link copied to clipboard
val appMonitorName: Output<String>? = null

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

Link copied to clipboard
val destination: Output<String>? = null

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>? = null

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>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): MetricsDestinationArgs