Skip to content

StartMetricStreams

Source: src/AWS/CloudWatch/StartMetricStreams.ts

Runtime binding for cloudwatch:StartMetricStreams — resume streaming for the bound metric streams after they were paused with StopMetricStreams. Bind it to one or more MetricStream resources; the stream names are injected automatically.

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

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