1import * as sagemaker from "@distilled.cloud/aws/sagemaker-runtime";
2import * as Layer from "effect/Layer";
3import { makeEndpointInvocationHttpBinding } from "./BindingHttp.ts";
4import { InvokeEndpointWithResponseStream } from "./InvokeEndpointWithResponseStream.ts";
5
6export const InvokeEndpointWithResponseStreamHttp = Layer.effect(
7 InvokeEndpointWithResponseStream,
8 makeEndpointInvocationHttpBinding({
9 tag: "AWS.SageMakerRuntime.InvokeEndpointWithResponseStream",
10 operation: sagemaker.invokeEndpointWithResponseStream,
11 // The streaming operation authorizes against sagemaker:InvokeEndpoint
12 // (there is no separate InvokeEndpointWithResponseStream IAM action).
13 actions: ["sagemaker:InvokeEndpoint"],
14 }),
15);