LinkArgs

data class LinkArgs(val labelTemplate: Output<String>? = null, val resourceTypes: Output<List<String>>? = null, val sinkIdentifier: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LinkArgs>

Resource for managing an AWS CloudWatch Observability Access Manager Link.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.oam.Link;
import com.pulumi.aws.oam.LinkArgs;
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 Link("example", LinkArgs.builder()
.labelTemplate("$AccountName")
.resourceTypes("AWS::CloudWatch::Metric")
.sinkIdentifier(aws_oam_sink.test().id())
.tags(Map.of("Env", "prod"))
.build());
}
}

Import

CloudWatch Observability Access Manager Link can be imported using the arn, e.g.,

$ pulumi import aws:oam/link:Link example arn:aws:oam:us-west-2:123456789012:link/link-id

Constructors

Link copied to clipboard
constructor(labelTemplate: Output<String>? = null, resourceTypes: Output<List<String>>? = null, sinkIdentifier: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.

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

Types of data that the source account shares with the monitoring account.

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

Identifier of the sink to use to create this link. The following arguments are optional:

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(): LinkArgs