@aws-sdk/client-sagemaker-runtime 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,99 +1,70 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_InvokeEndpointWithResponseStreamCommand = exports.de_InvokeEndpointAsyncCommand = exports.de_InvokeEndpointCommand = exports.se_InvokeEndpointWithResponseStreamCommand = exports.se_InvokeEndpointAsyncCommand = exports.se_InvokeEndpointCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const SageMakerRuntimeServiceException_1 = require("../models/SageMakerRuntimeServiceException");
8
8
  const se_InvokeEndpointCommand = async (input, context) => {
9
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
+ const b = (0, core_1.requestBuilder)(input, context);
10
10
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
11
- "content-type": input.ContentType || "application/octet-stream",
12
- accept: input.Accept,
13
- "x-amzn-sagemaker-custom-attributes": input.CustomAttributes,
14
- "x-amzn-sagemaker-target-model": input.TargetModel,
15
- "x-amzn-sagemaker-target-variant": input.TargetVariant,
16
- "x-amzn-sagemaker-target-container-hostname": input.TargetContainerHostname,
17
- "x-amzn-sagemaker-inference-id": input.InferenceId,
18
- "x-amzn-sagemaker-enable-explanations": input.EnableExplanations,
19
- "x-amzn-sagemaker-inference-component": input.InferenceComponentName,
11
+ [_ct]: input[_CT] || "application/octet-stream",
12
+ [_a]: input[_A],
13
+ [_xasca]: input[_CA],
14
+ [_xastm]: input[_TM],
15
+ [_xastv]: input[_TV],
16
+ [_xastch]: input[_TCH],
17
+ [_xasii]: input[_II],
18
+ [_xasee]: input[_EE],
19
+ [_xasic]: input[_ICN],
20
20
  });
21
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoints/{EndpointName}/invocations";
22
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointName", () => input.EndpointName, "{EndpointName}", false);
21
+ b.bp("/endpoints/{EndpointName}/invocations");
22
+ b.p("EndpointName", () => input.EndpointName, "{EndpointName}", false);
23
23
  let body;
24
24
  if (input.Body !== undefined) {
25
25
  body = input.Body;
26
26
  }
27
- return new protocol_http_1.HttpRequest({
28
- protocol,
29
- hostname,
30
- port,
31
- method: "POST",
32
- headers,
33
- path: resolvedPath,
34
- body,
35
- });
27
+ b.m("POST").h(headers).b(body);
28
+ return b.build();
36
29
  };
37
30
  exports.se_InvokeEndpointCommand = se_InvokeEndpointCommand;
38
31
  const se_InvokeEndpointAsyncCommand = async (input, context) => {
39
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
32
+ const b = (0, core_1.requestBuilder)(input, context);
40
33
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
41
- "x-amzn-sagemaker-content-type": input.ContentType,
42
- "x-amzn-sagemaker-accept": input.Accept,
43
- "x-amzn-sagemaker-custom-attributes": input.CustomAttributes,
44
- "x-amzn-sagemaker-inference-id": input.InferenceId,
45
- "x-amzn-sagemaker-inputlocation": input.InputLocation,
46
- "x-amzn-sagemaker-requestttlseconds": [
47
- () => isSerializableHeaderValue(input.RequestTTLSeconds),
48
- () => input.RequestTTLSeconds.toString(),
49
- ],
50
- "x-amzn-sagemaker-invocationtimeoutseconds": [
51
- () => isSerializableHeaderValue(input.InvocationTimeoutSeconds),
52
- () => input.InvocationTimeoutSeconds.toString(),
53
- ],
34
+ [_xasct]: input[_CT],
35
+ [_xasa]: input[_A],
36
+ [_xasca]: input[_CA],
37
+ [_xasii]: input[_II],
38
+ [_xasi]: input[_IL],
39
+ [_xasr]: [() => isSerializableHeaderValue(input[_RTTLS]), () => input[_RTTLS].toString()],
40
+ [_xasi_]: [() => isSerializableHeaderValue(input[_ITS]), () => input[_ITS].toString()],
54
41
  });
55
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
56
- "/endpoints/{EndpointName}/async-invocations";
57
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointName", () => input.EndpointName, "{EndpointName}", false);
42
+ b.bp("/endpoints/{EndpointName}/async-invocations");
43
+ b.p("EndpointName", () => input.EndpointName, "{EndpointName}", false);
58
44
  let body;
