# AWS::Oam Construct Library

This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.

```ts
import * as oam from 'aws-cdk-lib/aws-oam';
```

There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:

- Search [Construct Hub for Oam construct libraries](https://constructs.dev/search?q=oam)
- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::Oam resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Oam.html) directly.

There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::Oam](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_Oam.html).

(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)

## Types

| Name | Kind | Summary |
| --- | --- | --- |
| [`CfnLink`](/v2/docs/aws-cdk-lib.aws_oam.CfnLink) | Construct (L1) | Creates a link between a source account and a sink that you have created in a monitoring account. |
| [`CfnSink`](/v2/docs/aws-cdk-lib.aws_oam.CfnSink) | Construct (L1) | Creates or updates a *sink* in the current account, so that it can be used as a monitoring account in CloudWatch cross-account observability. |
| [`CfnLink.LinkConfigurationProperty`](/v2/docs/aws-cdk-lib.aws_oam.CfnLink.LinkConfigurationProperty) | Struct | Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account. |
| [`CfnLink.LinkFilterProperty`](/v2/docs/aws-cdk-lib.aws_oam.CfnLink.LinkFilterProperty) | Struct | When used in `MetricConfiguration` this field specifies which metric namespaces are to be shared with the monitoring account. |
| [`CfnLinkProps`](/v2/docs/aws-cdk-lib.aws_oam.CfnLinkProps) | Struct | Properties for defining a `CfnLink`. |
| [`CfnSinkProps`](/v2/docs/aws-cdk-lib.aws_oam.CfnSinkProps) | Struct | Properties for defining a `CfnSink`. |
