We would like to log enhanced (per shard) metrics for kinesis using CDK. For standard metrics we're doing this:
const throughput = new cloudwatch.GraphWidget({
height: CHART_HEIGHT,
width: CHART_WIDTH,
title: "Throughput Exceptions",
});
throughput.addLeftMetric(
stream.metric("ReadProvisionedThroughputExceeded", { statistic: "avg" })
);
Could not find an obvious way to do it for enhanced metrics from the docs, but perhaps I missed something.
Does anyone know a way?