@aws-sdk/client-guardduty 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-guardduty
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-guardduty
@@ -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: "guardduty",
11
10
  };
12
11
  };
@@ -13,7 +13,7 @@ const serializeAws_restJson1AcceptAdministratorInvitationCommand = async (input,
13
13
  const headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/administrator";
16
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/administrator";
17
17
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
18
18
  let body;
19
19
  body = JSON.stringify({
@@ -36,7 +36,7 @@ const serializeAws_restJson1AcceptInvitationCommand = async (input, context) =>
36
36
  const headers = {
37
37
  "content-type": "application/json",
38
38
  };
39
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/master";
39
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/master";
40
40
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
41
41
  let body;
42
42
  body = JSON.stringify({
@@ -59,7 +59,7 @@ const serializeAws_restJson1ArchiveFindingsCommand = async (input, context) => {
59
59
  const headers = {
60
60
  "content-type": "application/json",
61
61
  };
62
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/archive";
62
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/archive";
63
63
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
64
64
  let body;
65
65
  body = JSON.stringify({
@@ -77,15 +77,14 @@ const serializeAws_restJson1ArchiveFindingsCommand = async (input, context) => {
77
77
  };
78
78
  exports.serializeAws_restJson1ArchiveFindingsCommand = serializeAws_restJson1ArchiveFindingsCommand;
79
79
  const serializeAws_restJson1CreateDetectorCommand = async (input, context) => {
80
- var _a;
81
80
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
82
81
  const headers = {
83
82
  "content-type": "application/json",
84
83
  };
85
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector";
84
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector";
86
85
  let body;
87
86
  body = JSON.stringify({
88
- clientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
87
+ clientToken: input.ClientToken ?? (0, uuid_1.v4)(),
89
88
  ...(input.DataSources != null && {
90
89
  dataSources: serializeAws_restJson1DataSourceConfigurations(input.DataSources, context),
91
90
  }),
@@ -105,17 +104,16 @@ const serializeAws_restJson1CreateDetectorCommand = async (input, context) => {
105
104
  };
106
105
  exports.serializeAws_restJson1CreateDetectorCommand = serializeAws_restJson1CreateDetectorCommand;
107
106
  const serializeAws_restJson1CreateFilterCommand = async (input, context) => {
108
- var _a;
109
107
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
110
108
  const headers = {
111
109
  "content-type": "application/json",
112
110
  };
113
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/filter";
111
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/filter";
114
112
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
115
113
  let body;
116
114
  body = JSON.stringify({
117
115
  ...(input.Action != null && { action: input.Action }),
118
- clientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
116
+ clientToken: input.ClientToken ?? (0, uuid_1.v4)(),
119
117
  ...(input.Description != null && { description: input.Description }),
120
118
  ...(input.FindingCriteria != null && {
121
119
  findingCriteria: serializeAws_restJson1FindingCriteria(input.FindingCriteria, context),
@@ -136,17 +134,16 @@ const serializeAws_restJson1CreateFilterCommand = async (input, context) => {
136
134
  };
137
135
  exports.serializeAws_restJson1CreateFilterCommand = serializeAws_restJson1CreateFilterCommand;
138
136
  const serializeAws_restJson1CreateIPSetCommand = async (input, context) => {
139
- var _a;
140
137
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
141
138
  const headers = {
142
139
  "content-type": "application/json",
143
140
  };
144
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset";
141
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset";
145
142
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
146
143
  let body;
147
144
  body = JSON.stringify({
148
145
  ...(input.Activate != null && { activate: input.Activate }),
149
- clientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
146
+ clientToken: input.ClientToken ?? (0, uuid_1.v4)(),
150
147
  ...(input.Format != null && { format: input.Format }),
151
148
  ...(input.Location != null && { location: input.Location }),
152
149
  ...(input.Name != null && { name: input.Name }),
@@ -168,7 +165,7 @@ const serializeAws_restJson1CreateMembersCommand = async (input, context) => {
168
165
  const headers = {
169
166
  "content-type": "application/json",
170
167
  };
171
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member";
168
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member";
172
169
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
173
170
  let body;
174
171
  body = JSON.stringify({
@@ -188,17 +185,16 @@ const serializeAws_restJson1CreateMembersCommand = async (input, context) => {
188
185
  };
189
186
  exports.serializeAws_restJson1CreateMembersCommand = serializeAws_restJson1CreateMembersCommand;
190
187
  const serializeAws_restJson1CreatePublishingDestinationCommand = async (input, context) => {
191
- var _a;
192
188
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
189
  const headers = {
194
190
  "content-type": "application/json",
195
191
  };
196
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
192
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
197
193
  "/detector/{DetectorId}/publishingDestination";
198
194
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
199
195
  let body;
200
196
  body = JSON.stringify({
201
- clientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
197
+ clientToken: input.ClientToken ?? (0, uuid_1.v4)(),
202
198
  ...(input.DestinationProperties != null && {
203
199
  destinationProperties: serializeAws_restJson1DestinationProperties(input.DestinationProperties, context),
204
200
  }),
@@ -220,7 +216,7 @@ const serializeAws_restJson1CreateSampleFindingsCommand = async (input, context)
220
216
  const headers = {
221
217
  "content-type": "application/json",
222
218
  };
223
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/create";
219
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/create";
224
220
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
225
221
  let body;
226
222
  body = JSON.stringify({
@@ -240,17 +236,16 @@ const serializeAws_restJson1CreateSampleFindingsCommand = async (input, context)
240
236
  };
241
237
  exports.serializeAws_restJson1CreateSampleFindingsCommand = serializeAws_restJson1CreateSampleFindingsCommand;
242
238
  const serializeAws_restJson1CreateThreatIntelSetCommand = async (input, context) => {
243
- var _a;
244
239
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
245
240
  const headers = {
246
241
  "content-type": "application/json",
247
242
  };
248
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/threatintelset";
243
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/threatintelset";
249
244
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
250
245
  let body;
251
246
  body = JSON.stringify({
252
247
  ...(input.Activate != null && { activate: input.Activate }),
253
- clientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
248
+ clientToken: input.ClientToken ?? (0, uuid_1.v4)(),
254
249
  ...(input.Format != null && { format: input.Format }),
255
250
  ...(input.Location != null && { location: input.Location }),
256
251
  ...(input.Name != null && { name: input.Name }),
@@ -272,7 +267,7 @@ const serializeAws_restJson1DeclineInvitationsCommand = async (input, context) =
272
267
  const headers = {
273
268
  "content-type": "application/json",
274
269
  };
275
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/decline";
270
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/decline";
276
271
  let body;
277
272
  body = JSON.stringify({
278
273
  ...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
@@ -291,7 +286,7 @@ exports.serializeAws_restJson1DeclineInvitationsCommand = serializeAws_restJson1
291
286
  const serializeAws_restJson1DeleteDetectorCommand = async (input, context) => {
292
287
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
293
288
  const headers = {};
294
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}";
289
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}";
295
290
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
296
291
  let body;
297
292
  return new protocol_http_1.HttpRequest({
@@ -308,7 +303,7 @@ exports.serializeAws_restJson1DeleteDetectorCommand = serializeAws_restJson1Dele
308
303
  const serializeAws_restJson1DeleteFilterCommand = async (input, context) => {
309
304
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
310
305
  const headers = {};
311
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
306
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
312
307
  "/detector/{DetectorId}/filter/{FilterName}";
313
308
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
314
309
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FilterName", () => input.FilterName, "{FilterName}", false);
@@ -329,7 +324,7 @@ const serializeAws_restJson1DeleteInvitationsCommand = async (input, context) =>
329
324
  const headers = {
330
325
  "content-type": "application/json",
331
326
  };
332
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/delete";
327
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/delete";
333
328
  let body;
334
329
  body = JSON.stringify({
335
330
  ...(input.AccountIds != null && { accountIds: serializeAws_restJson1AccountIds(input.AccountIds, context) }),
@@ -348,7 +343,7 @@ exports.serializeAws_restJson1DeleteInvitationsCommand = serializeAws_restJson1D
348
343
  const serializeAws_restJson1DeleteIPSetCommand = async (input, context) => {
349
344
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
350
345
  const headers = {};
351
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset/{IpSetId}";
346
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset/{IpSetId}";
352
347
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
353
348
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IpSetId", () => input.IpSetId, "{IpSetId}", false);
354
349
  let body;
@@ -368,7 +363,7 @@ const serializeAws_restJson1DeleteMembersCommand = async (input, context) => {
368
363
  const headers = {
369
364
  "content-type": "application/json",
370
365
  };
371
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/delete";
366
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/delete";
372
367
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
373
368
  let body;
374
369
  body = JSON.stringify({
@@ -388,7 +383,7 @@ exports.serializeAws_restJson1DeleteMembersCommand = serializeAws_restJson1Delet
388
383
  const serializeAws_restJson1DeletePublishingDestinationCommand = async (input, context) => {
389
384
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
390
385
  const headers = {};
391
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
386
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
392
387
  "/detector/{DetectorId}/publishingDestination/{DestinationId}";
393
388
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
394
389
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DestinationId", () => input.DestinationId, "{DestinationId}", false);
@@ -407,7 +402,7 @@ exports.serializeAws_restJson1DeletePublishingDestinationCommand = serializeAws_
407
402
  const serializeAws_restJson1DeleteThreatIntelSetCommand = async (input, context) => {
408
403
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
409
404
  const headers = {};
410
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
405
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
411
406
  "/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}";
412
407
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
413
408
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ThreatIntelSetId", () => input.ThreatIntelSetId, "{ThreatIntelSetId}", false);
@@ -428,7 +423,7 @@ const serializeAws_restJson1DescribeMalwareScansCommand = async (input, context)
428
423
  const headers = {
429
424
  "content-type": "application/json",
430
425
  };
431
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/malware-scans";
426
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/malware-scans";
432
427
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
433
428
  let body;
434
429
  body = JSON.stringify({
@@ -455,7 +450,7 @@ exports.serializeAws_restJson1DescribeMalwareScansCommand = serializeAws_restJso
455
450
  const serializeAws_restJson1DescribeOrganizationConfigurationCommand = async (input, context) => {
456
451
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
457
452
  const headers = {};
458
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/admin";
453
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/admin";
459
454
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
460
455
  let body;
461
456
  return new protocol_http_1.HttpRequest({
@@ -472,7 +467,7 @@ exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = seriali
472
467
  const serializeAws_restJson1DescribePublishingDestinationCommand = async (input, context) => {
473
468
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
474
469
  const headers = {};
475
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
470
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
476
471
  "/detector/{DetectorId}/publishingDestination/{DestinationId}";
477
472
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
478
473
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DestinationId", () => input.DestinationId, "{DestinationId}", false);
@@ -493,7 +488,7 @@ const serializeAws_restJson1DisableOrganizationAdminAccountCommand = async (inpu
493
488
  const headers = {
494
489
  "content-type": "application/json",
495
490
  };
496
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/admin/disable";
491
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin/disable";
497
492
  let body;
498
493
  body = JSON.stringify({
499
494
  ...(input.AdminAccountId != null && { adminAccountId: input.AdminAccountId }),
@@ -512,7 +507,7 @@ exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = serialize
512
507
  const serializeAws_restJson1DisassociateFromAdministratorAccountCommand = async (input, context) => {
513
508
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
514
509
  const headers = {};
515
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
510
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
516
511
  "/detector/{DetectorId}/administrator/disassociate";
517
512
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
518
513
  let body;
@@ -530,7 +525,7 @@ exports.serializeAws_restJson1DisassociateFromAdministratorAccountCommand = seri
530
525
  const serializeAws_restJson1DisassociateFromMasterAccountCommand = async (input, context) => {
531
526
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
532
527
  const headers = {};
533
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
528
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
534
529
  "/detector/{DetectorId}/master/disassociate";
535
530
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
536
531
  let body;
@@ -550,7 +545,7 @@ const serializeAws_restJson1DisassociateMembersCommand = async (input, context)
550
545
  const headers = {
551
546
  "content-type": "application/json",
552
547
  };
553
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
548
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
554
549
  "/detector/{DetectorId}/member/disassociate";
555
550
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
556
551
  let body;
@@ -573,7 +568,7 @@ const serializeAws_restJson1EnableOrganizationAdminAccountCommand = async (input
573
568
  const headers = {
574
569
  "content-type": "application/json",
575
570
  };
576
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/admin/enable";
571
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin/enable";
577
572
  let body;
578
573
  body = JSON.stringify({
579
574
  ...(input.AdminAccountId != null && { adminAccountId: input.AdminAccountId }),
@@ -592,7 +587,7 @@ exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = serializeA
592
587
  const serializeAws_restJson1GetAdministratorAccountCommand = async (input, context) => {
593
588
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
594
589
  const headers = {};
595
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/administrator";
590
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/administrator";
596
591
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
597
592
  let body;
598
593
  return new protocol_http_1.HttpRequest({
@@ -609,7 +604,7 @@ exports.serializeAws_restJson1GetAdministratorAccountCommand = serializeAws_rest
609
604
  const serializeAws_restJson1GetDetectorCommand = async (input, context) => {
610
605
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
611
606
  const headers = {};
612
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}";
607
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}";
613
608
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
614
609
  let body;
615
610
  return new protocol_http_1.HttpRequest({
@@ -626,7 +621,7 @@ exports.serializeAws_restJson1GetDetectorCommand = serializeAws_restJson1GetDete
626
621
  const serializeAws_restJson1GetFilterCommand = async (input, context) => {
627
622
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
628
623
  const headers = {};
629
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
624
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
630
625
  "/detector/{DetectorId}/filter/{FilterName}";
631
626
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
632
627
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FilterName", () => input.FilterName, "{FilterName}", false);
@@ -647,7 +642,7 @@ const serializeAws_restJson1GetFindingsCommand = async (input, context) => {
647
642
  const headers = {
648
643
  "content-type": "application/json",
649
644
  };
650
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/get";
645
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/get";
651
646
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
652
647
  let body;
653
648
  body = JSON.stringify({
@@ -672,7 +667,7 @@ const serializeAws_restJson1GetFindingsStatisticsCommand = async (input, context
672
667
  const headers = {
673
668
  "content-type": "application/json",
674
669
  };
675
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
670
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
676
671
  "/detector/{DetectorId}/findings/statistics";
677
672
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
678
673
  let body;
@@ -700,7 +695,7 @@ const serializeAws_restJson1GetInvitationsCountCommand = async (input, context)
700
695
  const headers = {
701
696
  "content-type": "application/json",
702
697
  };
703
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/count";
698
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/count";
704
699
  let body;
705
700
  body = "";
706
701
  return new protocol_http_1.HttpRequest({
@@ -717,7 +712,7 @@ exports.serializeAws_restJson1GetInvitationsCountCommand = serializeAws_restJson
717
712
  const serializeAws_restJson1GetIPSetCommand = async (input, context) => {
718
713
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
719
714
  const headers = {};
720
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset/{IpSetId}";
715
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset/{IpSetId}";
721
716
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
722
717
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IpSetId", () => input.IpSetId, "{IpSetId}", false);
723
718
  let body;
@@ -735,7 +730,7 @@ exports.serializeAws_restJson1GetIPSetCommand = serializeAws_restJson1GetIPSetCo
735
730
  const serializeAws_restJson1GetMalwareScanSettingsCommand = async (input, context) => {
736
731
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
737
732
  const headers = {};
738
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
733
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
739
734
  "/detector/{DetectorId}/malware-scan-settings";
740
735
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
741
736
  let body;
@@ -753,7 +748,7 @@ exports.serializeAws_restJson1GetMalwareScanSettingsCommand = serializeAws_restJ
753
748
  const serializeAws_restJson1GetMasterAccountCommand = async (input, context) => {
754
749
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
755
750
  const headers = {};
756
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/master";
751
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/master";
757
752
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
758
753
  let body;
759
754
  return new protocol_http_1.HttpRequest({
@@ -772,7 +767,7 @@ const serializeAws_restJson1GetMemberDetectorsCommand = async (input, context) =
772
767
  const headers = {
773
768
  "content-type": "application/json",
774
769
  };
775
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
770
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
776
771
  "/detector/{DetectorId}/member/detector/get";
777
772
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
778
773
  let body;
@@ -795,7 +790,7 @@ const serializeAws_restJson1GetMembersCommand = async (input, context) => {
795
790
  const headers = {
796
791
  "content-type": "application/json",
797
792
  };
798
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/get";
793
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/get";
799
794
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
800
795
  let body;
801
796
  body = JSON.stringify({
@@ -817,7 +812,7 @@ const serializeAws_restJson1GetRemainingFreeTrialDaysCommand = async (input, con
817
812
  const headers = {
818
813
  "content-type": "application/json",
819
814
  };
820
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
815
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
821
816
  "/detector/{DetectorId}/freeTrial/daysRemaining";
822
817
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
823
818
  let body;
@@ -838,7 +833,7 @@ exports.serializeAws_restJson1GetRemainingFreeTrialDaysCommand = serializeAws_re
838
833
  const serializeAws_restJson1GetThreatIntelSetCommand = async (input, context) => {
839
834
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
840
835
  const headers = {};
841
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
836
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
842
837
  "/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}";
843
838
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
844
839
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ThreatIntelSetId", () => input.ThreatIntelSetId, "{ThreatIntelSetId}", false);
@@ -859,7 +854,7 @@ const serializeAws_restJson1GetUsageStatisticsCommand = async (input, context) =
859
854
  const headers = {
860
855
  "content-type": "application/json",
861
856
  };
862
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/usage/statistics";
857
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/usage/statistics";
863
858
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
864
859
  let body;
865
860
  body = JSON.stringify({
@@ -887,7 +882,7 @@ const serializeAws_restJson1InviteMembersCommand = async (input, context) => {
887
882
  const headers = {
888
883
  "content-type": "application/json",
889
884
  };
890
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/invite";
885
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/invite";
891
886
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
892
887
  let body;
893
888
  body = JSON.stringify({
@@ -909,7 +904,7 @@ exports.serializeAws_restJson1InviteMembersCommand = serializeAws_restJson1Invit
909
904
  const serializeAws_restJson1ListDetectorsCommand = async (input, context) => {
910
905
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
911
906
  const headers = {};
912
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector";
907
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector";
913
908
  const query = map({
914
909
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
915
910
  nextToken: [, input.NextToken],
@@ -930,7 +925,7 @@ exports.serializeAws_restJson1ListDetectorsCommand = serializeAws_restJson1ListD
930
925
  const serializeAws_restJson1ListFiltersCommand = async (input, context) => {
931
926
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
932
927
  const headers = {};
933
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/filter";
928
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/filter";
934
929
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
935
930
  const query = map({
936
931
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -954,7 +949,7 @@ const serializeAws_restJson1ListFindingsCommand = async (input, context) => {
954
949
  const headers = {
955
950
  "content-type": "application/json",
956
951
  };
957
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings";
952
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings";
958
953
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
959
954
  let body;
960
955
  body = JSON.stringify({
@@ -981,7 +976,7 @@ exports.serializeAws_restJson1ListFindingsCommand = serializeAws_restJson1ListFi
981
976
  const serializeAws_restJson1ListInvitationsCommand = async (input, context) => {
982
977
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
983
978
  const headers = {};
984
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitation";
979
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation";
985
980
  const query = map({
986
981
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
987
982
  nextToken: [, input.NextToken],
@@ -1002,7 +997,7 @@ exports.serializeAws_restJson1ListInvitationsCommand = serializeAws_restJson1Lis
1002
997
  const serializeAws_restJson1ListIPSetsCommand = async (input, context) => {
1003
998
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1004
999
  const headers = {};
1005
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset";
1000
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset";
1006
1001
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1007
1002
  const query = map({
1008
1003
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -1024,7 +1019,7 @@ exports.serializeAws_restJson1ListIPSetsCommand = serializeAws_restJson1ListIPSe
1024
1019
  const serializeAws_restJson1ListMembersCommand = async (input, context) => {
1025
1020
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1026
1021
  const headers = {};
1027
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member";
1022
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member";
1028
1023
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1029
1024
  const query = map({
1030
1025
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -1047,7 +1042,7 @@ exports.serializeAws_restJson1ListMembersCommand = serializeAws_restJson1ListMem
1047
1042
  const serializeAws_restJson1ListOrganizationAdminAccountsCommand = async (input, context) => {
1048
1043
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1049
1044
  const headers = {};
1050
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/admin";
1045
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin";
1051
1046
  const query = map({
1052
1047
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1053
1048
  nextToken: [, input.NextToken],
@@ -1068,7 +1063,7 @@ exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = serializeAw
1068
1063
  const serializeAws_restJson1ListPublishingDestinationsCommand = async (input, context) => {
1069
1064
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1070
1065
  const headers = {};
1071
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1066
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1072
1067
  "/detector/{DetectorId}/publishingDestination";
1073
1068
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1074
1069
  const query = map({
@@ -1091,7 +1086,7 @@ exports.serializeAws_restJson1ListPublishingDestinationsCommand = serializeAws_r
1091
1086
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
1092
1087
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1093
1088
  const headers = {};
1094
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
1089
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
1095
1090
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1096
1091
  let body;
1097
1092
  return new protocol_http_1.HttpRequest({
@@ -1108,7 +1103,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
1108
1103
  const serializeAws_restJson1ListThreatIntelSetsCommand = async (input, context) => {
1109
1104
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1110
1105
  const headers = {};
1111
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/threatintelset";
1106
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/threatintelset";
1112
1107
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1113
1108
  const query = map({
1114
1109
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -1132,7 +1127,7 @@ const serializeAws_restJson1StartMonitoringMembersCommand = async (input, contex
1132
1127
  const headers = {
1133
1128
  "content-type": "application/json",
1134
1129
  };
1135
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/start";
1130
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/start";
1136
1131
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1137
1132
  let body;
1138
1133
  body = JSON.stringify({
@@ -1154,7 +1149,7 @@ const serializeAws_restJson1StopMonitoringMembersCommand = async (input, context
1154
1149
  const headers = {
1155
1150
  "content-type": "application/json",
1156
1151
  };
1157
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/stop";
1152
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/member/stop";
1158
1153
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1159
1154
  let body;
1160
1155
  body = JSON.stringify({
@@ -1176,7 +1171,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1176
1171
  const headers = {
1177
1172
  "content-type": "application/json",
1178
1173
  };
1179
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
1174
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
1180
1175
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1181
1176
  let body;
1182
1177
  body = JSON.stringify({
@@ -1198,7 +1193,7 @@ const serializeAws_restJson1UnarchiveFindingsCommand = async (input, context) =>
1198
1193
  const headers = {
1199
1194
  "content-type": "application/json",
1200
1195
  };
1201
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/unarchive";
1196
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/unarchive";
1202
1197
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1203
1198
  let body;
1204
1199
  body = JSON.stringify({
@@ -1218,7 +1213,7 @@ exports.serializeAws_restJson1UnarchiveFindingsCommand = serializeAws_restJson1U
1218
1213
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1219
1214
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1220
1215
  const headers = {};
1221
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
1216
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
1222
1217
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1223
1218
  const query = map({
1224
1219
  tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
@@ -1241,7 +1236,7 @@ const serializeAws_restJson1UpdateDetectorCommand = async (input, context) => {
1241
1236
  const headers = {
1242
1237
  "content-type": "application/json",
1243
1238
  };
1244
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}";
1239
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}";
1245
1240
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1246
1241
  let body;
1247
1242
  body = JSON.stringify({
@@ -1267,7 +1262,7 @@ const serializeAws_restJson1UpdateFilterCommand = async (input, context) => {
1267
1262
  const headers = {
1268
1263
  "content-type": "application/json",
1269
1264
  };
1270
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1265
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1271
1266
  "/detector/{DetectorId}/filter/{FilterName}";
1272
1267
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1273
1268
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FilterName", () => input.FilterName, "{FilterName}", false);
@@ -1296,7 +1291,7 @@ const serializeAws_restJson1UpdateFindingsFeedbackCommand = async (input, contex
1296
1291
  const headers = {
1297
1292
  "content-type": "application/json",
1298
1293
  };
1299
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/feedback";
1294
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/findings/feedback";
1300
1295
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1301
1296
  let body;
1302
1297
  body = JSON.stringify({
@@ -1320,7 +1315,7 @@ const serializeAws_restJson1UpdateIPSetCommand = async (input, context) => {
1320
1315
  const headers = {
1321
1316
  "content-type": "application/json",
1322
1317
  };
1323
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset/{IpSetId}";
1318
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/ipset/{IpSetId}";
1324
1319
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1325
1320
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IpSetId", () => input.IpSetId, "{IpSetId}", false);
1326
1321
  let body;
@@ -1345,7 +1340,7 @@ const serializeAws_restJson1UpdateMalwareScanSettingsCommand = async (input, con
1345
1340
  const headers = {
1346
1341
  "content-type": "application/json",
1347
1342
  };
1348
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1343
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1349
1344
  "/detector/{DetectorId}/malware-scan-settings";
1350
1345
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1351
1346
  let body;
@@ -1371,7 +1366,7 @@ const serializeAws_restJson1UpdateMemberDetectorsCommand = async (input, context
1371
1366
  const headers = {
1372
1367
  "content-type": "application/json",
1373
1368
  };
1374
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1369
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1375
1370
  "/detector/{DetectorId}/member/detector/update";
1376
1371
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1377
1372
  let body;
@@ -1397,7 +1392,7 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
1397
1392
  const headers = {
1398
1393
  "content-type": "application/json",
1399
1394
  };
1400
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/admin";
1395
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/admin";
1401
1396
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1402
1397
  let body;
1403
1398
  body = JSON.stringify({
@@ -1422,7 +1417,7 @@ const serializeAws_restJson1UpdatePublishingDestinationCommand = async (input, c
1422
1417
  const headers = {
1423
1418
  "content-type": "application/json",
1424
1419
  };
1425
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1420
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1426
1421
  "/detector/{DetectorId}/publishingDestination/{DestinationId}";
1427
1422
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1428
1423
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DestinationId", () => input.DestinationId, "{DestinationId}", false);
@@ -1448,7 +1443,7 @@ const serializeAws_restJson1UpdateThreatIntelSetCommand = async (input, context)
1448
1443
  const headers = {
1449
1444
  "content-type": "application/json",
1450
1445
  };
1451
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1446
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1452
1447
  "/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}";
1453
1448
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
1454
1449
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ThreatIntelSetId", () => input.ThreatIntelSetId, "{ThreatIntelSetId}", false);
@@ -5727,15 +5722,12 @@ const deserializeAws_restJson1Volumes = (output, context) => {
5727
5722
  });
5728
5723
  return retVal;
5729
5724
  };
5730
- const deserializeMetadata = (output) => {
5731
- var _a, _b;
5732
- return ({
5733
- httpStatusCode: output.statusCode,
5734
- 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"],
5735
- extendedRequestId: output.headers["x-amz-id-2"],
5736
- cfId: output.headers["x-amz-cf-id"],
5737
- });
5738
- };
5725
+ const deserializeMetadata = (output) => ({
5726
+ httpStatusCode: output.statusCode,
5727
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
5728
+ extendedRequestId: output.headers["x-amz-id-2"],
5729
+ cfId: output.headers["x-amz-cf-id"],
5730
+ });
5739
5731
  const collectBody = (streamBody = new Uint8Array(), context) => {
5740
5732
  if (streamBody instanceof Uint8Array) {
5741
5733
  return Promise.resolve(streamBody);
@@ -5755,9 +5747,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
5755
5747
  return {};
5756
5748
  });
5757
5749
  const parseErrorBody = async (errorBody, context) => {
5758
- var _a;
5759
5750
  const value = await parseBody(errorBody, context);
5760
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
5751
+ value.message = value.message ?? value.Message;
5761
5752
  return value;
5762
5753
  };
5763
5754
  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: "2017-11-28",
10
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "GuardDuty",
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: "2017-11-28",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "GuardDuty",
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-guardduty",
3
3
  "description": "AWS SDK for JavaScript Guardduty Client for Node.js, Browser and React Native",
4
- "version": "3.200.0",
4
+ "version": "3.202.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,45 +19,45 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.200.0",
23
- "@aws-sdk/config-resolver": "3.200.0",
24
- "@aws-sdk/credential-provider-node": "3.200.0",
25
- "@aws-sdk/fetch-http-handler": "3.200.0",
26
- "@aws-sdk/hash-node": "3.200.0",
27
- "@aws-sdk/invalid-dependency": "3.200.0",
28
- "@aws-sdk/middleware-content-length": "3.200.0",
29
- "@aws-sdk/middleware-endpoint": "3.200.0",
30
- "@aws-sdk/middleware-host-header": "3.200.0",
31
- "@aws-sdk/middleware-logger": "3.200.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.200.0",
33
- "@aws-sdk/middleware-retry": "3.200.0",
34
- "@aws-sdk/middleware-serde": "3.200.0",
35
- "@aws-sdk/middleware-signing": "3.200.0",
36
- "@aws-sdk/middleware-stack": "3.200.0",
37
- "@aws-sdk/middleware-user-agent": "3.200.0",
38
- "@aws-sdk/node-config-provider": "3.200.0",
39
- "@aws-sdk/node-http-handler": "3.200.0",
40
- "@aws-sdk/protocol-http": "3.200.0",
41
- "@aws-sdk/smithy-client": "3.200.0",
42
- "@aws-sdk/types": "3.200.0",
43
- "@aws-sdk/url-parser": "3.200.0",
22
+ "@aws-sdk/client-sts": "3.202.0",
23
+ "@aws-sdk/config-resolver": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.202.0",
25
+ "@aws-sdk/fetch-http-handler": "3.201.0",
26
+ "@aws-sdk/hash-node": "3.201.0",
27
+ "@aws-sdk/invalid-dependency": "3.201.0",
28
+ "@aws-sdk/middleware-content-length": "3.201.0",
29
+ "@aws-sdk/middleware-endpoint": "3.201.0",
30
+ "@aws-sdk/middleware-host-header": "3.201.0",
31
+ "@aws-sdk/middleware-logger": "3.201.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.201.0",
33
+ "@aws-sdk/middleware-retry": "3.201.0",
34
+ "@aws-sdk/middleware-serde": "3.201.0",
35
+ "@aws-sdk/middleware-signing": "3.201.0",
36
+ "@aws-sdk/middleware-stack": "3.201.0",
37
+ "@aws-sdk/middleware-user-agent": "3.201.0",
38
+ "@aws-sdk/node-config-provider": "3.201.0",
39
+ "@aws-sdk/node-http-handler": "3.201.0",
40
+ "@aws-sdk/protocol-http": "3.201.0",
41
+ "@aws-sdk/smithy-client": "3.201.0",
42
+ "@aws-sdk/types": "3.201.0",
43
+ "@aws-sdk/url-parser": "3.201.0",
44
44
  "@aws-sdk/util-base64-browser": "3.188.0",
45
- "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-base64-node": "3.201.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
- "@aws-sdk/util-body-length-node": "3.188.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.200.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.200.0",
50
- "@aws-sdk/util-endpoints": "3.200.0",
51
- "@aws-sdk/util-user-agent-browser": "3.200.0",
52
- "@aws-sdk/util-user-agent-node": "3.200.0",
47
+ "@aws-sdk/util-body-length-node": "3.201.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.202.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.201.0",
52
+ "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
- "@aws-sdk/util-utf8-node": "3.199.0",
54
+ "@aws-sdk/util-utf8-node": "3.201.0",
55
55
  "tslib": "^2.3.1",
56
56
  "uuid": "^8.3.2"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
60
- "@tsconfig/recommended": "1.0.1",
60
+ "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^12.7.5",
62
62
  "@types/uuid": "^8.3.0",
63
63
  "concurrently": "7.0.0",
@@ -72,7 +72,7 @@
72
72
  }
73
73
  },
74
74
  "engines": {
75
- "node": ">=12.0.0"
75
+ "node": ">=14.0.0"
76
76
  },
77
77
  "typesVersions": {
78
78
  "<4.0": {