Monitor

class Monitor : KotlinCustomResource

Resource for managing an AWS Network Monitor Monitor.

Example Usage

Basic Usage

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

Import

Using pulumi import, import aws_networkmonitor_monitor using the monitor name. For example:

$ pulumi import aws:networkmonitor/monitor:Monitor example monitor-7786087912324693644

Properties

Link copied to clipboard
val aggregationPeriod: Output<Int>

The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either 30 or 60.

Link copied to clipboard
val arn: Output<String>

The ARN of the monitor.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val monitorName: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value tags for the monitor. 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 tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>