59
- return new protocol_http_1.HttpRequest({
60
- protocol,
61
- hostname,
62
- port,
63
- method: "POST",
64
- headers,
65
- path: resolvedPath,
66
- body,
67
- });
45
+ b.m("POST").h(headers).b(body);
46
+ return b.build();
68
47
  };
69
48
  exports.se_InvokeEndpointAsyncCommand = se_InvokeEndpointAsyncCommand;
70
49
  const se_InvokeEndpointWithResponseStreamCommand = async (input, context) => {
71
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
50
+ const b = (0, core_1.requestBuilder)(input, context);
72
51
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
73
- "content-type": input.ContentType || "application/octet-stream",
74
- "x-amzn-sagemaker-accept": input.Accept,
75
- "x-amzn-sagemaker-custom-attributes": input.CustomAttributes,
76
- "x-amzn-sagemaker-target-variant": input.TargetVariant,
77
- "x-amzn-sagemaker-target-container-hostname": input.TargetContainerHostname,
78
- "x-amzn-sagemaker-inference-id": input.InferenceId,
79
- "x-amzn-sagemaker-inference-component": input.InferenceComponentName,
52
+ [_ct]: input[_CT] || "application/octet-stream",
53
+ [_xasa]: input[_A],
54
+ [_xasca]: input[_CA],
55
+ [_xastv]: input[_TV],
56
+ [_xastch]: input[_TCH],
57
+ [_xasii]: input[_II],
58
+ [_xasic]: input[_ICN],
80
59
  });
81
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
82
- "/endpoints/{EndpointName}/invocations-response-stream";
83
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointName", () => input.EndpointName, "{EndpointName}", false);
60
+ b.bp("/endpoints/{EndpointName}/invocations-response-stream");
61
+ b.p("EndpointName", () => input.EndpointName, "{EndpointName}", false);
84
62
  let body;
85
63
  if (input.Body !== undefined) {
86
64
  body = input.Body;
87
65
  }
88
- return new protocol_http_1.HttpRequest({
89
- protocol,
90
- hostname,
91
- port,
92
- method: "POST",
93
- headers,
94
- path: resolvedPath,
95
- body,
96
- });
66
+ b.m("POST").h(headers).b(body);
67
+ return b.build();
97
68
  };
98
69
  exports.se_InvokeEndpointWithResponseStreamCommand = se_InvokeEndpointWithResponseStreamCommand;
