InternetMonitorArgs

data class InternetMonitorArgs(val healthEventsConfig: Output<InternetMonitorHealthEventsConfigArgs>? = null, val internetMeasurementsLogDelivery: Output<InternetMonitorInternetMeasurementsLogDeliveryArgs>? = null, val maxCityNetworksToMonitor: Output<Int>? = null, val monitorName: Output<String>? = null, val resources: Output<List<String>>? = null, val status: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val trafficPercentageToMonitor: Output<Int>? = null) : ConvertibleToJava<InternetMonitorArgs>

Provides a Internet Monitor Monitor resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.cloudwatch.InternetMonitor("example", {monitorName: "exmple"});
import pulumi
import pulumi_aws as aws
example = aws.cloudwatch.InternetMonitor("example", monitor_name="exmple")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CloudWatch.InternetMonitor("example", new()
{
MonitorName = "exmple",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudwatch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudwatch.NewInternetMonitor(ctx, "example", &cloudwatch.InternetMonitorArgs{
MonitorName: pulumi.String("exmple"),
})
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.cloudwatch.InternetMonitor;
import com.pulumi.aws.cloudwatch.InternetMonitorArgs;
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 InternetMonitor("example", InternetMonitorArgs.builder()
.monitorName("exmple")
.build());
}
}
resources:
example:
type: aws:cloudwatch:InternetMonitor
properties:
monitorName: exmple

Import

Using pulumi import, import Internet Monitor Monitors using the monitor_name. For example:

$ pulumi import aws:cloudwatch/internetMonitor:InternetMonitor some some-monitor

Constructors

Link copied to clipboard
constructor(healthEventsConfig: Output<InternetMonitorHealthEventsConfigArgs>? = null, internetMeasurementsLogDelivery: Output<InternetMonitorInternetMeasurementsLogDeliveryArgs>? = null, maxCityNetworksToMonitor: Output<Int>? = null, monitorName: Output<String>? = null, resources: Output<List<String>>? = null, status: Output<String>? = null, tags: Output<Map<String, String>>? = null, trafficPercentageToMonitor: Output<Int>? = null)

Properties

Link copied to clipboard

Health event thresholds. A health event threshold percentage, for performance and availability, determines when Internet Monitor creates a health event when there's an internet issue that affects your application end users. See Health Events Config below.

Link copied to clipboard

Publish internet measurements for Internet Monitor to an Amazon S3 bucket in addition to CloudWatch Logs.

Link copied to clipboard
val maxCityNetworksToMonitor: Output<Int>? = null

The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where clients access your application resources from and the network or ASN, such as an internet service provider (ISP), that clients access the resources through. This limit helps control billing costs.

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

The name of the monitor. The following arguments are optional:

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

The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs).

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

The status for a monitor. The accepted values for Status with the UpdateMonitor API call are the following: ACTIVE and INACTIVE.

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

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.

Link copied to clipboard
val trafficPercentageToMonitor: Output<Int>? = null

The percentage of the internet-facing traffic for your application that you want to monitor with this monitor.

Functions

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