Link

class Link : KotlinCustomResource

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

Properties

Link copied to clipboard
val arn: Output<String>

ARN of the link.

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

Label that is assigned to this link.

Link copied to clipboard
val labelTemplate: Output<String>

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 linkId: Output<String>

ID string that AWS generated as part of the link ARN.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceTypes: Output<List<String>>

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

Link copied to clipboard
val sinkArn: Output<String>

ARN of the sink that is used for this link.

Link copied to clipboard
val sinkIdentifier: Output<String>

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>>?

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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>
Link copied to clipboard
val urn: Output<String>