Metrics Destination Args
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());
}
}
Content copied to clipboard
Import
Cloudwatch RUM Metrics Destination can be imported using the id
, e.g.,
$ pulumi import aws:rum/metricsDestination:MetricsDestination example example
Content copied to clipboard
Properties
Link copied to clipboard
The name of the CloudWatch RUM app monitor that will send the metrics.
Link copied to clipboard
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
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
This parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter.