import * as cloudwatch from "@distilled.cloud/aws/cloudwatch"; import * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { MetricStream } from "./MetricStream.ts"; export interface GetMetricStreamRequest extends Omit { } /** * Runtime binding for `cloudwatch:GetMetricStream` — read the * configuration and state of the bound {@link MetricStream}; the stream * name is injected automatically. * * Provide `CloudWatch.GetMetricStreamHttp` on the hosting Lambda Function * to satisfy the requirement. * ### Reading Metric Streams * **Example:** Read a Bound Metric Stream * ```typescript * // init — grants cloudwatch:GetMetricStream on the stream * const getMetricStream = yield* AWS.CloudWatch.GetMetricStream(metricStream); * * // runtime * const result = yield* getMetricStream(); * const state = result.State; // "running" | "stopped" * ``` * * @binding */ export interface GetMetricStream extends Binding.Service Effect.Effect<(request?: GetMetricStreamRequest) => Effect.Effect>> { } export declare const GetMetricStream: GetMetricStream; //# sourceMappingURL=GetMetricStream.d.ts.map