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.
Managing Metric Streams
Section titled “Managing Metric Streams”// init — grants cloudwatch:StopMetricStreams on the streamconst stopMetricStreams = yield* AWS.CloudWatch.StopMetricStreams(stream);
// runtimeyield* stopMetricStreams();