Definition of AWS::Oam::Link Resource Type
To use awscc_oam_link to create link from source account to monitoring account:
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
resource "awscc_oam_link" "link_example" {
resource_types = ["AWS::CloudWatch::Metric", "AWS::Logs::LogGroup", "AWS::XRay::Trace"]
sink_identifier = var.sinkArn
label_template = "$AccountName"
}
resource_types
(Set of String)sink_identifier
(String)label_template
(String)link_configuration
(Attributes) (see below for nested schema)tags
(Map of String) Tags to apply to the linkarn
(String)id
(String) Uniquely identifies the resource.label
(String)link_configuration
Optional:
log_group_configuration
(Attributes) (see below for nested schema)metric_configuration
(Attributes) (see below for nested schema)link_configuration.log_group_configuration
Required:
filter
(String)link_configuration.metric_configuration
Required:
filter
(String)Import is supported using the following syntax:
$ terraform import awscc_oam_link.example <resource ID>