@aws-sdk/client-elasticsearch-service 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-elasticsearch-service
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-elasticsearch-service
@@ -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: "es",
11
10
  };
12
11
  };
@@ -9,7 +9,7 @@ const models_0_1 = require("../models/models_0");
9
9
  const serializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand = 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
  "/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}/accept";
14
14
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId, "{CrossClusterSearchConnectionId}", false);
15
15
  let body;
@@ -29,7 +29,7 @@ const serializeAws_restJson1AddTagsCommand = async (input, context) => {
29
29
  const headers = {
30
30
  "content-type": "application/json",
31
31
  };
32
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags";
32
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags";
33
33
  let body;
34
34
  body = JSON.stringify({
35
35
  ...(input.ARN != null && { ARN: input.ARN }),
@@ -49,7 +49,7 @@ exports.serializeAws_restJson1AddTagsCommand = serializeAws_restJson1AddTagsComm
49
49
  const serializeAws_restJson1AssociatePackageCommand = async (input, context) => {
50
50
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
51
51
  const headers = {};
52
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
52
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
53
53
  "/2015-01-01/packages/associate/{PackageID}/{DomainName}";
54
54
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PackageID", () => input.PackageID, "{PackageID}", false);
55
55
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
@@ -70,7 +70,7 @@ const serializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand = as
70
70
  const headers = {
71
71
  "content-type": "application/json",
72
72
  };
73
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
73
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
74
74
  "/2015-01-01/es/serviceSoftwareUpdate/cancel";
75
75
  let body;
76
76
  body = JSON.stringify({
@@ -92,7 +92,7 @@ const serializeAws_restJson1CreateElasticsearchDomainCommand = async (input, con
92
92
  const headers = {
93
93
  "content-type": "application/json",
94
94
  };
95
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain";
95
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain";
96
96
  let body;
97
97
  body = JSON.stringify({
98
98
  ...(input.AccessPolicies != null && { AccessPolicies: input.AccessPolicies }),
@@ -148,7 +148,7 @@ const serializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand =
148
148
  const headers = {
149
149
  "content-type": "application/json",
150
150
  };
151
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/ccs/outboundConnection";
151
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/ccs/outboundConnection";
152
152
  let body;
153
153
  body = JSON.stringify({
154
154
  ...(input.ConnectionAlias != null && { ConnectionAlias: input.ConnectionAlias }),
@@ -175,7 +175,7 @@ const serializeAws_restJson1CreatePackageCommand = async (input, context) => {
175
175
  const headers = {
176
176
  "content-type": "application/json",
177
177
  };
178
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages";
178
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages";
179
179
  let body;
180
180
  body = JSON.stringify({
181
181
  ...(input.PackageDescription != null && { PackageDescription: input.PackageDescription }),
@@ -199,7 +199,7 @@ exports.serializeAws_restJson1CreatePackageCommand = serializeAws_restJson1Creat
199
199
  const serializeAws_restJson1DeleteElasticsearchDomainCommand = async (input, context) => {
200
200
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
201
201
  const headers = {};
202
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}";
202
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}";
203
203
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
204
204
  let body;
205
205
  return new protocol_http_1.HttpRequest({
@@ -218,7 +218,7 @@ const serializeAws_restJson1DeleteElasticsearchServiceRoleCommand = async (input
218
218
  const headers = {
219
219
  "content-type": "application/json",
220
220
  };
221
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/role";
221
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/role";
222
222
  let body;
223
223
  body = "";
224
224
  return new protocol_http_1.HttpRequest({
@@ -235,7 +235,7 @@ exports.serializeAws_restJson1DeleteElasticsearchServiceRoleCommand = serializeA
235
235
  const serializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand = async (input, context) => {
236
236
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
237
237
  const headers = {};
238
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
238
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
239
239
  "/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}";
240
240
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId, "{CrossClusterSearchConnectionId}", false);
241
241
  let body;
@@ -253,7 +253,7 @@ exports.serializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand =
253
253
  const serializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand = async (input, context) => {
254
254
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
255
255
  const headers = {};
256
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
256
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
257
257
  "/2015-01-01/es/ccs/outboundConnection/{CrossClusterSearchConnectionId}";
258
258
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId, "{CrossClusterSearchConnectionId}", false);
259
259
  let body;
@@ -271,7 +271,7 @@ exports.serializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand
271
271
  const serializeAws_restJson1DeletePackageCommand = async (input, context) => {
272
272
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
273
273
  const headers = {};
274
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}";
274
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}";
275
275
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PackageID", () => input.PackageID, "{PackageID}", false);
276
276
  let body;
277
277
  return new protocol_http_1.HttpRequest({
@@ -290,7 +290,7 @@ const serializeAws_restJson1DescribeDomainAutoTunesCommand = async (input, conte
290
290
  const headers = {
291
291
  "content-type": "application/json",
292
292
  };
293
- 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 || ""}` +
294
294
  "/2015-01-01/es/domain/{DomainName}/autoTunes";
295
295
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
296
296
  let body;
@@ -312,7 +312,7 @@ exports.serializeAws_restJson1DescribeDomainAutoTunesCommand = serializeAws_rest
312
312
  const serializeAws_restJson1DescribeDomainChangeProgressCommand = async (input, context) => {
313
313
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
314
314
  const headers = {};
315
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
315
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
316
316
  "/2015-01-01/es/domain/{DomainName}/progress";
317
317
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
318
318
  const query = map({
@@ -334,7 +334,7 @@ exports.serializeAws_restJson1DescribeDomainChangeProgressCommand = serializeAws
334
334
  const serializeAws_restJson1DescribeElasticsearchDomainCommand = async (input, context) => {
335
335
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
336
336
  const headers = {};
337
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}";
337
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}";
338
338
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
339
339
  let body;
340
340
  return new protocol_http_1.HttpRequest({
@@ -351,7 +351,7 @@ exports.serializeAws_restJson1DescribeElasticsearchDomainCommand = serializeAws_
351
351
  const serializeAws_restJson1DescribeElasticsearchDomainConfigCommand = async (input, context) => {
352
352
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
353
353
  const headers = {};
354
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}/config";
354
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}/config";
355
355
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
356
356
  let body;
357
357
  return new protocol_http_1.HttpRequest({
@@ -370,7 +370,7 @@ const serializeAws_restJson1DescribeElasticsearchDomainsCommand = async (input,
370
370
  const headers = {
371
371
  "content-type": "application/json",
372
372
  };
373
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain-info";
373
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain-info";
374
374
  let body;
375
375
  body = JSON.stringify({
376
376
  ...(input.DomainNames != null && { DomainNames: serializeAws_restJson1DomainNameList(input.DomainNames, context) }),
@@ -389,7 +389,7 @@ exports.serializeAws_restJson1DescribeElasticsearchDomainsCommand = serializeAws
389
389
  const serializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = async (input, context) => {
390
390
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
391
391
  const headers = {};
392
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
392
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
393
393
  "/2015-01-01/es/instanceTypeLimits/{ElasticsearchVersion}/{InstanceType}";
394
394
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceType", () => input.InstanceType, "{InstanceType}", false);
395
395
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ElasticsearchVersion", () => input.ElasticsearchVersion, "{ElasticsearchVersion}", false);
@@ -414,7 +414,7 @@ const serializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommand
414
414
  const headers = {
415
415
  "content-type": "application/json",
416
416
  };
417
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
417
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
418
418
  "/2015-01-01/es/ccs/inboundConnection/search";
419
419
  let body;
420
420
  body = JSON.stringify({
@@ -438,7 +438,7 @@ const serializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommand
438
438
  const headers = {
439
439
  "content-type": "application/json",
440
440
  };
441
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
441
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
442
442
  "/2015-01-01/es/ccs/outboundConnection/search";
443
443
  let body;
444
444
  body = JSON.stringify({
@@ -462,7 +462,7 @@ const serializeAws_restJson1DescribePackagesCommand = async (input, context) =>
462
462
  const headers = {
463
463
  "content-type": "application/json",
464
464
  };
465
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/describe";
465
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/describe";
466
466
  let body;
467
467
  body = JSON.stringify({
468
468
  ...(input.Filters != null && { Filters: serializeAws_restJson1DescribePackagesFilterList(input.Filters, context) }),
@@ -483,7 +483,7 @@ exports.serializeAws_restJson1DescribePackagesCommand = serializeAws_restJson1De
483
483
  const serializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommand = async (input, context) => {
484
484
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
485
485
  const headers = {};
486
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/reservedInstanceOfferings";
486
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/reservedInstanceOfferings";
487
487
  const query = map({
488
488
  offeringId: [, input.ReservedElasticsearchInstanceOfferingId],
489
489
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -505,7 +505,7 @@ exports.serializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsComm
505
505
  const serializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = async (input, context) => {
506
506
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
507
507
  const headers = {};
508
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/reservedInstances";
508
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/reservedInstances";
509
509
  const query = map({
510
510
  reservationId: [, input.ReservedElasticsearchInstanceId],
511
511
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -527,7 +527,7 @@ exports.serializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = se
527
527
  const serializeAws_restJson1DissociatePackageCommand = async (input, context) => {
528
528
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
529
529
  const headers = {};
530
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
530
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
531
531
  "/2015-01-01/packages/dissociate/{PackageID}/{DomainName}";
532
532
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PackageID", () => input.PackageID, "{PackageID}", false);
533
533
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
@@ -546,7 +546,7 @@ exports.serializeAws_restJson1DissociatePackageCommand = serializeAws_restJson1D
546
546
  const serializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = async (input, context) => {
547
547
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
548
548
  const headers = {};
549
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/compatibleVersions";
549
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/compatibleVersions";
550
550
  const query = map({
551
551
  domainName: [, input.DomainName],
552
552
  });
@@ -566,7 +566,7 @@ exports.serializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = serial
566
566
  const serializeAws_restJson1GetPackageVersionHistoryCommand = async (input, context) => {
567
567
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
568
568
  const headers = {};
569
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}/history";
569
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}/history";
570
570
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PackageID", () => input.PackageID, "{PackageID}", false);
571
571
  const query = map({
572
572
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -588,7 +588,7 @@ exports.serializeAws_restJson1GetPackageVersionHistoryCommand = serializeAws_res
588
588
  const serializeAws_restJson1GetUpgradeHistoryCommand = async (input, context) => {
589
589
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
590
590
  const headers = {};
591
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
591
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
592
592
  "/2015-01-01/es/upgradeDomain/{DomainName}/history";
593
593
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
594
594
  const query = map({
@@ -611,7 +611,7 @@ exports.serializeAws_restJson1GetUpgradeHistoryCommand = serializeAws_restJson1G
611
611
  const serializeAws_restJson1GetUpgradeStatusCommand = async (input, context) => {
612
612
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
613
613
  const headers = {};
614
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
614
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
615
615
  "/2015-01-01/es/upgradeDomain/{DomainName}/status";
616
616
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
617
617
  let body;
@@ -629,7 +629,7 @@ exports.serializeAws_restJson1GetUpgradeStatusCommand = serializeAws_restJson1Ge
629
629
  const serializeAws_restJson1ListDomainNamesCommand = async (input, context) => {
630
630
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
631
631
  const headers = {};
632
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/domain";
632
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/domain";
633
633
  const query = map({
634
634
  engineType: [, input.EngineType],
635
635
  });
@@ -649,7 +649,7 @@ exports.serializeAws_restJson1ListDomainNamesCommand = serializeAws_restJson1Lis
649
649
  const serializeAws_restJson1ListDomainsForPackageCommand = async (input, context) => {
650
650
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
651
651
  const headers = {};
652
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}/domains";
652
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}/domains";
653
653
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PackageID", () => input.PackageID, "{PackageID}", false);
654
654
  const query = map({
655
655
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -671,7 +671,7 @@ exports.serializeAws_restJson1ListDomainsForPackageCommand = serializeAws_restJs
671
671
  const serializeAws_restJson1ListElasticsearchInstanceTypesCommand = async (input, context) => {
672
672
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
673
673
  const headers = {};
674
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
674
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
675
675
  "/2015-01-01/es/instanceTypes/{ElasticsearchVersion}";
676
676
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ElasticsearchVersion", () => input.ElasticsearchVersion, "{ElasticsearchVersion}", false);
677
677
  const query = map({
@@ -695,7 +695,7 @@ exports.serializeAws_restJson1ListElasticsearchInstanceTypesCommand = serializeA
695
695
  const serializeAws_restJson1ListElasticsearchVersionsCommand = async (input, context) => {
696
696
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
697
697
  const headers = {};
698
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/versions";
698
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/versions";
699
699
  const query = map({
700
700
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
701
701
  nextToken: [, input.NextToken],
@@ -716,7 +716,7 @@ exports.serializeAws_restJson1ListElasticsearchVersionsCommand = serializeAws_re
716
716
  const serializeAws_restJson1ListPackagesForDomainCommand = async (input, context) => {
717
717
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
718
718
  const headers = {};
719
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/domain/{DomainName}/packages";
719
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/domain/{DomainName}/packages";
720
720
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
721
721
  const query = map({
722
722
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -738,7 +738,7 @@ exports.serializeAws_restJson1ListPackagesForDomainCommand = serializeAws_restJs
738
738
  const serializeAws_restJson1ListTagsCommand = async (input, context) => {
739
739
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
740
740
  const headers = {};
741
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags";
741
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags";
742
742
  const query = map({
743
743
  arn: [, input.ARN],
744
744
  });
@@ -760,7 +760,7 @@ const serializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand
760
760
  const headers = {
761
761
  "content-type": "application/json",
762
762
  };
763
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
763
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
764
764
  "/2015-01-01/es/purchaseReservedInstanceOffering";
765
765
  let body;
766
766
  body = JSON.stringify({
@@ -784,7 +784,7 @@ exports.serializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingComma
784
784
  const serializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand = async (input, context) => {
785
785
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
786
786
  const headers = {};
787
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
787
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
788
788
  "/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}/reject";
789
789
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId, "{CrossClusterSearchConnectionId}", false);
790
790
  let body;
@@ -804,7 +804,7 @@ const serializeAws_restJson1RemoveTagsCommand = async (input, context) => {
804
804
  const headers = {
805
805
  "content-type": "application/json",
806
806
  };
807
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags-removal";
807
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags-removal";
808
808
  let body;
809
809
  body = JSON.stringify({
810
810
  ...(input.ARN != null && { ARN: input.ARN }),
@@ -826,7 +826,7 @@ const serializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = asy
826
826
  const headers = {
827
827
  "content-type": "application/json",
828
828
  };
829
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
829
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
830
830
  "/2015-01-01/es/serviceSoftwareUpdate/start";
831
831
  let body;
832
832
  body = JSON.stringify({
@@ -848,7 +848,7 @@ const serializeAws_restJson1UpdateElasticsearchDomainConfigCommand = async (inpu
848
848
  const headers = {
849
849
  "content-type": "application/json",
850
850
  };
851
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}/config";
851
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}/config";
852
852
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
853
853
  let body;
854
854
  body = JSON.stringify({
@@ -903,7 +903,7 @@ const serializeAws_restJson1UpdatePackageCommand = async (input, context) => {
903
903
  const headers = {
904
904
  "content-type": "application/json",
905
905
  };
906
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/update";
906
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/update";
907
907
  let body;
908
908
  body = JSON.stringify({
909
909
  ...(input.CommitMessage != null && { CommitMessage: input.CommitMessage }),
@@ -929,7 +929,7 @@ const serializeAws_restJson1UpgradeElasticsearchDomainCommand = async (input, co
929
929
  const headers = {
930
930
  "content-type": "application/json",
931
931
  };
932
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/upgradeDomain";
932
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/upgradeDomain";
933
933
  let body;
934
934
  body = JSON.stringify({
935
935
  ...(input.DomainName != null && { DomainName: input.DomainName }),
@@ -4168,15 +4168,12 @@ const deserializeAws_restJson1ZoneAwarenessConfig = (output, context) => {
4168
4168
  AvailabilityZoneCount: (0, smithy_client_1.expectInt32)(output.AvailabilityZoneCount),
4169
4169
  };
4170
4170
  };
4171
- const deserializeMetadata = (output) => {
4172
- var _a, _b;
4173
- return ({
4174
- httpStatusCode: output.statusCode,
4175
- 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"],
4176
- extendedRequestId: output.headers["x-amz-id-2"],
4177
- cfId: output.headers["x-amz-cf-id"],
4178
- });
4179
- };
4171
+ const deserializeMetadata = (output) => ({
4172
+ httpStatusCode: output.statusCode,
4173
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
4174
+ extendedRequestId: output.headers["x-amz-id-2"],
4175
+ cfId: output.headers["x-amz-cf-id"],
4176
+ });
4180
4177
  const collectBody = (streamBody = new Uint8Array(), context) => {
4181
4178
  if (streamBody instanceof Uint8Array) {
4182
4179
  return Promise.resolve(streamBody);
@@ -4196,9 +4193,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
4196
4193
  return {};
4197
4194
  });
4198
4195
  const parseErrorBody = async (errorBody, context) => {
4199
- var _a;
4200
4196
  const value = await parseBody(errorBody, context);
4201
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
4197
+ value.message = value.message ?? value.Message;
4202
4198
  return value;
4203
4199
  };
4204
4200
  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: "2015-01-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 : "Elasticsearch Service",
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: "2015-01-01",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "Elasticsearch Service",
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-elasticsearch-service",
3
3
  "description": "AWS SDK for JavaScript Elasticsearch Service 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,44 +19,44 @@
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
  },
57
57
  "devDependencies": {
58
58
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
59
- "@tsconfig/recommended": "1.0.1",
59
+ "@tsconfig/node14": "1.0.3",
60
60
  "@types/node": "^12.7.5",
61
61
  "concurrently": "7.0.0",
62
62
  "downlevel-dts": "0.10.1",
@@ -70,7 +70,7 @@
70
70
  }
71
71
  },
72
72
  "engines": {
73
- "node": ">=12.0.0"
73
+ "node": ">=14.0.0"
74
74
  },
75
75
  "typesVersions": {
76
76
  "<4.0": {