99
70
  const de_InvokeEndpointCommand = async (output, context) => {
@@ -102,9 +73,9 @@ const de_InvokeEndpointCommand = async (output, context) => {
102
73
  }
103
74
  const contents = (0, smithy_client_1.map)({
104
75
  $metadata: deserializeMetadata(output),
105
- ContentType: [, output.headers["content-type"]],
106
- InvokedProductionVariant: [, output.headers["x-amzn-invoked-production-variant"]],
107
- CustomAttributes: [, output.headers["x-amzn-sagemaker-custom-attributes"]],
76
+ [_CT]: [, output.headers[_ct]],
77
+ [_IPV]: [, output.headers[_xaipv]],
78
+ [_CA]: [, output.headers[_xasca]],
108
79
  });
109
80
  const data = await (0, smithy_client_1.collectBody)(output.body, context);
110
81
  contents.Body = data;
@@ -151,8 +122,8 @@ const de_InvokeEndpointAsyncCommand = async (output, context) => {
151
122
  }
152
123
  const contents = (0, smithy_client_1.map)({
153
124
  $metadata: deserializeMetadata(output),
154
- OutputLocation: [, output.headers["x-amzn-sagemaker-outputlocation"]],
155
- FailureLocation: [, output.headers["x-amzn-sagemaker-failurelocation"]],
125
+ [_OL]: [, output.headers[_xaso]],
126
+ [_FL]: [, output.headers[_xasf]],
156
127
  });
157
128
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
158
129
  const doc = (0, smithy_client_1.take)(data, {
@@ -193,9 +164,9 @@ const de_InvokeEndpointWithResponseStreamCommand = async (output, context) => {
193
164
  }
194
165
  const contents = (0, smithy_client_1.map)({
195
166
  $metadata: deserializeMetadata(output),
196
- ContentType: [, output.headers["x-amzn-sagemaker-content-type"]],
197
- InvokedProductionVariant: [, output.headers["x-amzn-invoked-production-variant"]],
198
- CustomAttributes: [, output.headers["x-amzn-sagemaker-custom-attributes"]],
167
+ [_CT]: [, output.headers[_xasct]],
168
+ [_IPV]: [, output.headers[_xaipv]],
169
+ [_CA]: [, output.headers[_xasca]],
199
170
  });
200
171
  const data = output.body;
201
172
  contents.Body = de_ResponseStream(data, context);
@@ -396,6 +367,38 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
396
367
  value !== "" &&
397
368
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
398
369
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
370
+ const _A = "Accept";
371
+ const _CA = "CustomAttributes";
372
+ const _CT = "ContentType";
373
+ const _EE = "EnableExplanations";
374
+ const _FL = "FailureLocation";
375
+ const _ICN = "InferenceComponentName";
376
+ const _II = "InferenceId";
377
+ const _IL = "InputLocation";
378
+ const _IPV = "InvokedProductionVariant";
379
+ const _ITS = "InvocationTimeoutSeconds";
380
+ const _OL = "OutputLocation";
381
+ const _RTTLS = "RequestTTLSeconds";
382
+ const _TCH = "TargetContainerHostname";
383
+ const _TM = "TargetModel";
384
+ const _TV = "TargetVariant";
385
+ const _a = "accept";
386
+ const _ct = "content-type";
387
+ const _xaipv = "x-amzn-invoked-production-variant";
388
+ const _xasa = "x-amzn-sagemaker-accept";
389
+ const _xasca = "x-amzn-sagemaker-custom-attributes";
390
+ const _xasct = "x-amzn-sagemaker-content-type";
391
+ const _xasee = "x-amzn-sagemaker-enable-explanations";
392
+ const _xasf = "x-amzn-sagemaker-failurelocation";
393
+ const _xasi = "x-amzn-sagemaker-inputlocation";
394
+ const _xasi_ = "x-amzn-sagemaker-invocationtimeoutseconds";
395
+ const _xasic = "x-amzn-sagemaker-inference-component";
396
+ const _xasii = "x-amzn-sagemaker-inference-id";
397
+ const _xaso = "x-amzn-sagemaker-outputlocation";
398
+ const _xasr = "x-amzn-sagemaker-requestttlseconds";
399
+ const _xastch = "x-amzn-sagemaker-target-container-hostname";
400
+ const _xastm = "x-amzn-sagemaker-target-model";
401
+ const _xastv = "x-amzn-sagemaker-target-variant";
399
402
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
400
403
  if (encoded.length) {
401
404
  return JSON.parse(encoded);
@@ -1,94 +1,65 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { InternalDependencyException, InternalFailure, InternalStreamFailure, ModelError, ModelNotReadyException, ModelStreamError, ServiceUnavailable, ValidationError, } from "../models/models_0";
4
4
  import { SageMakerRuntimeServiceException as __BaseException } from "../models/SageMakerRuntimeServiceException";
5
5
  export const se_InvokeEndpointCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = map({}, isSerializableHeaderValue, {
8
- "content-type": input.ContentType || "application/octet-stream",
9
- accept: input.Accept,
10
- "x-amzn-sagemaker-custom-attributes": input.CustomAttributes,
11
- "x-amzn-sagemaker-target-model": input.TargetModel,
12
- "x-amzn-sagemaker-target-variant": input.TargetVariant,
13
- "x-amzn-sagemaker-target-container-hostname": input.TargetContainerHostname,
14
- "x-amzn-sagemaker-inference-id": input.InferenceId,
15
- "x-amzn-sagemaker-enable-explanations": input.EnableExplanations,
16
- "x-amzn-sagemaker-inference-component": input.InferenceComponentName,
8
+ [_ct]: input[_CT] || "application/octet-stream",
9
+ [_a]: input[_A],
10
+ [_xasca]: input[_CA],
11
+ [_xastm]: input[_TM],
12
+ [_xastv]: input[_TV],
13
+ [_xastch]: input[_TCH],
14
+ [_xasii]: input[_II],
15
+ [_xasee]: input[_EE],
16
+ [_xasic]: input[_ICN],
17
17
  });
18
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoints/{EndpointName}/invocations";
19
- resolvedPath = __resolvedPath(resolvedPath, input, "EndpointName", () => input.EndpointName, "{EndpointName}", false);
18
+ b.bp("/endpoints/{EndpointName}/invocations");
19
+ b.p("EndpointName", () => input.EndpointName, "{EndpointName}", false);
20
20
  let body;
21
21
  if (input.Body !== undefined) {
22
22
  body = input.Body;
23
23
  }
24
- return new __HttpRequest({
25
- protocol,
26
- hostname,
27
- port,
28
- method: "POST",
29
- headers,
30
- path: resolvedPath,
31
- body,
32
- });
24
+ b.m("POST").h(headers).b(body);
25
+ return b.build();
33
26
  };
34
27
  export const se_InvokeEndpointAsyncCommand = async (input, context) => {
35
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
+ const b = rb(input, context);
36
29
  const headers = map({}, isSerializableHeaderValue, {
37
- "x-amzn-sagemaker-content-type": input.ContentType,
38
- "x-amzn-sagemaker-accept": input.Accept,
39
- "x-amzn-sagemaker-custom-attributes": input.CustomAttributes,
40
- "x-amzn-sagemaker-inference-id": input.InferenceId,
41
- "x-amzn-sagemaker-inputlocation": input.InputLocation,
42
- "x-amzn-sagemaker-requestttlseconds": [
43
- () => isSerializableHeaderValue(input.RequestTTLSeconds),
44
- () => input.RequestTTLSeconds.toString(),
45
- ],
46
- "x-amzn-sagemaker-invocationtimeoutseconds": [
47
- () => isSerializableHeaderValue(input.InvocationTimeoutSeconds),
48
- () => input.InvocationTimeoutSeconds.toString(),
49
- ],
30
+ [_xasct]: input[_CT],
31
+ [_xasa]: input[_A],
32
+ [_xasca]: input[_CA],
33
+ [_xasii]: input[_II],
34
+ [_xasi]: input[_IL],
35
+ [_xasr]: [() => isSerializableHeaderValue(input[_RTTLS]), () => input[_RTTLS].toString()],
36
+ [_xasi_]: [() => isSerializableHeaderValue(input[_ITS]), () => input[_ITS].toString()],
50
37
  });
51
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
52
- "/endpoints/{EndpointName}/async-invocations";
53
- resolvedPath = __resolvedPath(resolvedPath, input, "EndpointName", () => input.EndpointName, "{EndpointName}", false);
38
+ b.bp("/endpoints/{EndpointName}/async-invocations");
39
+ b.p("EndpointName", () => input.EndpointName, "{EndpointName}", false);
54
40
  let body;
55
- return new __HttpRequest({
56
- protocol,
57
- hostname,
58
- port,
59
- method: "POST",
60
- headers,
61
- path: resolvedPath,
62
- body,
63
- });
41
+ b.m("POST").h(headers).b(body);
42
+ return b.build();
64
43
  };
65
44
  export const se_InvokeEndpointWithResponseStreamCommand = async (input, context) => {
66
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
45
+ const b = rb(input, context);
67
46
  const headers = map({}, isSerializableHeaderValue, {
68
- "content-type": input.ContentType || "application/octet-stream",
69
- "x-amzn-sagemaker-accept": input.Accept,
70
- "x-amzn-sagemaker-custom-attributes": input.CustomAttributes,
71
- "x-amzn-sagemaker-target-variant": input.TargetVariant,
72
- "x-amzn-sagemaker-target-container-hostname": input.TargetContainerHostname,
73
- "x-amzn-sagemaker-inference-id": input.InferenceId,
74
- "x-amzn-sagemaker-inference-component": input.InferenceComponentName,
47
+ [_ct]: input[_CT] || "application/octet-stream",
48
+ [_xasa]: input[_A],
49
+ [_xasca]: input[_CA],
50
+ [_xastv]: input[_TV],
51
+ [_xastch]: input[_TCH],
52
+ [_xasii]: input[_II],
53
+ [_xasic]: input[_ICN],
75
54
  });
76
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
77
- "/endpoints/{EndpointName}/invocations-response-stream";
78
- resolvedPath = __resolvedPath(resolvedPath, input, "EndpointName", () => input.EndpointName, "{EndpointName}", false);
55
+ b.bp("/endpoints/{EndpointName}/invocations-response-stream");
56
+ b.p("EndpointName", () => input.EndpointName, "{EndpointName}", false);
79
57
  let body;
80
58
  if (input.Body !== undefined) {
81
59
  body = input.Body;
82
60
  }
83
- return new __HttpRequest({
84
- protocol,
85
- hostname,
86
- port,
87
- method: "POST",
88
- headers,
89
- path: resolvedPath,
90
- body,
91
- });
61
+ b.m("POST").h(headers).b(body);
62
+ return b.build();
92
63
  };
93
64
  export const de_InvokeEndpointCommand = async (output, context) => {
94
65
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -96,9 +67,9 @@ export const de_InvokeEndpointCommand = async (output, context) => {
96
67
  }
97
68
  const contents = map({
98
69
  $metadata: deserializeMetadata(output),
99
- ContentType: [, output.headers["content-type"]],
100
- InvokedProductionVariant: [, output.headers["x-amzn-invoked-production-variant"]],
101
- CustomAttributes: [, output.headers["x-amzn-sagemaker-custom-attributes"]],
70
+ [_CT]: [, output.headers[_ct]],
71
+ [_IPV]: [, output.headers[_xaipv]],
72
+ [_CA]: [, output.headers[_xasca]],
102
73
  });
103
74
  const data = await collectBody(output.body, context);
104
75
  contents.Body = data;
@@ -144,8 +115,8 @@ export const de_InvokeEndpointAsyncCommand = async (output, context) => {
144
115
  }
145
116
  const contents = map({
146
117
  $metadata: deserializeMetadata(output),
147
- OutputLocation: [, output.headers["x-amzn-sagemaker-outputlocation"]],
148
- FailureLocation: [, output.headers["x-amzn-sagemaker-failurelocation"]],
118
+ [_OL]: [, output.headers[_xaso]],
119
+ [_FL]: [, output.headers[_xasf]],
149
120
  });
150
121
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
151
122
  const doc = take(data, {
@@ -185,9 +156,9 @@ export const de_InvokeEndpointWithResponseStreamCommand = async (output, context
185
156
  }
186
157
  const contents = map({
187
158
  $metadata: deserializeMetadata(output),
188
- ContentType: [, output.headers["x-amzn-sagemaker-content-type"]],
189
- InvokedProductionVariant: [, output.headers["x-amzn-invoked-production-variant"]],
190
- CustomAttributes: [, output.headers["x-amzn-sagemaker-custom-attributes"]],
159
+ [_CT]: [, output.headers[_xasct]],
160
+ [_IPV]: [, output.headers[_xaipv]],
161
+ [_CA]: [, output.headers[_xasca]],
191
162
  });
192
163
  const data = output.body;
193
164
  contents.Body = de_ResponseStream(data, context);
@@ -387,6 +358,38 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
387
358
  value !== "" &&
388
359
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
389
360
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
361
+ const _A = "Accept";
362
+ const _CA = "CustomAttributes";
363
+ const _CT = "ContentType";
364
+ const _EE = "EnableExplanations";
365
+ const _FL = "FailureLocation";
366
+ const _ICN = "InferenceComponentName";
367
+ const _II = "InferenceId";
368
+ const _IL = "InputLocation";
369
+ const _IPV = "InvokedProductionVariant";
370
+ const _ITS = "InvocationTimeoutSeconds";
371
+ const _OL = "OutputLocation";
372
+ const _RTTLS = "RequestTTLSeconds";
373
+ const _TCH = "TargetContainerHostname";
374
+ const _TM = "TargetModel";
375
+ const _TV = "TargetVariant";
376
+ const _a = "accept";
377
+ const _ct = "content-type";
378
+ const _xaipv = "x-amzn-invoked-production-variant";
379
+ const _xasa = "x-amzn-sagemaker-accept";
380
+ const _xasca = "x-amzn-sagemaker-custom-attributes";
381
+ const _xasct = "x-amzn-sagemaker-content-type";
382
+ const _xasee = "x-amzn-sagemaker-enable-explanations";
383
+ const _xasf = "x-amzn-sagemaker-failurelocation";
384
+ const _xasi = "x-amzn-sagemaker-inputlocation";
385
+ const _xasi_ = "x-amzn-sagemaker-invocationtimeoutseconds";
386
+ const _xasic = "x-amzn-sagemaker-inference-component";
387
+ const _xasii = "x-amzn-sagemaker-inference-id";
388
+ const _xaso = "x-amzn-sagemaker-outputlocation";
389
+ const _xasr = "x-amzn-sagemaker-requestttlseconds";
390
+ const _xastch = "x-amzn-sagemaker-target-container-hostname";
391
+ const _xastm = "x-amzn-sagemaker-target-model";
392
+ const _xastv = "x-amzn-sagemaker-target-variant";
390
393
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
391
394
  if (encoded.length) {
392
395
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-runtime",
3
3
  "description": "AWS SDK for JavaScript Sagemaker Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.476.0",
4
+ "version": "3.478.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,20 +20,21 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.476.0",
24
- "@aws-sdk/core": "3.476.0",
25
- "@aws-sdk/credential-provider-node": "3.476.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
+ "@aws-sdk/core": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.478.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/eventstream-serde-browser": "^2.0.15",
38
39
  "@smithy/eventstream-serde-config-resolver": "^2.0.15",
39
40
  "@smithy/eventstream-serde-node": "^2.0.15",