# SourceProperty

The source of collected metrics for a scraper.

- Source: Generated code
- Type last changed: v2.225.0 · 17 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_aps as aps } from 'aws-cdk-lib';
const sourceProperty: aps.CfnScraper.SourceProperty = {
  eksConfiguration: {
    clusterArn: 'clusterArn',
    subnetIds: ['subnetIds'],

    // the properties below are optional
    securityGroupIds: ['securityGroupIds'],
  },
  vpcConfiguration: {
    securityGroupIds: ['securityGroupIds'],
    subnetIds: ['subnetIds'],
  },
};
```

## Properties

- `eksConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnScraper.EksConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.EksConfigurationProperty.html) — The Amazon EKS cluster from which a scraper collects metrics.

- `vpcConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnScraper.VpcConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_aps.CfnScraper.VpcConfigurationProperty.html) — Configuration for VPC metrics source.
