Skip to content

Resource: awsOamSink

Terraform resource for managing an AWS CloudWatch Observability Access Manager Sink.

Example Usage

Basic Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.oamSink.OamSink(this, "example", {
  name: "ExampleSink",
  tags: {
    Env: "prod",
  },
});

Argument Reference

The following arguments are required:

  • name - (Required) Name for the sink.

The following arguments are optional:

  • tags - (Optional) A map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - ARN of the Sink.
  • sinkId - ID string that AWS generated as part of the sink ARN.

Timeouts

Configuration options:

  • create - (Default 1M)
  • update - (Default 1M)
  • delete - (Default 1M)

Import

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

$ terraform import aws_oam_sink.example arn:aws:oam:us-west-2:123456789012:sink/sink-id