| 1 | import * as sagemaker from "@distilled.cloud/aws/sagemaker-runtime"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeEndpointInvocationHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { InvokeEndpointWithResponseStream } from "./InvokeEndpointWithResponseStream.ts"; |
| 5 | |
| 6 | export 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 | ); |