GetMetricStream
Source:
src/AWS/CloudWatch/GetMetricStream.ts
Runtime binding for cloudwatch:GetMetricStream — read the
configuration and state of the bound MetricStream; the stream
name is injected automatically.
Provide CloudWatch.GetMetricStreamHttp on the hosting Lambda Function
to satisfy the requirement.
Reading Metric Streams
Section titled “Reading Metric Streams”// init — grants cloudwatch:GetMetricStream on the streamconst getMetricStream = yield* AWS.CloudWatch.GetMetricStream(metricStream);
// runtimeconst result = yield* getMetricStream();const state = result.State; // "running" | "stopped"