awscc_oam_link (Resource)

Definition of AWS::Oam::Link Resource Type

Example Usage

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"
}

Schema

Required

Optional

Read-Only

Optional:

Required:

Required:

Import

Import is supported using the following syntax:

$ terraform import awscc_oam_link.example <resource ID>