@aws-sdk/client-m2 3.200.0 → 3.202.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,25 @@
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.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-m2
9
+
10
+
11
+
12
+
13
+
14
+ # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
15
+
16
+
17
+ ### Features
18
+
19
+ * end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-m2
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
- var _a, _b;
6
5
  return {
7
6
  ...options,
8
- useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
9
- useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
10
9
  defaultSigningName: "m2",
11
10
  };
12
11
  };
@@ -10,7 +10,7 @@ const models_0_1 = require("../models/models_0");
10
10
  const serializeAws_restJson1CancelBatchJobExecutionCommand = async (input, context) => {
11
11
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
12
  const headers = {};
13
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
13
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
14
14
  "/applications/{applicationId}/batch-job-executions/{executionId}/cancel";
15
15
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
16
16
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "executionId", () => input.executionId, "{executionId}", false);
@@ -27,15 +27,14 @@ const serializeAws_restJson1CancelBatchJobExecutionCommand = async (input, conte
27
27
  };
28
28
  exports.serializeAws_restJson1CancelBatchJobExecutionCommand = serializeAws_restJson1CancelBatchJobExecutionCommand;
29
29
  const serializeAws_restJson1CreateApplicationCommand = async (input, context) => {
30
- var _a;
31
30
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
32
31
  const headers = {
33
32
  "content-type": "application/json",
34
33
  };
35
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
34
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
36
35
  let body;
37
36
  body = JSON.stringify({
38
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
37
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
39
38
  ...(input.definition != null && { definition: serializeAws_restJson1Definition(input.definition, context) }),
40
39
  ...(input.description != null && { description: input.description }),
41
40
  ...(input.engineType != null && { engineType: input.engineType }),
@@ -54,17 +53,16 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
54
53
  };
55
54
  exports.serializeAws_restJson1CreateApplicationCommand = serializeAws_restJson1CreateApplicationCommand;
56
55
  const serializeAws_restJson1CreateDataSetImportTaskCommand = async (input, context) => {
57
- var _a;
58
56
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
57
  const headers = {
60
58
  "content-type": "application/json",
61
59
  };
62
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
60
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
63
61
  "/applications/{applicationId}/dataset-import-task";
64
62
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
65
63
  let body;
66
64
  body = JSON.stringify({
67
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
65
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
68
66
  ...(input.importConfig != null && {
69
67
  importConfig: serializeAws_restJson1DataSetImportConfig(input.importConfig, context),
70
68
  }),
@@ -81,17 +79,16 @@ const serializeAws_restJson1CreateDataSetImportTaskCommand = async (input, conte
81
79
  };
82
80
  exports.serializeAws_restJson1CreateDataSetImportTaskCommand = serializeAws_restJson1CreateDataSetImportTaskCommand;
83
81
  const serializeAws_restJson1CreateDeploymentCommand = async (input, context) => {
84
- var _a;
85
82
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
86
83
  const headers = {
87
84
  "content-type": "application/json",
88
85
  };
89
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/deployments";
86
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/deployments";
90
87
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
91
88
  let body;
92
89
  body = JSON.stringify({
93
90
  ...(input.applicationVersion != null && { applicationVersion: input.applicationVersion }),
94
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
91
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
95
92
  ...(input.environmentId != null && { environmentId: input.environmentId }),
96
93
  });
97
94
  return new protocol_http_1.HttpRequest({
@@ -106,15 +103,14 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
106
103
  };
107
104
  exports.serializeAws_restJson1CreateDeploymentCommand = serializeAws_restJson1CreateDeploymentCommand;
108
105
  const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) => {
109
- var _a;
110
106
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
107
  const headers = {
112
108
  "content-type": "application/json",
113
109
  };
114
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
110
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
115
111
  let body;
116
112
  body = JSON.stringify({
117
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
113
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
118
114
  ...(input.description != null && { description: input.description }),
119
115
  ...(input.engineType != null && { engineType: input.engineType }),
120
116
  ...(input.engineVersion != null && { engineVersion: input.engineVersion }),
@@ -148,7 +144,7 @@ exports.serializeAws_restJson1CreateEnvironmentCommand = serializeAws_restJson1C
148
144
  const serializeAws_restJson1DeleteApplicationCommand = async (input, context) => {
149
145
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
150
146
  const headers = {};
151
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
147
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
152
148
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
153
149
  let body;
154
150
  return new protocol_http_1.HttpRequest({
@@ -165,7 +161,7 @@ exports.serializeAws_restJson1DeleteApplicationCommand = serializeAws_restJson1D
165
161
  const serializeAws_restJson1DeleteApplicationFromEnvironmentCommand = async (input, context) => {
166
162
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
167
163
  const headers = {};
168
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
164
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
169
165
  "/applications/{applicationId}/environment/{environmentId}";
170
166
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
171
167
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
@@ -184,7 +180,7 @@ exports.serializeAws_restJson1DeleteApplicationFromEnvironmentCommand = serializ
184
180
  const serializeAws_restJson1DeleteEnvironmentCommand = async (input, context) => {
185
181
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
186
182
  const headers = {};
187
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{environmentId}";
183
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{environmentId}";
188
184
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
189
185
  let body;
190
186
  return new protocol_http_1.HttpRequest({
@@ -201,7 +197,7 @@ exports.serializeAws_restJson1DeleteEnvironmentCommand = serializeAws_restJson1D
201
197
  const serializeAws_restJson1GetApplicationCommand = async (input, context) => {
202
198
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
203
199
  const headers = {};
204
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
200
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
205
201
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
206
202
  let body;
207
203
  return new protocol_http_1.HttpRequest({
@@ -218,7 +214,7 @@ exports.serializeAws_restJson1GetApplicationCommand = serializeAws_restJson1GetA
218
214
  const serializeAws_restJson1GetApplicationVersionCommand = async (input, context) => {
219
215
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
220
216
  const headers = {};
221
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
217
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
222
218
  "/applications/{applicationId}/versions/{applicationVersion}";
223
219
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
224
220
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationVersion", () => input.applicationVersion.toString(), "{applicationVersion}", false);
@@ -237,7 +233,7 @@ exports.serializeAws_restJson1GetApplicationVersionCommand = serializeAws_restJs
237
233
  const serializeAws_restJson1GetBatchJobExecutionCommand = async (input, context) => {
238
234
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
239
235
  const headers = {};
240
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
236
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
241
237
  "/applications/{applicationId}/batch-job-executions/{executionId}";
242
238
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
243
239
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "executionId", () => input.executionId, "{executionId}", false);
@@ -256,7 +252,7 @@ exports.serializeAws_restJson1GetBatchJobExecutionCommand = serializeAws_restJso
256
252
  const serializeAws_restJson1GetDataSetDetailsCommand = async (input, context) => {
257
253
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
258
254
  const headers = {};
259
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
255
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
260
256
  "/applications/{applicationId}/datasets/{dataSetName}";
261
257
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
262
258
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataSetName", () => input.dataSetName, "{dataSetName}", false);
@@ -275,7 +271,7 @@ exports.serializeAws_restJson1GetDataSetDetailsCommand = serializeAws_restJson1G
275
271
  const serializeAws_restJson1GetDataSetImportTaskCommand = async (input, context) => {
276
272
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
273
  const headers = {};
278
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
274
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
279
275
  "/applications/{applicationId}/dataset-import-tasks/{taskId}";
280
276
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
281
277
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "taskId", () => input.taskId, "{taskId}", false);
@@ -294,7 +290,7 @@ exports.serializeAws_restJson1GetDataSetImportTaskCommand = serializeAws_restJso
294
290
  const serializeAws_restJson1GetDeploymentCommand = async (input, context) => {
295
291
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
296
292
  const headers = {};
297
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
293
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
298
294
  "/applications/{applicationId}/deployments/{deploymentId}";
299
295
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "deploymentId", () => input.deploymentId, "{deploymentId}", false);
300
296
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
@@ -313,7 +309,7 @@ exports.serializeAws_restJson1GetDeploymentCommand = serializeAws_restJson1GetDe
313
309
  const serializeAws_restJson1GetEnvironmentCommand = async (input, context) => {
314
310
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
315
311
  const headers = {};
316
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{environmentId}";
312
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{environmentId}";
317
313
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
318
314
  let body;
319
315
  return new protocol_http_1.HttpRequest({
@@ -330,7 +326,7 @@ exports.serializeAws_restJson1GetEnvironmentCommand = serializeAws_restJson1GetE
330
326
  const serializeAws_restJson1ListApplicationsCommand = async (input, context) => {
331
327
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
332
328
  const headers = {};
333
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
329
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
334
330
  const query = map({
335
331
  nextToken: [, input.nextToken],
336
332
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -353,7 +349,7 @@ exports.serializeAws_restJson1ListApplicationsCommand = serializeAws_restJson1Li
353
349
  const serializeAws_restJson1ListApplicationVersionsCommand = async (input, context) => {
354
350
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
355
351
  const headers = {};
356
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/versions";
352
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/versions";
357
353
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
358
354
  const query = map({
359
355
  nextToken: [, input.nextToken],
@@ -375,7 +371,7 @@ exports.serializeAws_restJson1ListApplicationVersionsCommand = serializeAws_rest
375
371
  const serializeAws_restJson1ListBatchJobDefinitionsCommand = async (input, context) => {
376
372
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
377
373
  const headers = {};
378
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
374
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
379
375
  "/applications/{applicationId}/batch-job-definitions";
380
376
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
381
377
  const query = map({
@@ -399,7 +395,7 @@ exports.serializeAws_restJson1ListBatchJobDefinitionsCommand = serializeAws_rest
399
395
  const serializeAws_restJson1ListBatchJobExecutionsCommand = async (input, context) => {
400
396
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
401
397
  const headers = {};
402
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
398
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
403
399
  "/applications/{applicationId}/batch-job-executions";
404
400
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
405
401
  const query = map({
@@ -436,7 +432,7 @@ exports.serializeAws_restJson1ListBatchJobExecutionsCommand = serializeAws_restJ
436
432
  const serializeAws_restJson1ListDataSetImportHistoryCommand = async (input, context) => {
437
433
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
438
434
  const headers = {};
439
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
435
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
440
436
  "/applications/{applicationId}/dataset-import-tasks";
441
437
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
442
438
  const query = map({
@@ -459,7 +455,7 @@ exports.serializeAws_restJson1ListDataSetImportHistoryCommand = serializeAws_res
459
455
  const serializeAws_restJson1ListDataSetsCommand = async (input, context) => {
460
456
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
461
457
  const headers = {};
462
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/datasets";
458
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/datasets";
463
459
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
464
460
  const query = map({
465
461
  nextToken: [, input.nextToken],
@@ -482,7 +478,7 @@ exports.serializeAws_restJson1ListDataSetsCommand = serializeAws_restJson1ListDa
482
478
  const serializeAws_restJson1ListDeploymentsCommand = async (input, context) => {
483
479
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
484
480
  const headers = {};
485
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/deployments";
481
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/deployments";
486
482
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
487
483
  const query = map({
488
484
  nextToken: [, input.nextToken],
@@ -504,7 +500,7 @@ exports.serializeAws_restJson1ListDeploymentsCommand = serializeAws_restJson1Lis
504
500
  const serializeAws_restJson1ListEngineVersionsCommand = async (input, context) => {
505
501
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
506
502
  const headers = {};
507
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/engine-versions";
503
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/engine-versions";
508
504
  const query = map({
509
505
  engineType: [, input.engineType],
510
506
  nextToken: [, input.nextToken],
@@ -526,7 +522,7 @@ exports.serializeAws_restJson1ListEngineVersionsCommand = serializeAws_restJson1
526
522
  const serializeAws_restJson1ListEnvironmentsCommand = async (input, context) => {
527
523
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
528
524
  const headers = {};
529
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
525
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
530
526
  const query = map({
531
527
  nextToken: [, input.nextToken],
532
528
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -549,7 +545,7 @@ exports.serializeAws_restJson1ListEnvironmentsCommand = serializeAws_restJson1Li
549
545
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
550
546
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
551
547
  const headers = {};
552
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
548
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
553
549
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
554
550
  let body;
555
551
  return new protocol_http_1.HttpRequest({
@@ -566,7 +562,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
566
562
  const serializeAws_restJson1StartApplicationCommand = async (input, context) => {
567
563
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
568
564
  const headers = {};
569
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/start";
565
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/start";
570
566
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
571
567
  let body;
572
568
  return new protocol_http_1.HttpRequest({
@@ -585,7 +581,7 @@ const serializeAws_restJson1StartBatchJobCommand = async (input, context) => {
585
581
  const headers = {
586
582
  "content-type": "application/json",
587
583
  };
588
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/batch-job";
584
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/batch-job";
589
585
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
590
586
  let body;
591
587
  body = JSON.stringify({
@@ -612,7 +608,7 @@ const serializeAws_restJson1StopApplicationCommand = async (input, context) => {
612
608
  const headers = {
613
609
  "content-type": "application/json",
614
610
  };
615
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/stop";
611
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/stop";
616
612
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
617
613
  let body;
618
614
  body = JSON.stringify({
@@ -634,7 +630,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
634
630
  const headers = {
635
631
  "content-type": "application/json",
636
632
  };
637
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
633
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
638
634
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
639
635
  let body;
640
636
  body = JSON.stringify({
@@ -654,7 +650,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
654
650
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
655
651
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
656
652
  const headers = {};
657
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
653
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
658
654
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
659
655
  const query = map({
660
656
  tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
@@ -677,7 +673,7 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
677
673
  const headers = {
678
674
  "content-type": "application/json",
679
675
  };
680
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
676
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
681
677
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
682
678
  let body;
683
679
  body = JSON.stringify({
@@ -701,7 +697,7 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
701
697
  const headers = {
702
698
  "content-type": "application/json",
703
699
  };
704
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{environmentId}";
700
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{environmentId}";
705
701
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
706
702
  let body;
707
703
  body = JSON.stringify({
@@ -3180,15 +3176,12 @@ const deserializeAws_restJson1VsamDetailAttributes = (output, context) => {
3180
3176
  recordFormat: (0, smithy_client_1.expectString)(output.recordFormat),
3181
3177
  };
3182
3178
  };
3183
- const deserializeMetadata = (output) => {
3184
- var _a, _b;
3185
- return ({
3186
- httpStatusCode: output.statusCode,
3187
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
3188
- extendedRequestId: output.headers["x-amz-id-2"],
3189
- cfId: output.headers["x-amz-cf-id"],
3190
- });
3191
- };
3179
+ const deserializeMetadata = (output) => ({
3180
+ httpStatusCode: output.statusCode,
3181
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3182
+ extendedRequestId: output.headers["x-amz-id-2"],
3183
+ cfId: output.headers["x-amz-cf-id"],
3184
+ });
3192
3185
  const collectBody = (streamBody = new Uint8Array(), context) => {
3193
3186
  if (streamBody instanceof Uint8Array) {
3194
3187
  return Promise.resolve(streamBody);
@@ -3208,9 +3201,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
3208
3201
  return {};
3209
3202
  });
3210
3203
  const parseErrorBody = async (errorBody, context) => {
3211
- var _a;
3212
3204
  const value = await parseBody(errorBody, context);
3213
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
3205
+ value.message = value.message ?? value.Message;
3214
3206
  return value;
3215
3207
  };
3216
3208
  const loadRestJsonErrorCode = (output, data) => {
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
16
  const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
19
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
20
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
21
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
25
24
  ...config,
26
25
  runtime: "browser",
27
26
  defaultsMode,
28
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
29
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
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),
37
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
38
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
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)),
40
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
42
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
27
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
38
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
42
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
43
43
  };
44
44
  };
45
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const smithy_client_2 = require("@aws-sdk/smithy-client");
21
21
  const getRuntimeConfig = (config) => {
22
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
22
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
24
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
29
28
  ...config,
30
29
  runtime: "node",
31
30
  defaultsMode,
32
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
35
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
36
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
41
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
- }),
44
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
45
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
46
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
49
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
31
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: config?.retryMode ??
41
+ (0, node_config_provider_1.loadConfig)({
42
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
43
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
44
+ }),
45
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
46
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
49
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
50
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
50
51
  };
51
52
  };
52
53
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
- var _a;
8
7
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
8
  return {
10
9
  ...browserDefaults,
11
10
  ...config,
12
11
  runtime: "react-native",
13
- sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
14
13
  };
15
14
  };
16
15
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
- const getRuntimeConfig = (config) => {
7
- var _a, _b, _c, _d, _e;
8
- return ({
9
- apiVersion: "2021-04-28",
10
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "m2",
14
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
- });
16
- };
6
+ const getRuntimeConfig = (config) => ({
7
+ apiVersion: "2021-04-28",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "m2",
12
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
13
+ });
17
14
  exports.getRuntimeConfig = getRuntimeConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-m2",
3
3
  "description": "AWS SDK for JavaScript M2 Client for Node.js, Browser and React Native",
4
- "version": "3.200.0",
4
+ "version": "3.202.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",
@@ -19,45 +19,45 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.200.0",
23
- "@aws-sdk/config-resolver": "3.200.0",
24
- "@aws-sdk/credential-provider-node": "3.200.0",
25
- "@aws-sdk/fetch-http-handler": "3.200.0",
26
- "@aws-sdk/hash-node": "3.200.0",
27
- "@aws-sdk/invalid-dependency": "3.200.0",
28
- "@aws-sdk/middleware-content-length": "3.200.0",
29
- "@aws-sdk/middleware-endpoint": "3.200.0",
30
- "@aws-sdk/middleware-host-header": "3.200.0",
31
- "@aws-sdk/middleware-logger": "3.200.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.200.0",
33
- "@aws-sdk/middleware-retry": "3.200.0",
34
- "@aws-sdk/middleware-serde": "3.200.0",
35
- "@aws-sdk/middleware-signing": "3.200.0",
36
- "@aws-sdk/middleware-stack": "3.200.0",
37
- "@aws-sdk/middleware-user-agent": "3.200.0",
38
- "@aws-sdk/node-config-provider": "3.200.0",
39
- "@aws-sdk/node-http-handler": "3.200.0",
40
- "@aws-sdk/protocol-http": "3.200.0",
41
- "@aws-sdk/smithy-client": "3.200.0",
42
- "@aws-sdk/types": "3.200.0",
43
- "@aws-sdk/url-parser": "3.200.0",
22
+ "@aws-sdk/client-sts": "3.202.0",
23
+ "@aws-sdk/config-resolver": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.202.0",
25
+ "@aws-sdk/fetch-http-handler": "3.201.0",
26
+ "@aws-sdk/hash-node": "3.201.0",
27
+ "@aws-sdk/invalid-dependency": "3.201.0",
28
+ "@aws-sdk/middleware-content-length": "3.201.0",
29
+ "@aws-sdk/middleware-endpoint": "3.201.0",
30
+ "@aws-sdk/middleware-host-header": "3.201.0",
31
+ "@aws-sdk/middleware-logger": "3.201.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.201.0",
33
+ "@aws-sdk/middleware-retry": "3.201.0",
34
+ "@aws-sdk/middleware-serde": "3.201.0",
35
+ "@aws-sdk/middleware-signing": "3.201.0",
36
+ "@aws-sdk/middleware-stack": "3.201.0",
37
+ "@aws-sdk/middleware-user-agent": "3.201.0",
38
+ "@aws-sdk/node-config-provider": "3.201.0",
39
+ "@aws-sdk/node-http-handler": "3.201.0",
40
+ "@aws-sdk/protocol-http": "3.201.0",
41
+ "@aws-sdk/smithy-client": "3.201.0",
42
+ "@aws-sdk/types": "3.201.0",
43
+ "@aws-sdk/url-parser": "3.201.0",
44
44
  "@aws-sdk/util-base64-browser": "3.188.0",
45
- "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-base64-node": "3.201.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
- "@aws-sdk/util-body-length-node": "3.188.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.200.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.200.0",
50
- "@aws-sdk/util-endpoints": "3.200.0",
51
- "@aws-sdk/util-user-agent-browser": "3.200.0",
52
- "@aws-sdk/util-user-agent-node": "3.200.0",
47
+ "@aws-sdk/util-body-length-node": "3.201.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.202.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.201.0",
52
+ "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
- "@aws-sdk/util-utf8-node": "3.199.0",
54
+ "@aws-sdk/util-utf8-node": "3.201.0",
55
55
  "tslib": "^2.3.1",
56
56
  "uuid": "^8.3.2"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
60
- "@tsconfig/recommended": "1.0.1",
60
+ "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^12.7.5",
62
62
  "@types/uuid": "^8.3.0",
63
63
  "concurrently": "7.0.0",
@@ -72,7 +72,7 @@
72
72
  }
73
73
  },
74
74
  "engines": {
75
- "node": ">=12.0.0"
75
+ "node": ">=14.0.0"
76
76
  },
77
77
  "typesVersions": {
78
78
  "<4.0": {