MetricsConfigProperty Struct
The metrics configuration for your event source.
Use this configuration object to define which metrics you want your event source mapping to produce.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const metricsConfigProperty: lambda.CfnEventSourceMapping.MetricsConfigProperty = {
metrics: ['metrics'],
};
Properties
The metrics you want your event source mapping to produce.
notes
Include EventCount to receive event source mapping metrics related to the number of events processed by your event source mapping. For more information about these metrics, see Event source mapping metrics .