Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { streamCollector } from "@aws-sdk/stream-collector-node";
import { JsonProtocol } from "@aws-sdk/protocol-json";
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
import { EventStreamMarshaller } from "@aws-sdk/util-eventstream-node";
import { name, version } from "./package.json";
import { TranscribeStreamingRuntimeDependencies } from "./TranscribeStreamingClient";
export const TranscribeStreamingRuntimeConfiguration: Required<
TranscribeStreamingRuntimeDependencies
> = {
protocolDefaultProvider: handler => new JsonProtocol(handler),
signingName: "transcribestreaming",
service: "transcribestreaming",
httpHandler: new NodeHttp2Handler(),
sha256: Hash.bind(null, "sha256"),
credentialDefaultProvider,
regionDefaultProvider,
urlParser: parseUrl,
bodyLengthChecker: calculateBodyLength,
streamCollector,
base64Decoder: fromBase64,
base64Encoder: toBase64,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
defaultUserAgent: defaultUserAgent(name, version)
// eventStreamSerde: new EventStreamMarshaller(toUtf8, fromUtf8)
};