Skip to content
v2.274.0

SourceProperty Struct ​

The source of collected metrics for a scraper.

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 ​

eksConfigurationoptionalIResolvable | CfnScraper.EksConfigurationPropertyeks_configurationoptionaltyping.Union[IResolvable, EksConfigurationProperty]eksConfigurationoptionalIResolvableEksConfigurationoptionalIResolvableEksConfigurationoptionalinterface{}#
The Amazon EKS cluster from which a scraper collects metrics.
vpcConfigurationoptionalIResolvable | CfnScraper.VpcConfigurationPropertyvpc_configurationoptionaltyping.Union[IResolvable, VpcConfigurationProperty]vpcConfigurationoptionalIResolvableVpcConfigurationoptionalIResolvableVpcConfigurationoptionalinterface{}#
Configuration for VPC metrics source.