@aws-sdk/client-ram 3.121.0 → 3.130.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,33 @@
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.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-ram
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-ram
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -13,9 +13,8 @@ const serializeAws_restJson1AcceptResourceShareInvitationCommand = async (input,
13
13
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/acceptresourceshareinvitation";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
17
- ...(input.resourceShareInvitationArn !== undefined &&
18
- input.resourceShareInvitationArn !== null && { resourceShareInvitationArn: input.resourceShareInvitationArn }),
16
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
17
+ ...(input.resourceShareInvitationArn != null && { resourceShareInvitationArn: input.resourceShareInvitationArn }),
19
18
  });
20
19
  return new protocol_http_1.HttpRequest({
21
20
  protocol,
@@ -36,17 +35,14 @@ const serializeAws_restJson1AssociateResourceShareCommand = async (input, contex
36
35
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/associateresourceshare";
37
36
  let body;
38
37
  body = JSON.stringify({
39
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
40
- ...(input.principals !== undefined &&
41
- input.principals !== null && {
38
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
39
+ ...(input.principals != null && {
42
40
  principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
43
41
  }),
44
- ...(input.resourceArns !== undefined &&
45
- input.resourceArns !== null && {
42
+ ...(input.resourceArns != null && {
46
43
  resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
47
44
  }),
48
- ...(input.resourceShareArn !== undefined &&
49
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn }),
45
+ ...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
50
46
  });
51
47
  return new protocol_http_1.HttpRequest({
52
48
  protocol,
@@ -67,13 +63,11 @@ const serializeAws_restJson1AssociateResourceSharePermissionCommand = async (inp
67
63
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/associateresourcesharepermission";
68
64
  let body;
69
65
  body = JSON.stringify({
70
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
71
- ...(input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn }),
72
- ...(input.permissionVersion !== undefined &&
73
- input.permissionVersion !== null && { permissionVersion: input.permissionVersion }),
74
- ...(input.replace !== undefined && input.replace !== null && { replace: input.replace }),
75
- ...(input.resourceShareArn !== undefined &&
76
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn }),
66
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
67
+ ...(input.permissionArn != null && { permissionArn: input.permissionArn }),
68
+ ...(input.permissionVersion != null && { permissionVersion: input.permissionVersion }),
69
+ ...(input.replace != null && { replace: input.replace }),
70
+ ...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
77
71
  });
78
72
  return new protocol_http_1.HttpRequest({
79
73
  protocol,
@@ -94,24 +88,19 @@ const serializeAws_restJson1CreateResourceShareCommand = async (input, context)
94
88
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/createresourceshare";
95
89
  let body;
96
90
  body = JSON.stringify({
97
- ...(input.allowExternalPrincipals !== undefined &&
98
- input.allowExternalPrincipals !== null && { allowExternalPrincipals: input.allowExternalPrincipals }),
99
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
100
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
101
- ...(input.permissionArns !== undefined &&
102
- input.permissionArns !== null && {
91
+ ...(input.allowExternalPrincipals != null && { allowExternalPrincipals: input.allowExternalPrincipals }),
92
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
93
+ ...(input.name != null && { name: input.name }),
94
+ ...(input.permissionArns != null && {
103
95
  permissionArns: serializeAws_restJson1PermissionArnList(input.permissionArns, context),
104
96
  }),
105
- ...(input.principals !== undefined &&
106
- input.principals !== null && {
97
+ ...(input.principals != null && {
107
98
  principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
108
99
  }),
109
- ...(input.resourceArns !== undefined &&
110
- input.resourceArns !== null && {
100
+ ...(input.resourceArns != null && {
111
101
  resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
112
102
  }),
113
- ...(input.tags !== undefined &&
114
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
103
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
115
104
  });
116
105
  return new protocol_http_1.HttpRequest({
117
106
  protocol,
@@ -153,17 +142,14 @@ const serializeAws_restJson1DisassociateResourceShareCommand = async (input, con
153
142
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/disassociateresourceshare";
154
143
  let body;
155
144
  body = JSON.stringify({
156
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
157
- ...(input.principals !== undefined &&
158
- input.principals !== null && {
145
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
146
+ ...(input.principals != null && {
159
147
  principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
160
148
  }),
161
- ...(input.resourceArns !== undefined &&
162
- input.resourceArns !== null && {
149
+ ...(input.resourceArns != null && {
163
150
  resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
164
151
  }),
165
- ...(input.resourceShareArn !== undefined &&
166
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn }),
152
+ ...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
167
153
  });
168
154
  return new protocol_http_1.HttpRequest({
169
155
  protocol,
@@ -184,10 +170,9 @@ const serializeAws_restJson1DisassociateResourceSharePermissionCommand = async (
184
170
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/disassociateresourcesharepermission";
185
171
  let body;
186
172
  body = JSON.stringify({
187
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
188
- ...(input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn }),
189
- ...(input.resourceShareArn !== undefined &&
190
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn }),
173
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
174
+ ...(input.permissionArn != null && { permissionArn: input.permissionArn }),
175
+ ...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
191
176
  });
192
177
  return new protocol_http_1.HttpRequest({
193
178
  protocol,
@@ -227,9 +212,8 @@ const serializeAws_restJson1GetPermissionCommand = async (input, context) => {
227
212
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getpermission";
228
213
  let body;
229
214
  body = JSON.stringify({
230
- ...(input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn }),
231
- ...(input.permissionVersion !== undefined &&
232
- input.permissionVersion !== null && { permissionVersion: input.permissionVersion }),
215
+ ...(input.permissionArn != null && { permissionArn: input.permissionArn }),
216
+ ...(input.permissionVersion != null && { permissionVersion: input.permissionVersion }),
233
217
  });
234
218
  return new protocol_http_1.HttpRequest({
235
219
  protocol,
@@ -250,11 +234,10 @@ const serializeAws_restJson1GetResourcePoliciesCommand = async (input, context)
250
234
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getresourcepolicies";
251
235
  let body;
252
236
  body = JSON.stringify({
253
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
254
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
255
- ...(input.principal !== undefined && input.principal !== null && { principal: input.principal }),
256
- ...(input.resourceArns !== undefined &&
257
- input.resourceArns !== null && {
237
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
238
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
239
+ ...(input.principal != null && { principal: input.principal }),
240
+ ...(input.resourceArns != null && {
258
241
  resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
259
242
  }),
260
243
  });
@@ -277,16 +260,13 @@ const serializeAws_restJson1GetResourceShareAssociationsCommand = async (input,
277
260
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getresourceshareassociations";
278
261
  let body;
279
262
  body = JSON.stringify({
280
- ...(input.associationStatus !== undefined &&
281
- input.associationStatus !== null && { associationStatus: input.associationStatus }),
282
- ...(input.associationType !== undefined &&
283
- input.associationType !== null && { associationType: input.associationType }),
284
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
285
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
286
- ...(input.principal !== undefined && input.principal !== null && { principal: input.principal }),
287
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
288
- ...(input.resourceShareArns !== undefined &&
289
- input.resourceShareArns !== null && {
263
+ ...(input.associationStatus != null && { associationStatus: input.associationStatus }),
264
+ ...(input.associationType != null && { associationType: input.associationType }),
265
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
266
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
267
+ ...(input.principal != null && { principal: input.principal }),
268
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
269
+ ...(input.resourceShareArns != null && {
290
270
  resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
291
271
  }),
292
272
  });
@@ -309,14 +289,12 @@ const serializeAws_restJson1GetResourceShareInvitationsCommand = async (input, c
309
289
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getresourceshareinvitations";
310
290
  let body;
311
291
  body = JSON.stringify({
312
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
313
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
314
- ...(input.resourceShareArns !== undefined &&
315
- input.resourceShareArns !== null && {
292
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
293
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
294
+ ...(input.resourceShareArns != null && {
316
295
  resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
317
296
  }),
318
- ...(input.resourceShareInvitationArns !== undefined &&
319
- input.resourceShareInvitationArns !== null && {
297
+ ...(input.resourceShareInvitationArns != null && {
320
298
  resourceShareInvitationArns: serializeAws_restJson1ResourceShareInvitationArnList(input.resourceShareInvitationArns, context),
321
299
  }),
322
300
  });
@@ -339,19 +317,16 @@ const serializeAws_restJson1GetResourceSharesCommand = async (input, context) =>
339
317
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getresourceshares";
340
318
  let body;
341
319
  body = JSON.stringify({
342
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
343
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
344
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
345
- ...(input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn }),
346
- ...(input.resourceOwner !== undefined && input.resourceOwner !== null && { resourceOwner: input.resourceOwner }),
347
- ...(input.resourceShareArns !== undefined &&
348
- input.resourceShareArns !== null && {
320
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
321
+ ...(input.name != null && { name: input.name }),
322
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
323
+ ...(input.permissionArn != null && { permissionArn: input.permissionArn }),
324
+ ...(input.resourceOwner != null && { resourceOwner: input.resourceOwner }),
325
+ ...(input.resourceShareArns != null && {
349
326
  resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
350
327
  }),
351
- ...(input.resourceShareStatus !== undefined &&
352
- input.resourceShareStatus !== null && { resourceShareStatus: input.resourceShareStatus }),
353
- ...(input.tagFilters !== undefined &&
354
- input.tagFilters !== null && { tagFilters: serializeAws_restJson1TagFilters(input.tagFilters, context) }),
328
+ ...(input.resourceShareStatus != null && { resourceShareStatus: input.resourceShareStatus }),
329
+ ...(input.tagFilters != null && { tagFilters: serializeAws_restJson1TagFilters(input.tagFilters, context) }),
355
330
  });
356
331
  return new protocol_http_1.HttpRequest({
357
332
  protocol,
@@ -372,12 +347,10 @@ const serializeAws_restJson1ListPendingInvitationResourcesCommand = async (input
372
347
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listpendinginvitationresources";
373
348
  let body;
374
349
  body = JSON.stringify({
375
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
376
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
377
- ...(input.resourceRegionScope !== undefined &&
378
- input.resourceRegionScope !== null && { resourceRegionScope: input.resourceRegionScope }),
379
- ...(input.resourceShareInvitationArn !== undefined &&
380
- input.resourceShareInvitationArn !== null && { resourceShareInvitationArn: input.resourceShareInvitationArn }),
350
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
351
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
352
+ ...(input.resourceRegionScope != null && { resourceRegionScope: input.resourceRegionScope }),
353
+ ...(input.resourceShareInvitationArn != null && { resourceShareInvitationArn: input.resourceShareInvitationArn }),
381
354
  });
382
355
  return new protocol_http_1.HttpRequest({
383
356
  protocol,
@@ -398,9 +371,9 @@ const serializeAws_restJson1ListPermissionsCommand = async (input, context) => {
398
371
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listpermissions";
399
372
  let body;
400
373
  body = JSON.stringify({
401
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
402
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
403
- ...(input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType }),
374
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
375
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
376
+ ...(input.resourceType != null && { resourceType: input.resourceType }),
404
377
  });
405
378
  return new protocol_http_1.HttpRequest({
406
379
  protocol,
@@ -421,9 +394,9 @@ const serializeAws_restJson1ListPermissionVersionsCommand = async (input, contex
421
394
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listpermissionversions";
422
395
  let body;
423
396
  body = JSON.stringify({
424
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
425
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
426
- ...(input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn }),
397
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
398
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
399
+ ...(input.permissionArn != null && { permissionArn: input.permissionArn }),
427
400
  });
428
401
  return new protocol_http_1.HttpRequest({
429
402
  protocol,
@@ -444,19 +417,17 @@ const serializeAws_restJson1ListPrincipalsCommand = async (input, context) => {
444
417
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listprincipals";
445
418
  let body;
446
419
  body = JSON.stringify({
447
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
448
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
449
- ...(input.principals !== undefined &&
450
- input.principals !== null && {
420
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
421
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
422
+ ...(input.principals != null && {
451
423
  principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
452
424
  }),
453
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
454
- ...(input.resourceOwner !== undefined && input.resourceOwner !== null && { resourceOwner: input.resourceOwner }),
455
- ...(input.resourceShareArns !== undefined &&
456
- input.resourceShareArns !== null && {
425
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
426
+ ...(input.resourceOwner != null && { resourceOwner: input.resourceOwner }),
427
+ ...(input.resourceShareArns != null && {
457
428
  resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
458
429
  }),
459
- ...(input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType }),
430
+ ...(input.resourceType != null && { resourceType: input.resourceType }),
460
431
  });
461
432
  return new protocol_http_1.HttpRequest({
462
433
  protocol,
@@ -477,21 +448,18 @@ const serializeAws_restJson1ListResourcesCommand = async (input, context) => {
477
448
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listresources";
478
449
  let body;
479
450
  body = JSON.stringify({
480
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
481
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
482
- ...(input.principal !== undefined && input.principal !== null && { principal: input.principal }),
483
- ...(input.resourceArns !== undefined &&
484
- input.resourceArns !== null && {
451
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
452
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
453
+ ...(input.principal != null && { principal: input.principal }),
454
+ ...(input.resourceArns != null && {
485
455
  resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
486
456
  }),
487
- ...(input.resourceOwner !== undefined && input.resourceOwner !== null && { resourceOwner: input.resourceOwner }),
488
- ...(input.resourceRegionScope !== undefined &&
489
- input.resourceRegionScope !== null && { resourceRegionScope: input.resourceRegionScope }),
490
- ...(input.resourceShareArns !== undefined &&
491
- input.resourceShareArns !== null && {
457
+ ...(input.resourceOwner != null && { resourceOwner: input.resourceOwner }),
458
+ ...(input.resourceRegionScope != null && { resourceRegionScope: input.resourceRegionScope }),
459
+ ...(input.resourceShareArns != null && {
492
460
  resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
493
461
  }),
494
- ...(input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType }),
462
+ ...(input.resourceType != null && { resourceType: input.resourceType }),
495
463
  });
496
464
  return new protocol_http_1.HttpRequest({
497
465
  protocol,
@@ -512,10 +480,9 @@ const serializeAws_restJson1ListResourceSharePermissionsCommand = async (input,
512
480
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listresourcesharepermissions";
513
481
  let body;
514
482
  body = JSON.stringify({
515
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
516
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
517
- ...(input.resourceShareArn !== undefined &&
518
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn }),
483
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
484
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
485
+ ...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
519
486
  });
520
487
  return new protocol_http_1.HttpRequest({
521
488
  protocol,
@@ -536,10 +503,9 @@ const serializeAws_restJson1ListResourceTypesCommand = async (input, context) =>
536
503
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listresourcetypes";
537
504
  let body;
538
505
  body = JSON.stringify({
539
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
540
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
541
- ...(input.resourceRegionScope !== undefined &&
542
- input.resourceRegionScope !== null && { resourceRegionScope: input.resourceRegionScope }),
506
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
507
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
508
+ ...(input.resourceRegionScope != null && { resourceRegionScope: input.resourceRegionScope }),
543
509
  });
544
510
  return new protocol_http_1.HttpRequest({
545
511
  protocol,
@@ -580,9 +546,8 @@ const serializeAws_restJson1RejectResourceShareInvitationCommand = async (input,
580
546
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rejectresourceshareinvitation";
581
547
  let body;
582
548
  body = JSON.stringify({
583
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
584
- ...(input.resourceShareInvitationArn !== undefined &&
585
- input.resourceShareInvitationArn !== null && { resourceShareInvitationArn: input.resourceShareInvitationArn }),
549
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
550
+ ...(input.resourceShareInvitationArn != null && { resourceShareInvitationArn: input.resourceShareInvitationArn }),
586
551
  });
587
552
  return new protocol_http_1.HttpRequest({
588
553
  protocol,
@@ -603,10 +568,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
603
568
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tagresource";
604
569
  let body;
605
570
  body = JSON.stringify({
606
- ...(input.resourceShareArn !== undefined &&
607
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn }),
608
- ...(input.tags !== undefined &&
609
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
571
+ ...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
572
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
610
573
  });
611
574
  return new protocol_http_1.HttpRequest({
612
575
  protocol,
@@ -627,10 +590,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
627
590
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/untagresource";
628
591
  let body;
629
592
  body = JSON.stringify({
630
- ...(input.resourceShareArn !== undefined &&
631
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn }),
632
- ...(input.tagKeys !== undefined &&
633
- input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
593
+ ...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
594
+ ...(input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
634
595
  });
635
596
  return new protocol_http_1.HttpRequest({
636
597
  protocol,
@@ -651,12 +612,10 @@ const serializeAws_restJson1UpdateResourceShareCommand = async (input, context)
651
612
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateresourceshare";
652
613
  let body;
653
614
  body = JSON.stringify({
654
- ...(input.allowExternalPrincipals !== undefined &&
655
- input.allowExternalPrincipals !== null && { allowExternalPrincipals: input.allowExternalPrincipals }),
656
- ...(input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken }),
657
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
658
- ...(input.resourceShareArn !== undefined &&
659
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn }),
615
+ ...(input.allowExternalPrincipals != null && { allowExternalPrincipals: input.allowExternalPrincipals }),
616
+ ...(input.clientToken != null && { clientToken: input.clientToken }),
617
+ ...(input.name != null && { name: input.name }),
618
+ ...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
660
619
  });
661
620
  return new protocol_http_1.HttpRequest({
662
621
  protocol,
@@ -2487,15 +2446,14 @@ const serializeAws_restJson1ResourceShareInvitationArnList = (input, context) =>
2487
2446
  };
2488
2447
  const serializeAws_restJson1Tag = (input, context) => {
2489
2448
  return {
2490
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
2491
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
2449
+ ...(input.key != null && { key: input.key }),
2450
+ ...(input.value != null && { value: input.value }),
2492
2451
  };
2493
2452
  };
2494
2453
  const serializeAws_restJson1TagFilter = (input, context) => {
2495
2454
  return {
2496
- ...(input.tagKey !== undefined && input.tagKey !== null && { tagKey: input.tagKey }),
2497
- ...(input.tagValues !== undefined &&
2498
- input.tagValues !== null && { tagValues: serializeAws_restJson1TagValueList(input.tagValues, context) }),
2455
+ ...(input.tagKey != null && { tagKey: input.tagKey }),
2456
+ ...(input.tagValues != null && { tagValues: serializeAws_restJson1TagValueList(input.tagValues, context) }),
2499
2457
  };
2500
2458
  };
2501
2459
  const serializeAws_restJson1TagFilters = (input, context) => {
@@ -2551,12 +2509,12 @@ const deserializeAws_restJson1PolicyList = (output, context) => {
2551
2509
  };
2552
2510
  const deserializeAws_restJson1Principal = (output, context) => {
2553
2511
  return {
2554
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2512
+ creationTime: output.creationTime != null
2555
2513
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
2556
2514
  : undefined,
2557
2515
  external: (0, smithy_client_1.expectBoolean)(output.external),
2558
2516
  id: (0, smithy_client_1.expectString)(output.id),
2559
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
2517
+ lastUpdatedTime: output.lastUpdatedTime != null
2560
2518
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
2561
2519
  : undefined,
2562
2520
  resourceShareArn: (0, smithy_client_1.expectString)(output.resourceShareArn),
@@ -2576,10 +2534,10 @@ const deserializeAws_restJson1PrincipalList = (output, context) => {
2576
2534
  const deserializeAws_restJson1Resource = (output, context) => {
2577
2535
  return {
2578
2536
  arn: (0, smithy_client_1.expectString)(output.arn),
2579
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2537
+ creationTime: output.creationTime != null
2580
2538
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
2581
2539
  : undefined,
2582
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
2540
+ lastUpdatedTime: output.lastUpdatedTime != null
2583
2541
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
2584
2542
  : undefined,
2585
2543
  resourceGroupArn: (0, smithy_client_1.expectString)(output.resourceGroupArn),
@@ -2604,11 +2562,11 @@ const deserializeAws_restJson1ResourceList = (output, context) => {
2604
2562
  const deserializeAws_restJson1ResourceShare = (output, context) => {
2605
2563
  return {
2606
2564
  allowExternalPrincipals: (0, smithy_client_1.expectBoolean)(output.allowExternalPrincipals),
2607
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2565
+ creationTime: output.creationTime != null
2608
2566
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
2609
2567
  : undefined,
2610
2568
  featureSet: (0, smithy_client_1.expectString)(output.featureSet),
2611
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
2569
+ lastUpdatedTime: output.lastUpdatedTime != null
2612
2570
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
2613
2571
  : undefined,
2614
2572
  name: (0, smithy_client_1.expectString)(output.name),
@@ -2616,20 +2574,18 @@ const deserializeAws_restJson1ResourceShare = (output, context) => {
2616
2574
  resourceShareArn: (0, smithy_client_1.expectString)(output.resourceShareArn),
2617
2575
  status: (0, smithy_client_1.expectString)(output.status),
2618
2576
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
2619
- tags: output.tags !== undefined && output.tags !== null
2620
- ? deserializeAws_restJson1TagList(output.tags, context)
2621
- : undefined,
2577
+ tags: output.tags != null ? deserializeAws_restJson1TagList(output.tags, context) : undefined,
2622
2578
  };
2623
2579
  };
2624
2580
  const deserializeAws_restJson1ResourceShareAssociation = (output, context) => {
2625
2581
  return {
2626
2582
  associatedEntity: (0, smithy_client_1.expectString)(output.associatedEntity),
2627
2583
  associationType: (0, smithy_client_1.expectString)(output.associationType),
2628
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2584
+ creationTime: output.creationTime != null
2629
2585
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
2630
2586
  : undefined,
2631
2587
  external: (0, smithy_client_1.expectBoolean)(output.external),
2632
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
2588
+ lastUpdatedTime: output.lastUpdatedTime != null
2633
2589
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
2634
2590
  : undefined,
2635
2591
  resourceShareArn: (0, smithy_client_1.expectString)(output.resourceShareArn),
@@ -2651,13 +2607,13 @@ const deserializeAws_restJson1ResourceShareAssociationList = (output, context) =
2651
2607
  };
2652
2608
  const deserializeAws_restJson1ResourceShareInvitation = (output, context) => {
2653
2609
  return {
2654
- invitationTimestamp: output.invitationTimestamp !== undefined && output.invitationTimestamp !== null
2610
+ invitationTimestamp: output.invitationTimestamp != null
2655
2611
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.invitationTimestamp)))
2656
2612
  : undefined,
2657
2613
  receiverAccountId: (0, smithy_client_1.expectString)(output.receiverAccountId),
2658
2614
  receiverArn: (0, smithy_client_1.expectString)(output.receiverArn),
2659
2615
  resourceShareArn: (0, smithy_client_1.expectString)(output.resourceShareArn),
2660
- resourceShareAssociations: output.resourceShareAssociations !== undefined && output.resourceShareAssociations !== null
2616
+ resourceShareAssociations: output.resourceShareAssociations != null
2661
2617
  ? deserializeAws_restJson1ResourceShareAssociationList(output.resourceShareAssociations, context)
2662
2618
  : undefined,
2663
2619
  resourceShareInvitationArn: (0, smithy_client_1.expectString)(output.resourceShareInvitationArn),
@@ -2691,12 +2647,12 @@ const deserializeAws_restJson1ResourceShareList = (output, context) => {
2691
2647
  const deserializeAws_restJson1ResourceSharePermissionDetail = (output, context) => {
2692
2648
  return {
2693
2649
  arn: (0, smithy_client_1.expectString)(output.arn),
2694
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2650
+ creationTime: output.creationTime != null
2695
2651
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
2696
2652
  : undefined,
2697
2653
  defaultVersion: (0, smithy_client_1.expectBoolean)(output.defaultVersion),
2698
2654
  isResourceTypeDefault: (0, smithy_client_1.expectBoolean)(output.isResourceTypeDefault),
2699
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
2655
+ lastUpdatedTime: output.lastUpdatedTime != null
2700
2656
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
2701
2657
  : undefined,
2702
2658
  name: (0, smithy_client_1.expectString)(output.name),
@@ -2719,12 +2675,12 @@ const deserializeAws_restJson1ResourceSharePermissionList = (output, context) =>
2719
2675
  const deserializeAws_restJson1ResourceSharePermissionSummary = (output, context) => {
2720
2676
  return {
2721
2677
  arn: (0, smithy_client_1.expectString)(output.arn),
2722
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2678
+ creationTime: output.creationTime != null
2723
2679
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
2724
2680
  : undefined,
2725
2681
  defaultVersion: (0, smithy_client_1.expectBoolean)(output.defaultVersion),
2726
2682
  isResourceTypeDefault: (0, smithy_client_1.expectBoolean)(output.isResourceTypeDefault),
2727
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
2683
+ lastUpdatedTime: output.lastUpdatedTime != null
2728
2684
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTime)))
2729
2685
  : undefined,
2730
2686
  name: (0, smithy_client_1.expectString)(output.name),
@@ -2799,6 +2755,9 @@ const loadRestJsonErrorCode = (output, data) => {
2799
2755
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2800
2756
  const sanitizeErrorCode = (rawValue) => {
2801
2757
  let cleanValue = rawValue;
2758
+ if (typeof cleanValue === "number") {
2759
+ cleanValue = cleanValue.toString();
2760
+ }
2802
2761
  if (cleanValue.indexOf(":") >= 0) {
2803
2762
  cleanValue = cleanValue.split(":")[0];
2804
2763
  }
@@ -14,8 +14,7 @@ export var serializeAws_restJson1AcceptResourceShareInvitationCommand = function
14
14
  "content-type": "application/json",
15
15
  };
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/acceptresourceshareinvitation";
17
- body = JSON.stringify(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.resourceShareInvitationArn !== undefined &&
18
- input.resourceShareInvitationArn !== null && { resourceShareInvitationArn: input.resourceShareInvitationArn })));
17
+ body = JSON.stringify(__assign(__assign({}, (input.clientToken != null && { clientToken: input.clientToken })), (input.resourceShareInvitationArn != null && { resourceShareInvitationArn: input.resourceShareInvitationArn })));
19
18
  return [2, new __HttpRequest({
20
19
  protocol: protocol,
21
20
  hostname: hostname,
@@ -39,14 +38,11 @@ export var serializeAws_restJson1AssociateResourceShareCommand = function (input
39
38
  "content-type": "application/json",
40
39
  };
41
40
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/associateresourceshare";
42
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.principals !== undefined &&
43
- input.principals !== null && {
41
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.clientToken != null && { clientToken: input.clientToken })), (input.principals != null && {
44
42
  principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
45
- })), (input.resourceArns !== undefined &&
46
- input.resourceArns !== null && {
43
+ })), (input.resourceArns != null && {
47
44
  resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
48
- })), (input.resourceShareArn !== undefined &&
49
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })));
45
+ })), (input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn })));
50
46
  return [2, new __HttpRequest({
51
47
  protocol: protocol,
52
48
  hostname: hostname,
@@ -70,9 +66,7 @@ export var serializeAws_restJson1AssociateResourceSharePermissionCommand = funct
70
66
  "content-type": "application/json",
71
67
  };
72
68
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/associateresourcesharepermission";
73
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn })), (input.permissionVersion !== undefined &&
74
- input.permissionVersion !== null && { permissionVersion: input.permissionVersion })), (input.replace !== undefined && input.replace !== null && { replace: input.replace })), (input.resourceShareArn !== undefined &&
75
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })));
69
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.clientToken != null && { clientToken: input.clientToken })), (input.permissionArn != null && { permissionArn: input.permissionArn })), (input.permissionVersion != null && { permissionVersion: input.permissionVersion })), (input.replace != null && { replace: input.replace })), (input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn })));
76
70
  return [2, new __HttpRequest({
77
71
  protocol: protocol,
78
72
  hostname: hostname,
@@ -96,18 +90,13 @@ export var serializeAws_restJson1CreateResourceShareCommand = function (input, c
96
90
  "content-type": "application/json",
97
91
  };
98
92
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/createresourceshare";
99
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.allowExternalPrincipals !== undefined &&
100
- input.allowExternalPrincipals !== null && { allowExternalPrincipals: input.allowExternalPrincipals })), (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.permissionArns !== undefined &&
101
- input.permissionArns !== null && {
93
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.allowExternalPrincipals != null && { allowExternalPrincipals: input.allowExternalPrincipals })), (input.clientToken != null && { clientToken: input.clientToken })), (input.name != null && { name: input.name })), (input.permissionArns != null && {
102
94
  permissionArns: serializeAws_restJson1PermissionArnList(input.permissionArns, context),
103
- })), (input.principals !== undefined &&
104
- input.principals !== null && {
95
+ })), (input.principals != null && {
105
96
  principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
106
- })), (input.resourceArns !== undefined &&
107
- input.resourceArns !== null && {
97
+ })), (input.resourceArns != null && {
108
98
  resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
109
- })), (input.tags !== undefined &&
110
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
99
+ })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
111
100
  return [2, new __HttpRequest({
112
101
  protocol: protocol,
113
102
  hostname: hostname,
@@ -154,14 +143,11 @@ export var serializeAws_restJson1DisassociateResourceShareCommand = function (in
154
143
  "content-type": "application/json",
155
144
  };
156
145
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/disassociateresourceshare";
157
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.principals !== undefined &&
158
- input.principals !== null && {
146
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.clientToken != null && { clientToken: input.clientToken })), (input.principals != null && {
159
147
  principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
160
- })), (input.resourceArns !== undefined &&
161
- input.resourceArns !== null && {
148
+ })), (input.resourceArns != null && {
162
149
  resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
163
- })), (input.resourceShareArn !== undefined &&
164
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })));
150
+ })), (input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn })));
165
151
  return [2, new __HttpRequest({
166
152
  protocol: protocol,
167
153
  hostname: hostname,
@@ -185,8 +171,7 @@ export var serializeAws_restJson1DisassociateResourceSharePermissionCommand = fu
185
171
  "content-type": "application/json",
186
172
  };
187
173
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/disassociateresourcesharepermission";
188
- body = JSON.stringify(__assign(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn })), (input.resourceShareArn !== undefined &&
189
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })));
174
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.clientToken != null && { clientToken: input.clientToken })), (input.permissionArn != null && { permissionArn: input.permissionArn })), (input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn })));
190
175
  return [2, new __HttpRequest({
191
176
  protocol: protocol,
192
177
  hostname: hostname,
@@ -234,8 +219,7 @@ export var serializeAws_restJson1GetPermissionCommand = function (input, context
234
219
  "content-type": "application/json",
235
220
  };
236
221
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getpermission";
237
- body = JSON.stringify(__assign(__assign({}, (input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn })), (input.permissionVersion !== undefined &&
238
- input.permissionVersion !== null && { permissionVersion: input.permissionVersion })));
222
+ body = JSON.stringify(__assign(__assign({}, (input.permissionArn != null && { permissionArn: input.permissionArn })), (input.permissionVersion != null && { permissionVersion: input.permissionVersion })));
239
223
  return [2, new __HttpRequest({
240
224
  protocol: protocol,
241
225
  hostname: hostname,
@@ -259,8 +243,7 @@ export var serializeAws_restJson1GetResourcePoliciesCommand = function (input, c
259
243
  "content-type": "application/json",
260
244
  };
261
245
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getresourcepolicies";
262
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.principal !== undefined && input.principal !== null && { principal: input.principal })), (input.resourceArns !== undefined &&
263
- input.resourceArns !== null && {
246
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.principal != null && { principal: input.principal })), (input.resourceArns != null && {
264
247
  resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
265
248
  })));
266
249
  return [2, new __HttpRequest({
@@ -286,10 +269,7 @@ export var serializeAws_restJson1GetResourceShareAssociationsCommand = function
286
269
  "content-type": "application/json",
287
270
  };
288
271
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getresourceshareassociations";
289
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.associationStatus !== undefined &&
290
- input.associationStatus !== null && { associationStatus: input.associationStatus })), (input.associationType !== undefined &&
291
- input.associationType !== null && { associationType: input.associationType })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.principal !== undefined && input.principal !== null && { principal: input.principal })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.resourceShareArns !== undefined &&
292
- input.resourceShareArns !== null && {
272
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.associationStatus != null && { associationStatus: input.associationStatus })), (input.associationType != null && { associationType: input.associationType })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.principal != null && { principal: input.principal })), (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.resourceShareArns != null && {
293
273
  resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
294
274
  })));
295
275
  return [2, new __HttpRequest({
@@ -315,11 +295,9 @@ export var serializeAws_restJson1GetResourceShareInvitationsCommand = function (
315
295
  "content-type": "application/json",
316
296
  };
317
297
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getresourceshareinvitations";
318
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceShareArns !== undefined &&
319
- input.resourceShareArns !== null && {
298
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceShareArns != null && {
320
299
  resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
321
- })), (input.resourceShareInvitationArns !== undefined &&
322
- input.resourceShareInvitationArns !== null && {
300
+ })), (input.resourceShareInvitationArns != null && {
323
301
  resourceShareInvitationArns: serializeAws_restJson1ResourceShareInvitationArnList(input.resourceShareInvitationArns, context),
324
302
  })));
325
303
  return [2, new __HttpRequest({
@@ -345,12 +323,9 @@ export var serializeAws_restJson1GetResourceSharesCommand = function (input, con
345
323
  "content-type": "application/json",
346
324
  };
347
325
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getresourceshares";
348
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn })), (input.resourceOwner !== undefined && input.resourceOwner !== null && { resourceOwner: input.resourceOwner })), (input.resourceShareArns !== undefined &&
349
- input.resourceShareArns !== null && {
326
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.name != null && { name: input.name })), (input.nextToken != null && { nextToken: input.nextToken })), (input.permissionArn != null && { permissionArn: input.permissionArn })), (input.resourceOwner != null && { resourceOwner: input.resourceOwner })), (input.resourceShareArns != null && {
350
327
  resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
351
- })), (input.resourceShareStatus !== undefined &&
352
- input.resourceShareStatus !== null && { resourceShareStatus: input.resourceShareStatus })), (input.tagFilters !== undefined &&
353
- input.tagFilters !== null && { tagFilters: serializeAws_restJson1TagFilters(input.tagFilters, context) })));
328
+ })), (input.resourceShareStatus != null && { resourceShareStatus: input.resourceShareStatus })), (input.tagFilters != null && { tagFilters: serializeAws_restJson1TagFilters(input.tagFilters, context) })));
354
329
  return [2, new __HttpRequest({
355
330
  protocol: protocol,
356
331
  hostname: hostname,
@@ -374,9 +349,7 @@ export var serializeAws_restJson1ListPendingInvitationResourcesCommand = functio
374
349
  "content-type": "application/json",
375
350
  };
376
351
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listpendinginvitationresources";
377
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceRegionScope !== undefined &&
378
- input.resourceRegionScope !== null && { resourceRegionScope: input.resourceRegionScope })), (input.resourceShareInvitationArn !== undefined &&
379
- input.resourceShareInvitationArn !== null && { resourceShareInvitationArn: input.resourceShareInvitationArn })));
352
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceRegionScope != null && { resourceRegionScope: input.resourceRegionScope })), (input.resourceShareInvitationArn != null && { resourceShareInvitationArn: input.resourceShareInvitationArn })));
380
353
  return [2, new __HttpRequest({
381
354
  protocol: protocol,
382
355
  hostname: hostname,
@@ -400,7 +373,7 @@ export var serializeAws_restJson1ListPermissionsCommand = function (input, conte
400
373
  "content-type": "application/json",
401
374
  };
402
375
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listpermissions";
403
- body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })));
376
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceType != null && { resourceType: input.resourceType })));
404
377
  return [2, new __HttpRequest({
405
378
  protocol: protocol,
406
379
  hostname: hostname,
@@ -424,7 +397,7 @@ export var serializeAws_restJson1ListPermissionVersionsCommand = function (input
424
397
  "content-type": "application/json",
425
398
  };
426
399
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listpermissionversions";
427
- body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn })));
400
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.permissionArn != null && { permissionArn: input.permissionArn })));
428
401
  return [2, new __HttpRequest({
429
402
  protocol: protocol,
430
403
  hostname: hostname,
@@ -448,13 +421,11 @@ export var serializeAws_restJson1ListPrincipalsCommand = function (input, contex
448
421
  "content-type": "application/json",
449
422
  };
450
423
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listprincipals";
451
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.principals !== undefined &&
452
- input.principals !== null && {
424
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.principals != null && {
453
425
  principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
454
- })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.resourceOwner !== undefined && input.resourceOwner !== null && { resourceOwner: input.resourceOwner })), (input.resourceShareArns !== undefined &&
455
- input.resourceShareArns !== null && {
426
+ })), (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.resourceOwner != null && { resourceOwner: input.resourceOwner })), (input.resourceShareArns != null && {
456
427
  resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
457
- })), (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })));
428
+ })), (input.resourceType != null && { resourceType: input.resourceType })));
458
429
  return [2, new __HttpRequest({
459
430
  protocol: protocol,
460
431
  hostname: hostname,
@@ -478,14 +449,11 @@ export var serializeAws_restJson1ListResourcesCommand = function (input, context
478
449
  "content-type": "application/json",
479
450
  };
480
451
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listresources";
481
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.principal !== undefined && input.principal !== null && { principal: input.principal })), (input.resourceArns !== undefined &&
482
- input.resourceArns !== null && {
452
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.principal != null && { principal: input.principal })), (input.resourceArns != null && {
483
453
  resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
484
- })), (input.resourceOwner !== undefined && input.resourceOwner !== null && { resourceOwner: input.resourceOwner })), (input.resourceRegionScope !== undefined &&
485
- input.resourceRegionScope !== null && { resourceRegionScope: input.resourceRegionScope })), (input.resourceShareArns !== undefined &&
486
- input.resourceShareArns !== null && {
454
+ })), (input.resourceOwner != null && { resourceOwner: input.resourceOwner })), (input.resourceRegionScope != null && { resourceRegionScope: input.resourceRegionScope })), (input.resourceShareArns != null && {
487
455
  resourceShareArns: serializeAws_restJson1ResourceShareArnList(input.resourceShareArns, context),
488
- })), (input.resourceType !== undefined && input.resourceType !== null && { resourceType: input.resourceType })));
456
+ })), (input.resourceType != null && { resourceType: input.resourceType })));
489
457
  return [2, new __HttpRequest({
490
458
  protocol: protocol,
491
459
  hostname: hostname,
@@ -509,8 +477,7 @@ export var serializeAws_restJson1ListResourceSharePermissionsCommand = function
509
477
  "content-type": "application/json",
510
478
  };
511
479
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listresourcesharepermissions";
512
- body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceShareArn !== undefined &&
513
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })));
480
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn })));
514
481
  return [2, new __HttpRequest({
515
482
  protocol: protocol,
516
483
  hostname: hostname,
@@ -534,8 +501,7 @@ export var serializeAws_restJson1ListResourceTypesCommand = function (input, con
534
501
  "content-type": "application/json",
535
502
  };
536
503
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listresourcetypes";
537
- body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceRegionScope !== undefined &&
538
- input.resourceRegionScope !== null && { resourceRegionScope: input.resourceRegionScope })));
504
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceRegionScope != null && { resourceRegionScope: input.resourceRegionScope })));
539
505
  return [2, new __HttpRequest({
540
506
  protocol: protocol,
541
507
  hostname: hostname,
@@ -582,8 +548,7 @@ export var serializeAws_restJson1RejectResourceShareInvitationCommand = function
582
548
  "content-type": "application/json",
583
549
  };
584
550
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rejectresourceshareinvitation";
585
- body = JSON.stringify(__assign(__assign({}, (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.resourceShareInvitationArn !== undefined &&
586
- input.resourceShareInvitationArn !== null && { resourceShareInvitationArn: input.resourceShareInvitationArn })));
551
+ body = JSON.stringify(__assign(__assign({}, (input.clientToken != null && { clientToken: input.clientToken })), (input.resourceShareInvitationArn != null && { resourceShareInvitationArn: input.resourceShareInvitationArn })));
587
552
  return [2, new __HttpRequest({
588
553
  protocol: protocol,
589
554
  hostname: hostname,
@@ -607,9 +572,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
607
572
  "content-type": "application/json",
608
573
  };
609
574
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tagresource";
610
- body = JSON.stringify(__assign(__assign({}, (input.resourceShareArn !== undefined &&
611
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })), (input.tags !== undefined &&
612
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
575
+ body = JSON.stringify(__assign(__assign({}, (input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
613
576
  return [2, new __HttpRequest({
614
577
  protocol: protocol,
615
578
  hostname: hostname,
@@ -633,9 +596,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
633
596
  "content-type": "application/json",
634
597
  };
635
598
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/untagresource";
636
- body = JSON.stringify(__assign(__assign({}, (input.resourceShareArn !== undefined &&
637
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })), (input.tagKeys !== undefined &&
638
- input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
599
+ body = JSON.stringify(__assign(__assign({}, (input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn })), (input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
639
600
  return [2, new __HttpRequest({
640
601
  protocol: protocol,
641
602
  hostname: hostname,
@@ -659,9 +620,7 @@ export var serializeAws_restJson1UpdateResourceShareCommand = function (input, c
659
620
  "content-type": "application/json",
660
621
  };
661
622
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateresourceshare";
662
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.allowExternalPrincipals !== undefined &&
663
- input.allowExternalPrincipals !== null && { allowExternalPrincipals: input.allowExternalPrincipals })), (input.clientToken !== undefined && input.clientToken !== null && { clientToken: input.clientToken })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.resourceShareArn !== undefined &&
664
- input.resourceShareArn !== null && { resourceShareArn: input.resourceShareArn })));
623
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.allowExternalPrincipals != null && { allowExternalPrincipals: input.allowExternalPrincipals })), (input.clientToken != null && { clientToken: input.clientToken })), (input.name != null && { name: input.name })), (input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn })));
665
624
  return [2, new __HttpRequest({
666
625
  protocol: protocol,
667
626
  hostname: hostname,
@@ -3122,11 +3081,10 @@ var serializeAws_restJson1ResourceShareInvitationArnList = function (input, cont
3122
3081
  });
3123
3082
  };
3124
3083
  var serializeAws_restJson1Tag = function (input, context) {
3125
- return __assign(__assign({}, (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
3084
+ return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
3126
3085
  };
3127
3086
  var serializeAws_restJson1TagFilter = function (input, context) {
3128
- return __assign(__assign({}, (input.tagKey !== undefined && input.tagKey !== null && { tagKey: input.tagKey })), (input.tagValues !== undefined &&
3129
- input.tagValues !== null && { tagValues: serializeAws_restJson1TagValueList(input.tagValues, context) }));
3087
+ return __assign(__assign({}, (input.tagKey != null && { tagKey: input.tagKey })), (input.tagValues != null && { tagValues: serializeAws_restJson1TagValueList(input.tagValues, context) }));
3130
3088
  };
3131
3089
  var serializeAws_restJson1TagFilters = function (input, context) {
3132
3090
  return input
@@ -3181,12 +3139,12 @@ var deserializeAws_restJson1PolicyList = function (output, context) {
3181
3139
  };
3182
3140
  var deserializeAws_restJson1Principal = function (output, context) {
3183
3141
  return {
3184
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3142
+ creationTime: output.creationTime != null
3185
3143
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
3186
3144
  : undefined,
3187
3145
  external: __expectBoolean(output.external),
3188
3146
  id: __expectString(output.id),
3189
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
3147
+ lastUpdatedTime: output.lastUpdatedTime != null
3190
3148
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
3191
3149
  : undefined,
3192
3150
  resourceShareArn: __expectString(output.resourceShareArn),
@@ -3206,10 +3164,10 @@ var deserializeAws_restJson1PrincipalList = function (output, context) {
3206
3164
  var deserializeAws_restJson1Resource = function (output, context) {
3207
3165
  return {
3208
3166
  arn: __expectString(output.arn),
3209
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3167
+ creationTime: output.creationTime != null
3210
3168
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
3211
3169
  : undefined,
3212
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
3170
+ lastUpdatedTime: output.lastUpdatedTime != null
3213
3171
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
3214
3172
  : undefined,
3215
3173
  resourceGroupArn: __expectString(output.resourceGroupArn),
@@ -3234,11 +3192,11 @@ var deserializeAws_restJson1ResourceList = function (output, context) {
3234
3192
  var deserializeAws_restJson1ResourceShare = function (output, context) {
3235
3193
  return {
3236
3194
  allowExternalPrincipals: __expectBoolean(output.allowExternalPrincipals),
3237
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3195
+ creationTime: output.creationTime != null
3238
3196
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
3239
3197
  : undefined,
3240
3198
  featureSet: __expectString(output.featureSet),
3241
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
3199
+ lastUpdatedTime: output.lastUpdatedTime != null
3242
3200
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
3243
3201
  : undefined,
3244
3202
  name: __expectString(output.name),
@@ -3246,20 +3204,18 @@ var deserializeAws_restJson1ResourceShare = function (output, context) {
3246
3204
  resourceShareArn: __expectString(output.resourceShareArn),
3247
3205
  status: __expectString(output.status),
3248
3206
  statusMessage: __expectString(output.statusMessage),
3249
- tags: output.tags !== undefined && output.tags !== null
3250
- ? deserializeAws_restJson1TagList(output.tags, context)
3251
- : undefined,
3207
+ tags: output.tags != null ? deserializeAws_restJson1TagList(output.tags, context) : undefined,
3252
3208
  };
3253
3209
  };
3254
3210
  var deserializeAws_restJson1ResourceShareAssociation = function (output, context) {
3255
3211
  return {
3256
3212
  associatedEntity: __expectString(output.associatedEntity),
3257
3213
  associationType: __expectString(output.associationType),
3258
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3214
+ creationTime: output.creationTime != null
3259
3215
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
3260
3216
  : undefined,
3261
3217
  external: __expectBoolean(output.external),
3262
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
3218
+ lastUpdatedTime: output.lastUpdatedTime != null
3263
3219
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
3264
3220
  : undefined,
3265
3221
  resourceShareArn: __expectString(output.resourceShareArn),
@@ -3281,13 +3237,13 @@ var deserializeAws_restJson1ResourceShareAssociationList = function (output, con
3281
3237
  };
3282
3238
  var deserializeAws_restJson1ResourceShareInvitation = function (output, context) {
3283
3239
  return {
3284
- invitationTimestamp: output.invitationTimestamp !== undefined && output.invitationTimestamp !== null
3240
+ invitationTimestamp: output.invitationTimestamp != null
3285
3241
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.invitationTimestamp)))
3286
3242
  : undefined,
3287
3243
  receiverAccountId: __expectString(output.receiverAccountId),
3288
3244
  receiverArn: __expectString(output.receiverArn),
3289
3245
  resourceShareArn: __expectString(output.resourceShareArn),
3290
- resourceShareAssociations: output.resourceShareAssociations !== undefined && output.resourceShareAssociations !== null
3246
+ resourceShareAssociations: output.resourceShareAssociations != null
3291
3247
  ? deserializeAws_restJson1ResourceShareAssociationList(output.resourceShareAssociations, context)
3292
3248
  : undefined,
3293
3249
  resourceShareInvitationArn: __expectString(output.resourceShareInvitationArn),
@@ -3321,12 +3277,12 @@ var deserializeAws_restJson1ResourceShareList = function (output, context) {
3321
3277
  var deserializeAws_restJson1ResourceSharePermissionDetail = function (output, context) {
3322
3278
  return {
3323
3279
  arn: __expectString(output.arn),
3324
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3280
+ creationTime: output.creationTime != null
3325
3281
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
3326
3282
  : undefined,
3327
3283
  defaultVersion: __expectBoolean(output.defaultVersion),
3328
3284
  isResourceTypeDefault: __expectBoolean(output.isResourceTypeDefault),
3329
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
3285
+ lastUpdatedTime: output.lastUpdatedTime != null
3330
3286
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
3331
3287
  : undefined,
3332
3288
  name: __expectString(output.name),
@@ -3349,12 +3305,12 @@ var deserializeAws_restJson1ResourceSharePermissionList = function (output, cont
3349
3305
  var deserializeAws_restJson1ResourceSharePermissionSummary = function (output, context) {
3350
3306
  return {
3351
3307
  arn: __expectString(output.arn),
3352
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3308
+ creationTime: output.creationTime != null
3353
3309
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
3354
3310
  : undefined,
3355
3311
  defaultVersion: __expectBoolean(output.defaultVersion),
3356
3312
  isResourceTypeDefault: __expectBoolean(output.isResourceTypeDefault),
3357
- lastUpdatedTime: output.lastUpdatedTime !== undefined && output.lastUpdatedTime !== null
3313
+ lastUpdatedTime: output.lastUpdatedTime != null
3358
3314
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
3359
3315
  : undefined,
3360
3316
  name: __expectString(output.name),
@@ -3436,6 +3392,9 @@ var loadRestJsonErrorCode = function (output, data) {
3436
3392
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
3437
3393
  var sanitizeErrorCode = function (rawValue) {
3438
3394
  var cleanValue = rawValue;
3395
+ if (typeof cleanValue === "number") {
3396
+ cleanValue = cleanValue.toString();
3397
+ }
3439
3398
  if (cleanValue.indexOf(":") >= 0) {
3440
3399
  cleanValue = cleanValue.split(":")[0];
3441
3400
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ram",
3
3
  "description": "AWS SDK for JavaScript Ram Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.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",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"