Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { name, version } from "./package.json";
import { ClientDefaults } from "./RDSDataClient";
import { ClientSharedValues } from "./runtimeConfig.shared";
export const ClientDefaultValues: Required = {
...ClientSharedValues,
requestHandler: new FetchHttpHandler(),
sha256: Sha256,
urlParser: parseUrl,
bodyLengthChecker: calculateBodyLength,
streamCollector,
base64Decoder: fromBase64,
base64Encoder: toBase64,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
defaultUserAgent: defaultUserAgent(name, version),
signingName: "rds-data",
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
regionDefaultProvider: invalidFunction("Region is missing") as any,
};
> = {
protocolDefaultProvider: handler => new JsonProtocol(handler),
signingName: "transcribestreaming",
service: "transcribestreaming",
httpHandler: new FetchHttpHandler(),
sha256: Sha256,
credentialDefaultProvider: invalidFunction("Credential is missing") as any,
regionDefaultProvider: invalidFunction("Region is missing") as any,
urlParser: parseUrl,
bodyLengthChecker: calculateBodyLength,
streamCollector,
base64Decoder: fromBase64,
base64Encoder: toBase64,
utf8Decoder: fromUtf8,
utf8Encoder: toUtf8,
defaultUserAgent: defaultUserAgent(name, version)
};