# LinkConfigurationProperty

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.

- Source: Generated at build time
- Type last changed: v2.139.0 · 24 Apr 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_oam as oam } from 'aws-cdk-lib';
const linkConfigurationProperty: oam.CfnLink.LinkConfigurationProperty = {
  logGroupConfiguration: {
    filter: 'filter',
  },
  metricConfiguration: {
    filter: 'filter',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_oam as oam

link_configuration_property = oam.CfnLink.LinkConfigurationProperty(
    log_group_configuration=oam.CfnLink.LinkFilterProperty(
        filter="filter"
    ),
    metric_configuration=oam.CfnLink.LinkFilterProperty(
        filter="filter"
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.oam.*;

LinkConfigurationProperty linkConfigurationProperty = LinkConfigurationProperty.builder()
        .logGroupConfiguration(LinkFilterProperty.builder()
                .filter("filter")
                .build())
        .metricConfiguration(LinkFilterProperty.builder()
                .filter("filter")
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Oam;

var linkConfigurationProperty = new LinkConfigurationProperty {
    LogGroupConfiguration = new LinkFilterProperty {
        Filter = "filter"
    },
    MetricConfiguration = new LinkFilterProperty {
        Filter = "filter"
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

linkConfigurationProperty := &LinkConfigurationProperty{
	LogGroupConfiguration: &LinkFilterProperty{
		Filter: jsii.String("filter"),
	},
	MetricConfiguration: &LinkFilterProperty{
		Filter: jsii.String("filter"),
	},
}
```

## Properties

- `logGroupConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLink.LinkFilterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_oam.CfnLink.LinkFilterProperty.html) — Use this structure to filter which log groups are to share log events from this source account to the monitoring account.

- `metricConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLink.LinkFilterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_oam.CfnLink.LinkFilterProperty.html) — Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.
