Skip to content

StopMetricStreams

Source: src/AWS/CloudWatch/StopMetricStreams.ts

Runtime binding for cloudwatch:StopMetricStreams — pause streaming for the bound metric streams (e.g. to control Firehose cost during an incident). Resume with StartMetricStreams. Bind it to one or more MetricStream resources; the stream names are injected automatically.

Provide CloudWatch.StopMetricStreamsHttp on the hosting Lambda Function to satisfy the requirement.

// init — grants cloudwatch:StopMetricStreams on the stream
const stopMetricStreams = yield* AWS.CloudWatch.StopMetricStreams(stream);
// runtime
yield* stopMetricStreams();