AppMonitorArgs

data class AppMonitorArgs(val appMonitorConfiguration: Output<AppMonitorAppMonitorConfigurationArgs>? = null, val customEvents: Output<AppMonitorCustomEventsArgs>? = null, val cwLogEnabled: Output<Boolean>? = null, val domain: Output<String>? = null, val domainLists: Output<List<String>>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AppMonitorArgs>

Provides a CloudWatch RUM App Monitor resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.rum.AppMonitor("example", {
name: "example",
domain: "localhost",
});
import pulumi
import pulumi_aws as aws
example = aws.rum.AppMonitor("example",
name="example",
domain="localhost")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Rum.AppMonitor("example", new()
{
Name = "example",
Domain = "localhost",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rum"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rum.NewAppMonitor(ctx, "example", &rum.AppMonitorArgs{
Name: pulumi.String("example"),
Domain: pulumi.String("localhost"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rum.AppMonitor;
import com.pulumi.aws.rum.AppMonitorArgs;
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 AppMonitor("example", AppMonitorArgs.builder()
.name("example")
.domain("localhost")
.build());
}
}
resources:
example:
type: aws:rum:AppMonitor
properties:
name: example
domain: localhost

Import

Using pulumi import, import Cloudwatch RUM App Monitor using the name. For example:

$ pulumi import aws:rum/appMonitor:AppMonitor example example

Constructors

Link copied to clipboard
constructor(appMonitorConfiguration: Output<AppMonitorAppMonitorConfigurationArgs>? = null, customEvents: Output<AppMonitorCustomEventsArgs>? = null, cwLogEnabled: Output<Boolean>? = null, domain: Output<String>? = null, domainLists: Output<List<String>>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

configuration data for the app monitor. See app_monitor_configuration below.

Link copied to clipboard

Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are DISABLED. See custom_events below.

Link copied to clipboard
val cwLogEnabled: Output<Boolean>? = null

Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges. Default value is false.

Link copied to clipboard
val domain: Output<String>? = null
Link copied to clipboard
val domainLists: Output<List<String>>? = null
Link copied to clipboard
val name: Output<String>? = null

The name of the log stream.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

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