@aws-sdk/client-ram 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +235 -255
- package/dist-es/protocols/Aws_restJson1.js +177 -197
- package/package.json +26 -26
|
@@ -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
|
|
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
|
|
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
|
|
46
|
-
input.resourceArns !== null && {
|
|
43
|
+
})), (input.resourceArns != null && {
|
|
47
44
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
48
|
-
})), (input.resourceShareArn
|
|
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
|
|
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
|
|
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
|
|
104
|
-
input.principals !== null && {
|
|
95
|
+
})), (input.principals != null && {
|
|
105
96
|
principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
|
|
106
|
-
})), (input.resourceArns
|
|
107
|
-
input.resourceArns !== null && {
|
|
97
|
+
})), (input.resourceArns != null && {
|
|
108
98
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
109
|
-
})), (input.tags
|
|
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
|
|
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
|
|
161
|
-
input.resourceArns !== null && {
|
|
148
|
+
})), (input.resourceArns != null && {
|
|
162
149
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
163
|
-
})), (input.resourceShareArn
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
@@ -703,7 +662,7 @@ export var deserializeAws_restJson1AcceptResourceShareInvitationCommand = functi
|
|
|
703
662
|
});
|
|
704
663
|
}); };
|
|
705
664
|
var deserializeAws_restJson1AcceptResourceShareInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
706
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
665
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
707
666
|
var _c;
|
|
708
667
|
return __generator(this, function (_d) {
|
|
709
668
|
switch (_d.label) {
|
|
@@ -713,7 +672,6 @@ var deserializeAws_restJson1AcceptResourceShareInvitationCommandError = function
|
|
|
713
672
|
return [4, parseBody(output.body, context)];
|
|
714
673
|
case 1:
|
|
715
674
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
716
|
-
errorCode = "UnknownError";
|
|
717
675
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
718
676
|
_b = errorCode;
|
|
719
677
|
switch (_b) {
|
|
@@ -761,10 +719,12 @@ var deserializeAws_restJson1AcceptResourceShareInvitationCommandError = function
|
|
|
761
719
|
case 21: throw _d.sent();
|
|
762
720
|
case 22:
|
|
763
721
|
parsedBody = parsedOutput.body;
|
|
722
|
+
$metadata = deserializeMetadata(output);
|
|
723
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
764
724
|
response = new __BaseException({
|
|
765
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
725
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
766
726
|
$fault: "client",
|
|
767
|
-
$metadata:
|
|
727
|
+
$metadata: $metadata,
|
|
768
728
|
});
|
|
769
729
|
throw __decorateServiceException(response, parsedBody);
|
|
770
730
|
}
|
|
@@ -799,7 +759,7 @@ export var deserializeAws_restJson1AssociateResourceShareCommand = function (out
|
|
|
799
759
|
});
|
|
800
760
|
}); };
|
|
801
761
|
var deserializeAws_restJson1AssociateResourceShareCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
802
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
762
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
803
763
|
var _c;
|
|
804
764
|
return __generator(this, function (_d) {
|
|
805
765
|
switch (_d.label) {
|
|
@@ -809,7 +769,6 @@ var deserializeAws_restJson1AssociateResourceShareCommandError = function (outpu
|
|
|
809
769
|
return [4, parseBody(output.body, context)];
|
|
810
770
|
case 1:
|
|
811
771
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
812
|
-
errorCode = "UnknownError";
|
|
813
772
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
773
|
_b = errorCode;
|
|
815
774
|
switch (_b) {
|
|
@@ -861,10 +820,12 @@ var deserializeAws_restJson1AssociateResourceShareCommandError = function (outpu
|
|
|
861
820
|
case 23: throw _d.sent();
|
|
862
821
|
case 24:
|
|
863
822
|
parsedBody = parsedOutput.body;
|
|
823
|
+
$metadata = deserializeMetadata(output);
|
|
824
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
864
825
|
response = new __BaseException({
|
|
865
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
826
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
866
827
|
$fault: "client",
|
|
867
|
-
$metadata:
|
|
828
|
+
$metadata: $metadata,
|
|
868
829
|
});
|
|
869
830
|
throw __decorateServiceException(response, parsedBody);
|
|
870
831
|
}
|
|
@@ -899,7 +860,7 @@ export var deserializeAws_restJson1AssociateResourceSharePermissionCommand = fun
|
|
|
899
860
|
});
|
|
900
861
|
}); };
|
|
901
862
|
var deserializeAws_restJson1AssociateResourceSharePermissionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
902
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
863
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
903
864
|
var _c;
|
|
904
865
|
return __generator(this, function (_d) {
|
|
905
866
|
switch (_d.label) {
|
|
@@ -909,7 +870,6 @@ var deserializeAws_restJson1AssociateResourceSharePermissionCommandError = funct
|
|
|
909
870
|
return [4, parseBody(output.body, context)];
|
|
910
871
|
case 1:
|
|
911
872
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
912
|
-
errorCode = "UnknownError";
|
|
913
873
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
874
|
_b = errorCode;
|
|
915
875
|
switch (_b) {
|
|
@@ -945,10 +905,12 @@ var deserializeAws_restJson1AssociateResourceSharePermissionCommandError = funct
|
|
|
945
905
|
case 15: throw _d.sent();
|
|
946
906
|
case 16:
|
|
947
907
|
parsedBody = parsedOutput.body;
|
|
908
|
+
$metadata = deserializeMetadata(output);
|
|
909
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
948
910
|
response = new __BaseException({
|
|
949
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
911
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
950
912
|
$fault: "client",
|
|
951
|
-
$metadata:
|
|
913
|
+
$metadata: $metadata,
|
|
952
914
|
});
|
|
953
915
|
throw __decorateServiceException(response, parsedBody);
|
|
954
916
|
}
|
|
@@ -983,7 +945,7 @@ export var deserializeAws_restJson1CreateResourceShareCommand = function (output
|
|
|
983
945
|
});
|
|
984
946
|
}); };
|
|
985
947
|
var deserializeAws_restJson1CreateResourceShareCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
986
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
948
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
987
949
|
var _c;
|
|
988
950
|
return __generator(this, function (_d) {
|
|
989
951
|
switch (_d.label) {
|
|
@@ -993,7 +955,6 @@ var deserializeAws_restJson1CreateResourceShareCommandError = function (output,
|
|
|
993
955
|
return [4, parseBody(output.body, context)];
|
|
994
956
|
case 1:
|
|
995
957
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
996
|
-
errorCode = "UnknownError";
|
|
997
958
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
998
959
|
_b = errorCode;
|
|
999
960
|
switch (_b) {
|
|
@@ -1045,10 +1006,12 @@ var deserializeAws_restJson1CreateResourceShareCommandError = function (output,
|
|
|
1045
1006
|
case 23: throw _d.sent();
|
|
1046
1007
|
case 24:
|
|
1047
1008
|
parsedBody = parsedOutput.body;
|
|
1009
|
+
$metadata = deserializeMetadata(output);
|
|
1010
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1048
1011
|
response = new __BaseException({
|
|
1049
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1012
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1050
1013
|
$fault: "client",
|
|
1051
|
-
$metadata:
|
|
1014
|
+
$metadata: $metadata,
|
|
1052
1015
|
});
|
|
1053
1016
|
throw __decorateServiceException(response, parsedBody);
|
|
1054
1017
|
}
|
|
@@ -1083,7 +1046,7 @@ export var deserializeAws_restJson1DeleteResourceShareCommand = function (output
|
|
|
1083
1046
|
});
|
|
1084
1047
|
}); };
|
|
1085
1048
|
var deserializeAws_restJson1DeleteResourceShareCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1086
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1049
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1087
1050
|
var _c;
|
|
1088
1051
|
return __generator(this, function (_d) {
|
|
1089
1052
|
switch (_d.label) {
|
|
@@ -1093,7 +1056,6 @@ var deserializeAws_restJson1DeleteResourceShareCommandError = function (output,
|
|
|
1093
1056
|
return [4, parseBody(output.body, context)];
|
|
1094
1057
|
case 1:
|
|
1095
1058
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1096
|
-
errorCode = "UnknownError";
|
|
1097
1059
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
1060
|
_b = errorCode;
|
|
1099
1061
|
switch (_b) {
|
|
@@ -1137,10 +1099,12 @@ var deserializeAws_restJson1DeleteResourceShareCommandError = function (output,
|
|
|
1137
1099
|
case 19: throw _d.sent();
|
|
1138
1100
|
case 20:
|
|
1139
1101
|
parsedBody = parsedOutput.body;
|
|
1102
|
+
$metadata = deserializeMetadata(output);
|
|
1103
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1140
1104
|
response = new __BaseException({
|
|
1141
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1105
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1142
1106
|
$fault: "client",
|
|
1143
|
-
$metadata:
|
|
1107
|
+
$metadata: $metadata,
|
|
1144
1108
|
});
|
|
1145
1109
|
throw __decorateServiceException(response, parsedBody);
|
|
1146
1110
|
}
|
|
@@ -1175,7 +1139,7 @@ export var deserializeAws_restJson1DisassociateResourceShareCommand = function (
|
|
|
1175
1139
|
});
|
|
1176
1140
|
}); };
|
|
1177
1141
|
var deserializeAws_restJson1DisassociateResourceShareCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1178
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1142
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1179
1143
|
var _c;
|
|
1180
1144
|
return __generator(this, function (_d) {
|
|
1181
1145
|
switch (_d.label) {
|
|
@@ -1185,7 +1149,6 @@ var deserializeAws_restJson1DisassociateResourceShareCommandError = function (ou
|
|
|
1185
1149
|
return [4, parseBody(output.body, context)];
|
|
1186
1150
|
case 1:
|
|
1187
1151
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1188
|
-
errorCode = "UnknownError";
|
|
1189
1152
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
1153
|
_b = errorCode;
|
|
1191
1154
|
switch (_b) {
|
|
@@ -1233,10 +1196,12 @@ var deserializeAws_restJson1DisassociateResourceShareCommandError = function (ou
|
|
|
1233
1196
|
case 21: throw _d.sent();
|
|
1234
1197
|
case 22:
|
|
1235
1198
|
parsedBody = parsedOutput.body;
|
|
1199
|
+
$metadata = deserializeMetadata(output);
|
|
1200
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1236
1201
|
response = new __BaseException({
|
|
1237
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1202
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1238
1203
|
$fault: "client",
|
|
1239
|
-
$metadata:
|
|
1204
|
+
$metadata: $metadata,
|
|
1240
1205
|
});
|
|
1241
1206
|
throw __decorateServiceException(response, parsedBody);
|
|
1242
1207
|
}
|
|
@@ -1271,7 +1236,7 @@ export var deserializeAws_restJson1DisassociateResourceSharePermissionCommand =
|
|
|
1271
1236
|
});
|
|
1272
1237
|
}); };
|
|
1273
1238
|
var deserializeAws_restJson1DisassociateResourceSharePermissionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1274
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1239
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1275
1240
|
var _c;
|
|
1276
1241
|
return __generator(this, function (_d) {
|
|
1277
1242
|
switch (_d.label) {
|
|
@@ -1281,7 +1246,6 @@ var deserializeAws_restJson1DisassociateResourceSharePermissionCommandError = fu
|
|
|
1281
1246
|
return [4, parseBody(output.body, context)];
|
|
1282
1247
|
case 1:
|
|
1283
1248
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1284
|
-
errorCode = "UnknownError";
|
|
1285
1249
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
1250
|
_b = errorCode;
|
|
1287
1251
|
switch (_b) {
|
|
@@ -1321,10 +1285,12 @@ var deserializeAws_restJson1DisassociateResourceSharePermissionCommandError = fu
|
|
|
1321
1285
|
case 17: throw _d.sent();
|
|
1322
1286
|
case 18:
|
|
1323
1287
|
parsedBody = parsedOutput.body;
|
|
1288
|
+
$metadata = deserializeMetadata(output);
|
|
1289
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1324
1290
|
response = new __BaseException({
|
|
1325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1291
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1326
1292
|
$fault: "client",
|
|
1327
|
-
$metadata:
|
|
1293
|
+
$metadata: $metadata,
|
|
1328
1294
|
});
|
|
1329
1295
|
throw __decorateServiceException(response, parsedBody);
|
|
1330
1296
|
}
|
|
@@ -1355,7 +1321,7 @@ export var deserializeAws_restJson1EnableSharingWithAwsOrganizationCommand = fun
|
|
|
1355
1321
|
});
|
|
1356
1322
|
}); };
|
|
1357
1323
|
var deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1358
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1324
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1359
1325
|
var _c;
|
|
1360
1326
|
return __generator(this, function (_d) {
|
|
1361
1327
|
switch (_d.label) {
|
|
@@ -1365,7 +1331,6 @@ var deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError = funct
|
|
|
1365
1331
|
return [4, parseBody(output.body, context)];
|
|
1366
1332
|
case 1:
|
|
1367
1333
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1368
|
-
errorCode = "UnknownError";
|
|
1369
1334
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
1335
|
_b = errorCode;
|
|
1371
1336
|
switch (_b) {
|
|
@@ -1385,10 +1350,12 @@ var deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError = funct
|
|
|
1385
1350
|
case 7: throw _d.sent();
|
|
1386
1351
|
case 8:
|
|
1387
1352
|
parsedBody = parsedOutput.body;
|
|
1353
|
+
$metadata = deserializeMetadata(output);
|
|
1354
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1388
1355
|
response = new __BaseException({
|
|
1389
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1390
1357
|
$fault: "client",
|
|
1391
|
-
$metadata:
|
|
1358
|
+
$metadata: $metadata,
|
|
1392
1359
|
});
|
|
1393
1360
|
throw __decorateServiceException(response, parsedBody);
|
|
1394
1361
|
}
|
|
@@ -1419,7 +1386,7 @@ export var deserializeAws_restJson1GetPermissionCommand = function (output, cont
|
|
|
1419
1386
|
});
|
|
1420
1387
|
}); };
|
|
1421
1388
|
var deserializeAws_restJson1GetPermissionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1422
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1389
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1423
1390
|
var _c;
|
|
1424
1391
|
return __generator(this, function (_d) {
|
|
1425
1392
|
switch (_d.label) {
|
|
@@ -1429,7 +1396,6 @@ var deserializeAws_restJson1GetPermissionCommandError = function (output, contex
|
|
|
1429
1396
|
return [4, parseBody(output.body, context)];
|
|
1430
1397
|
case 1:
|
|
1431
1398
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1432
|
-
errorCode = "UnknownError";
|
|
1433
1399
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
1400
|
_b = errorCode;
|
|
1435
1401
|
switch (_b) {
|
|
@@ -1461,10 +1427,12 @@ var deserializeAws_restJson1GetPermissionCommandError = function (output, contex
|
|
|
1461
1427
|
case 13: throw _d.sent();
|
|
1462
1428
|
case 14:
|
|
1463
1429
|
parsedBody = parsedOutput.body;
|
|
1430
|
+
$metadata = deserializeMetadata(output);
|
|
1431
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1464
1432
|
response = new __BaseException({
|
|
1465
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1433
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1466
1434
|
$fault: "client",
|
|
1467
|
-
$metadata:
|
|
1435
|
+
$metadata: $metadata,
|
|
1468
1436
|
});
|
|
1469
1437
|
throw __decorateServiceException(response, parsedBody);
|
|
1470
1438
|
}
|
|
@@ -1499,7 +1467,7 @@ export var deserializeAws_restJson1GetResourcePoliciesCommand = function (output
|
|
|
1499
1467
|
});
|
|
1500
1468
|
}); };
|
|
1501
1469
|
var deserializeAws_restJson1GetResourcePoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1502
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1470
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1503
1471
|
var _c;
|
|
1504
1472
|
return __generator(this, function (_d) {
|
|
1505
1473
|
switch (_d.label) {
|
|
@@ -1509,7 +1477,6 @@ var deserializeAws_restJson1GetResourcePoliciesCommandError = function (output,
|
|
|
1509
1477
|
return [4, parseBody(output.body, context)];
|
|
1510
1478
|
case 1:
|
|
1511
1479
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1512
|
-
errorCode = "UnknownError";
|
|
1513
1480
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
1481
|
_b = errorCode;
|
|
1515
1482
|
switch (_b) {
|
|
@@ -1541,10 +1508,12 @@ var deserializeAws_restJson1GetResourcePoliciesCommandError = function (output,
|
|
|
1541
1508
|
case 13: throw _d.sent();
|
|
1542
1509
|
case 14:
|
|
1543
1510
|
parsedBody = parsedOutput.body;
|
|
1511
|
+
$metadata = deserializeMetadata(output);
|
|
1512
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1544
1513
|
response = new __BaseException({
|
|
1545
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1514
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1546
1515
|
$fault: "client",
|
|
1547
|
-
$metadata:
|
|
1516
|
+
$metadata: $metadata,
|
|
1548
1517
|
});
|
|
1549
1518
|
throw __decorateServiceException(response, parsedBody);
|
|
1550
1519
|
}
|
|
@@ -1579,7 +1548,7 @@ export var deserializeAws_restJson1GetResourceShareAssociationsCommand = functio
|
|
|
1579
1548
|
});
|
|
1580
1549
|
}); };
|
|
1581
1550
|
var deserializeAws_restJson1GetResourceShareAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1582
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1551
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1583
1552
|
var _c;
|
|
1584
1553
|
return __generator(this, function (_d) {
|
|
1585
1554
|
switch (_d.label) {
|
|
@@ -1589,7 +1558,6 @@ var deserializeAws_restJson1GetResourceShareAssociationsCommandError = function
|
|
|
1589
1558
|
return [4, parseBody(output.body, context)];
|
|
1590
1559
|
case 1:
|
|
1591
1560
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1592
|
-
errorCode = "UnknownError";
|
|
1593
1561
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
1562
|
_b = errorCode;
|
|
1595
1563
|
switch (_b) {
|
|
@@ -1625,10 +1593,12 @@ var deserializeAws_restJson1GetResourceShareAssociationsCommandError = function
|
|
|
1625
1593
|
case 15: throw _d.sent();
|
|
1626
1594
|
case 16:
|
|
1627
1595
|
parsedBody = parsedOutput.body;
|
|
1596
|
+
$metadata = deserializeMetadata(output);
|
|
1597
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1628
1598
|
response = new __BaseException({
|
|
1629
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1599
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1630
1600
|
$fault: "client",
|
|
1631
|
-
$metadata:
|
|
1601
|
+
$metadata: $metadata,
|
|
1632
1602
|
});
|
|
1633
1603
|
throw __decorateServiceException(response, parsedBody);
|
|
1634
1604
|
}
|
|
@@ -1663,7 +1633,7 @@ export var deserializeAws_restJson1GetResourceShareInvitationsCommand = function
|
|
|
1663
1633
|
});
|
|
1664
1634
|
}); };
|
|
1665
1635
|
var deserializeAws_restJson1GetResourceShareInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1666
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1636
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1667
1637
|
var _c;
|
|
1668
1638
|
return __generator(this, function (_d) {
|
|
1669
1639
|
switch (_d.label) {
|
|
@@ -1673,7 +1643,6 @@ var deserializeAws_restJson1GetResourceShareInvitationsCommandError = function (
|
|
|
1673
1643
|
return [4, parseBody(output.body, context)];
|
|
1674
1644
|
case 1:
|
|
1675
1645
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1676
|
-
errorCode = "UnknownError";
|
|
1677
1646
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
1647
|
_b = errorCode;
|
|
1679
1648
|
switch (_b) {
|
|
@@ -1713,10 +1682,12 @@ var deserializeAws_restJson1GetResourceShareInvitationsCommandError = function (
|
|
|
1713
1682
|
case 17: throw _d.sent();
|
|
1714
1683
|
case 18:
|
|
1715
1684
|
parsedBody = parsedOutput.body;
|
|
1685
|
+
$metadata = deserializeMetadata(output);
|
|
1686
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1716
1687
|
response = new __BaseException({
|
|
1717
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1688
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1718
1689
|
$fault: "client",
|
|
1719
|
-
$metadata:
|
|
1690
|
+
$metadata: $metadata,
|
|
1720
1691
|
});
|
|
1721
1692
|
throw __decorateServiceException(response, parsedBody);
|
|
1722
1693
|
}
|
|
@@ -1751,7 +1722,7 @@ export var deserializeAws_restJson1GetResourceSharesCommand = function (output,
|
|
|
1751
1722
|
});
|
|
1752
1723
|
}); };
|
|
1753
1724
|
var deserializeAws_restJson1GetResourceSharesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1754
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1725
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1755
1726
|
var _c;
|
|
1756
1727
|
return __generator(this, function (_d) {
|
|
1757
1728
|
switch (_d.label) {
|
|
@@ -1761,7 +1732,6 @@ var deserializeAws_restJson1GetResourceSharesCommandError = function (output, co
|
|
|
1761
1732
|
return [4, parseBody(output.body, context)];
|
|
1762
1733
|
case 1:
|
|
1763
1734
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1764
|
-
errorCode = "UnknownError";
|
|
1765
1735
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
1736
|
_b = errorCode;
|
|
1767
1737
|
switch (_b) {
|
|
@@ -1793,10 +1763,12 @@ var deserializeAws_restJson1GetResourceSharesCommandError = function (output, co
|
|
|
1793
1763
|
case 13: throw _d.sent();
|
|
1794
1764
|
case 14:
|
|
1795
1765
|
parsedBody = parsedOutput.body;
|
|
1766
|
+
$metadata = deserializeMetadata(output);
|
|
1767
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1796
1768
|
response = new __BaseException({
|
|
1797
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1769
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1798
1770
|
$fault: "client",
|
|
1799
|
-
$metadata:
|
|
1771
|
+
$metadata: $metadata,
|
|
1800
1772
|
});
|
|
1801
1773
|
throw __decorateServiceException(response, parsedBody);
|
|
1802
1774
|
}
|
|
@@ -1831,7 +1803,7 @@ export var deserializeAws_restJson1ListPendingInvitationResourcesCommand = funct
|
|
|
1831
1803
|
});
|
|
1832
1804
|
}); };
|
|
1833
1805
|
var deserializeAws_restJson1ListPendingInvitationResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1834
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1806
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1835
1807
|
var _c;
|
|
1836
1808
|
return __generator(this, function (_d) {
|
|
1837
1809
|
switch (_d.label) {
|
|
@@ -1841,7 +1813,6 @@ var deserializeAws_restJson1ListPendingInvitationResourcesCommandError = functio
|
|
|
1841
1813
|
return [4, parseBody(output.body, context)];
|
|
1842
1814
|
case 1:
|
|
1843
1815
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1844
|
-
errorCode = "UnknownError";
|
|
1845
1816
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1846
1817
|
_b = errorCode;
|
|
1847
1818
|
switch (_b) {
|
|
@@ -1885,10 +1856,12 @@ var deserializeAws_restJson1ListPendingInvitationResourcesCommandError = functio
|
|
|
1885
1856
|
case 19: throw _d.sent();
|
|
1886
1857
|
case 20:
|
|
1887
1858
|
parsedBody = parsedOutput.body;
|
|
1859
|
+
$metadata = deserializeMetadata(output);
|
|
1860
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1888
1861
|
response = new __BaseException({
|
|
1889
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1862
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1890
1863
|
$fault: "client",
|
|
1891
|
-
$metadata:
|
|
1864
|
+
$metadata: $metadata,
|
|
1892
1865
|
});
|
|
1893
1866
|
throw __decorateServiceException(response, parsedBody);
|
|
1894
1867
|
}
|
|
@@ -1923,7 +1896,7 @@ export var deserializeAws_restJson1ListPermissionsCommand = function (output, co
|
|
|
1923
1896
|
});
|
|
1924
1897
|
}); };
|
|
1925
1898
|
var deserializeAws_restJson1ListPermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1926
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1899
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1927
1900
|
var _c;
|
|
1928
1901
|
return __generator(this, function (_d) {
|
|
1929
1902
|
switch (_d.label) {
|
|
@@ -1933,7 +1906,6 @@ var deserializeAws_restJson1ListPermissionsCommandError = function (output, cont
|
|
|
1933
1906
|
return [4, parseBody(output.body, context)];
|
|
1934
1907
|
case 1:
|
|
1935
1908
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1936
|
-
errorCode = "UnknownError";
|
|
1937
1909
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1938
1910
|
_b = errorCode;
|
|
1939
1911
|
switch (_b) {
|
|
@@ -1961,10 +1933,12 @@ var deserializeAws_restJson1ListPermissionsCommandError = function (output, cont
|
|
|
1961
1933
|
case 11: throw _d.sent();
|
|
1962
1934
|
case 12:
|
|
1963
1935
|
parsedBody = parsedOutput.body;
|
|
1936
|
+
$metadata = deserializeMetadata(output);
|
|
1937
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1964
1938
|
response = new __BaseException({
|
|
1965
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1939
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1966
1940
|
$fault: "client",
|
|
1967
|
-
$metadata:
|
|
1941
|
+
$metadata: $metadata,
|
|
1968
1942
|
});
|
|
1969
1943
|
throw __decorateServiceException(response, parsedBody);
|
|
1970
1944
|
}
|
|
@@ -1999,7 +1973,7 @@ export var deserializeAws_restJson1ListPermissionVersionsCommand = function (out
|
|
|
1999
1973
|
});
|
|
2000
1974
|
}); };
|
|
2001
1975
|
var deserializeAws_restJson1ListPermissionVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2002
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1976
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2003
1977
|
var _c;
|
|
2004
1978
|
return __generator(this, function (_d) {
|
|
2005
1979
|
switch (_d.label) {
|
|
@@ -2009,7 +1983,6 @@ var deserializeAws_restJson1ListPermissionVersionsCommandError = function (outpu
|
|
|
2009
1983
|
return [4, parseBody(output.body, context)];
|
|
2010
1984
|
case 1:
|
|
2011
1985
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2012
|
-
errorCode = "UnknownError";
|
|
2013
1986
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2014
1987
|
_b = errorCode;
|
|
2015
1988
|
switch (_b) {
|
|
@@ -2045,10 +2018,12 @@ var deserializeAws_restJson1ListPermissionVersionsCommandError = function (outpu
|
|
|
2045
2018
|
case 15: throw _d.sent();
|
|
2046
2019
|
case 16:
|
|
2047
2020
|
parsedBody = parsedOutput.body;
|
|
2021
|
+
$metadata = deserializeMetadata(output);
|
|
2022
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2048
2023
|
response = new __BaseException({
|
|
2049
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2024
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2050
2025
|
$fault: "client",
|
|
2051
|
-
$metadata:
|
|
2026
|
+
$metadata: $metadata,
|
|
2052
2027
|
});
|
|
2053
2028
|
throw __decorateServiceException(response, parsedBody);
|
|
2054
2029
|
}
|
|
@@ -2083,7 +2058,7 @@ export var deserializeAws_restJson1ListPrincipalsCommand = function (output, con
|
|
|
2083
2058
|
});
|
|
2084
2059
|
}); };
|
|
2085
2060
|
var deserializeAws_restJson1ListPrincipalsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2086
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2061
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2087
2062
|
var _c;
|
|
2088
2063
|
return __generator(this, function (_d) {
|
|
2089
2064
|
switch (_d.label) {
|
|
@@ -2093,7 +2068,6 @@ var deserializeAws_restJson1ListPrincipalsCommandError = function (output, conte
|
|
|
2093
2068
|
return [4, parseBody(output.body, context)];
|
|
2094
2069
|
case 1:
|
|
2095
2070
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2096
|
-
errorCode = "UnknownError";
|
|
2097
2071
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2098
2072
|
_b = errorCode;
|
|
2099
2073
|
switch (_b) {
|
|
@@ -2125,10 +2099,12 @@ var deserializeAws_restJson1ListPrincipalsCommandError = function (output, conte
|
|
|
2125
2099
|
case 13: throw _d.sent();
|
|
2126
2100
|
case 14:
|
|
2127
2101
|
parsedBody = parsedOutput.body;
|
|
2102
|
+
$metadata = deserializeMetadata(output);
|
|
2103
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2128
2104
|
response = new __BaseException({
|
|
2129
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2105
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2130
2106
|
$fault: "client",
|
|
2131
|
-
$metadata:
|
|
2107
|
+
$metadata: $metadata,
|
|
2132
2108
|
});
|
|
2133
2109
|
throw __decorateServiceException(response, parsedBody);
|
|
2134
2110
|
}
|
|
@@ -2163,7 +2139,7 @@ export var deserializeAws_restJson1ListResourcesCommand = function (output, cont
|
|
|
2163
2139
|
});
|
|
2164
2140
|
}); };
|
|
2165
2141
|
var deserializeAws_restJson1ListResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2166
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2142
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2167
2143
|
var _c;
|
|
2168
2144
|
return __generator(this, function (_d) {
|
|
2169
2145
|
switch (_d.label) {
|
|
@@ -2173,7 +2149,6 @@ var deserializeAws_restJson1ListResourcesCommandError = function (output, contex
|
|
|
2173
2149
|
return [4, parseBody(output.body, context)];
|
|
2174
2150
|
case 1:
|
|
2175
2151
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2176
|
-
errorCode = "UnknownError";
|
|
2177
2152
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2178
2153
|
_b = errorCode;
|
|
2179
2154
|
switch (_b) {
|
|
@@ -2209,10 +2184,12 @@ var deserializeAws_restJson1ListResourcesCommandError = function (output, contex
|
|
|
2209
2184
|
case 15: throw _d.sent();
|
|
2210
2185
|
case 16:
|
|
2211
2186
|
parsedBody = parsedOutput.body;
|
|
2187
|
+
$metadata = deserializeMetadata(output);
|
|
2188
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2212
2189
|
response = new __BaseException({
|
|
2213
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2190
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2214
2191
|
$fault: "client",
|
|
2215
|
-
$metadata:
|
|
2192
|
+
$metadata: $metadata,
|
|
2216
2193
|
});
|
|
2217
2194
|
throw __decorateServiceException(response, parsedBody);
|
|
2218
2195
|
}
|
|
@@ -2247,7 +2224,7 @@ export var deserializeAws_restJson1ListResourceSharePermissionsCommand = functio
|
|
|
2247
2224
|
});
|
|
2248
2225
|
}); };
|
|
2249
2226
|
var deserializeAws_restJson1ListResourceSharePermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2250
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2227
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2251
2228
|
var _c;
|
|
2252
2229
|
return __generator(this, function (_d) {
|
|
2253
2230
|
switch (_d.label) {
|
|
@@ -2257,7 +2234,6 @@ var deserializeAws_restJson1ListResourceSharePermissionsCommandError = function
|
|
|
2257
2234
|
return [4, parseBody(output.body, context)];
|
|
2258
2235
|
case 1:
|
|
2259
2236
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2260
|
-
errorCode = "UnknownError";
|
|
2261
2237
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2262
2238
|
_b = errorCode;
|
|
2263
2239
|
switch (_b) {
|
|
@@ -2293,10 +2269,12 @@ var deserializeAws_restJson1ListResourceSharePermissionsCommandError = function
|
|
|
2293
2269
|
case 15: throw _d.sent();
|
|
2294
2270
|
case 16:
|
|
2295
2271
|
parsedBody = parsedOutput.body;
|
|
2272
|
+
$metadata = deserializeMetadata(output);
|
|
2273
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2296
2274
|
response = new __BaseException({
|
|
2297
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2275
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2298
2276
|
$fault: "client",
|
|
2299
|
-
$metadata:
|
|
2277
|
+
$metadata: $metadata,
|
|
2300
2278
|
});
|
|
2301
2279
|
throw __decorateServiceException(response, parsedBody);
|
|
2302
2280
|
}
|
|
@@ -2331,7 +2309,7 @@ export var deserializeAws_restJson1ListResourceTypesCommand = function (output,
|
|
|
2331
2309
|
});
|
|
2332
2310
|
}); };
|
|
2333
2311
|
var deserializeAws_restJson1ListResourceTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2334
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2312
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2335
2313
|
var _c;
|
|
2336
2314
|
return __generator(this, function (_d) {
|
|
2337
2315
|
switch (_d.label) {
|
|
@@ -2341,7 +2319,6 @@ var deserializeAws_restJson1ListResourceTypesCommandError = function (output, co
|
|
|
2341
2319
|
return [4, parseBody(output.body, context)];
|
|
2342
2320
|
case 1:
|
|
2343
2321
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2344
|
-
errorCode = "UnknownError";
|
|
2345
2322
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
2323
|
_b = errorCode;
|
|
2347
2324
|
switch (_b) {
|
|
@@ -2365,10 +2342,12 @@ var deserializeAws_restJson1ListResourceTypesCommandError = function (output, co
|
|
|
2365
2342
|
case 9: throw _d.sent();
|
|
2366
2343
|
case 10:
|
|
2367
2344
|
parsedBody = parsedOutput.body;
|
|
2345
|
+
$metadata = deserializeMetadata(output);
|
|
2346
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2368
2347
|
response = new __BaseException({
|
|
2369
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2348
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2370
2349
|
$fault: "client",
|
|
2371
|
-
$metadata:
|
|
2350
|
+
$metadata: $metadata,
|
|
2372
2351
|
});
|
|
2373
2352
|
throw __decorateServiceException(response, parsedBody);
|
|
2374
2353
|
}
|
|
@@ -2399,7 +2378,7 @@ export var deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand
|
|
|
2399
2378
|
});
|
|
2400
2379
|
}); };
|
|
2401
2380
|
var deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2402
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2381
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2403
2382
|
var _c;
|
|
2404
2383
|
return __generator(this, function (_d) {
|
|
2405
2384
|
switch (_d.label) {
|
|
@@ -2409,7 +2388,6 @@ var deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError =
|
|
|
2409
2388
|
return [4, parseBody(output.body, context)];
|
|
2410
2389
|
case 1:
|
|
2411
2390
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2412
|
-
errorCode = "UnknownError";
|
|
2413
2391
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2414
2392
|
_b = errorCode;
|
|
2415
2393
|
switch (_b) {
|
|
@@ -2449,10 +2427,12 @@ var deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError =
|
|
|
2449
2427
|
case 17: throw _d.sent();
|
|
2450
2428
|
case 18:
|
|
2451
2429
|
parsedBody = parsedOutput.body;
|
|
2430
|
+
$metadata = deserializeMetadata(output);
|
|
2431
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2452
2432
|
response = new __BaseException({
|
|
2453
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2433
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2454
2434
|
$fault: "client",
|
|
2455
|
-
$metadata:
|
|
2435
|
+
$metadata: $metadata,
|
|
2456
2436
|
});
|
|
2457
2437
|
throw __decorateServiceException(response, parsedBody);
|
|
2458
2438
|
}
|
|
@@ -2487,7 +2467,7 @@ export var deserializeAws_restJson1RejectResourceShareInvitationCommand = functi
|
|
|
2487
2467
|
});
|
|
2488
2468
|
}); };
|
|
2489
2469
|
var deserializeAws_restJson1RejectResourceShareInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2490
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2470
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2491
2471
|
var _c;
|
|
2492
2472
|
return __generator(this, function (_d) {
|
|
2493
2473
|
switch (_d.label) {
|
|
@@ -2497,7 +2477,6 @@ var deserializeAws_restJson1RejectResourceShareInvitationCommandError = function
|
|
|
2497
2477
|
return [4, parseBody(output.body, context)];
|
|
2498
2478
|
case 1:
|
|
2499
2479
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2500
|
-
errorCode = "UnknownError";
|
|
2501
2480
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2502
2481
|
_b = errorCode;
|
|
2503
2482
|
switch (_b) {
|
|
@@ -2545,10 +2524,12 @@ var deserializeAws_restJson1RejectResourceShareInvitationCommandError = function
|
|
|
2545
2524
|
case 21: throw _d.sent();
|
|
2546
2525
|
case 22:
|
|
2547
2526
|
parsedBody = parsedOutput.body;
|
|
2527
|
+
$metadata = deserializeMetadata(output);
|
|
2528
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2548
2529
|
response = new __BaseException({
|
|
2549
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2530
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2550
2531
|
$fault: "client",
|
|
2551
|
-
$metadata:
|
|
2532
|
+
$metadata: $metadata,
|
|
2552
2533
|
});
|
|
2553
2534
|
throw __decorateServiceException(response, parsedBody);
|
|
2554
2535
|
}
|
|
@@ -2573,7 +2554,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2573
2554
|
});
|
|
2574
2555
|
}); };
|
|
2575
2556
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2576
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2557
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2577
2558
|
var _c;
|
|
2578
2559
|
return __generator(this, function (_d) {
|
|
2579
2560
|
switch (_d.label) {
|
|
@@ -2583,7 +2564,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2583
2564
|
return [4, parseBody(output.body, context)];
|
|
2584
2565
|
case 1:
|
|
2585
2566
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2586
|
-
errorCode = "UnknownError";
|
|
2587
2567
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2588
2568
|
_b = errorCode;
|
|
2589
2569
|
switch (_b) {
|
|
@@ -2623,10 +2603,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2623
2603
|
case 17: throw _d.sent();
|
|
2624
2604
|
case 18:
|
|
2625
2605
|
parsedBody = parsedOutput.body;
|
|
2606
|
+
$metadata = deserializeMetadata(output);
|
|
2607
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2626
2608
|
response = new __BaseException({
|
|
2627
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2609
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2628
2610
|
$fault: "client",
|
|
2629
|
-
$metadata:
|
|
2611
|
+
$metadata: $metadata,
|
|
2630
2612
|
});
|
|
2631
2613
|
throw __decorateServiceException(response, parsedBody);
|
|
2632
2614
|
}
|
|
@@ -2651,7 +2633,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2651
2633
|
});
|
|
2652
2634
|
}); };
|
|
2653
2635
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2654
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2636
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2655
2637
|
var _c;
|
|
2656
2638
|
return __generator(this, function (_d) {
|
|
2657
2639
|
switch (_d.label) {
|
|
@@ -2661,7 +2643,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2661
2643
|
return [4, parseBody(output.body, context)];
|
|
2662
2644
|
case 1:
|
|
2663
2645
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2664
|
-
errorCode = "UnknownError";
|
|
2665
2646
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
2647
|
_b = errorCode;
|
|
2667
2648
|
switch (_b) {
|
|
@@ -2681,10 +2662,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2681
2662
|
case 7: throw _d.sent();
|
|
2682
2663
|
case 8:
|
|
2683
2664
|
parsedBody = parsedOutput.body;
|
|
2665
|
+
$metadata = deserializeMetadata(output);
|
|
2666
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2684
2667
|
response = new __BaseException({
|
|
2685
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2668
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2686
2669
|
$fault: "client",
|
|
2687
|
-
$metadata:
|
|
2670
|
+
$metadata: $metadata,
|
|
2688
2671
|
});
|
|
2689
2672
|
throw __decorateServiceException(response, parsedBody);
|
|
2690
2673
|
}
|
|
@@ -2719,7 +2702,7 @@ export var deserializeAws_restJson1UpdateResourceShareCommand = function (output
|
|
|
2719
2702
|
});
|
|
2720
2703
|
}); };
|
|
2721
2704
|
var deserializeAws_restJson1UpdateResourceShareCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2722
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2705
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2723
2706
|
var _c;
|
|
2724
2707
|
return __generator(this, function (_d) {
|
|
2725
2708
|
switch (_d.label) {
|
|
@@ -2729,7 +2712,6 @@ var deserializeAws_restJson1UpdateResourceShareCommandError = function (output,
|
|
|
2729
2712
|
return [4, parseBody(output.body, context)];
|
|
2730
2713
|
case 1:
|
|
2731
2714
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2732
|
-
errorCode = "UnknownError";
|
|
2733
2715
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2734
2716
|
_b = errorCode;
|
|
2735
2717
|
switch (_b) {
|
|
@@ -2773,10 +2755,12 @@ var deserializeAws_restJson1UpdateResourceShareCommandError = function (output,
|
|
|
2773
2755
|
case 19: throw _d.sent();
|
|
2774
2756
|
case 20:
|
|
2775
2757
|
parsedBody = parsedOutput.body;
|
|
2758
|
+
$metadata = deserializeMetadata(output);
|
|
2759
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2776
2760
|
response = new __BaseException({
|
|
2777
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2761
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2778
2762
|
$fault: "client",
|
|
2779
|
-
$metadata:
|
|
2763
|
+
$metadata: $metadata,
|
|
2780
2764
|
});
|
|
2781
2765
|
throw __decorateServiceException(response, parsedBody);
|
|
2782
2766
|
}
|
|
@@ -3097,11 +3081,10 @@ var serializeAws_restJson1ResourceShareInvitationArnList = function (input, cont
|
|
|
3097
3081
|
});
|
|
3098
3082
|
};
|
|
3099
3083
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
3100
|
-
return __assign(__assign({}, (input.key
|
|
3084
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
3101
3085
|
};
|
|
3102
3086
|
var serializeAws_restJson1TagFilter = function (input, context) {
|
|
3103
|
-
return __assign(__assign({}, (input.tagKey
|
|
3104
|
-
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) }));
|
|
3105
3088
|
};
|
|
3106
3089
|
var serializeAws_restJson1TagFilters = function (input, context) {
|
|
3107
3090
|
return input
|
|
@@ -3156,12 +3139,12 @@ var deserializeAws_restJson1PolicyList = function (output, context) {
|
|
|
3156
3139
|
};
|
|
3157
3140
|
var deserializeAws_restJson1Principal = function (output, context) {
|
|
3158
3141
|
return {
|
|
3159
|
-
creationTime: output.creationTime
|
|
3142
|
+
creationTime: output.creationTime != null
|
|
3160
3143
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3161
3144
|
: undefined,
|
|
3162
3145
|
external: __expectBoolean(output.external),
|
|
3163
3146
|
id: __expectString(output.id),
|
|
3164
|
-
lastUpdatedTime: output.lastUpdatedTime
|
|
3147
|
+
lastUpdatedTime: output.lastUpdatedTime != null
|
|
3165
3148
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
|
|
3166
3149
|
: undefined,
|
|
3167
3150
|
resourceShareArn: __expectString(output.resourceShareArn),
|
|
@@ -3181,10 +3164,10 @@ var deserializeAws_restJson1PrincipalList = function (output, context) {
|
|
|
3181
3164
|
var deserializeAws_restJson1Resource = function (output, context) {
|
|
3182
3165
|
return {
|
|
3183
3166
|
arn: __expectString(output.arn),
|
|
3184
|
-
creationTime: output.creationTime
|
|
3167
|
+
creationTime: output.creationTime != null
|
|
3185
3168
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3186
3169
|
: undefined,
|
|
3187
|
-
lastUpdatedTime: output.lastUpdatedTime
|
|
3170
|
+
lastUpdatedTime: output.lastUpdatedTime != null
|
|
3188
3171
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
|
|
3189
3172
|
: undefined,
|
|
3190
3173
|
resourceGroupArn: __expectString(output.resourceGroupArn),
|
|
@@ -3209,11 +3192,11 @@ var deserializeAws_restJson1ResourceList = function (output, context) {
|
|
|
3209
3192
|
var deserializeAws_restJson1ResourceShare = function (output, context) {
|
|
3210
3193
|
return {
|
|
3211
3194
|
allowExternalPrincipals: __expectBoolean(output.allowExternalPrincipals),
|
|
3212
|
-
creationTime: output.creationTime
|
|
3195
|
+
creationTime: output.creationTime != null
|
|
3213
3196
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3214
3197
|
: undefined,
|
|
3215
3198
|
featureSet: __expectString(output.featureSet),
|
|
3216
|
-
lastUpdatedTime: output.lastUpdatedTime
|
|
3199
|
+
lastUpdatedTime: output.lastUpdatedTime != null
|
|
3217
3200
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
|
|
3218
3201
|
: undefined,
|
|
3219
3202
|
name: __expectString(output.name),
|
|
@@ -3221,20 +3204,18 @@ var deserializeAws_restJson1ResourceShare = function (output, context) {
|
|
|
3221
3204
|
resourceShareArn: __expectString(output.resourceShareArn),
|
|
3222
3205
|
status: __expectString(output.status),
|
|
3223
3206
|
statusMessage: __expectString(output.statusMessage),
|
|
3224
|
-
tags: output.tags
|
|
3225
|
-
? deserializeAws_restJson1TagList(output.tags, context)
|
|
3226
|
-
: undefined,
|
|
3207
|
+
tags: output.tags != null ? deserializeAws_restJson1TagList(output.tags, context) : undefined,
|
|
3227
3208
|
};
|
|
3228
3209
|
};
|
|
3229
3210
|
var deserializeAws_restJson1ResourceShareAssociation = function (output, context) {
|
|
3230
3211
|
return {
|
|
3231
3212
|
associatedEntity: __expectString(output.associatedEntity),
|
|
3232
3213
|
associationType: __expectString(output.associationType),
|
|
3233
|
-
creationTime: output.creationTime
|
|
3214
|
+
creationTime: output.creationTime != null
|
|
3234
3215
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3235
3216
|
: undefined,
|
|
3236
3217
|
external: __expectBoolean(output.external),
|
|
3237
|
-
lastUpdatedTime: output.lastUpdatedTime
|
|
3218
|
+
lastUpdatedTime: output.lastUpdatedTime != null
|
|
3238
3219
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
|
|
3239
3220
|
: undefined,
|
|
3240
3221
|
resourceShareArn: __expectString(output.resourceShareArn),
|
|
@@ -3256,13 +3237,13 @@ var deserializeAws_restJson1ResourceShareAssociationList = function (output, con
|
|
|
3256
3237
|
};
|
|
3257
3238
|
var deserializeAws_restJson1ResourceShareInvitation = function (output, context) {
|
|
3258
3239
|
return {
|
|
3259
|
-
invitationTimestamp: output.invitationTimestamp
|
|
3240
|
+
invitationTimestamp: output.invitationTimestamp != null
|
|
3260
3241
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.invitationTimestamp)))
|
|
3261
3242
|
: undefined,
|
|
3262
3243
|
receiverAccountId: __expectString(output.receiverAccountId),
|
|
3263
3244
|
receiverArn: __expectString(output.receiverArn),
|
|
3264
3245
|
resourceShareArn: __expectString(output.resourceShareArn),
|
|
3265
|
-
resourceShareAssociations: output.resourceShareAssociations
|
|
3246
|
+
resourceShareAssociations: output.resourceShareAssociations != null
|
|
3266
3247
|
? deserializeAws_restJson1ResourceShareAssociationList(output.resourceShareAssociations, context)
|
|
3267
3248
|
: undefined,
|
|
3268
3249
|
resourceShareInvitationArn: __expectString(output.resourceShareInvitationArn),
|
|
@@ -3296,12 +3277,12 @@ var deserializeAws_restJson1ResourceShareList = function (output, context) {
|
|
|
3296
3277
|
var deserializeAws_restJson1ResourceSharePermissionDetail = function (output, context) {
|
|
3297
3278
|
return {
|
|
3298
3279
|
arn: __expectString(output.arn),
|
|
3299
|
-
creationTime: output.creationTime
|
|
3280
|
+
creationTime: output.creationTime != null
|
|
3300
3281
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3301
3282
|
: undefined,
|
|
3302
3283
|
defaultVersion: __expectBoolean(output.defaultVersion),
|
|
3303
3284
|
isResourceTypeDefault: __expectBoolean(output.isResourceTypeDefault),
|
|
3304
|
-
lastUpdatedTime: output.lastUpdatedTime
|
|
3285
|
+
lastUpdatedTime: output.lastUpdatedTime != null
|
|
3305
3286
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
|
|
3306
3287
|
: undefined,
|
|
3307
3288
|
name: __expectString(output.name),
|
|
@@ -3324,12 +3305,12 @@ var deserializeAws_restJson1ResourceSharePermissionList = function (output, cont
|
|
|
3324
3305
|
var deserializeAws_restJson1ResourceSharePermissionSummary = function (output, context) {
|
|
3325
3306
|
return {
|
|
3326
3307
|
arn: __expectString(output.arn),
|
|
3327
|
-
creationTime: output.creationTime
|
|
3308
|
+
creationTime: output.creationTime != null
|
|
3328
3309
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3329
3310
|
: undefined,
|
|
3330
3311
|
defaultVersion: __expectBoolean(output.defaultVersion),
|
|
3331
3312
|
isResourceTypeDefault: __expectBoolean(output.isResourceTypeDefault),
|
|
3332
|
-
lastUpdatedTime: output.lastUpdatedTime
|
|
3313
|
+
lastUpdatedTime: output.lastUpdatedTime != null
|
|
3333
3314
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
|
|
3334
3315
|
: undefined,
|
|
3335
3316
|
name: __expectString(output.name),
|
|
@@ -3429,5 +3410,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3429
3410
|
if (data["__type"] !== undefined) {
|
|
3430
3411
|
return sanitizeErrorCode(data["__type"]);
|
|
3431
3412
|
}
|
|
3432
|
-
return "";
|
|
3433
3413
|
};
|