@aws-sdk/client-glacier 3.199.0 → 3.201.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.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * 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))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-glacier
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.199.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.198.0...v3.199.0) (2022-10-28)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-glacier
@@ -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: "glacier",
11
10
  };
12
11
  };
@@ -9,7 +9,7 @@ const models_0_1 = require("../models/models_0");
9
9
  const serializeAws_restJson1AbortMultipartUploadCommand = async (input, context) => {
10
10
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
11
  const headers = {};
12
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
12
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
13
13
  "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}";
14
14
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
15
15
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -29,7 +29,7 @@ exports.serializeAws_restJson1AbortMultipartUploadCommand = serializeAws_restJso
29
29
  const serializeAws_restJson1AbortVaultLockCommand = async (input, context) => {
30
30
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
31
  const headers = {};
32
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
32
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
33
33
  "/{accountId}/vaults/{vaultName}/lock-policy";
34
34
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
35
35
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -50,7 +50,7 @@ const serializeAws_restJson1AddTagsToVaultCommand = async (input, context) => {
50
50
  const headers = {
51
51
  "content-type": "application/json",
52
52
  };
53
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
53
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
54
54
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
55
55
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
56
56
  const query = map({
@@ -78,7 +78,7 @@ const serializeAws_restJson1CompleteMultipartUploadCommand = async (input, conte
78
78
  "x-amz-archive-size": input.archiveSize,
79
79
  "x-amz-sha256-tree-hash": input.checksum,
80
80
  });
81
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
81
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
82
82
  "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}";
83
83
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
84
84
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -98,7 +98,7 @@ exports.serializeAws_restJson1CompleteMultipartUploadCommand = serializeAws_rest
98
98
  const serializeAws_restJson1CompleteVaultLockCommand = async (input, context) => {
99
99
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
100
100
  const headers = {};
101
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
101
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
102
102
  "/{accountId}/vaults/{vaultName}/lock-policy/{lockId}";
103
103
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
104
104
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -118,7 +118,7 @@ exports.serializeAws_restJson1CompleteVaultLockCommand = serializeAws_restJson1C
118
118
  const serializeAws_restJson1CreateVaultCommand = async (input, context) => {
119
119
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
120
120
  const headers = {};
121
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
121
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
122
122
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
123
123
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
124
124
  let body;
@@ -136,7 +136,7 @@ exports.serializeAws_restJson1CreateVaultCommand = serializeAws_restJson1CreateV
136
136
  const serializeAws_restJson1DeleteArchiveCommand = async (input, context) => {
137
137
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
138
138
  const headers = {};
139
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
139
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
140
140
  "/{accountId}/vaults/{vaultName}/archives/{archiveId}";
141
141
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
142
142
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -156,7 +156,7 @@ exports.serializeAws_restJson1DeleteArchiveCommand = serializeAws_restJson1Delet
156
156
  const serializeAws_restJson1DeleteVaultCommand = async (input, context) => {
157
157
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
158
  const headers = {};
159
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
159
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
160
160
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
161
161
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
162
162
  let body;
@@ -174,7 +174,7 @@ exports.serializeAws_restJson1DeleteVaultCommand = serializeAws_restJson1DeleteV
174
174
  const serializeAws_restJson1DeleteVaultAccessPolicyCommand = async (input, context) => {
175
175
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
176
176
  const headers = {};
177
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
177
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
178
178
  "/{accountId}/vaults/{vaultName}/access-policy";
179
179
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
180
180
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -193,7 +193,7 @@ exports.serializeAws_restJson1DeleteVaultAccessPolicyCommand = serializeAws_rest
193
193
  const serializeAws_restJson1DeleteVaultNotificationsCommand = async (input, context) => {
194
194
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
195
195
  const headers = {};
196
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
196
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
197
197
  "/{accountId}/vaults/{vaultName}/notification-configuration";
198
198
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
199
199
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -212,7 +212,7 @@ exports.serializeAws_restJson1DeleteVaultNotificationsCommand = serializeAws_res
212
212
  const serializeAws_restJson1DescribeJobCommand = async (input, context) => {
213
213
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
214
  const headers = {};
215
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
215
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
216
216
  "/{accountId}/vaults/{vaultName}/jobs/{jobId}";
217
217
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
218
218
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -232,7 +232,7 @@ exports.serializeAws_restJson1DescribeJobCommand = serializeAws_restJson1Describ
232
232
  const serializeAws_restJson1DescribeVaultCommand = async (input, context) => {
233
233
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
234
  const headers = {};
235
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
235
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
236
236
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
237
237
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
238
238
  let body;
@@ -250,7 +250,7 @@ exports.serializeAws_restJson1DescribeVaultCommand = serializeAws_restJson1Descr
250
250
  const serializeAws_restJson1GetDataRetrievalPolicyCommand = async (input, context) => {
251
251
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
252
252
  const headers = {};
253
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/policies/data-retrieval";
253
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/policies/data-retrieval";
254
254
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
255
255
  let body;
256
256
  return new protocol_http_1.HttpRequest({
@@ -269,7 +269,7 @@ const serializeAws_restJson1GetJobOutputCommand = async (input, context) => {
269
269
  const headers = map({}, isSerializableHeaderValue, {
270
270
  range: input.range,
271
271
  });
272
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
272
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
273
273
  "/{accountId}/vaults/{vaultName}/jobs/{jobId}/output";
274
274
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
275
275
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -289,7 +289,7 @@ exports.serializeAws_restJson1GetJobOutputCommand = serializeAws_restJson1GetJob
289
289
  const serializeAws_restJson1GetVaultAccessPolicyCommand = async (input, context) => {
290
290
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
291
291
  const headers = {};
292
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
292
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
293
293
  "/{accountId}/vaults/{vaultName}/access-policy";
294
294
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
295
295
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -308,7 +308,7 @@ exports.serializeAws_restJson1GetVaultAccessPolicyCommand = serializeAws_restJso
308
308
  const serializeAws_restJson1GetVaultLockCommand = async (input, context) => {
309
309
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
310
310
  const headers = {};
311
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
311
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
312
312
  "/{accountId}/vaults/{vaultName}/lock-policy";
313
313
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
314
314
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -327,7 +327,7 @@ exports.serializeAws_restJson1GetVaultLockCommand = serializeAws_restJson1GetVau
327
327
  const serializeAws_restJson1GetVaultNotificationsCommand = async (input, context) => {
328
328
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
329
329
  const headers = {};
330
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
330
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
331
331
  "/{accountId}/vaults/{vaultName}/notification-configuration";
332
332
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
333
333
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -348,7 +348,7 @@ const serializeAws_restJson1InitiateJobCommand = async (input, context) => {
348
348
  const headers = {
349
349
  "content-type": "application/json",
350
350
  };
351
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/jobs";
351
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/jobs";
352
352
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
353
353
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
354
354
  let body;
@@ -376,7 +376,7 @@ const serializeAws_restJson1InitiateMultipartUploadCommand = async (input, conte
376
376
  "x-amz-archive-description": input.archiveDescription,
377
377
  "x-amz-part-size": input.partSize,
378
378
  });
379
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
379
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
380
380
  "/{accountId}/vaults/{vaultName}/multipart-uploads";
381
381
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
382
382
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -397,7 +397,7 @@ const serializeAws_restJson1InitiateVaultLockCommand = async (input, context) =>
397
397
  const headers = {
398
398
  "content-type": "application/json",
399
399
  };
400
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
400
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
401
401
  "/{accountId}/vaults/{vaultName}/lock-policy";
402
402
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
403
403
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -423,7 +423,7 @@ exports.serializeAws_restJson1InitiateVaultLockCommand = serializeAws_restJson1I
423
423
  const serializeAws_restJson1ListJobsCommand = async (input, context) => {
424
424
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
425
425
  const headers = {};
426
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/jobs";
426
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/jobs";
427
427
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
428
428
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
429
429
  const query = map({
@@ -448,7 +448,7 @@ exports.serializeAws_restJson1ListJobsCommand = serializeAws_restJson1ListJobsCo
448
448
  const serializeAws_restJson1ListMultipartUploadsCommand = async (input, context) => {
449
449
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
450
450
  const headers = {};
451
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
451
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
452
452
  "/{accountId}/vaults/{vaultName}/multipart-uploads";
453
453
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
454
454
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -472,7 +472,7 @@ exports.serializeAws_restJson1ListMultipartUploadsCommand = serializeAws_restJso
472
472
  const serializeAws_restJson1ListPartsCommand = async (input, context) => {
473
473
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
474
474
  const headers = {};
475
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
475
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
476
476
  "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}";
477
477
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
478
478
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -497,7 +497,7 @@ exports.serializeAws_restJson1ListPartsCommand = serializeAws_restJson1ListParts
497
497
  const serializeAws_restJson1ListProvisionedCapacityCommand = async (input, context) => {
498
498
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
499
499
  const headers = {};
500
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/provisioned-capacity";
500
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/provisioned-capacity";
501
501
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
502
502
  let body;
503
503
  return new protocol_http_1.HttpRequest({
@@ -514,7 +514,7 @@ exports.serializeAws_restJson1ListProvisionedCapacityCommand = serializeAws_rest
514
514
  const serializeAws_restJson1ListTagsForVaultCommand = async (input, context) => {
515
515
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
516
516
  const headers = {};
517
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
517
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
518
518
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
519
519
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
520
520
  let body;
@@ -532,7 +532,7 @@ exports.serializeAws_restJson1ListTagsForVaultCommand = serializeAws_restJson1Li
532
532
  const serializeAws_restJson1ListVaultsCommand = async (input, context) => {
533
533
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
534
534
  const headers = {};
535
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults";
535
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults";
536
536
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
537
537
  const query = map({
538
538
  marker: [, input.marker],
@@ -554,7 +554,7 @@ exports.serializeAws_restJson1ListVaultsCommand = serializeAws_restJson1ListVaul
554
554
  const serializeAws_restJson1PurchaseProvisionedCapacityCommand = async (input, context) => {
555
555
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
556
556
  const headers = {};
557
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/provisioned-capacity";
557
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/provisioned-capacity";
558
558
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
559
559
  let body;
560
560
  return new protocol_http_1.HttpRequest({
@@ -573,7 +573,7 @@ const serializeAws_restJson1RemoveTagsFromVaultCommand = async (input, context)
573
573
  const headers = {
574
574
  "content-type": "application/json",
575
575
  };
576
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
576
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
577
577
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
578
578
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
579
579
  const query = map({
@@ -600,7 +600,7 @@ const serializeAws_restJson1SetDataRetrievalPolicyCommand = async (input, contex
600
600
  const headers = {
601
601
  "content-type": "application/json",
602
602
  };
603
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/policies/data-retrieval";
603
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/policies/data-retrieval";
604
604
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
605
605
  let body;
606
606
  body = JSON.stringify({
@@ -622,7 +622,7 @@ const serializeAws_restJson1SetVaultAccessPolicyCommand = async (input, context)
622
622
  const headers = {
623
623
  "content-type": "application/json",
624
624
  };
625
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
625
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
626
626
  "/{accountId}/vaults/{vaultName}/access-policy";
627
627
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
628
628
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -650,7 +650,7 @@ const serializeAws_restJson1SetVaultNotificationsCommand = async (input, context
650
650
  const headers = {
651
651
  "content-type": "application/json",
652
652
  };
653
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
653
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
654
654
  "/{accountId}/vaults/{vaultName}/notification-configuration";
655
655
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
656
656
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -680,7 +680,7 @@ const serializeAws_restJson1UploadArchiveCommand = async (input, context) => {
680
680
  "x-amz-archive-description": input.archiveDescription,
681
681
  "x-amz-sha256-tree-hash": input.checksum,
682
682
  });
683
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/archives";
683
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/archives";
684
684
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
685
685
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
686
686
  let body;
@@ -705,7 +705,7 @@ const serializeAws_restJson1UploadMultipartPartCommand = async (input, context)
705
705
  "x-amz-sha256-tree-hash": input.checksum,
706
706
  "content-range": input.range,
707
707
  });
708
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
708
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
709
709
  "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}";
710
710
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
711
711
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
@@ -2837,15 +2837,12 @@ const deserializeAws_restJson1VaultNotificationConfig = (output, context) => {
2837
2837
  SNSTopic: (0, smithy_client_1.expectString)(output.SNSTopic),
2838
2838
  };
2839
2839
  };
2840
- const deserializeMetadata = (output) => {
2841
- var _a, _b;
2842
- return ({
2843
- httpStatusCode: output.statusCode,
2844
- 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"],
2845
- extendedRequestId: output.headers["x-amz-id-2"],
2846
- cfId: output.headers["x-amz-cf-id"],
2847
- });
2848
- };
2840
+ const deserializeMetadata = (output) => ({
2841
+ httpStatusCode: output.statusCode,
2842
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2843
+ extendedRequestId: output.headers["x-amz-id-2"],
2844
+ cfId: output.headers["x-amz-cf-id"],
2845
+ });
2849
2846
  const collectBody = (streamBody = new Uint8Array(), context) => {
2850
2847
  if (streamBody instanceof Uint8Array) {
2851
2848
  return Promise.resolve(streamBody);
@@ -2865,9 +2862,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
2865
2862
  return {};
2866
2863
  });
2867
2864
  const parseErrorBody = async (errorBody, context) => {
2868
- var _a;
2869
2865
  const value = await parseBody(errorBody, context);
2870
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
2866
+ value.message = value.message ?? value.Message;
2871
2867
  return value;
2872
2868
  };
2873
2869
  const loadRestJsonErrorCode = (output, data) => {
@@ -18,7 +18,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
20
20
  const getRuntimeConfig = (config) => {
21
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
22
21
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
23
22
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
23
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -27,23 +26,24 @@ const getRuntimeConfig = (config) => {
27
26
  ...config,
28
27
  runtime: "browser",
29
28
  defaultsMode,
30
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
31
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
32
- bodyChecksumGenerator: (_c = config === null || config === void 0 ? void 0 : config.bodyChecksumGenerator) !== null && _c !== void 0 ? _c : body_checksum_browser_1.bodyChecksumGenerator,
33
- bodyLengthChecker: (_d = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _d !== void 0 ? _d : util_body_length_browser_1.calculateBodyLength,
34
- credentialDefaultProvider: (_e = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _e !== void 0 ? _e : ((_) => () => Promise.reject(new Error("Credential is missing"))),
35
- defaultUserAgentProvider: (_f = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _f !== void 0 ? _f : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
36
- maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
37
- region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
38
- requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
39
- retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
40
- sdkStreamMixin: (_l = config === null || config === void 0 ? void 0 : config.sdkStreamMixin) !== null && _l !== void 0 ? _l : util_stream_browser_1.sdkStreamMixin,
41
- sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : sha256_browser_1.Sha256,
42
- streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : fetch_http_handler_1.streamCollector,
43
- useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
44
- useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
45
- utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : util_utf8_browser_1.fromUtf8,
46
- utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : util_utf8_browser_1.toUtf8,
29
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
30
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
31
+ bodyChecksumGenerator: config?.bodyChecksumGenerator ?? body_checksum_browser_1.bodyChecksumGenerator,
32
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
33
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
34
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
35
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
36
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
37
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
38
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
39
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
40
+ sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_browser_1.sdkStreamMixin,
41
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
42
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
43
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
44
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
45
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
46
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
47
47
  };
48
48
  };
49
49
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -21,7 +21,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
21
21
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
22
22
  const smithy_client_2 = require("@aws-sdk/smithy-client");
23
23
  const getRuntimeConfig = (config) => {
24
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
25
24
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
26
25
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
27
26
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -31,26 +30,28 @@ const getRuntimeConfig = (config) => {
31
30
  ...config,
32
31
  runtime: "node",
33
32
  defaultsMode,
34
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
35
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
36
- bodyChecksumGenerator: (_c = config === null || config === void 0 ? void 0 : config.bodyChecksumGenerator) !== null && _c !== void 0 ? _c : body_checksum_node_1.bodyChecksumGenerator,
37
- bodyLengthChecker: (_d = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _d !== void 0 ? _d : util_body_length_node_1.calculateBodyLength,
38
- credentialDefaultProvider: (_e = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _e !== void 0 ? _e : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
39
- defaultUserAgentProvider: (_f = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _f !== void 0 ? _f : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
40
- maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
41
- region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
42
- requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
43
- retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (0, node_config_provider_1.loadConfig)({
44
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
45
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
46
- }),
47
- sdkStreamMixin: (_l = config === null || config === void 0 ? void 0 : config.sdkStreamMixin) !== null && _l !== void 0 ? _l : util_stream_node_1.sdkStreamMixin,
48
- sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : hash_node_1.Hash.bind(null, "sha256"),
49
- streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : node_http_handler_1.streamCollector,
50
- useDualstackEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _p !== void 0 ? _p : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
51
- useFipsEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _q !== void 0 ? _q : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
52
- utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.fromUtf8,
53
- utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : util_utf8_node_1.toUtf8,
33
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
34
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
35
+ bodyChecksumGenerator: config?.bodyChecksumGenerator ?? body_checksum_node_1.bodyChecksumGenerator,
36
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
37
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
38
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
39
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
40
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
41
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
42
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
43
+ retryMode: config?.retryMode ??
44
+ (0, node_config_provider_1.loadConfig)({
45
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
46
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
47
+ }),
48
+ sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_node_1.sdkStreamMixin,
49
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
50
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
51
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
52
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
53
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
54
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
54
55
  };
55
56
  };
56
57
  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: "2012-06-01",
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 : "Glacier",
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: "2012-06-01",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "Glacier",
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-glacier",
3
3
  "description": "AWS SDK for JavaScript Glacier Client for Node.js, Browser and React Native",
4
- "version": "3.199.0",
4
+ "version": "3.201.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,50 +19,50 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/body-checksum-browser": "3.199.0",
23
- "@aws-sdk/body-checksum-node": "3.199.0",
24
- "@aws-sdk/client-sts": "3.199.0",
25
- "@aws-sdk/config-resolver": "3.198.0",
26
- "@aws-sdk/credential-provider-node": "3.199.0",
27
- "@aws-sdk/fetch-http-handler": "3.199.0",
28
- "@aws-sdk/hash-node": "3.198.0",
29
- "@aws-sdk/invalid-dependency": "3.198.0",
30
- "@aws-sdk/middleware-content-length": "3.199.0",
31
- "@aws-sdk/middleware-endpoint": "3.198.0",
32
- "@aws-sdk/middleware-host-header": "3.198.0",
33
- "@aws-sdk/middleware-logger": "3.198.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.198.0",
35
- "@aws-sdk/middleware-retry": "3.198.0",
36
- "@aws-sdk/middleware-sdk-glacier": "3.198.0",
37
- "@aws-sdk/middleware-serde": "3.198.0",
38
- "@aws-sdk/middleware-signing": "3.198.0",
39
- "@aws-sdk/middleware-stack": "3.198.0",
40
- "@aws-sdk/middleware-user-agent": "3.198.0",
41
- "@aws-sdk/node-config-provider": "3.198.0",
42
- "@aws-sdk/node-http-handler": "3.199.0",
43
- "@aws-sdk/protocol-http": "3.198.0",
44
- "@aws-sdk/smithy-client": "3.198.0",
45
- "@aws-sdk/types": "3.198.0",
46
- "@aws-sdk/url-parser": "3.198.0",
22
+ "@aws-sdk/body-checksum-browser": "3.201.0",
23
+ "@aws-sdk/body-checksum-node": "3.201.0",
24
+ "@aws-sdk/client-sts": "3.201.0",
25
+ "@aws-sdk/config-resolver": "3.201.0",
26
+ "@aws-sdk/credential-provider-node": "3.201.0",
27
+ "@aws-sdk/fetch-http-handler": "3.201.0",
28
+ "@aws-sdk/hash-node": "3.201.0",
29
+ "@aws-sdk/invalid-dependency": "3.201.0",
30
+ "@aws-sdk/middleware-content-length": "3.201.0",
31
+ "@aws-sdk/middleware-endpoint": "3.201.0",
32
+ "@aws-sdk/middleware-host-header": "3.201.0",
33
+ "@aws-sdk/middleware-logger": "3.201.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.201.0",
35
+ "@aws-sdk/middleware-retry": "3.201.0",
36
+ "@aws-sdk/middleware-sdk-glacier": "3.201.0",
37
+ "@aws-sdk/middleware-serde": "3.201.0",
38
+ "@aws-sdk/middleware-signing": "3.201.0",
39
+ "@aws-sdk/middleware-stack": "3.201.0",
40
+ "@aws-sdk/middleware-user-agent": "3.201.0",
41
+ "@aws-sdk/node-config-provider": "3.201.0",
42
+ "@aws-sdk/node-http-handler": "3.201.0",
43
+ "@aws-sdk/protocol-http": "3.201.0",
44
+ "@aws-sdk/smithy-client": "3.201.0",
45
+ "@aws-sdk/types": "3.201.0",
46
+ "@aws-sdk/url-parser": "3.201.0",
47
47
  "@aws-sdk/util-base64-browser": "3.188.0",
48
- "@aws-sdk/util-base64-node": "3.188.0",
48
+ "@aws-sdk/util-base64-node": "3.201.0",
49
49
  "@aws-sdk/util-body-length-browser": "3.188.0",
50
- "@aws-sdk/util-body-length-node": "3.188.0",
51
- "@aws-sdk/util-defaults-mode-browser": "3.198.0",
52
- "@aws-sdk/util-defaults-mode-node": "3.198.0",
53
- "@aws-sdk/util-endpoints": "3.198.0",
54
- "@aws-sdk/util-stream-browser": "3.199.0",
55
- "@aws-sdk/util-stream-node": "3.199.0",
56
- "@aws-sdk/util-user-agent-browser": "3.198.0",
57
- "@aws-sdk/util-user-agent-node": "3.198.0",
50
+ "@aws-sdk/util-body-length-node": "3.201.0",
51
+ "@aws-sdk/util-defaults-mode-browser": "3.201.0",
52
+ "@aws-sdk/util-defaults-mode-node": "3.201.0",
53
+ "@aws-sdk/util-endpoints": "3.201.0",
54
+ "@aws-sdk/util-stream-browser": "3.201.0",
55
+ "@aws-sdk/util-stream-node": "3.201.0",
56
+ "@aws-sdk/util-user-agent-browser": "3.201.0",
57
+ "@aws-sdk/util-user-agent-node": "3.201.0",
58
58
  "@aws-sdk/util-utf8-browser": "3.188.0",
59
- "@aws-sdk/util-utf8-node": "3.199.0",
60
- "@aws-sdk/util-waiter": "3.198.0",
59
+ "@aws-sdk/util-utf8-node": "3.201.0",
60
+ "@aws-sdk/util-waiter": "3.201.0",
61
61
  "tslib": "^2.3.1"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
65
- "@tsconfig/recommended": "1.0.1",
65
+ "@tsconfig/node14": "1.0.3",
66
66
  "@types/node": "^12.7.5",
67
67
  "concurrently": "7.0.0",
68
68
  "downlevel-dts": "0.10.1",
@@ -76,7 +76,7 @@
76
76
  }
77
77
  },
78
78
  "engines": {
79
- "node": ">=12.0.0"
79
+ "node": ">=14.0.0"
80
80
  },
81
81
  "typesVersions": {
82
82
  "<4.0": {