@aws-sdk/client-sagemaker-runtime 3.43.0 → 3.47.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,56 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
28
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
46
+
47
+
48
+ ### Features
49
+
50
+ * **clients:** update clients as of 2021/12/01 ([#3078](https://github.com/aws/aws-sdk-js-v3/issues/3078)) ([9c44188](https://github.com/aws/aws-sdk-js-v3/commit/9c44188265ea484d55c50848d7daae5571007ce0))
51
+
52
+
53
+
54
+
55
+
6
56
  # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
57
 
8
58
  **Note:** Version bump only for package @aws-sdk/client-sagemaker-runtime
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "us-east-1": {
7
7
  variants: [
8
- {
9
- hostname: "runtime.sagemaker.us-east-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "runtime-fips.sagemaker.us-east-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "us-east-2": {
19
15
  variants: [
20
- {
21
- hostname: "runtime.sagemaker.us-east-2.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "runtime-fips.sagemaker.us-east-2.amazonaws.com",
26
18
  tags: ["fips"],
@@ -29,10 +21,6 @@ const regionHash = {
29
21
  },
30
22
  "us-gov-west-1": {
31
23
  variants: [
32
- {
33
- hostname: "runtime.sagemaker.us-gov-west-1.amazonaws.com",
34
- tags: [],
35
- },
36
24
  {
37
25
  hostname: "runtime.sagemaker.us-gov-west-1.amazonaws.com",
38
26
  tags: ["fips"],
@@ -41,10 +29,6 @@ const regionHash = {
41
29
  },
42
30
  "us-west-1": {
43
31
  variants: [
44
- {
45
- hostname: "runtime.sagemaker.us-west-1.amazonaws.com",
46
- tags: [],
47
- },
48
32
  {
49
33
  hostname: "runtime-fips.sagemaker.us-west-1.amazonaws.com",
50
34
  tags: ["fips"],
@@ -53,10 +37,6 @@ const regionHash = {
53
37
  },
54
38
  "us-west-2": {
55
39
  variants: [
56
- {
57
- hostname: "runtime.sagemaker.us-west-2.amazonaws.com",
58
- tags: [],
59
- },
60
40
  {
61
41
  hostname: "runtime-fips.sagemaker.us-west-2.amazonaws.com",
62
42
  tags: ["fips"],
@@ -75,6 +55,7 @@ const partitionHash = {
75
55
  "ap-south-1",
76
56
  "ap-southeast-1",
77
57
  "ap-southeast-2",
58
+ "ap-southeast-3",
78
59
  "ca-central-1",
79
60
  "eu-central-1",
80
61
  "eu-north-1",
@@ -1,13 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvokeEndpointAsyncOutput = exports.InvokeEndpointAsyncInput = exports.ValidationError = exports.ServiceUnavailable = exports.ModelError = exports.InvokeEndpointOutput = exports.InvokeEndpointInput = exports.InternalFailure = void 0;
3
+ exports.InvokeEndpointAsyncOutput = exports.InvokeEndpointAsyncInput = exports.InvokeEndpointOutput = exports.InvokeEndpointInput = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
- var InternalFailure;
6
- (function (InternalFailure) {
7
- InternalFailure.filterSensitiveLog = (obj) => ({
8
- ...obj,
9
- });
10
- })(InternalFailure = exports.InternalFailure || (exports.InternalFailure = {}));
11
5
  var InvokeEndpointInput;
12
6
  (function (InvokeEndpointInput) {
13
7
  InvokeEndpointInput.filterSensitiveLog = (obj) => ({
@@ -24,24 +18,6 @@ var InvokeEndpointOutput;
24
18
  ...(obj.CustomAttributes && { CustomAttributes: smithy_client_1.SENSITIVE_STRING }),
25
19
  });
26
20
  })(InvokeEndpointOutput = exports.InvokeEndpointOutput || (exports.InvokeEndpointOutput = {}));
27
- var ModelError;
28
- (function (ModelError) {
29
- ModelError.filterSensitiveLog = (obj) => ({
30
- ...obj,
31
- });
32
- })(ModelError = exports.ModelError || (exports.ModelError = {}));
33
- var ServiceUnavailable;
34
- (function (ServiceUnavailable) {
35
- ServiceUnavailable.filterSensitiveLog = (obj) => ({
36
- ...obj,
37
- });
38
- })(ServiceUnavailable = exports.ServiceUnavailable || (exports.ServiceUnavailable = {}));
39
- var ValidationError;
40
- (function (ValidationError) {
41
- ValidationError.filterSensitiveLog = (obj) => ({
42
- ...obj,
43
- });
44
- })(ValidationError = exports.ValidationError || (exports.ValidationError = {}));
45
21
  var InvokeEndpointAsyncInput;
46
22
  (function (InvokeEndpointAsyncInput) {
47
23
  InvokeEndpointAsyncInput.filterSensitiveLog = (obj) => ({
@@ -117,6 +117,14 @@ const deserializeAws_restJson1InvokeEndpointCommandError = async (output, contex
117
117
  let errorCode = "UnknownError";
118
118
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
119
119
  switch (errorCode) {
120
+ case "InternalDependencyException":
121
+ case "com.amazonaws.sagemakerruntime#InternalDependencyException":
122
+ response = {
123
+ ...(await deserializeAws_restJson1InternalDependencyExceptionResponse(parsedOutput, context)),
124
+ name: errorCode,
125
+ $metadata: deserializeMetadata(output),
126
+ };
127
+ break;
120
128
  case "InternalFailure":
121
129
  case "com.amazonaws.sagemakerruntime#InternalFailure":
122
130
  response = {
@@ -133,6 +141,14 @@ const deserializeAws_restJson1InvokeEndpointCommandError = async (output, contex
133
141
  $metadata: deserializeMetadata(output),
134
142
  };
135
143
  break;
144
+ case "ModelNotReadyException":
145
+ case "com.amazonaws.sagemakerruntime#ModelNotReadyException":
146
+ response = {
147
+ ...(await deserializeAws_restJson1ModelNotReadyExceptionResponse(parsedOutput, context)),
148
+ name: errorCode,
149
+ $metadata: deserializeMetadata(output),
150
+ };
151
+ break;
136
152
  case "ServiceUnavailable":
137
153
  case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
138
154
  response = {
@@ -233,6 +249,19 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommandError = async (output, c
233
249
  delete response.Message;
234
250
  return Promise.reject(Object.assign(new Error(message), response));
235
251
  };
252
+ const deserializeAws_restJson1InternalDependencyExceptionResponse = async (parsedOutput, context) => {
253
+ const contents = {
254
+ name: "InternalDependencyException",
255
+ $fault: "server",
256
+ $metadata: deserializeMetadata(parsedOutput),
257
+ Message: undefined,
258
+ };
259
+ const data = parsedOutput.body;
260
+ if (data.Message !== undefined && data.Message !== null) {
261
+ contents.Message = smithy_client_1.expectString(data.Message);
262
+ }
263
+ return contents;
264
+ };
236
265
  const deserializeAws_restJson1InternalFailureResponse = async (parsedOutput, context) => {
237
266
  const contents = {
238
267
  name: "InternalFailure",
@@ -271,6 +300,19 @@ const deserializeAws_restJson1ModelErrorResponse = async (parsedOutput, context)
271
300
  }
272
301
  return contents;
273
302
  };
303
+ const deserializeAws_restJson1ModelNotReadyExceptionResponse = async (parsedOutput, context) => {
304
+ const contents = {
305
+ name: "ModelNotReadyException",
306
+ $fault: "client",
307
+ $metadata: deserializeMetadata(parsedOutput),
308
+ Message: undefined,
309
+ };
310
+ const data = parsedOutput.body;
311
+ if (data.Message !== undefined && data.Message !== null) {
312
+ contents.Message = smithy_client_1.expectString(data.Message);
313
+ }
314
+ return contents;
315
+ };
274
316
  const deserializeAws_restJson1ServiceUnavailableResponse = async (parsedOutput, context) => {
275
317
  const contents = {
276
318
  name: "ServiceUnavailable",
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
4
  "us-east-1": {
5
5
  variants: [
6
- {
7
- hostname: "runtime.sagemaker.us-east-1.amazonaws.com",
8
- tags: [],
9
- },
10
6
  {
11
7
  hostname: "runtime-fips.sagemaker.us-east-1.amazonaws.com",
12
8
  tags: ["fips"],
@@ -15,10 +11,6 @@ var regionHash = {
15
11
  },
16
12
  "us-east-2": {
17
13
  variants: [
18
- {
19
- hostname: "runtime.sagemaker.us-east-2.amazonaws.com",
20
- tags: [],
21
- },
22
14
  {
23
15
  hostname: "runtime-fips.sagemaker.us-east-2.amazonaws.com",
24
16
  tags: ["fips"],
@@ -27,10 +19,6 @@ var regionHash = {
27
19
  },
28
20
  "us-gov-west-1": {
29
21
  variants: [
30
- {
31
- hostname: "runtime.sagemaker.us-gov-west-1.amazonaws.com",
32
- tags: [],
33
- },
34
22
  {
35
23
  hostname: "runtime.sagemaker.us-gov-west-1.amazonaws.com",
36
24
  tags: ["fips"],
@@ -39,10 +27,6 @@ var regionHash = {
39
27
  },
40
28
  "us-west-1": {
41
29
  variants: [
42
- {
43
- hostname: "runtime.sagemaker.us-west-1.amazonaws.com",
44
- tags: [],
45
- },
46
30
  {
47
31
  hostname: "runtime-fips.sagemaker.us-west-1.amazonaws.com",
48
32
  tags: ["fips"],
@@ -51,10 +35,6 @@ var regionHash = {
51
35
  },
52
36
  "us-west-2": {
53
37
  variants: [
54
- {
55
- hostname: "runtime.sagemaker.us-west-2.amazonaws.com",
56
- tags: [],
57
- },
58
38
  {
59
39
  hostname: "runtime-fips.sagemaker.us-west-2.amazonaws.com",
60
40
  tags: ["fips"],
@@ -73,6 +53,7 @@ var partitionHash = {
73
53
  "ap-south-1",
74
54
  "ap-southeast-1",
75
55
  "ap-southeast-2",
56
+ "ap-southeast-3",
76
57
  "ca-central-1",
77
58
  "eu-central-1",
78
59
  "eu-north-1",
@@ -1,9 +1,5 @@
1
1
  import { __assign } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
- export var InternalFailure;
4
- (function (InternalFailure) {
5
- InternalFailure.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
- })(InternalFailure || (InternalFailure = {}));
7
3
  export var InvokeEndpointInput;
8
4
  (function (InvokeEndpointInput) {
9
5
  InvokeEndpointInput.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Body && { Body: SENSITIVE_STRING })), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
@@ -12,18 +8,6 @@ export var InvokeEndpointOutput;
12
8
  (function (InvokeEndpointOutput) {
13
9
  InvokeEndpointOutput.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Body && { Body: SENSITIVE_STRING })), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
14
10
  })(InvokeEndpointOutput || (InvokeEndpointOutput = {}));
15
- export var ModelError;
16
- (function (ModelError) {
17
- ModelError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
18
- })(ModelError || (ModelError = {}));
19
- export var ServiceUnavailable;
20
- (function (ServiceUnavailable) {
21
- ServiceUnavailable.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
- })(ServiceUnavailable || (ServiceUnavailable = {}));
23
- export var ValidationError;
24
- (function (ValidationError) {
25
- ValidationError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
26
- })(ValidationError || (ValidationError = {}));
27
11
  export var InvokeEndpointAsyncInput;
28
12
  (function (InvokeEndpointAsyncInput) {
29
13
  InvokeEndpointAsyncInput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
@@ -108,60 +108,76 @@ export var deserializeAws_restJson1InvokeEndpointCommand = function (output, con
108
108
  });
109
109
  }); };
110
110
  var deserializeAws_restJson1InvokeEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
111
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
112
- var _g;
113
- return __generator(this, function (_h) {
114
- switch (_h.label) {
111
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
112
+ var _j;
113
+ return __generator(this, function (_k) {
114
+ switch (_k.label) {
115
115
  case 0:
116
116
  _a = [__assign({}, output)];
117
- _g = {};
117
+ _j = {};
118
118
  return [4, parseBody(output.body, context)];
119
119
  case 1:
120
- parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
120
+ parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
121
121
  errorCode = "UnknownError";
122
122
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
123
123
  _b = errorCode;
124
124
  switch (_b) {
125
- case "InternalFailure": return [3, 2];
126
- case "com.amazonaws.sagemakerruntime#InternalFailure": return [3, 2];
127
- case "ModelError": return [3, 4];
128
- case "com.amazonaws.sagemakerruntime#ModelError": return [3, 4];
129
- case "ServiceUnavailable": return [3, 6];
130
- case "com.amazonaws.sagemakerruntime#ServiceUnavailable": return [3, 6];
131
- case "ValidationError": return [3, 8];
132
- case "com.amazonaws.sagemakerruntime#ValidationError": return [3, 8];
125
+ case "InternalDependencyException": return [3, 2];
126
+ case "com.amazonaws.sagemakerruntime#InternalDependencyException": return [3, 2];
127
+ case "InternalFailure": return [3, 4];
128
+ case "com.amazonaws.sagemakerruntime#InternalFailure": return [3, 4];
129
+ case "ModelError": return [3, 6];
130
+ case "com.amazonaws.sagemakerruntime#ModelError": return [3, 6];
131
+ case "ModelNotReadyException": return [3, 8];
132
+ case "com.amazonaws.sagemakerruntime#ModelNotReadyException": return [3, 8];
133
+ case "ServiceUnavailable": return [3, 10];
134
+ case "com.amazonaws.sagemakerruntime#ServiceUnavailable": return [3, 10];
135
+ case "ValidationError": return [3, 12];
136
+ case "com.amazonaws.sagemakerruntime#ValidationError": return [3, 12];
133
137
  }
134
- return [3, 10];
138
+ return [3, 14];
135
139
  case 2:
136
140
  _c = [{}];
137
- return [4, deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)];
141
+ return [4, deserializeAws_restJson1InternalDependencyExceptionResponse(parsedOutput, context)];
138
142
  case 3:
139
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
140
- return [3, 11];
143
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
144
+ return [3, 15];
141
145
  case 4:
142
146
  _d = [{}];
143
- return [4, deserializeAws_restJson1ModelErrorResponse(parsedOutput, context)];
147
+ return [4, deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)];
144
148
  case 5:
145
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
146
- return [3, 11];
149
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
150
+ return [3, 15];
147
151
  case 6:
148
152
  _e = [{}];
149
- return [4, deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)];
153
+ return [4, deserializeAws_restJson1ModelErrorResponse(parsedOutput, context)];
150
154
  case 7:
151
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
152
- return [3, 11];
155
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
156
+ return [3, 15];
153
157
  case 8:
154
158
  _f = [{}];
155
- return [4, deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)];
159
+ return [4, deserializeAws_restJson1ModelNotReadyExceptionResponse(parsedOutput, context)];
156
160
  case 9:
157
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
158
- return [3, 11];
161
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
162
+ return [3, 15];
159
163
  case 10:
164
+ _g = [{}];
165
+ return [4, deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)];
166
+ case 11:
167
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
168
+ return [3, 15];
169
+ case 12:
170
+ _h = [{}];
171
+ return [4, deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)];
172
+ case 13:
173
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
174
+ return [3, 15];
175
+ case 14:
160
176
  parsedBody = parsedOutput.body;
161
177
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
162
178
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
163
- _h.label = 11;
164
- case 11:
179
+ _k.label = 15;
180
+ case 15:
165
181
  message = response.message || response.Message || errorCode;
166
182
  response.message = message;
167
183
  delete response.Message;
@@ -251,6 +267,22 @@ var deserializeAws_restJson1InvokeEndpointAsyncCommandError = function (output,
251
267
  }
252
268
  });
253
269
  }); };
270
+ var deserializeAws_restJson1InternalDependencyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
271
+ var contents, data;
272
+ return __generator(this, function (_a) {
273
+ contents = {
274
+ name: "InternalDependencyException",
275
+ $fault: "server",
276
+ $metadata: deserializeMetadata(parsedOutput),
277
+ Message: undefined,
278
+ };
279
+ data = parsedOutput.body;
280
+ if (data.Message !== undefined && data.Message !== null) {
281
+ contents.Message = __expectString(data.Message);
282
+ }
283
+ return [2, contents];
284
+ });
285
+ }); };
254
286
  var deserializeAws_restJson1InternalFailureResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
255
287
  var contents, data;
256
288
  return __generator(this, function (_a) {
@@ -295,6 +327,22 @@ var deserializeAws_restJson1ModelErrorResponse = function (parsedOutput, context
295
327
  return [2, contents];
296
328
  });
297
329
  }); };
330
+ var deserializeAws_restJson1ModelNotReadyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
331
+ var contents, data;
332
+ return __generator(this, function (_a) {
333
+ contents = {
334
+ name: "ModelNotReadyException",
335
+ $fault: "client",
336
+ $metadata: deserializeMetadata(parsedOutput),
337
+ Message: undefined,
338
+ };
339
+ data = parsedOutput.body;
340
+ if (data.Message !== undefined && data.Message !== null) {
341
+ contents.Message = __expectString(data.Message);
342
+ }
343
+ return [2, contents];
344
+ });
345
+ }); };
298
346
  var deserializeAws_restJson1ServiceUnavailableResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
299
347
  var contents, data;
300
348
  return __generator(this, function (_a) {
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -14,9 +14,9 @@ export declare class SageMakerRuntime extends SageMakerRuntimeClient {
14
14
  * <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add
15
15
  * additional headers. You should not rely on the behavior of headers outside those
16
16
  * enumerated in the request syntax. </p>
17
- * <p>Calls to <code>InvokeEndpoint</code> are authenticated by using AWS Signature Version
17
+ * <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services Signature Version
18
18
  * 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
19
- * Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API
19
+ * Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
20
20
  * Reference</i>.</p>
21
21
  * <p>A customer's model containers must respond to requests within 60 seconds. The model
22
22
  * itself can have a maximum processing time of 60 seconds before responding to
@@ -46,8 +46,8 @@ export declare class SageMakerRuntime extends SageMakerRuntimeClient {
46
46
  * Amazon SageMaker might add additional headers. You should not rely on the behavior
47
47
  * of headers outside those enumerated in the request syntax.</p>
48
48
  *
49
- * <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using AWS Signature
50
- * Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API
49
+ * <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using Amazon Web Services Signature
50
+ * Version 4. For information, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
51
51
  * Reference</i>.</p>
52
52
  */
53
53
  invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointAsyncCommandOutput>;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
10
10
  import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
@@ -110,6 +110,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
110
110
  * @internal
111
111
  */
112
112
  defaultUserAgentProvider?: Provider<__UserAgent>;
113
+ /**
114
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
115
+ */
116
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
113
117
  }
114
118
  declare type SageMakerRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
115
119
  /**
@@ -21,8 +21,8 @@ export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOut
21
21
  * Amazon SageMaker might add additional headers. You should not rely on the behavior
22
22
  * of headers outside those enumerated in the request syntax.</p>
23
23
  *
24
- * <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using AWS Signature
25
- * Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API
24
+ * <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using Amazon Web Services Signature
25
+ * Version 4. For information, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
26
26
  * Reference</i>.</p>
27
27
  * @example
28
28
  * Use a bare-bones client and the command you need to make an API call.
@@ -14,9 +14,9 @@ export interface InvokeEndpointCommandOutput extends InvokeEndpointOutput, __Met
14
14
  * <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add
15
15
  * additional headers. You should not rely on the behavior of headers outside those
16
16
  * enumerated in the request syntax. </p>
17
- * <p>Calls to <code>InvokeEndpoint</code> are authenticated by using AWS Signature Version
17
+ * <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services Signature Version
18
18
  * 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
19
- * Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API
19
+ * Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
20
20
  * Reference</i>.</p>
21
21
  * <p>A customer's model containers must respond to requests within 60 seconds. The model
22
22
  * itself can have a maximum processing time of 60 seconds before responding to
@@ -1,4 +1,12 @@
1
1
  import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
+ /**
3
+ * <p>Your request caused an exception with an internal dependency. Contact customer support. </p>
4
+ */
5
+ export interface InternalDependencyException extends __SmithyException, $MetadataBearer {
6
+ name: "InternalDependencyException";
7
+ $fault: "server";
8
+ Message?: string;
9
+ }
2
10
  /**
3
11
  * <p> An internal failure occurred. </p>
4
12
  */
@@ -7,12 +15,6 @@ export interface InternalFailure extends __SmithyException, $MetadataBearer {
7
15
  $fault: "server";
8
16
  Message?: string;
9
17
  }
10
- export declare namespace InternalFailure {
11
- /**
12
- * @internal
13
- */
14
- const filterSensitiveLog: (obj: InternalFailure) => any;
15
- }
16
18
  export interface InvokeEndpointInput {
17
19
  /**
18
20
  * <p>The name of the endpoint that you specified when you created the endpoint using the
@@ -48,7 +50,7 @@ export interface InvokeEndpointInput {
48
50
  * prepend the custom attribute with <code>Trace ID:</code> in your post-processing
49
51
  * function.</p>
50
52
  *
51
- * <p>This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python
53
+ * <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python
52
54
  * SDK.</p>
53
55
  */
54
56
  CustomAttributes?: string;
@@ -114,7 +116,7 @@ export interface InvokeEndpointOutput {
114
116
  * returned. For example, if a custom attribute represents the trace ID, your model can
115
117
  * prepend the custom attribute with <code>Trace ID:</code> in your post-processing
116
118
  * function.</p>
117
- * <p>This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python
119
+ * <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python
118
120
  * SDK.</p>
119
121
  */
120
122
  CustomAttributes?: string;
@@ -146,11 +148,13 @@ export interface ModelError extends __SmithyException, $MetadataBearer {
146
148
  */
147
149
  LogStreamArn?: string;
148
150
  }
149
- export declare namespace ModelError {
150
- /**
151
- * @internal
152
- */
153
- const filterSensitiveLog: (obj: ModelError) => any;
151
+ /**
152
+ * <p>Either a serverless endpoint variant's resources are still being provisioned, or a multi-model endpoint is still downloading or loading the target model. Wait and try your request again.</p>
153
+ */
154
+ export interface ModelNotReadyException extends __SmithyException, $MetadataBearer {
155
+ name: "ModelNotReadyException";
156
+ $fault: "client";
157
+ Message?: string;
154
158
  }
155
159
  /**
156
160
  * <p> The service is unavailable. Try your call again. </p>
@@ -160,12 +164,6 @@ export interface ServiceUnavailable extends __SmithyException, $MetadataBearer {
160
164
  $fault: "server";
161
165
  Message?: string;
162
166
  }
163
- export declare namespace ServiceUnavailable {
164
- /**
165
- * @internal
166
- */
167
- const filterSensitiveLog: (obj: ServiceUnavailable) => any;
168
- }
169
167
  /**
170
168
  * <p> Inspect your request and try again. </p>
171
169
  */
@@ -174,12 +172,6 @@ export interface ValidationError extends __SmithyException, $MetadataBearer {
174
172
  $fault: "client";
175
173
  Message?: string;
176
174
  }
177
- export declare namespace ValidationError {
178
- /**
179
- * @internal
180
- */
181
- const filterSensitiveLog: (obj: ValidationError) => any;
182
- }
183
175
  export interface InvokeEndpointAsyncInput {
184
176
  /**
185
177
  * <p>The name of the endpoint that you specified when you created the endpoint using
@@ -211,7 +203,7 @@ export interface InvokeEndpointAsyncInput {
211
203
  * value is returned. For example, if a custom attribute represents the trace ID,
212
204
  * your model can prepend the custom attribute with <code>Trace ID</code>: in your post-processing function. </p>
213
205
  *
214
- * <p>This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python SDK. </p>
206
+ * <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python SDK. </p>
215
207
  */
216
208
  CustomAttributes?: string;
217
209
  /**
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { InvokeEndpointAsyncCommandInput, InvokeEndpointAsyncCommandOutput } from "./commands/InvokeEndpointAsyncCommand";
10
10
  import { InvokeEndpointCommandInput, InvokeEndpointCommandOutput } from "./commands/InvokeEndpointCommand";
@@ -53,6 +53,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
53
53
  regionInfoProvider?: RegionInfoProvider;
54
54
 
55
55
  defaultUserAgentProvider?: Provider<__UserAgent>;
56
+
57
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
56
58
  }
57
59
  declare type SageMakerRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
58
60
 
@@ -1,14 +1,16 @@
1
1
  import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
2
 
3
+ export interface InternalDependencyException extends __SmithyException, $MetadataBearer {
4
+ name: "InternalDependencyException";
5
+ $fault: "server";
6
+ Message?: string;
7
+ }
8
+
3
9
  export interface InternalFailure extends __SmithyException, $MetadataBearer {
4
10
  name: "InternalFailure";
5
11
  $fault: "server";
6
12
  Message?: string;
7
13
  }
8
- export declare namespace InternalFailure {
9
-
10
- const filterSensitiveLog: (obj: InternalFailure) => any;
11
- }
12
14
  export interface InvokeEndpointInput {
13
15
 
14
16
  EndpointName: string | undefined;
@@ -59,9 +61,11 @@ export interface ModelError extends __SmithyException, $MetadataBearer {
59
61
 
60
62
  LogStreamArn?: string;
61
63
  }
62
- export declare namespace ModelError {
63
-
64
- const filterSensitiveLog: (obj: ModelError) => any;
64
+
65
+ export interface ModelNotReadyException extends __SmithyException, $MetadataBearer {
66
+ name: "ModelNotReadyException";
67
+ $fault: "client";
68
+ Message?: string;
65
69
  }
66
70
 
67
71
  export interface ServiceUnavailable extends __SmithyException, $MetadataBearer {
@@ -69,20 +73,12 @@ export interface ServiceUnavailable extends __SmithyException, $MetadataBearer {
69
73
  $fault: "server";
70
74
  Message?: string;
71
75
  }
72
- export declare namespace ServiceUnavailable {
73
-
74
- const filterSensitiveLog: (obj: ServiceUnavailable) => any;
75
- }
76
76
 
77
77
  export interface ValidationError extends __SmithyException, $MetadataBearer {
78
78
  name: "ValidationError";
79
79
  $fault: "client";
80
80
  Message?: string;
81
81
  }
82
- export declare namespace ValidationError {
83
-
84
- const filterSensitiveLog: (obj: ValidationError) => any;
85
- }
86
82
  export interface InvokeEndpointAsyncInput {
87
83
 
88
84
  EndpointName: string | undefined;
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,16 +1,17 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<string>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
27
28
  tls?: boolean | undefined;
28
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,18 +1,15 @@
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.43.0",
4
+ "version": "3.47.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
8
- "build:docs": "yarn clean:docs && typedoc ./",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
+ "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
- "clean": "yarn clean:dist && yarn clean:docs",
12
- "clean:dist": "rimraf ./dist",
13
- "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
- "test": "exit 0"
11
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
+ "clean": "rimraf ./dist-*"
16
13
  },
17
14
  "main": "./dist-cjs/index.js",
18
15
  "types": "./dist-types/index.d.ts",
@@ -21,48 +18,44 @@
21
18
  "dependencies": {
22
19
  "@aws-crypto/sha256-browser": "2.0.0",
23
20
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.43.0",
25
- "@aws-sdk/config-resolver": "3.40.0",
26
- "@aws-sdk/credential-provider-node": "3.41.0",
27
- "@aws-sdk/fetch-http-handler": "3.40.0",
28
- "@aws-sdk/hash-node": "3.40.0",
29
- "@aws-sdk/invalid-dependency": "3.40.0",
30
- "@aws-sdk/middleware-content-length": "3.40.0",
31
- "@aws-sdk/middleware-host-header": "3.40.0",
32
- "@aws-sdk/middleware-logger": "3.40.0",
33
- "@aws-sdk/middleware-retry": "3.40.0",
34
- "@aws-sdk/middleware-serde": "3.40.0",
35
- "@aws-sdk/middleware-signing": "3.40.0",
36
- "@aws-sdk/middleware-stack": "3.40.0",
37
- "@aws-sdk/middleware-user-agent": "3.40.0",
38
- "@aws-sdk/node-config-provider": "3.40.0",
39
- "@aws-sdk/node-http-handler": "3.40.0",
40
- "@aws-sdk/protocol-http": "3.40.0",
41
- "@aws-sdk/smithy-client": "3.41.0",
42
- "@aws-sdk/types": "3.40.0",
43
- "@aws-sdk/url-parser": "3.40.0",
44
- "@aws-sdk/util-base64-browser": "3.37.0",
45
- "@aws-sdk/util-base64-node": "3.37.0",
46
- "@aws-sdk/util-body-length-browser": "3.37.0",
47
- "@aws-sdk/util-body-length-node": "3.37.0",
48
- "@aws-sdk/util-user-agent-browser": "3.40.0",
49
- "@aws-sdk/util-user-agent-node": "3.40.0",
50
- "@aws-sdk/util-utf8-browser": "3.37.0",
51
- "@aws-sdk/util-utf8-node": "3.37.0",
21
+ "@aws-sdk/client-sts": "3.47.0",
22
+ "@aws-sdk/config-resolver": "3.47.0",
23
+ "@aws-sdk/credential-provider-node": "3.47.0",
24
+ "@aws-sdk/fetch-http-handler": "3.47.0",
25
+ "@aws-sdk/hash-node": "3.47.0",
26
+ "@aws-sdk/invalid-dependency": "3.47.0",
27
+ "@aws-sdk/middleware-content-length": "3.47.0",
28
+ "@aws-sdk/middleware-host-header": "3.47.0",
29
+ "@aws-sdk/middleware-logger": "3.47.0",
30
+ "@aws-sdk/middleware-retry": "3.47.0",
31
+ "@aws-sdk/middleware-serde": "3.47.0",
32
+ "@aws-sdk/middleware-signing": "3.47.0",
33
+ "@aws-sdk/middleware-stack": "3.47.0",
34
+ "@aws-sdk/middleware-user-agent": "3.47.0",
35
+ "@aws-sdk/node-config-provider": "3.47.0",
36
+ "@aws-sdk/node-http-handler": "3.47.0",
37
+ "@aws-sdk/protocol-http": "3.47.0",
38
+ "@aws-sdk/smithy-client": "3.47.0",
39
+ "@aws-sdk/types": "3.47.0",
40
+ "@aws-sdk/url-parser": "3.47.0",
41
+ "@aws-sdk/util-base64-browser": "3.47.0",
42
+ "@aws-sdk/util-base64-node": "3.47.0",
43
+ "@aws-sdk/util-body-length-browser": "3.47.0",
44
+ "@aws-sdk/util-body-length-node": "3.47.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.47.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.47.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.47.0",
48
+ "@aws-sdk/util-user-agent-node": "3.47.0",
49
+ "@aws-sdk/util-utf8-browser": "3.47.0",
50
+ "@aws-sdk/util-utf8-node": "3.47.0",
52
51
  "tslib": "^2.3.0"
53
52
  },
54
53
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.38.0",
56
- "@types/node": "^12.7.5",
57
- "downlevel-dts": "0.7.0",
58
- "jest": "^26.1.0",
59
- "rimraf": "^3.0.0",
60
- "ts-jest": "^26.4.1",
61
- "typedoc": "^0.19.2",
62
- "typescript": "~4.3.5"
54
+ "@aws-sdk/service-client-documentation-generator": "3.47.0",
55
+ "@types/node": "^12.7.5"
63
56
  },
64
57
  "engines": {
65
- "node": ">=10.0.0"
58
+ "node": ">=12.0.0"
66
59
  },
67
60
  "typesVersions": {
68
61
  "<4.0": {