@aws-sdk/client-ram 3.306.0 → 3.309.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/dist-cjs/commands/AcceptResourceShareInvitationCommand.js +2 -2
- package/dist-cjs/commands/AssociateResourceShareCommand.js +2 -2
- package/dist-cjs/commands/AssociateResourceSharePermissionCommand.js +2 -2
- package/dist-cjs/commands/CreateResourceShareCommand.js +2 -2
- package/dist-cjs/commands/DeleteResourceShareCommand.js +2 -2
- package/dist-cjs/commands/DisassociateResourceShareCommand.js +2 -2
- package/dist-cjs/commands/DisassociateResourceSharePermissionCommand.js +2 -2
- package/dist-cjs/commands/EnableSharingWithAwsOrganizationCommand.js +2 -2
- package/dist-cjs/commands/GetPermissionCommand.js +2 -2
- package/dist-cjs/commands/GetResourcePoliciesCommand.js +2 -2
- package/dist-cjs/commands/GetResourceShareAssociationsCommand.js +2 -2
- package/dist-cjs/commands/GetResourceShareInvitationsCommand.js +2 -2
- package/dist-cjs/commands/GetResourceSharesCommand.js +2 -2
- package/dist-cjs/commands/ListPendingInvitationResourcesCommand.js +2 -2
- package/dist-cjs/commands/ListPermissionVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListPermissionsCommand.js +2 -2
- package/dist-cjs/commands/ListPrincipalsCommand.js +2 -2
- package/dist-cjs/commands/ListResourceSharePermissionsCommand.js +2 -2
- package/dist-cjs/commands/ListResourceTypesCommand.js +2 -2
- package/dist-cjs/commands/ListResourcesCommand.js +2 -2
- package/dist-cjs/commands/PromoteResourceShareCreatedFromPolicyCommand.js +2 -2
- package/dist-cjs/commands/RejectResourceShareInvitationCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateResourceShareCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +438 -458
- package/dist-es/commands/AcceptResourceShareInvitationCommand.js +3 -3
- package/dist-es/commands/AssociateResourceShareCommand.js +3 -3
- package/dist-es/commands/AssociateResourceSharePermissionCommand.js +3 -3
- package/dist-es/commands/CreateResourceShareCommand.js +3 -3
- package/dist-es/commands/DeleteResourceShareCommand.js +3 -3
- package/dist-es/commands/DisassociateResourceShareCommand.js +3 -3
- package/dist-es/commands/DisassociateResourceSharePermissionCommand.js +3 -3
- package/dist-es/commands/EnableSharingWithAwsOrganizationCommand.js +3 -3
- package/dist-es/commands/GetPermissionCommand.js +3 -3
- package/dist-es/commands/GetResourcePoliciesCommand.js +3 -3
- package/dist-es/commands/GetResourceShareAssociationsCommand.js +3 -3
- package/dist-es/commands/GetResourceShareInvitationsCommand.js +3 -3
- package/dist-es/commands/GetResourceSharesCommand.js +3 -3
- package/dist-es/commands/ListPendingInvitationResourcesCommand.js +3 -3
- package/dist-es/commands/ListPermissionVersionsCommand.js +3 -3
- package/dist-es/commands/ListPermissionsCommand.js +3 -3
- package/dist-es/commands/ListPrincipalsCommand.js +3 -3
- package/dist-es/commands/ListResourceSharePermissionsCommand.js +3 -3
- package/dist-es/commands/ListResourceTypesCommand.js +3 -3
- package/dist-es/commands/ListResourcesCommand.js +3 -3
- package/dist-es/commands/PromoteResourceShareCreatedFromPolicyCommand.js +3 -3
- package/dist-es/commands/RejectResourceShareInvitationCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateResourceShareCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +387 -407
- package/dist-types/protocols/Aws_restJson1.d.ts +200 -50
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +50 -50
- package/package.json +6 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateResourceShareCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RejectResourceShareInvitationCommand = exports.de_PromoteResourceShareCreatedFromPolicyCommand = exports.de_ListResourceTypesCommand = exports.de_ListResourceSharePermissionsCommand = exports.de_ListResourcesCommand = exports.de_ListPrincipalsCommand = exports.de_ListPermissionVersionsCommand = exports.de_ListPermissionsCommand = exports.de_ListPendingInvitationResourcesCommand = exports.de_GetResourceSharesCommand = exports.de_GetResourceShareInvitationsCommand = exports.de_GetResourceShareAssociationsCommand = exports.de_GetResourcePoliciesCommand = exports.de_GetPermissionCommand = exports.de_EnableSharingWithAwsOrganizationCommand = exports.de_DisassociateResourceSharePermissionCommand = exports.de_DisassociateResourceShareCommand = exports.de_DeleteResourceShareCommand = exports.de_CreateResourceShareCommand = exports.de_AssociateResourceSharePermissionCommand = exports.de_AssociateResourceShareCommand = exports.de_AcceptResourceShareInvitationCommand = exports.se_UpdateResourceShareCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RejectResourceShareInvitationCommand = exports.se_PromoteResourceShareCreatedFromPolicyCommand = exports.se_ListResourceTypesCommand = exports.se_ListResourceSharePermissionsCommand = exports.se_ListResourcesCommand = exports.se_ListPrincipalsCommand = exports.se_ListPermissionVersionsCommand = exports.se_ListPermissionsCommand = exports.se_ListPendingInvitationResourcesCommand = exports.se_GetResourceSharesCommand = exports.se_GetResourceShareInvitationsCommand = exports.se_GetResourceShareAssociationsCommand = exports.se_GetResourcePoliciesCommand = exports.se_GetPermissionCommand = exports.se_EnableSharingWithAwsOrganizationCommand = exports.se_DisassociateResourceSharePermissionCommand = exports.se_DisassociateResourceShareCommand = exports.se_DeleteResourceShareCommand = exports.se_CreateResourceShareCommand = exports.se_AssociateResourceSharePermissionCommand = exports.se_AssociateResourceShareCommand = exports.se_AcceptResourceShareInvitationCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const RAMServiceException_1 = require("../models/RAMServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_AcceptResourceShareInvitationCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
@@ -26,8 +26,8 @@ const serializeAws_restJson1AcceptResourceShareInvitationCommand = async (input,
|
|
|
26
26
|
body,
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
exports.
|
|
30
|
-
const
|
|
29
|
+
exports.se_AcceptResourceShareInvitationCommand = se_AcceptResourceShareInvitationCommand;
|
|
30
|
+
const se_AssociateResourceShareCommand = async (input, context) => {
|
|
31
31
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
32
32
|
const headers = {
|
|
33
33
|
"content-type": "application/json",
|
|
@@ -36,12 +36,8 @@ const serializeAws_restJson1AssociateResourceShareCommand = async (input, contex
|
|
|
36
36
|
let body;
|
|
37
37
|
body = JSON.stringify({
|
|
38
38
|
...(input.clientToken != null && { clientToken: input.clientToken }),
|
|
39
|
-
...(input.principals != null && {
|
|
40
|
-
|
|
41
|
-
}),
|
|
42
|
-
...(input.resourceArns != null && {
|
|
43
|
-
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
44
|
-
}),
|
|
39
|
+
...(input.principals != null && { principals: se_PrincipalArnOrIdList(input.principals, context) }),
|
|
40
|
+
...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
|
|
45
41
|
...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
|
|
46
42
|
});
|
|
47
43
|
return new protocol_http_1.HttpRequest({
|
|
@@ -54,8 +50,8 @@ const serializeAws_restJson1AssociateResourceShareCommand = async (input, contex
|
|
|
54
50
|
body,
|
|
55
51
|
});
|
|
56
52
|
};
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
53
|
+
exports.se_AssociateResourceShareCommand = se_AssociateResourceShareCommand;
|
|
54
|
+
const se_AssociateResourceSharePermissionCommand = async (input, context) => {
|
|
59
55
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
60
56
|
const headers = {
|
|
61
57
|
"content-type": "application/json",
|
|
@@ -79,8 +75,8 @@ const serializeAws_restJson1AssociateResourceSharePermissionCommand = async (inp
|
|
|
79
75
|
body,
|
|
80
76
|
});
|
|
81
77
|
};
|
|
82
|
-
exports.
|
|
83
|
-
const
|
|
78
|
+
exports.se_AssociateResourceSharePermissionCommand = se_AssociateResourceSharePermissionCommand;
|
|
79
|
+
const se_CreateResourceShareCommand = async (input, context) => {
|
|
84
80
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
85
81
|
const headers = {
|
|
86
82
|
"content-type": "application/json",
|
|
@@ -91,16 +87,10 @@ const serializeAws_restJson1CreateResourceShareCommand = async (input, context)
|
|
|
91
87
|
...(input.allowExternalPrincipals != null && { allowExternalPrincipals: input.allowExternalPrincipals }),
|
|
92
88
|
...(input.clientToken != null && { clientToken: input.clientToken }),
|
|
93
89
|
...(input.name != null && { name: input.name }),
|
|
94
|
-
...(input.permissionArns != null && {
|
|
95
|
-
|
|
96
|
-
}),
|
|
97
|
-
...(input.
|
|
98
|
-
principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
|
|
99
|
-
}),
|
|
100
|
-
...(input.resourceArns != null && {
|
|
101
|
-
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
102
|
-
}),
|
|
103
|
-
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
90
|
+
...(input.permissionArns != null && { permissionArns: se_PermissionArnList(input.permissionArns, context) }),
|
|
91
|
+
...(input.principals != null && { principals: se_PrincipalArnOrIdList(input.principals, context) }),
|
|
92
|
+
...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
|
|
93
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
104
94
|
});
|
|
105
95
|
return new protocol_http_1.HttpRequest({
|
|
106
96
|
protocol,
|
|
@@ -112,8 +102,8 @@ const serializeAws_restJson1CreateResourceShareCommand = async (input, context)
|
|
|
112
102
|
body,
|
|
113
103
|
});
|
|
114
104
|
};
|
|
115
|
-
exports.
|
|
116
|
-
const
|
|
105
|
+
exports.se_CreateResourceShareCommand = se_CreateResourceShareCommand;
|
|
106
|
+
const se_DeleteResourceShareCommand = async (input, context) => {
|
|
117
107
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
118
108
|
const headers = {};
|
|
119
109
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteresourceshare";
|
|
@@ -133,8 +123,8 @@ const serializeAws_restJson1DeleteResourceShareCommand = async (input, context)
|
|
|
133
123
|
body,
|
|
134
124
|
});
|
|
135
125
|
};
|
|
136
|
-
exports.
|
|
137
|
-
const
|
|
126
|
+
exports.se_DeleteResourceShareCommand = se_DeleteResourceShareCommand;
|
|
127
|
+
const se_DisassociateResourceShareCommand = async (input, context) => {
|
|
138
128
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
139
129
|
const headers = {
|
|
140
130
|
"content-type": "application/json",
|
|
@@ -143,12 +133,8 @@ const serializeAws_restJson1DisassociateResourceShareCommand = async (input, con
|
|
|
143
133
|
let body;
|
|
144
134
|
body = JSON.stringify({
|
|
145
135
|
...(input.clientToken != null && { clientToken: input.clientToken }),
|
|
146
|
-
...(input.principals != null && {
|
|
147
|
-
|
|
148
|
-
}),
|
|
149
|
-
...(input.resourceArns != null && {
|
|
150
|
-
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
151
|
-
}),
|
|
136
|
+
...(input.principals != null && { principals: se_PrincipalArnOrIdList(input.principals, context) }),
|
|
137
|
+
...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
|
|
152
138
|
...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
|
|
153
139
|
});
|
|
154
140
|
return new protocol_http_1.HttpRequest({
|
|
@@ -161,8 +147,8 @@ const serializeAws_restJson1DisassociateResourceShareCommand = async (input, con
|
|
|
161
147
|
body,
|
|
162
148
|
});
|
|
163
149
|
};
|
|
164
|
-
exports.
|
|
165
|
-
const
|
|
150
|
+
exports.se_DisassociateResourceShareCommand = se_DisassociateResourceShareCommand;
|
|
151
|
+
const se_DisassociateResourceSharePermissionCommand = async (input, context) => {
|
|
166
152
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
167
153
|
const headers = {
|
|
168
154
|
"content-type": "application/json",
|
|
@@ -184,8 +170,8 @@ const serializeAws_restJson1DisassociateResourceSharePermissionCommand = async (
|
|
|
184
170
|
body,
|
|
185
171
|
});
|
|
186
172
|
};
|
|
187
|
-
exports.
|
|
188
|
-
const
|
|
173
|
+
exports.se_DisassociateResourceSharePermissionCommand = se_DisassociateResourceSharePermissionCommand;
|
|
174
|
+
const se_EnableSharingWithAwsOrganizationCommand = async (input, context) => {
|
|
189
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
190
176
|
const headers = {
|
|
191
177
|
"content-type": "application/json",
|
|
@@ -203,8 +189,8 @@ const serializeAws_restJson1EnableSharingWithAwsOrganizationCommand = async (inp
|
|
|
203
189
|
body,
|
|
204
190
|
});
|
|
205
191
|
};
|
|
206
|
-
exports.
|
|
207
|
-
const
|
|
192
|
+
exports.se_EnableSharingWithAwsOrganizationCommand = se_EnableSharingWithAwsOrganizationCommand;
|
|
193
|
+
const se_GetPermissionCommand = async (input, context) => {
|
|
208
194
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
209
195
|
const headers = {
|
|
210
196
|
"content-type": "application/json",
|
|
@@ -225,8 +211,8 @@ const serializeAws_restJson1GetPermissionCommand = async (input, context) => {
|
|
|
225
211
|
body,
|
|
226
212
|
});
|
|
227
213
|
};
|
|
228
|
-
exports.
|
|
229
|
-
const
|
|
214
|
+
exports.se_GetPermissionCommand = se_GetPermissionCommand;
|
|
215
|
+
const se_GetResourcePoliciesCommand = async (input, context) => {
|
|
230
216
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
231
217
|
const headers = {
|
|
232
218
|
"content-type": "application/json",
|
|
@@ -237,9 +223,7 @@ const serializeAws_restJson1GetResourcePoliciesCommand = async (input, context)
|
|
|
237
223
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
238
224
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
239
225
|
...(input.principal != null && { principal: input.principal }),
|
|
240
|
-
...(input.resourceArns != null && {
|
|
241
|
-
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
242
|
-
}),
|
|
226
|
+
...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
|
|
243
227
|
});
|
|
244
228
|
return new protocol_http_1.HttpRequest({
|
|
245
229
|
protocol,
|
|
@@ -251,8 +235,8 @@ const serializeAws_restJson1GetResourcePoliciesCommand = async (input, context)
|
|
|
251
235
|
body,
|
|
252
236
|
});
|
|
253
237
|
};
|
|
254
|
-
exports.
|
|
255
|
-
const
|
|
238
|
+
exports.se_GetResourcePoliciesCommand = se_GetResourcePoliciesCommand;
|
|
239
|
+
const se_GetResourceShareAssociationsCommand = async (input, context) => {
|
|
256
240
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
257
241
|
const headers = {
|
|
258
242
|
"content-type": "application/json",
|
|
@@ -267,7 +251,7 @@ const serializeAws_restJson1GetResourceShareAssociationsCommand = async (input,
|
|
|
267
251
|
...(input.principal != null && { principal: input.principal }),
|
|
268
252
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
269
253
|
...(input.resourceShareArns != null && {
|
|
270
|
-
resourceShareArns:
|
|
254
|
+
resourceShareArns: se_ResourceShareArnList(input.resourceShareArns, context),
|
|
271
255
|
}),
|
|
272
256
|
});
|
|
273
257
|
return new protocol_http_1.HttpRequest({
|
|
@@ -280,8 +264,8 @@ const serializeAws_restJson1GetResourceShareAssociationsCommand = async (input,
|
|
|
280
264
|
body,
|
|
281
265
|
});
|
|
282
266
|
};
|
|
283
|
-
exports.
|
|
284
|
-
const
|
|
267
|
+
exports.se_GetResourceShareAssociationsCommand = se_GetResourceShareAssociationsCommand;
|
|
268
|
+
const se_GetResourceShareInvitationsCommand = async (input, context) => {
|
|
285
269
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
286
270
|
const headers = {
|
|
287
271
|
"content-type": "application/json",
|
|
@@ -292,10 +276,10 @@ const serializeAws_restJson1GetResourceShareInvitationsCommand = async (input, c
|
|
|
292
276
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
293
277
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
294
278
|
...(input.resourceShareArns != null && {
|
|
295
|
-
resourceShareArns:
|
|
279
|
+
resourceShareArns: se_ResourceShareArnList(input.resourceShareArns, context),
|
|
296
280
|
}),
|
|
297
281
|
...(input.resourceShareInvitationArns != null && {
|
|
298
|
-
resourceShareInvitationArns:
|
|
282
|
+
resourceShareInvitationArns: se_ResourceShareInvitationArnList(input.resourceShareInvitationArns, context),
|
|
299
283
|
}),
|
|
300
284
|
});
|
|
301
285
|
return new protocol_http_1.HttpRequest({
|
|
@@ -308,8 +292,8 @@ const serializeAws_restJson1GetResourceShareInvitationsCommand = async (input, c
|
|
|
308
292
|
body,
|
|
309
293
|
});
|
|
310
294
|
};
|
|
311
|
-
exports.
|
|
312
|
-
const
|
|
295
|
+
exports.se_GetResourceShareInvitationsCommand = se_GetResourceShareInvitationsCommand;
|
|
296
|
+
const se_GetResourceSharesCommand = async (input, context) => {
|
|
313
297
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
314
298
|
const headers = {
|
|
315
299
|
"content-type": "application/json",
|
|
@@ -323,10 +307,10 @@ const serializeAws_restJson1GetResourceSharesCommand = async (input, context) =>
|
|
|
323
307
|
...(input.permissionArn != null && { permissionArn: input.permissionArn }),
|
|
324
308
|
...(input.resourceOwner != null && { resourceOwner: input.resourceOwner }),
|
|
325
309
|
...(input.resourceShareArns != null && {
|
|
326
|
-
resourceShareArns:
|
|
310
|
+
resourceShareArns: se_ResourceShareArnList(input.resourceShareArns, context),
|
|
327
311
|
}),
|
|
328
312
|
...(input.resourceShareStatus != null && { resourceShareStatus: input.resourceShareStatus }),
|
|
329
|
-
...(input.tagFilters != null && { tagFilters:
|
|
313
|
+
...(input.tagFilters != null && { tagFilters: se_TagFilters(input.tagFilters, context) }),
|
|
330
314
|
});
|
|
331
315
|
return new protocol_http_1.HttpRequest({
|
|
332
316
|
protocol,
|
|
@@ -338,8 +322,8 @@ const serializeAws_restJson1GetResourceSharesCommand = async (input, context) =>
|
|
|
338
322
|
body,
|
|
339
323
|
});
|
|
340
324
|
};
|
|
341
|
-
exports.
|
|
342
|
-
const
|
|
325
|
+
exports.se_GetResourceSharesCommand = se_GetResourceSharesCommand;
|
|
326
|
+
const se_ListPendingInvitationResourcesCommand = async (input, context) => {
|
|
343
327
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
344
328
|
const headers = {
|
|
345
329
|
"content-type": "application/json",
|
|
@@ -362,8 +346,8 @@ const serializeAws_restJson1ListPendingInvitationResourcesCommand = async (input
|
|
|
362
346
|
body,
|
|
363
347
|
});
|
|
364
348
|
};
|
|
365
|
-
exports.
|
|
366
|
-
const
|
|
349
|
+
exports.se_ListPendingInvitationResourcesCommand = se_ListPendingInvitationResourcesCommand;
|
|
350
|
+
const se_ListPermissionsCommand = async (input, context) => {
|
|
367
351
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
368
352
|
const headers = {
|
|
369
353
|
"content-type": "application/json",
|
|
@@ -385,8 +369,8 @@ const serializeAws_restJson1ListPermissionsCommand = async (input, context) => {
|
|
|
385
369
|
body,
|
|
386
370
|
});
|
|
387
371
|
};
|
|
388
|
-
exports.
|
|
389
|
-
const
|
|
372
|
+
exports.se_ListPermissionsCommand = se_ListPermissionsCommand;
|
|
373
|
+
const se_ListPermissionVersionsCommand = async (input, context) => {
|
|
390
374
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
391
375
|
const headers = {
|
|
392
376
|
"content-type": "application/json",
|
|
@@ -408,8 +392,8 @@ const serializeAws_restJson1ListPermissionVersionsCommand = async (input, contex
|
|
|
408
392
|
body,
|
|
409
393
|
});
|
|
410
394
|
};
|
|
411
|
-
exports.
|
|
412
|
-
const
|
|
395
|
+
exports.se_ListPermissionVersionsCommand = se_ListPermissionVersionsCommand;
|
|
396
|
+
const se_ListPrincipalsCommand = async (input, context) => {
|
|
413
397
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
414
398
|
const headers = {
|
|
415
399
|
"content-type": "application/json",
|
|
@@ -419,13 +403,11 @@ const serializeAws_restJson1ListPrincipalsCommand = async (input, context) => {
|
|
|
419
403
|
body = JSON.stringify({
|
|
420
404
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
421
405
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
422
|
-
...(input.principals != null && {
|
|
423
|
-
principals: serializeAws_restJson1PrincipalArnOrIdList(input.principals, context),
|
|
424
|
-
}),
|
|
406
|
+
...(input.principals != null && { principals: se_PrincipalArnOrIdList(input.principals, context) }),
|
|
425
407
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
426
408
|
...(input.resourceOwner != null && { resourceOwner: input.resourceOwner }),
|
|
427
409
|
...(input.resourceShareArns != null && {
|
|
428
|
-
resourceShareArns:
|
|
410
|
+
resourceShareArns: se_ResourceShareArnList(input.resourceShareArns, context),
|
|
429
411
|
}),
|
|
430
412
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
431
413
|
});
|
|
@@ -439,8 +421,8 @@ const serializeAws_restJson1ListPrincipalsCommand = async (input, context) => {
|
|
|
439
421
|
body,
|
|
440
422
|
});
|
|
441
423
|
};
|
|
442
|
-
exports.
|
|
443
|
-
const
|
|
424
|
+
exports.se_ListPrincipalsCommand = se_ListPrincipalsCommand;
|
|
425
|
+
const se_ListResourcesCommand = async (input, context) => {
|
|
444
426
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
445
427
|
const headers = {
|
|
446
428
|
"content-type": "application/json",
|
|
@@ -451,13 +433,11 @@ const serializeAws_restJson1ListResourcesCommand = async (input, context) => {
|
|
|
451
433
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
452
434
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
453
435
|
...(input.principal != null && { principal: input.principal }),
|
|
454
|
-
...(input.resourceArns != null && {
|
|
455
|
-
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
456
|
-
}),
|
|
436
|
+
...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
|
|
457
437
|
...(input.resourceOwner != null && { resourceOwner: input.resourceOwner }),
|
|
458
438
|
...(input.resourceRegionScope != null && { resourceRegionScope: input.resourceRegionScope }),
|
|
459
439
|
...(input.resourceShareArns != null && {
|
|
460
|
-
resourceShareArns:
|
|
440
|
+
resourceShareArns: se_ResourceShareArnList(input.resourceShareArns, context),
|
|
461
441
|
}),
|
|
462
442
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
463
443
|
});
|
|
@@ -471,8 +451,8 @@ const serializeAws_restJson1ListResourcesCommand = async (input, context) => {
|
|
|
471
451
|
body,
|
|
472
452
|
});
|
|
473
453
|
};
|
|
474
|
-
exports.
|
|
475
|
-
const
|
|
454
|
+
exports.se_ListResourcesCommand = se_ListResourcesCommand;
|
|
455
|
+
const se_ListResourceSharePermissionsCommand = async (input, context) => {
|
|
476
456
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
477
457
|
const headers = {
|
|
478
458
|
"content-type": "application/json",
|
|
@@ -494,8 +474,8 @@ const serializeAws_restJson1ListResourceSharePermissionsCommand = async (input,
|
|
|
494
474
|
body,
|
|
495
475
|
});
|
|
496
476
|
};
|
|
497
|
-
exports.
|
|
498
|
-
const
|
|
477
|
+
exports.se_ListResourceSharePermissionsCommand = se_ListResourceSharePermissionsCommand;
|
|
478
|
+
const se_ListResourceTypesCommand = async (input, context) => {
|
|
499
479
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
500
480
|
const headers = {
|
|
501
481
|
"content-type": "application/json",
|
|
@@ -517,8 +497,8 @@ const serializeAws_restJson1ListResourceTypesCommand = async (input, context) =>
|
|
|
517
497
|
body,
|
|
518
498
|
});
|
|
519
499
|
};
|
|
520
|
-
exports.
|
|
521
|
-
const
|
|
500
|
+
exports.se_ListResourceTypesCommand = se_ListResourceTypesCommand;
|
|
501
|
+
const se_PromoteResourceShareCreatedFromPolicyCommand = async (input, context) => {
|
|
522
502
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
523
503
|
const headers = {};
|
|
524
504
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/promoteresourcesharecreatedfrompolicy";
|
|
@@ -537,8 +517,8 @@ const serializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand = async
|
|
|
537
517
|
body,
|
|
538
518
|
});
|
|
539
519
|
};
|
|
540
|
-
exports.
|
|
541
|
-
const
|
|
520
|
+
exports.se_PromoteResourceShareCreatedFromPolicyCommand = se_PromoteResourceShareCreatedFromPolicyCommand;
|
|
521
|
+
const se_RejectResourceShareInvitationCommand = async (input, context) => {
|
|
542
522
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
543
523
|
const headers = {
|
|
544
524
|
"content-type": "application/json",
|
|
@@ -559,8 +539,8 @@ const serializeAws_restJson1RejectResourceShareInvitationCommand = async (input,
|
|
|
559
539
|
body,
|
|
560
540
|
});
|
|
561
541
|
};
|
|
562
|
-
exports.
|
|
563
|
-
const
|
|
542
|
+
exports.se_RejectResourceShareInvitationCommand = se_RejectResourceShareInvitationCommand;
|
|
543
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
564
544
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
565
545
|
const headers = {
|
|
566
546
|
"content-type": "application/json",
|
|
@@ -569,7 +549,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
569
549
|
let body;
|
|
570
550
|
body = JSON.stringify({
|
|
571
551
|
...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
|
|
572
|
-
...(input.tags != null && { tags:
|
|
552
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
573
553
|
});
|
|
574
554
|
return new protocol_http_1.HttpRequest({
|
|
575
555
|
protocol,
|
|
@@ -581,8 +561,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
581
561
|
body,
|
|
582
562
|
});
|
|
583
563
|
};
|
|
584
|
-
exports.
|
|
585
|
-
const
|
|
564
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
565
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
586
566
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
587
567
|
const headers = {
|
|
588
568
|
"content-type": "application/json",
|
|
@@ -591,7 +571,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
591
571
|
let body;
|
|
592
572
|
body = JSON.stringify({
|
|
593
573
|
...(input.resourceShareArn != null && { resourceShareArn: input.resourceShareArn }),
|
|
594
|
-
...(input.tagKeys != null && { tagKeys:
|
|
574
|
+
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
595
575
|
});
|
|
596
576
|
return new protocol_http_1.HttpRequest({
|
|
597
577
|
protocol,
|
|
@@ -603,8 +583,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
603
583
|
body,
|
|
604
584
|
});
|
|
605
585
|
};
|
|
606
|
-
exports.
|
|
607
|
-
const
|
|
586
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
587
|
+
const se_UpdateResourceShareCommand = async (input, context) => {
|
|
608
588
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
609
589
|
const headers = {
|
|
610
590
|
"content-type": "application/json",
|
|
@@ -627,10 +607,10 @@ const serializeAws_restJson1UpdateResourceShareCommand = async (input, context)
|
|
|
627
607
|
body,
|
|
628
608
|
});
|
|
629
609
|
};
|
|
630
|
-
exports.
|
|
631
|
-
const
|
|
610
|
+
exports.se_UpdateResourceShareCommand = se_UpdateResourceShareCommand;
|
|
611
|
+
const de_AcceptResourceShareInvitationCommand = async (output, context) => {
|
|
632
612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
633
|
-
return
|
|
613
|
+
return de_AcceptResourceShareInvitationCommandError(output, context);
|
|
634
614
|
}
|
|
635
615
|
const contents = map({
|
|
636
616
|
$metadata: deserializeMetadata(output),
|
|
@@ -640,12 +620,12 @@ const deserializeAws_restJson1AcceptResourceShareInvitationCommand = async (outp
|
|
|
640
620
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
641
621
|
}
|
|
642
622
|
if (data.resourceShareInvitation != null) {
|
|
643
|
-
contents.resourceShareInvitation =
|
|
623
|
+
contents.resourceShareInvitation = de_ResourceShareInvitation(data.resourceShareInvitation, context);
|
|
644
624
|
}
|
|
645
625
|
return contents;
|
|
646
626
|
};
|
|
647
|
-
exports.
|
|
648
|
-
const
|
|
627
|
+
exports.de_AcceptResourceShareInvitationCommand = de_AcceptResourceShareInvitationCommand;
|
|
628
|
+
const de_AcceptResourceShareInvitationCommandError = async (output, context) => {
|
|
649
629
|
const parsedOutput = {
|
|
650
630
|
...output,
|
|
651
631
|
body: await parseErrorBody(output.body, context),
|
|
@@ -654,34 +634,34 @@ const deserializeAws_restJson1AcceptResourceShareInvitationCommandError = async
|
|
|
654
634
|
switch (errorCode) {
|
|
655
635
|
case "IdempotentParameterMismatchException":
|
|
656
636
|
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
657
|
-
throw await
|
|
637
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
658
638
|
case "InvalidClientTokenException":
|
|
659
639
|
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
660
|
-
throw await
|
|
640
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
661
641
|
case "MalformedArnException":
|
|
662
642
|
case "com.amazonaws.ram#MalformedArnException":
|
|
663
|
-
throw await
|
|
643
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
664
644
|
case "OperationNotPermittedException":
|
|
665
645
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
666
|
-
throw await
|
|
646
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
667
647
|
case "ResourceShareInvitationAlreadyAcceptedException":
|
|
668
648
|
case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException":
|
|
669
|
-
throw await
|
|
649
|
+
throw await de_ResourceShareInvitationAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
670
650
|
case "ResourceShareInvitationAlreadyRejectedException":
|
|
671
651
|
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
|
|
672
|
-
throw await
|
|
652
|
+
throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
|
|
673
653
|
case "ResourceShareInvitationArnNotFoundException":
|
|
674
654
|
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
|
|
675
|
-
throw await
|
|
655
|
+
throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
|
|
676
656
|
case "ResourceShareInvitationExpiredException":
|
|
677
657
|
case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
|
|
678
|
-
throw await
|
|
658
|
+
throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
|
|
679
659
|
case "ServerInternalException":
|
|
680
660
|
case "com.amazonaws.ram#ServerInternalException":
|
|
681
|
-
throw await
|
|
661
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
682
662
|
case "ServiceUnavailableException":
|
|
683
663
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
684
|
-
throw await
|
|
664
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
685
665
|
default:
|
|
686
666
|
const parsedBody = parsedOutput.body;
|
|
687
667
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -692,9 +672,9 @@ const deserializeAws_restJson1AcceptResourceShareInvitationCommandError = async
|
|
|
692
672
|
});
|
|
693
673
|
}
|
|
694
674
|
};
|
|
695
|
-
const
|
|
675
|
+
const de_AssociateResourceShareCommand = async (output, context) => {
|
|
696
676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
697
|
-
return
|
|
677
|
+
return de_AssociateResourceShareCommandError(output, context);
|
|
698
678
|
}
|
|
699
679
|
const contents = map({
|
|
700
680
|
$metadata: deserializeMetadata(output),
|
|
@@ -704,12 +684,12 @@ const deserializeAws_restJson1AssociateResourceShareCommand = async (output, con
|
|
|
704
684
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
705
685
|
}
|
|
706
686
|
if (data.resourceShareAssociations != null) {
|
|
707
|
-
contents.resourceShareAssociations =
|
|
687
|
+
contents.resourceShareAssociations = de_ResourceShareAssociationList(data.resourceShareAssociations, context);
|
|
708
688
|
}
|
|
709
689
|
return contents;
|
|
710
690
|
};
|
|
711
|
-
exports.
|
|
712
|
-
const
|
|
691
|
+
exports.de_AssociateResourceShareCommand = de_AssociateResourceShareCommand;
|
|
692
|
+
const de_AssociateResourceShareCommandError = async (output, context) => {
|
|
713
693
|
const parsedOutput = {
|
|
714
694
|
...output,
|
|
715
695
|
body: await parseErrorBody(output.body, context),
|
|
@@ -718,37 +698,37 @@ const deserializeAws_restJson1AssociateResourceShareCommandError = async (output
|
|
|
718
698
|
switch (errorCode) {
|
|
719
699
|
case "IdempotentParameterMismatchException":
|
|
720
700
|
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
721
|
-
throw await
|
|
701
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
722
702
|
case "InvalidClientTokenException":
|
|
723
703
|
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
724
|
-
throw await
|
|
704
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
725
705
|
case "InvalidParameterException":
|
|
726
706
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
727
|
-
throw await
|
|
707
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
728
708
|
case "InvalidStateTransitionException":
|
|
729
709
|
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
730
|
-
throw await
|
|
710
|
+
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
731
711
|
case "MalformedArnException":
|
|
732
712
|
case "com.amazonaws.ram#MalformedArnException":
|
|
733
|
-
throw await
|
|
713
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
734
714
|
case "OperationNotPermittedException":
|
|
735
715
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
736
|
-
throw await
|
|
716
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
737
717
|
case "ResourceShareLimitExceededException":
|
|
738
718
|
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
739
|
-
throw await
|
|
719
|
+
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
740
720
|
case "ServerInternalException":
|
|
741
721
|
case "com.amazonaws.ram#ServerInternalException":
|
|
742
|
-
throw await
|
|
722
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
743
723
|
case "ServiceUnavailableException":
|
|
744
724
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
745
|
-
throw await
|
|
725
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
746
726
|
case "ThrottlingException":
|
|
747
727
|
case "com.amazonaws.ram#ThrottlingException":
|
|
748
|
-
throw await
|
|
728
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
749
729
|
case "UnknownResourceException":
|
|
750
730
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
751
|
-
throw await
|
|
731
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
752
732
|
default:
|
|
753
733
|
const parsedBody = parsedOutput.body;
|
|
754
734
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -759,9 +739,9 @@ const deserializeAws_restJson1AssociateResourceShareCommandError = async (output
|
|
|
759
739
|
});
|
|
760
740
|
}
|
|
761
741
|
};
|
|
762
|
-
const
|
|
742
|
+
const de_AssociateResourceSharePermissionCommand = async (output, context) => {
|
|
763
743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
764
|
-
return
|
|
744
|
+
return de_AssociateResourceSharePermissionCommandError(output, context);
|
|
765
745
|
}
|
|
766
746
|
const contents = map({
|
|
767
747
|
$metadata: deserializeMetadata(output),
|
|
@@ -775,8 +755,8 @@ const deserializeAws_restJson1AssociateResourceSharePermissionCommand = async (o
|
|
|
775
755
|
}
|
|
776
756
|
return contents;
|
|
777
757
|
};
|
|
778
|
-
exports.
|
|
779
|
-
const
|
|
758
|
+
exports.de_AssociateResourceSharePermissionCommand = de_AssociateResourceSharePermissionCommand;
|
|
759
|
+
const de_AssociateResourceSharePermissionCommandError = async (output, context) => {
|
|
780
760
|
const parsedOutput = {
|
|
781
761
|
...output,
|
|
782
762
|
body: await parseErrorBody(output.body, context),
|
|
@@ -785,25 +765,25 @@ const deserializeAws_restJson1AssociateResourceSharePermissionCommandError = asy
|
|
|
785
765
|
switch (errorCode) {
|
|
786
766
|
case "InvalidClientTokenException":
|
|
787
767
|
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
788
|
-
throw await
|
|
768
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
789
769
|
case "InvalidParameterException":
|
|
790
770
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
791
|
-
throw await
|
|
771
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
792
772
|
case "MalformedArnException":
|
|
793
773
|
case "com.amazonaws.ram#MalformedArnException":
|
|
794
|
-
throw await
|
|
774
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
795
775
|
case "OperationNotPermittedException":
|
|
796
776
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
797
|
-
throw await
|
|
777
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
798
778
|
case "ServerInternalException":
|
|
799
779
|
case "com.amazonaws.ram#ServerInternalException":
|
|
800
|
-
throw await
|
|
780
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
801
781
|
case "ServiceUnavailableException":
|
|
802
782
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
803
|
-
throw await
|
|
783
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
804
784
|
case "UnknownResourceException":
|
|
805
785
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
806
|
-
throw await
|
|
786
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
807
787
|
default:
|
|
808
788
|
const parsedBody = parsedOutput.body;
|
|
809
789
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -814,9 +794,9 @@ const deserializeAws_restJson1AssociateResourceSharePermissionCommandError = asy
|
|
|
814
794
|
});
|
|
815
795
|
}
|
|
816
796
|
};
|
|
817
|
-
const
|
|
797
|
+
const de_CreateResourceShareCommand = async (output, context) => {
|
|
818
798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
|
-
return
|
|
799
|
+
return de_CreateResourceShareCommandError(output, context);
|
|
820
800
|
}
|
|
821
801
|
const contents = map({
|
|
822
802
|
$metadata: deserializeMetadata(output),
|
|
@@ -826,12 +806,12 @@ const deserializeAws_restJson1CreateResourceShareCommand = async (output, contex
|
|
|
826
806
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
827
807
|
}
|
|
828
808
|
if (data.resourceShare != null) {
|
|
829
|
-
contents.resourceShare =
|
|
809
|
+
contents.resourceShare = de_ResourceShare(data.resourceShare, context);
|
|
830
810
|
}
|
|
831
811
|
return contents;
|
|
832
812
|
};
|
|
833
|
-
exports.
|
|
834
|
-
const
|
|
813
|
+
exports.de_CreateResourceShareCommand = de_CreateResourceShareCommand;
|
|
814
|
+
const de_CreateResourceShareCommandError = async (output, context) => {
|
|
835
815
|
const parsedOutput = {
|
|
836
816
|
...output,
|
|
837
817
|
body: await parseErrorBody(output.body, context),
|
|
@@ -840,37 +820,37 @@ const deserializeAws_restJson1CreateResourceShareCommandError = async (output, c
|
|
|
840
820
|
switch (errorCode) {
|
|
841
821
|
case "IdempotentParameterMismatchException":
|
|
842
822
|
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
843
|
-
throw await
|
|
823
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
844
824
|
case "InvalidClientTokenException":
|
|
845
825
|
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
846
|
-
throw await
|
|
826
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
847
827
|
case "InvalidParameterException":
|
|
848
828
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
849
|
-
throw await
|
|
829
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
850
830
|
case "InvalidStateTransitionException":
|
|
851
831
|
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
852
|
-
throw await
|
|
832
|
+
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
853
833
|
case "MalformedArnException":
|
|
854
834
|
case "com.amazonaws.ram#MalformedArnException":
|
|
855
|
-
throw await
|
|
835
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
856
836
|
case "OperationNotPermittedException":
|
|
857
837
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
858
|
-
throw await
|
|
838
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
859
839
|
case "ResourceShareLimitExceededException":
|
|
860
840
|
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
861
|
-
throw await
|
|
841
|
+
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
862
842
|
case "ServerInternalException":
|
|
863
843
|
case "com.amazonaws.ram#ServerInternalException":
|
|
864
|
-
throw await
|
|
844
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
865
845
|
case "ServiceUnavailableException":
|
|
866
846
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
867
|
-
throw await
|
|
847
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
868
848
|
case "TagPolicyViolationException":
|
|
869
849
|
case "com.amazonaws.ram#TagPolicyViolationException":
|
|
870
|
-
throw await
|
|
850
|
+
throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
|
|
871
851
|
case "UnknownResourceException":
|
|
872
852
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
873
|
-
throw await
|
|
853
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
874
854
|
default:
|
|
875
855
|
const parsedBody = parsedOutput.body;
|
|
876
856
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -881,9 +861,9 @@ const deserializeAws_restJson1CreateResourceShareCommandError = async (output, c
|
|
|
881
861
|
});
|
|
882
862
|
}
|
|
883
863
|
};
|
|
884
|
-
const
|
|
864
|
+
const de_DeleteResourceShareCommand = async (output, context) => {
|
|
885
865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
886
|
-
return
|
|
866
|
+
return de_DeleteResourceShareCommandError(output, context);
|
|
887
867
|
}
|
|
888
868
|
const contents = map({
|
|
889
869
|
$metadata: deserializeMetadata(output),
|
|
@@ -897,8 +877,8 @@ const deserializeAws_restJson1DeleteResourceShareCommand = async (output, contex
|
|
|
897
877
|
}
|
|
898
878
|
return contents;
|
|
899
879
|
};
|
|
900
|
-
exports.
|
|
901
|
-
const
|
|
880
|
+
exports.de_DeleteResourceShareCommand = de_DeleteResourceShareCommand;
|
|
881
|
+
const de_DeleteResourceShareCommandError = async (output, context) => {
|
|
902
882
|
const parsedOutput = {
|
|
903
883
|
...output,
|
|
904
884
|
body: await parseErrorBody(output.body, context),
|
|
@@ -907,31 +887,31 @@ const deserializeAws_restJson1DeleteResourceShareCommandError = async (output, c
|
|
|
907
887
|
switch (errorCode) {
|
|
908
888
|
case "IdempotentParameterMismatchException":
|
|
909
889
|
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
910
|
-
throw await
|
|
890
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
911
891
|
case "InvalidClientTokenException":
|
|
912
892
|
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
913
|
-
throw await
|
|
893
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
914
894
|
case "InvalidParameterException":
|
|
915
895
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
916
|
-
throw await
|
|
896
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
917
897
|
case "InvalidStateTransitionException":
|
|
918
898
|
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
919
|
-
throw await
|
|
899
|
+
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
920
900
|
case "MalformedArnException":
|
|
921
901
|
case "com.amazonaws.ram#MalformedArnException":
|
|
922
|
-
throw await
|
|
902
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
923
903
|
case "OperationNotPermittedException":
|
|
924
904
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
925
|
-
throw await
|
|
905
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
926
906
|
case "ServerInternalException":
|
|
927
907
|
case "com.amazonaws.ram#ServerInternalException":
|
|
928
|
-
throw await
|
|
908
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
929
909
|
case "ServiceUnavailableException":
|
|
930
910
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
931
|
-
throw await
|
|
911
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
932
912
|
case "UnknownResourceException":
|
|
933
913
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
934
|
-
throw await
|
|
914
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
935
915
|
default:
|
|
936
916
|
const parsedBody = parsedOutput.body;
|
|
937
917
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -942,9 +922,9 @@ const deserializeAws_restJson1DeleteResourceShareCommandError = async (output, c
|
|
|
942
922
|
});
|
|
943
923
|
}
|
|
944
924
|
};
|
|
945
|
-
const
|
|
925
|
+
const de_DisassociateResourceShareCommand = async (output, context) => {
|
|
946
926
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
-
return
|
|
927
|
+
return de_DisassociateResourceShareCommandError(output, context);
|
|
948
928
|
}
|
|
949
929
|
const contents = map({
|
|
950
930
|
$metadata: deserializeMetadata(output),
|
|
@@ -954,12 +934,12 @@ const deserializeAws_restJson1DisassociateResourceShareCommand = async (output,
|
|
|
954
934
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
955
935
|
}
|
|
956
936
|
if (data.resourceShareAssociations != null) {
|
|
957
|
-
contents.resourceShareAssociations =
|
|
937
|
+
contents.resourceShareAssociations = de_ResourceShareAssociationList(data.resourceShareAssociations, context);
|
|
958
938
|
}
|
|
959
939
|
return contents;
|
|
960
940
|
};
|
|
961
|
-
exports.
|
|
962
|
-
const
|
|
941
|
+
exports.de_DisassociateResourceShareCommand = de_DisassociateResourceShareCommand;
|
|
942
|
+
const de_DisassociateResourceShareCommandError = async (output, context) => {
|
|
963
943
|
const parsedOutput = {
|
|
964
944
|
...output,
|
|
965
945
|
body: await parseErrorBody(output.body, context),
|
|
@@ -968,34 +948,34 @@ const deserializeAws_restJson1DisassociateResourceShareCommandError = async (out
|
|
|
968
948
|
switch (errorCode) {
|
|
969
949
|
case "IdempotentParameterMismatchException":
|
|
970
950
|
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
971
|
-
throw await
|
|
951
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
972
952
|
case "InvalidClientTokenException":
|
|
973
953
|
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
974
|
-
throw await
|
|
954
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
975
955
|
case "InvalidParameterException":
|
|
976
956
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
977
|
-
throw await
|
|
957
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
978
958
|
case "InvalidStateTransitionException":
|
|
979
959
|
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
980
|
-
throw await
|
|
960
|
+
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
981
961
|
case "MalformedArnException":
|
|
982
962
|
case "com.amazonaws.ram#MalformedArnException":
|
|
983
|
-
throw await
|
|
963
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
984
964
|
case "OperationNotPermittedException":
|
|
985
965
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
986
|
-
throw await
|
|
966
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
987
967
|
case "ResourceShareLimitExceededException":
|
|
988
968
|
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
989
|
-
throw await
|
|
969
|
+
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
990
970
|
case "ServerInternalException":
|
|
991
971
|
case "com.amazonaws.ram#ServerInternalException":
|
|
992
|
-
throw await
|
|
972
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
993
973
|
case "ServiceUnavailableException":
|
|
994
974
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
995
|
-
throw await
|
|
975
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
996
976
|
case "UnknownResourceException":
|
|
997
977
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
998
|
-
throw await
|
|
978
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
999
979
|
default:
|
|
1000
980
|
const parsedBody = parsedOutput.body;
|
|
1001
981
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1006,9 +986,9 @@ const deserializeAws_restJson1DisassociateResourceShareCommandError = async (out
|
|
|
1006
986
|
});
|
|
1007
987
|
}
|
|
1008
988
|
};
|
|
1009
|
-
const
|
|
989
|
+
const de_DisassociateResourceSharePermissionCommand = async (output, context) => {
|
|
1010
990
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
|
-
return
|
|
991
|
+
return de_DisassociateResourceSharePermissionCommandError(output, context);
|
|
1012
992
|
}
|
|
1013
993
|
const contents = map({
|
|
1014
994
|
$metadata: deserializeMetadata(output),
|
|
@@ -1022,8 +1002,8 @@ const deserializeAws_restJson1DisassociateResourceSharePermissionCommand = async
|
|
|
1022
1002
|
}
|
|
1023
1003
|
return contents;
|
|
1024
1004
|
};
|
|
1025
|
-
exports.
|
|
1026
|
-
const
|
|
1005
|
+
exports.de_DisassociateResourceSharePermissionCommand = de_DisassociateResourceSharePermissionCommand;
|
|
1006
|
+
const de_DisassociateResourceSharePermissionCommandError = async (output, context) => {
|
|
1027
1007
|
const parsedOutput = {
|
|
1028
1008
|
...output,
|
|
1029
1009
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1032,28 +1012,28 @@ const deserializeAws_restJson1DisassociateResourceSharePermissionCommandError =
|
|
|
1032
1012
|
switch (errorCode) {
|
|
1033
1013
|
case "InvalidClientTokenException":
|
|
1034
1014
|
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1035
|
-
throw await
|
|
1015
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1036
1016
|
case "InvalidParameterException":
|
|
1037
1017
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1038
|
-
throw await
|
|
1018
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1039
1019
|
case "InvalidStateTransitionException":
|
|
1040
1020
|
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
1041
|
-
throw await
|
|
1021
|
+
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
1042
1022
|
case "MalformedArnException":
|
|
1043
1023
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1044
|
-
throw await
|
|
1024
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1045
1025
|
case "OperationNotPermittedException":
|
|
1046
1026
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1047
|
-
throw await
|
|
1027
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1048
1028
|
case "ServerInternalException":
|
|
1049
1029
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1050
|
-
throw await
|
|
1030
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1051
1031
|
case "ServiceUnavailableException":
|
|
1052
1032
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1053
|
-
throw await
|
|
1033
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1054
1034
|
case "UnknownResourceException":
|
|
1055
1035
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
1056
|
-
throw await
|
|
1036
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1057
1037
|
default:
|
|
1058
1038
|
const parsedBody = parsedOutput.body;
|
|
1059
1039
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1064,9 +1044,9 @@ const deserializeAws_restJson1DisassociateResourceSharePermissionCommandError =
|
|
|
1064
1044
|
});
|
|
1065
1045
|
}
|
|
1066
1046
|
};
|
|
1067
|
-
const
|
|
1047
|
+
const de_EnableSharingWithAwsOrganizationCommand = async (output, context) => {
|
|
1068
1048
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1069
|
-
return
|
|
1049
|
+
return de_EnableSharingWithAwsOrganizationCommandError(output, context);
|
|
1070
1050
|
}
|
|
1071
1051
|
const contents = map({
|
|
1072
1052
|
$metadata: deserializeMetadata(output),
|
|
@@ -1077,8 +1057,8 @@ const deserializeAws_restJson1EnableSharingWithAwsOrganizationCommand = async (o
|
|
|
1077
1057
|
}
|
|
1078
1058
|
return contents;
|
|
1079
1059
|
};
|
|
1080
|
-
exports.
|
|
1081
|
-
const
|
|
1060
|
+
exports.de_EnableSharingWithAwsOrganizationCommand = de_EnableSharingWithAwsOrganizationCommand;
|
|
1061
|
+
const de_EnableSharingWithAwsOrganizationCommandError = async (output, context) => {
|
|
1082
1062
|
const parsedOutput = {
|
|
1083
1063
|
...output,
|
|
1084
1064
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1087,13 +1067,13 @@ const deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError = asy
|
|
|
1087
1067
|
switch (errorCode) {
|
|
1088
1068
|
case "OperationNotPermittedException":
|
|
1089
1069
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1090
|
-
throw await
|
|
1070
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1091
1071
|
case "ServerInternalException":
|
|
1092
1072
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1093
|
-
throw await
|
|
1073
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1094
1074
|
case "ServiceUnavailableException":
|
|
1095
1075
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1096
|
-
throw await
|
|
1076
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1097
1077
|
default:
|
|
1098
1078
|
const parsedBody = parsedOutput.body;
|
|
1099
1079
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1104,21 +1084,21 @@ const deserializeAws_restJson1EnableSharingWithAwsOrganizationCommandError = asy
|
|
|
1104
1084
|
});
|
|
1105
1085
|
}
|
|
1106
1086
|
};
|
|
1107
|
-
const
|
|
1087
|
+
const de_GetPermissionCommand = async (output, context) => {
|
|
1108
1088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1109
|
-
return
|
|
1089
|
+
return de_GetPermissionCommandError(output, context);
|
|
1110
1090
|
}
|
|
1111
1091
|
const contents = map({
|
|
1112
1092
|
$metadata: deserializeMetadata(output),
|
|
1113
1093
|
});
|
|
1114
1094
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1115
1095
|
if (data.permission != null) {
|
|
1116
|
-
contents.permission =
|
|
1096
|
+
contents.permission = de_ResourceSharePermissionDetail(data.permission, context);
|
|
1117
1097
|
}
|
|
1118
1098
|
return contents;
|
|
1119
1099
|
};
|
|
1120
|
-
exports.
|
|
1121
|
-
const
|
|
1100
|
+
exports.de_GetPermissionCommand = de_GetPermissionCommand;
|
|
1101
|
+
const de_GetPermissionCommandError = async (output, context) => {
|
|
1122
1102
|
const parsedOutput = {
|
|
1123
1103
|
...output,
|
|
1124
1104
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1127,22 +1107,22 @@ const deserializeAws_restJson1GetPermissionCommandError = async (output, context
|
|
|
1127
1107
|
switch (errorCode) {
|
|
1128
1108
|
case "InvalidParameterException":
|
|
1129
1109
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1130
|
-
throw await
|
|
1110
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1131
1111
|
case "MalformedArnException":
|
|
1132
1112
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1133
|
-
throw await
|
|
1113
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1134
1114
|
case "OperationNotPermittedException":
|
|
1135
1115
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1136
|
-
throw await
|
|
1116
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1137
1117
|
case "ServerInternalException":
|
|
1138
1118
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1139
|
-
throw await
|
|
1119
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1140
1120
|
case "ServiceUnavailableException":
|
|
1141
1121
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1142
|
-
throw await
|
|
1122
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1143
1123
|
case "UnknownResourceException":
|
|
1144
1124
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
1145
|
-
throw await
|
|
1125
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1146
1126
|
default:
|
|
1147
1127
|
const parsedBody = parsedOutput.body;
|
|
1148
1128
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1153,9 +1133,9 @@ const deserializeAws_restJson1GetPermissionCommandError = async (output, context
|
|
|
1153
1133
|
});
|
|
1154
1134
|
}
|
|
1155
1135
|
};
|
|
1156
|
-
const
|
|
1136
|
+
const de_GetResourcePoliciesCommand = async (output, context) => {
|
|
1157
1137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1158
|
-
return
|
|
1138
|
+
return de_GetResourcePoliciesCommandError(output, context);
|
|
1159
1139
|
}
|
|
1160
1140
|
const contents = map({
|
|
1161
1141
|
$metadata: deserializeMetadata(output),
|
|
@@ -1165,12 +1145,12 @@ const deserializeAws_restJson1GetResourcePoliciesCommand = async (output, contex
|
|
|
1165
1145
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1166
1146
|
}
|
|
1167
1147
|
if (data.policies != null) {
|
|
1168
|
-
contents.policies =
|
|
1148
|
+
contents.policies = de_PolicyList(data.policies, context);
|
|
1169
1149
|
}
|
|
1170
1150
|
return contents;
|
|
1171
1151
|
};
|
|
1172
|
-
exports.
|
|
1173
|
-
const
|
|
1152
|
+
exports.de_GetResourcePoliciesCommand = de_GetResourcePoliciesCommand;
|
|
1153
|
+
const de_GetResourcePoliciesCommandError = async (output, context) => {
|
|
1174
1154
|
const parsedOutput = {
|
|
1175
1155
|
...output,
|
|
1176
1156
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1179,22 +1159,22 @@ const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, c
|
|
|
1179
1159
|
switch (errorCode) {
|
|
1180
1160
|
case "InvalidNextTokenException":
|
|
1181
1161
|
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1182
|
-
throw await
|
|
1162
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1183
1163
|
case "InvalidParameterException":
|
|
1184
1164
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1185
|
-
throw await
|
|
1165
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1186
1166
|
case "MalformedArnException":
|
|
1187
1167
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1188
|
-
throw await
|
|
1168
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1189
1169
|
case "ResourceArnNotFoundException":
|
|
1190
1170
|
case "com.amazonaws.ram#ResourceArnNotFoundException":
|
|
1191
|
-
throw await
|
|
1171
|
+
throw await de_ResourceArnNotFoundExceptionRes(parsedOutput, context);
|
|
1192
1172
|
case "ServerInternalException":
|
|
1193
1173
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1194
|
-
throw await
|
|
1174
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1195
1175
|
case "ServiceUnavailableException":
|
|
1196
1176
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1197
|
-
throw await
|
|
1177
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1198
1178
|
default:
|
|
1199
1179
|
const parsedBody = parsedOutput.body;
|
|
1200
1180
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1205,9 +1185,9 @@ const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, c
|
|
|
1205
1185
|
});
|
|
1206
1186
|
}
|
|
1207
1187
|
};
|
|
1208
|
-
const
|
|
1188
|
+
const de_GetResourceShareAssociationsCommand = async (output, context) => {
|
|
1209
1189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1210
|
-
return
|
|
1190
|
+
return de_GetResourceShareAssociationsCommandError(output, context);
|
|
1211
1191
|
}
|
|
1212
1192
|
const contents = map({
|
|
1213
1193
|
$metadata: deserializeMetadata(output),
|
|
@@ -1217,12 +1197,12 @@ const deserializeAws_restJson1GetResourceShareAssociationsCommand = async (outpu
|
|
|
1217
1197
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1218
1198
|
}
|
|
1219
1199
|
if (data.resourceShareAssociations != null) {
|
|
1220
|
-
contents.resourceShareAssociations =
|
|
1200
|
+
contents.resourceShareAssociations = de_ResourceShareAssociationList(data.resourceShareAssociations, context);
|
|
1221
1201
|
}
|
|
1222
1202
|
return contents;
|
|
1223
1203
|
};
|
|
1224
|
-
exports.
|
|
1225
|
-
const
|
|
1204
|
+
exports.de_GetResourceShareAssociationsCommand = de_GetResourceShareAssociationsCommand;
|
|
1205
|
+
const de_GetResourceShareAssociationsCommandError = async (output, context) => {
|
|
1226
1206
|
const parsedOutput = {
|
|
1227
1207
|
...output,
|
|
1228
1208
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1231,25 +1211,25 @@ const deserializeAws_restJson1GetResourceShareAssociationsCommandError = async (
|
|
|
1231
1211
|
switch (errorCode) {
|
|
1232
1212
|
case "InvalidNextTokenException":
|
|
1233
1213
|
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1234
|
-
throw await
|
|
1214
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1235
1215
|
case "InvalidParameterException":
|
|
1236
1216
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1237
|
-
throw await
|
|
1217
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1238
1218
|
case "MalformedArnException":
|
|
1239
1219
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1240
|
-
throw await
|
|
1220
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1241
1221
|
case "OperationNotPermittedException":
|
|
1242
1222
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1243
|
-
throw await
|
|
1223
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1244
1224
|
case "ServerInternalException":
|
|
1245
1225
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1246
|
-
throw await
|
|
1226
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1247
1227
|
case "ServiceUnavailableException":
|
|
1248
1228
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1249
|
-
throw await
|
|
1229
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1250
1230
|
case "UnknownResourceException":
|
|
1251
1231
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
1252
|
-
throw await
|
|
1232
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1253
1233
|
default:
|
|
1254
1234
|
const parsedBody = parsedOutput.body;
|
|
1255
1235
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1260,9 +1240,9 @@ const deserializeAws_restJson1GetResourceShareAssociationsCommandError = async (
|
|
|
1260
1240
|
});
|
|
1261
1241
|
}
|
|
1262
1242
|
};
|
|
1263
|
-
const
|
|
1243
|
+
const de_GetResourceShareInvitationsCommand = async (output, context) => {
|
|
1264
1244
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
-
return
|
|
1245
|
+
return de_GetResourceShareInvitationsCommandError(output, context);
|
|
1266
1246
|
}
|
|
1267
1247
|
const contents = map({
|
|
1268
1248
|
$metadata: deserializeMetadata(output),
|
|
@@ -1272,12 +1252,12 @@ const deserializeAws_restJson1GetResourceShareInvitationsCommand = async (output
|
|
|
1272
1252
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1273
1253
|
}
|
|
1274
1254
|
if (data.resourceShareInvitations != null) {
|
|
1275
|
-
contents.resourceShareInvitations =
|
|
1255
|
+
contents.resourceShareInvitations = de_ResourceShareInvitationList(data.resourceShareInvitations, context);
|
|
1276
1256
|
}
|
|
1277
1257
|
return contents;
|
|
1278
1258
|
};
|
|
1279
|
-
exports.
|
|
1280
|
-
const
|
|
1259
|
+
exports.de_GetResourceShareInvitationsCommand = de_GetResourceShareInvitationsCommand;
|
|
1260
|
+
const de_GetResourceShareInvitationsCommandError = async (output, context) => {
|
|
1281
1261
|
const parsedOutput = {
|
|
1282
1262
|
...output,
|
|
1283
1263
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1286,28 +1266,28 @@ const deserializeAws_restJson1GetResourceShareInvitationsCommandError = async (o
|
|
|
1286
1266
|
switch (errorCode) {
|
|
1287
1267
|
case "InvalidMaxResultsException":
|
|
1288
1268
|
case "com.amazonaws.ram#InvalidMaxResultsException":
|
|
1289
|
-
throw await
|
|
1269
|
+
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
1290
1270
|
case "InvalidNextTokenException":
|
|
1291
1271
|
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1292
|
-
throw await
|
|
1272
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1293
1273
|
case "InvalidParameterException":
|
|
1294
1274
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1295
|
-
throw await
|
|
1275
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1296
1276
|
case "MalformedArnException":
|
|
1297
1277
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1298
|
-
throw await
|
|
1278
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1299
1279
|
case "ResourceShareInvitationArnNotFoundException":
|
|
1300
1280
|
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
|
|
1301
|
-
throw await
|
|
1281
|
+
throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
|
|
1302
1282
|
case "ServerInternalException":
|
|
1303
1283
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1304
|
-
throw await
|
|
1284
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1305
1285
|
case "ServiceUnavailableException":
|
|
1306
1286
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1307
|
-
throw await
|
|
1287
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1308
1288
|
case "UnknownResourceException":
|
|
1309
1289
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
1310
|
-
throw await
|
|
1290
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1311
1291
|
default:
|
|
1312
1292
|
const parsedBody = parsedOutput.body;
|
|
1313
1293
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1318,9 +1298,9 @@ const deserializeAws_restJson1GetResourceShareInvitationsCommandError = async (o
|
|
|
1318
1298
|
});
|
|
1319
1299
|
}
|
|
1320
1300
|
};
|
|
1321
|
-
const
|
|
1301
|
+
const de_GetResourceSharesCommand = async (output, context) => {
|
|
1322
1302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1323
|
-
return
|
|
1303
|
+
return de_GetResourceSharesCommandError(output, context);
|
|
1324
1304
|
}
|
|
1325
1305
|
const contents = map({
|
|
1326
1306
|
$metadata: deserializeMetadata(output),
|
|
@@ -1330,12 +1310,12 @@ const deserializeAws_restJson1GetResourceSharesCommand = async (output, context)
|
|
|
1330
1310
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1331
1311
|
}
|
|
1332
1312
|
if (data.resourceShares != null) {
|
|
1333
|
-
contents.resourceShares =
|
|
1313
|
+
contents.resourceShares = de_ResourceShareList(data.resourceShares, context);
|
|
1334
1314
|
}
|
|
1335
1315
|
return contents;
|
|
1336
1316
|
};
|
|
1337
|
-
exports.
|
|
1338
|
-
const
|
|
1317
|
+
exports.de_GetResourceSharesCommand = de_GetResourceSharesCommand;
|
|
1318
|
+
const de_GetResourceSharesCommandError = async (output, context) => {
|
|
1339
1319
|
const parsedOutput = {
|
|
1340
1320
|
...output,
|
|
1341
1321
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1344,22 +1324,22 @@ const deserializeAws_restJson1GetResourceSharesCommandError = async (output, con
|
|
|
1344
1324
|
switch (errorCode) {
|
|
1345
1325
|
case "InvalidNextTokenException":
|
|
1346
1326
|
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1347
|
-
throw await
|
|
1327
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1348
1328
|
case "InvalidParameterException":
|
|
1349
1329
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1350
|
-
throw await
|
|
1330
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1351
1331
|
case "MalformedArnException":
|
|
1352
1332
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1353
|
-
throw await
|
|
1333
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1354
1334
|
case "ServerInternalException":
|
|
1355
1335
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1356
|
-
throw await
|
|
1336
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1357
1337
|
case "ServiceUnavailableException":
|
|
1358
1338
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1359
|
-
throw await
|
|
1339
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1360
1340
|
case "UnknownResourceException":
|
|
1361
1341
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
1362
|
-
throw await
|
|
1342
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1363
1343
|
default:
|
|
1364
1344
|
const parsedBody = parsedOutput.body;
|
|
1365
1345
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1370,9 +1350,9 @@ const deserializeAws_restJson1GetResourceSharesCommandError = async (output, con
|
|
|
1370
1350
|
});
|
|
1371
1351
|
}
|
|
1372
1352
|
};
|
|
1373
|
-
const
|
|
1353
|
+
const de_ListPendingInvitationResourcesCommand = async (output, context) => {
|
|
1374
1354
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1375
|
-
return
|
|
1355
|
+
return de_ListPendingInvitationResourcesCommandError(output, context);
|
|
1376
1356
|
}
|
|
1377
1357
|
const contents = map({
|
|
1378
1358
|
$metadata: deserializeMetadata(output),
|
|
@@ -1382,12 +1362,12 @@ const deserializeAws_restJson1ListPendingInvitationResourcesCommand = async (out
|
|
|
1382
1362
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1383
1363
|
}
|
|
1384
1364
|
if (data.resources != null) {
|
|
1385
|
-
contents.resources =
|
|
1365
|
+
contents.resources = de_ResourceList(data.resources, context);
|
|
1386
1366
|
}
|
|
1387
1367
|
return contents;
|
|
1388
1368
|
};
|
|
1389
|
-
exports.
|
|
1390
|
-
const
|
|
1369
|
+
exports.de_ListPendingInvitationResourcesCommand = de_ListPendingInvitationResourcesCommand;
|
|
1370
|
+
const de_ListPendingInvitationResourcesCommandError = async (output, context) => {
|
|
1391
1371
|
const parsedOutput = {
|
|
1392
1372
|
...output,
|
|
1393
1373
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1396,31 +1376,31 @@ const deserializeAws_restJson1ListPendingInvitationResourcesCommandError = async
|
|
|
1396
1376
|
switch (errorCode) {
|
|
1397
1377
|
case "InvalidNextTokenException":
|
|
1398
1378
|
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1399
|
-
throw await
|
|
1379
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1400
1380
|
case "InvalidParameterException":
|
|
1401
1381
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1402
|
-
throw await
|
|
1382
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1403
1383
|
case "MalformedArnException":
|
|
1404
1384
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1405
|
-
throw await
|
|
1385
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1406
1386
|
case "MissingRequiredParameterException":
|
|
1407
1387
|
case "com.amazonaws.ram#MissingRequiredParameterException":
|
|
1408
|
-
throw await
|
|
1388
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1409
1389
|
case "ResourceShareInvitationAlreadyRejectedException":
|
|
1410
1390
|
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
|
|
1411
|
-
throw await
|
|
1391
|
+
throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
|
|
1412
1392
|
case "ResourceShareInvitationArnNotFoundException":
|
|
1413
1393
|
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
|
|
1414
|
-
throw await
|
|
1394
|
+
throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
|
|
1415
1395
|
case "ResourceShareInvitationExpiredException":
|
|
1416
1396
|
case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
|
|
1417
|
-
throw await
|
|
1397
|
+
throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
|
|
1418
1398
|
case "ServerInternalException":
|
|
1419
1399
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1420
|
-
throw await
|
|
1400
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1421
1401
|
case "ServiceUnavailableException":
|
|
1422
1402
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1423
|
-
throw await
|
|
1403
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1424
1404
|
default:
|
|
1425
1405
|
const parsedBody = parsedOutput.body;
|
|
1426
1406
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1431,9 +1411,9 @@ const deserializeAws_restJson1ListPendingInvitationResourcesCommandError = async
|
|
|
1431
1411
|
});
|
|
1432
1412
|
}
|
|
1433
1413
|
};
|
|
1434
|
-
const
|
|
1414
|
+
const de_ListPermissionsCommand = async (output, context) => {
|
|
1435
1415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1436
|
-
return
|
|
1416
|
+
return de_ListPermissionsCommandError(output, context);
|
|
1437
1417
|
}
|
|
1438
1418
|
const contents = map({
|
|
1439
1419
|
$metadata: deserializeMetadata(output),
|
|
@@ -1443,12 +1423,12 @@ const deserializeAws_restJson1ListPermissionsCommand = async (output, context) =
|
|
|
1443
1423
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1444
1424
|
}
|
|
1445
1425
|
if (data.permissions != null) {
|
|
1446
|
-
contents.permissions =
|
|
1426
|
+
contents.permissions = de_ResourceSharePermissionList(data.permissions, context);
|
|
1447
1427
|
}
|
|
1448
1428
|
return contents;
|
|
1449
1429
|
};
|
|
1450
|
-
exports.
|
|
1451
|
-
const
|
|
1430
|
+
exports.de_ListPermissionsCommand = de_ListPermissionsCommand;
|
|
1431
|
+
const de_ListPermissionsCommandError = async (output, context) => {
|
|
1452
1432
|
const parsedOutput = {
|
|
1453
1433
|
...output,
|
|
1454
1434
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1457,19 +1437,19 @@ const deserializeAws_restJson1ListPermissionsCommandError = async (output, conte
|
|
|
1457
1437
|
switch (errorCode) {
|
|
1458
1438
|
case "InvalidNextTokenException":
|
|
1459
1439
|
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1460
|
-
throw await
|
|
1440
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1461
1441
|
case "InvalidParameterException":
|
|
1462
1442
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1463
|
-
throw await
|
|
1443
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1464
1444
|
case "OperationNotPermittedException":
|
|
1465
1445
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1466
|
-
throw await
|
|
1446
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1467
1447
|
case "ServerInternalException":
|
|
1468
1448
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1469
|
-
throw await
|
|
1449
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1470
1450
|
case "ServiceUnavailableException":
|
|
1471
1451
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1472
|
-
throw await
|
|
1452
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1473
1453
|
default:
|
|
1474
1454
|
const parsedBody = parsedOutput.body;
|
|
1475
1455
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1480,9 +1460,9 @@ const deserializeAws_restJson1ListPermissionsCommandError = async (output, conte
|
|
|
1480
1460
|
});
|
|
1481
1461
|
}
|
|
1482
1462
|
};
|
|
1483
|
-
const
|
|
1463
|
+
const de_ListPermissionVersionsCommand = async (output, context) => {
|
|
1484
1464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1485
|
-
return
|
|
1465
|
+
return de_ListPermissionVersionsCommandError(output, context);
|
|
1486
1466
|
}
|
|
1487
1467
|
const contents = map({
|
|
1488
1468
|
$metadata: deserializeMetadata(output),
|
|
@@ -1492,12 +1472,12 @@ const deserializeAws_restJson1ListPermissionVersionsCommand = async (output, con
|
|
|
1492
1472
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1493
1473
|
}
|
|
1494
1474
|
if (data.permissions != null) {
|
|
1495
|
-
contents.permissions =
|
|
1475
|
+
contents.permissions = de_ResourceSharePermissionList(data.permissions, context);
|
|
1496
1476
|
}
|
|
1497
1477
|
return contents;
|
|
1498
1478
|
};
|
|
1499
|
-
exports.
|
|
1500
|
-
const
|
|
1479
|
+
exports.de_ListPermissionVersionsCommand = de_ListPermissionVersionsCommand;
|
|
1480
|
+
const de_ListPermissionVersionsCommandError = async (output, context) => {
|
|
1501
1481
|
const parsedOutput = {
|
|
1502
1482
|
...output,
|
|
1503
1483
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1506,25 +1486,25 @@ const deserializeAws_restJson1ListPermissionVersionsCommandError = async (output
|
|
|
1506
1486
|
switch (errorCode) {
|
|
1507
1487
|
case "InvalidNextTokenException":
|
|
1508
1488
|
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1509
|
-
throw await
|
|
1489
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1510
1490
|
case "InvalidParameterException":
|
|
1511
1491
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1512
|
-
throw await
|
|
1492
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1513
1493
|
case "MalformedArnException":
|
|
1514
1494
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1515
|
-
throw await
|
|
1495
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1516
1496
|
case "OperationNotPermittedException":
|
|
1517
1497
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1518
|
-
throw await
|
|
1498
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1519
1499
|
case "ServerInternalException":
|
|
1520
1500
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1521
|
-
throw await
|
|
1501
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1522
1502
|
case "ServiceUnavailableException":
|
|
1523
1503
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1524
|
-
throw await
|
|
1504
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1525
1505
|
case "UnknownResourceException":
|
|
1526
1506
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
1527
|
-
throw await
|
|
1507
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1528
1508
|
default:
|
|
1529
1509
|
const parsedBody = parsedOutput.body;
|
|
1530
1510
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1535,9 +1515,9 @@ const deserializeAws_restJson1ListPermissionVersionsCommandError = async (output
|
|
|
1535
1515
|
});
|
|
1536
1516
|
}
|
|
1537
1517
|
};
|
|
1538
|
-
const
|
|
1518
|
+
const de_ListPrincipalsCommand = async (output, context) => {
|
|
1539
1519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1540
|
-
return
|
|
1520
|
+
return de_ListPrincipalsCommandError(output, context);
|
|
1541
1521
|
}
|
|
1542
1522
|
const contents = map({
|
|
1543
1523
|
$metadata: deserializeMetadata(output),
|
|
@@ -1547,12 +1527,12 @@ const deserializeAws_restJson1ListPrincipalsCommand = async (output, context) =>
|
|
|
1547
1527
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1548
1528
|
}
|
|
1549
1529
|
if (data.principals != null) {
|
|
1550
|
-
contents.principals =
|
|
1530
|
+
contents.principals = de_PrincipalList(data.principals, context);
|
|
1551
1531
|
}
|
|
1552
1532
|
return contents;
|
|
1553
1533
|
};
|
|
1554
|
-
exports.
|
|
1555
|
-
const
|
|
1534
|
+
exports.de_ListPrincipalsCommand = de_ListPrincipalsCommand;
|
|
1535
|
+
const de_ListPrincipalsCommandError = async (output, context) => {
|
|
1556
1536
|
const parsedOutput = {
|
|
1557
1537
|
...output,
|
|
1558
1538
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1561,22 +1541,22 @@ const deserializeAws_restJson1ListPrincipalsCommandError = async (output, contex
|
|
|
1561
1541
|
switch (errorCode) {
|
|
1562
1542
|
case "InvalidNextTokenException":
|
|
1563
1543
|
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1564
|
-
throw await
|
|
1544
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1565
1545
|
case "InvalidParameterException":
|
|
1566
1546
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1567
|
-
throw await
|
|
1547
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1568
1548
|
case "MalformedArnException":
|
|
1569
1549
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1570
|
-
throw await
|
|
1550
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1571
1551
|
case "ServerInternalException":
|
|
1572
1552
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1573
|
-
throw await
|
|
1553
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1574
1554
|
case "ServiceUnavailableException":
|
|
1575
1555
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1576
|
-
throw await
|
|
1556
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1577
1557
|
case "UnknownResourceException":
|
|
1578
1558
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
1579
|
-
throw await
|
|
1559
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1580
1560
|
default:
|
|
1581
1561
|
const parsedBody = parsedOutput.body;
|
|
1582
1562
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1587,9 +1567,9 @@ const deserializeAws_restJson1ListPrincipalsCommandError = async (output, contex
|
|
|
1587
1567
|
});
|
|
1588
1568
|
}
|
|
1589
1569
|
};
|
|
1590
|
-
const
|
|
1570
|
+
const de_ListResourcesCommand = async (output, context) => {
|
|
1591
1571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1592
|
-
return
|
|
1572
|
+
return de_ListResourcesCommandError(output, context);
|
|
1593
1573
|
}
|
|
1594
1574
|
const contents = map({
|
|
1595
1575
|
$metadata: deserializeMetadata(output),
|
|
@@ -1599,12 +1579,12 @@ const deserializeAws_restJson1ListResourcesCommand = async (output, context) =>
|
|
|
1599
1579
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1600
1580
|
}
|
|
1601
1581
|
if (data.resources != null) {
|
|
1602
|
-
contents.resources =
|
|
1582
|
+
contents.resources = de_ResourceList(data.resources, context);
|
|
1603
1583
|
}
|
|
1604
1584
|
return contents;
|
|
1605
1585
|
};
|
|
1606
|
-
exports.
|
|
1607
|
-
const
|
|
1586
|
+
exports.de_ListResourcesCommand = de_ListResourcesCommand;
|
|
1587
|
+
const de_ListResourcesCommandError = async (output, context) => {
|
|
1608
1588
|
const parsedOutput = {
|
|
1609
1589
|
...output,
|
|
1610
1590
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1613,25 +1593,25 @@ const deserializeAws_restJson1ListResourcesCommandError = async (output, context
|
|
|
1613
1593
|
switch (errorCode) {
|
|
1614
1594
|
case "InvalidNextTokenException":
|
|
1615
1595
|
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1616
|
-
throw await
|
|
1596
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1617
1597
|
case "InvalidParameterException":
|
|
1618
1598
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1619
|
-
throw await
|
|
1599
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1620
1600
|
case "InvalidResourceTypeException":
|
|
1621
1601
|
case "com.amazonaws.ram#InvalidResourceTypeException":
|
|
1622
|
-
throw await
|
|
1602
|
+
throw await de_InvalidResourceTypeExceptionRes(parsedOutput, context);
|
|
1623
1603
|
case "MalformedArnException":
|
|
1624
1604
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1625
|
-
throw await
|
|
1605
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1626
1606
|
case "ServerInternalException":
|
|
1627
1607
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1628
|
-
throw await
|
|
1608
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1629
1609
|
case "ServiceUnavailableException":
|
|
1630
1610
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1631
|
-
throw await
|
|
1611
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1632
1612
|
case "UnknownResourceException":
|
|
1633
1613
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
1634
|
-
throw await
|
|
1614
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1635
1615
|
default:
|
|
1636
1616
|
const parsedBody = parsedOutput.body;
|
|
1637
1617
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1642,9 +1622,9 @@ const deserializeAws_restJson1ListResourcesCommandError = async (output, context
|
|
|
1642
1622
|
});
|
|
1643
1623
|
}
|
|
1644
1624
|
};
|
|
1645
|
-
const
|
|
1625
|
+
const de_ListResourceSharePermissionsCommand = async (output, context) => {
|
|
1646
1626
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1647
|
-
return
|
|
1627
|
+
return de_ListResourceSharePermissionsCommandError(output, context);
|
|
1648
1628
|
}
|
|
1649
1629
|
const contents = map({
|
|
1650
1630
|
$metadata: deserializeMetadata(output),
|
|
@@ -1654,12 +1634,12 @@ const deserializeAws_restJson1ListResourceSharePermissionsCommand = async (outpu
|
|
|
1654
1634
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1655
1635
|
}
|
|
1656
1636
|
if (data.permissions != null) {
|
|
1657
|
-
contents.permissions =
|
|
1637
|
+
contents.permissions = de_ResourceSharePermissionList(data.permissions, context);
|
|
1658
1638
|
}
|
|
1659
1639
|
return contents;
|
|
1660
1640
|
};
|
|
1661
|
-
exports.
|
|
1662
|
-
const
|
|
1641
|
+
exports.de_ListResourceSharePermissionsCommand = de_ListResourceSharePermissionsCommand;
|
|
1642
|
+
const de_ListResourceSharePermissionsCommandError = async (output, context) => {
|
|
1663
1643
|
const parsedOutput = {
|
|
1664
1644
|
...output,
|
|
1665
1645
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1668,25 +1648,25 @@ const deserializeAws_restJson1ListResourceSharePermissionsCommandError = async (
|
|
|
1668
1648
|
switch (errorCode) {
|
|
1669
1649
|
case "InvalidNextTokenException":
|
|
1670
1650
|
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1671
|
-
throw await
|
|
1651
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1672
1652
|
case "InvalidParameterException":
|
|
1673
1653
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1674
|
-
throw await
|
|
1654
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1675
1655
|
case "MalformedArnException":
|
|
1676
1656
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1677
|
-
throw await
|
|
1657
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1678
1658
|
case "OperationNotPermittedException":
|
|
1679
1659
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1680
|
-
throw await
|
|
1660
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1681
1661
|
case "ServerInternalException":
|
|
1682
1662
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1683
|
-
throw await
|
|
1663
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1684
1664
|
case "ServiceUnavailableException":
|
|
1685
1665
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1686
|
-
throw await
|
|
1666
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1687
1667
|
case "UnknownResourceException":
|
|
1688
1668
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
1689
|
-
throw await
|
|
1669
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1690
1670
|
default:
|
|
1691
1671
|
const parsedBody = parsedOutput.body;
|
|
1692
1672
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1697,9 +1677,9 @@ const deserializeAws_restJson1ListResourceSharePermissionsCommandError = async (
|
|
|
1697
1677
|
});
|
|
1698
1678
|
}
|
|
1699
1679
|
};
|
|
1700
|
-
const
|
|
1680
|
+
const de_ListResourceTypesCommand = async (output, context) => {
|
|
1701
1681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1702
|
-
return
|
|
1682
|
+
return de_ListResourceTypesCommandError(output, context);
|
|
1703
1683
|
}
|
|
1704
1684
|
const contents = map({
|
|
1705
1685
|
$metadata: deserializeMetadata(output),
|
|
@@ -1709,12 +1689,12 @@ const deserializeAws_restJson1ListResourceTypesCommand = async (output, context)
|
|
|
1709
1689
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1710
1690
|
}
|
|
1711
1691
|
if (data.resourceTypes != null) {
|
|
1712
|
-
contents.resourceTypes =
|
|
1692
|
+
contents.resourceTypes = de_ServiceNameAndResourceTypeList(data.resourceTypes, context);
|
|
1713
1693
|
}
|
|
1714
1694
|
return contents;
|
|
1715
1695
|
};
|
|
1716
|
-
exports.
|
|
1717
|
-
const
|
|
1696
|
+
exports.de_ListResourceTypesCommand = de_ListResourceTypesCommand;
|
|
1697
|
+
const de_ListResourceTypesCommandError = async (output, context) => {
|
|
1718
1698
|
const parsedOutput = {
|
|
1719
1699
|
...output,
|
|
1720
1700
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1723,16 +1703,16 @@ const deserializeAws_restJson1ListResourceTypesCommandError = async (output, con
|
|
|
1723
1703
|
switch (errorCode) {
|
|
1724
1704
|
case "InvalidNextTokenException":
|
|
1725
1705
|
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1726
|
-
throw await
|
|
1706
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1727
1707
|
case "InvalidParameterException":
|
|
1728
1708
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1729
|
-
throw await
|
|
1709
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1730
1710
|
case "ServerInternalException":
|
|
1731
1711
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1732
|
-
throw await
|
|
1712
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1733
1713
|
case "ServiceUnavailableException":
|
|
1734
1714
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1735
|
-
throw await
|
|
1715
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1736
1716
|
default:
|
|
1737
1717
|
const parsedBody = parsedOutput.body;
|
|
1738
1718
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1743,9 +1723,9 @@ const deserializeAws_restJson1ListResourceTypesCommandError = async (output, con
|
|
|
1743
1723
|
});
|
|
1744
1724
|
}
|
|
1745
1725
|
};
|
|
1746
|
-
const
|
|
1726
|
+
const de_PromoteResourceShareCreatedFromPolicyCommand = async (output, context) => {
|
|
1747
1727
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1748
|
-
return
|
|
1728
|
+
return de_PromoteResourceShareCreatedFromPolicyCommandError(output, context);
|
|
1749
1729
|
}
|
|
1750
1730
|
const contents = map({
|
|
1751
1731
|
$metadata: deserializeMetadata(output),
|
|
@@ -1756,8 +1736,8 @@ const deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommand = asy
|
|
|
1756
1736
|
}
|
|
1757
1737
|
return contents;
|
|
1758
1738
|
};
|
|
1759
|
-
exports.
|
|
1760
|
-
const
|
|
1739
|
+
exports.de_PromoteResourceShareCreatedFromPolicyCommand = de_PromoteResourceShareCreatedFromPolicyCommand;
|
|
1740
|
+
const de_PromoteResourceShareCreatedFromPolicyCommandError = async (output, context) => {
|
|
1761
1741
|
const parsedOutput = {
|
|
1762
1742
|
...output,
|
|
1763
1743
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1766,28 +1746,28 @@ const deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError
|
|
|
1766
1746
|
switch (errorCode) {
|
|
1767
1747
|
case "InvalidParameterException":
|
|
1768
1748
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1769
|
-
throw await
|
|
1749
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1770
1750
|
case "MalformedArnException":
|
|
1771
1751
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1772
|
-
throw await
|
|
1752
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1773
1753
|
case "MissingRequiredParameterException":
|
|
1774
1754
|
case "com.amazonaws.ram#MissingRequiredParameterException":
|
|
1775
|
-
throw await
|
|
1755
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1776
1756
|
case "OperationNotPermittedException":
|
|
1777
1757
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1778
|
-
throw await
|
|
1758
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1779
1759
|
case "ResourceShareLimitExceededException":
|
|
1780
1760
|
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
1781
|
-
throw await
|
|
1761
|
+
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
1782
1762
|
case "ServerInternalException":
|
|
1783
1763
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1784
|
-
throw await
|
|
1764
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1785
1765
|
case "ServiceUnavailableException":
|
|
1786
1766
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1787
|
-
throw await
|
|
1767
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1788
1768
|
case "UnknownResourceException":
|
|
1789
1769
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
1790
|
-
throw await
|
|
1770
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1791
1771
|
default:
|
|
1792
1772
|
const parsedBody = parsedOutput.body;
|
|
1793
1773
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1798,9 +1778,9 @@ const deserializeAws_restJson1PromoteResourceShareCreatedFromPolicyCommandError
|
|
|
1798
1778
|
});
|
|
1799
1779
|
}
|
|
1800
1780
|
};
|
|
1801
|
-
const
|
|
1781
|
+
const de_RejectResourceShareInvitationCommand = async (output, context) => {
|
|
1802
1782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1803
|
-
return
|
|
1783
|
+
return de_RejectResourceShareInvitationCommandError(output, context);
|
|
1804
1784
|
}
|
|
1805
1785
|
const contents = map({
|
|
1806
1786
|
$metadata: deserializeMetadata(output),
|
|
@@ -1810,12 +1790,12 @@ const deserializeAws_restJson1RejectResourceShareInvitationCommand = async (outp
|
|
|
1810
1790
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1811
1791
|
}
|
|
1812
1792
|
if (data.resourceShareInvitation != null) {
|
|
1813
|
-
contents.resourceShareInvitation =
|
|
1793
|
+
contents.resourceShareInvitation = de_ResourceShareInvitation(data.resourceShareInvitation, context);
|
|
1814
1794
|
}
|
|
1815
1795
|
return contents;
|
|
1816
1796
|
};
|
|
1817
|
-
exports.
|
|
1818
|
-
const
|
|
1797
|
+
exports.de_RejectResourceShareInvitationCommand = de_RejectResourceShareInvitationCommand;
|
|
1798
|
+
const de_RejectResourceShareInvitationCommandError = async (output, context) => {
|
|
1819
1799
|
const parsedOutput = {
|
|
1820
1800
|
...output,
|
|
1821
1801
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1824,34 +1804,34 @@ const deserializeAws_restJson1RejectResourceShareInvitationCommandError = async
|
|
|
1824
1804
|
switch (errorCode) {
|
|
1825
1805
|
case "IdempotentParameterMismatchException":
|
|
1826
1806
|
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1827
|
-
throw await
|
|
1807
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1828
1808
|
case "InvalidClientTokenException":
|
|
1829
1809
|
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1830
|
-
throw await
|
|
1810
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1831
1811
|
case "MalformedArnException":
|
|
1832
1812
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1833
|
-
throw await
|
|
1813
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1834
1814
|
case "OperationNotPermittedException":
|
|
1835
1815
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1836
|
-
throw await
|
|
1816
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1837
1817
|
case "ResourceShareInvitationAlreadyAcceptedException":
|
|
1838
1818
|
case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException":
|
|
1839
|
-
throw await
|
|
1819
|
+
throw await de_ResourceShareInvitationAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
1840
1820
|
case "ResourceShareInvitationAlreadyRejectedException":
|
|
1841
1821
|
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
|
|
1842
|
-
throw await
|
|
1822
|
+
throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
|
|
1843
1823
|
case "ResourceShareInvitationArnNotFoundException":
|
|
1844
1824
|
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
|
|
1845
|
-
throw await
|
|
1825
|
+
throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
|
|
1846
1826
|
case "ResourceShareInvitationExpiredException":
|
|
1847
1827
|
case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
|
|
1848
|
-
throw await
|
|
1828
|
+
throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
|
|
1849
1829
|
case "ServerInternalException":
|
|
1850
1830
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1851
|
-
throw await
|
|
1831
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1852
1832
|
case "ServiceUnavailableException":
|
|
1853
1833
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1854
|
-
throw await
|
|
1834
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1855
1835
|
default:
|
|
1856
1836
|
const parsedBody = parsedOutput.body;
|
|
1857
1837
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1862,9 +1842,9 @@ const deserializeAws_restJson1RejectResourceShareInvitationCommandError = async
|
|
|
1862
1842
|
});
|
|
1863
1843
|
}
|
|
1864
1844
|
};
|
|
1865
|
-
const
|
|
1845
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1866
1846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1867
|
-
return
|
|
1847
|
+
return de_TagResourceCommandError(output, context);
|
|
1868
1848
|
}
|
|
1869
1849
|
const contents = map({
|
|
1870
1850
|
$metadata: deserializeMetadata(output),
|
|
@@ -1872,8 +1852,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1872
1852
|
await collectBody(output.body, context);
|
|
1873
1853
|
return contents;
|
|
1874
1854
|
};
|
|
1875
|
-
exports.
|
|
1876
|
-
const
|
|
1855
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1856
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1877
1857
|
const parsedOutput = {
|
|
1878
1858
|
...output,
|
|
1879
1859
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1882,28 +1862,28 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1882
1862
|
switch (errorCode) {
|
|
1883
1863
|
case "InvalidParameterException":
|
|
1884
1864
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1885
|
-
throw await
|
|
1865
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1886
1866
|
case "MalformedArnException":
|
|
1887
1867
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1888
|
-
throw await
|
|
1868
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1889
1869
|
case "ResourceArnNotFoundException":
|
|
1890
1870
|
case "com.amazonaws.ram#ResourceArnNotFoundException":
|
|
1891
|
-
throw await
|
|
1871
|
+
throw await de_ResourceArnNotFoundExceptionRes(parsedOutput, context);
|
|
1892
1872
|
case "ServerInternalException":
|
|
1893
1873
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1894
|
-
throw await
|
|
1874
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1895
1875
|
case "ServiceUnavailableException":
|
|
1896
1876
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1897
|
-
throw await
|
|
1877
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1898
1878
|
case "TagLimitExceededException":
|
|
1899
1879
|
case "com.amazonaws.ram#TagLimitExceededException":
|
|
1900
|
-
throw await
|
|
1880
|
+
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
1901
1881
|
case "TagPolicyViolationException":
|
|
1902
1882
|
case "com.amazonaws.ram#TagPolicyViolationException":
|
|
1903
|
-
throw await
|
|
1883
|
+
throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
|
|
1904
1884
|
case "UnknownResourceException":
|
|
1905
1885
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
1906
|
-
throw await
|
|
1886
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1907
1887
|
default:
|
|
1908
1888
|
const parsedBody = parsedOutput.body;
|
|
1909
1889
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1914,9 +1894,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1914
1894
|
});
|
|
1915
1895
|
}
|
|
1916
1896
|
};
|
|
1917
|
-
const
|
|
1897
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1918
1898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1919
|
-
return
|
|
1899
|
+
return de_UntagResourceCommandError(output, context);
|
|
1920
1900
|
}
|
|
1921
1901
|
const contents = map({
|
|
1922
1902
|
$metadata: deserializeMetadata(output),
|
|
@@ -1924,8 +1904,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1924
1904
|
await collectBody(output.body, context);
|
|
1925
1905
|
return contents;
|
|
1926
1906
|
};
|
|
1927
|
-
exports.
|
|
1928
|
-
const
|
|
1907
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1908
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1929
1909
|
const parsedOutput = {
|
|
1930
1910
|
...output,
|
|
1931
1911
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1934,13 +1914,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1934
1914
|
switch (errorCode) {
|
|
1935
1915
|
case "InvalidParameterException":
|
|
1936
1916
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1937
|
-
throw await
|
|
1917
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1938
1918
|
case "ServerInternalException":
|
|
1939
1919
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1940
|
-
throw await
|
|
1920
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1941
1921
|
case "ServiceUnavailableException":
|
|
1942
1922
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1943
|
-
throw await
|
|
1923
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1944
1924
|
default:
|
|
1945
1925
|
const parsedBody = parsedOutput.body;
|
|
1946
1926
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1951,9 +1931,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1951
1931
|
});
|
|
1952
1932
|
}
|
|
1953
1933
|
};
|
|
1954
|
-
const
|
|
1934
|
+
const de_UpdateResourceShareCommand = async (output, context) => {
|
|
1955
1935
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1956
|
-
return
|
|
1936
|
+
return de_UpdateResourceShareCommandError(output, context);
|
|
1957
1937
|
}
|
|
1958
1938
|
const contents = map({
|
|
1959
1939
|
$metadata: deserializeMetadata(output),
|
|
@@ -1963,12 +1943,12 @@ const deserializeAws_restJson1UpdateResourceShareCommand = async (output, contex
|
|
|
1963
1943
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
1964
1944
|
}
|
|
1965
1945
|
if (data.resourceShare != null) {
|
|
1966
|
-
contents.resourceShare =
|
|
1946
|
+
contents.resourceShare = de_ResourceShare(data.resourceShare, context);
|
|
1967
1947
|
}
|
|
1968
1948
|
return contents;
|
|
1969
1949
|
};
|
|
1970
|
-
exports.
|
|
1971
|
-
const
|
|
1950
|
+
exports.de_UpdateResourceShareCommand = de_UpdateResourceShareCommand;
|
|
1951
|
+
const de_UpdateResourceShareCommandError = async (output, context) => {
|
|
1972
1952
|
const parsedOutput = {
|
|
1973
1953
|
...output,
|
|
1974
1954
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1977,31 +1957,31 @@ const deserializeAws_restJson1UpdateResourceShareCommandError = async (output, c
|
|
|
1977
1957
|
switch (errorCode) {
|
|
1978
1958
|
case "IdempotentParameterMismatchException":
|
|
1979
1959
|
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1980
|
-
throw await
|
|
1960
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1981
1961
|
case "InvalidClientTokenException":
|
|
1982
1962
|
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1983
|
-
throw await
|
|
1963
|
+
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1984
1964
|
case "InvalidParameterException":
|
|
1985
1965
|
case "com.amazonaws.ram#InvalidParameterException":
|
|
1986
|
-
throw await
|
|
1966
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1987
1967
|
case "MalformedArnException":
|
|
1988
1968
|
case "com.amazonaws.ram#MalformedArnException":
|
|
1989
|
-
throw await
|
|
1969
|
+
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1990
1970
|
case "MissingRequiredParameterException":
|
|
1991
1971
|
case "com.amazonaws.ram#MissingRequiredParameterException":
|
|
1992
|
-
throw await
|
|
1972
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1993
1973
|
case "OperationNotPermittedException":
|
|
1994
1974
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1995
|
-
throw await
|
|
1975
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1996
1976
|
case "ServerInternalException":
|
|
1997
1977
|
case "com.amazonaws.ram#ServerInternalException":
|
|
1998
|
-
throw await
|
|
1978
|
+
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1999
1979
|
case "ServiceUnavailableException":
|
|
2000
1980
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2001
|
-
throw await
|
|
1981
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2002
1982
|
case "UnknownResourceException":
|
|
2003
1983
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
2004
|
-
throw await
|
|
1984
|
+
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2005
1985
|
default:
|
|
2006
1986
|
const parsedBody = parsedOutput.body;
|
|
2007
1987
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2013,7 +1993,7 @@ const deserializeAws_restJson1UpdateResourceShareCommandError = async (output, c
|
|
|
2013
1993
|
}
|
|
2014
1994
|
};
|
|
2015
1995
|
const map = smithy_client_1.map;
|
|
2016
|
-
const
|
|
1996
|
+
const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context) => {
|
|
2017
1997
|
const contents = map({});
|
|
2018
1998
|
const data = parsedOutput.body;
|
|
2019
1999
|
if (data.message != null) {
|
|
@@ -2025,7 +2005,7 @@ const deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse = asy
|
|
|
2025
2005
|
});
|
|
2026
2006
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2027
2007
|
};
|
|
2028
|
-
const
|
|
2008
|
+
const de_InvalidClientTokenExceptionRes = async (parsedOutput, context) => {
|
|
2029
2009
|
const contents = map({});
|
|
2030
2010
|
const data = parsedOutput.body;
|
|
2031
2011
|
if (data.message != null) {
|
|
@@ -2037,7 +2017,7 @@ const deserializeAws_restJson1InvalidClientTokenExceptionResponse = async (parse
|
|
|
2037
2017
|
});
|
|
2038
2018
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2039
2019
|
};
|
|
2040
|
-
const
|
|
2020
|
+
const de_InvalidMaxResultsExceptionRes = async (parsedOutput, context) => {
|
|
2041
2021
|
const contents = map({});
|
|
2042
2022
|
const data = parsedOutput.body;
|
|
2043
2023
|
if (data.message != null) {
|
|
@@ -2049,7 +2029,7 @@ const deserializeAws_restJson1InvalidMaxResultsExceptionResponse = async (parsed
|
|
|
2049
2029
|
});
|
|
2050
2030
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2051
2031
|
};
|
|
2052
|
-
const
|
|
2032
|
+
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
2053
2033
|
const contents = map({});
|
|
2054
2034
|
const data = parsedOutput.body;
|
|
2055
2035
|
if (data.message != null) {
|
|
@@ -2061,7 +2041,7 @@ const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedO
|
|
|
2061
2041
|
});
|
|
2062
2042
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2063
2043
|
};
|
|
2064
|
-
const
|
|
2044
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
2065
2045
|
const contents = map({});
|
|
2066
2046
|
const data = parsedOutput.body;
|
|
2067
2047
|
if (data.message != null) {
|
|
@@ -2073,7 +2053,7 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
|
|
|
2073
2053
|
});
|
|
2074
2054
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2075
2055
|
};
|
|
2076
|
-
const
|
|
2056
|
+
const de_InvalidResourceTypeExceptionRes = async (parsedOutput, context) => {
|
|
2077
2057
|
const contents = map({});
|
|
2078
2058
|
const data = parsedOutput.body;
|
|
2079
2059
|
if (data.message != null) {
|
|
@@ -2085,7 +2065,7 @@ const deserializeAws_restJson1InvalidResourceTypeExceptionResponse = async (pars
|
|
|
2085
2065
|
});
|
|
2086
2066
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2087
2067
|
};
|
|
2088
|
-
const
|
|
2068
|
+
const de_InvalidStateTransitionExceptionRes = async (parsedOutput, context) => {
|
|
2089
2069
|
const contents = map({});
|
|
2090
2070
|
const data = parsedOutput.body;
|
|
2091
2071
|
if (data.message != null) {
|
|
@@ -2097,7 +2077,7 @@ const deserializeAws_restJson1InvalidStateTransitionExceptionResponse = async (p
|
|
|
2097
2077
|
});
|
|
2098
2078
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2099
2079
|
};
|
|
2100
|
-
const
|
|
2080
|
+
const de_MalformedArnExceptionRes = async (parsedOutput, context) => {
|
|
2101
2081
|
const contents = map({});
|
|
2102
2082
|
const data = parsedOutput.body;
|
|
2103
2083
|
if (data.message != null) {
|
|
@@ -2109,7 +2089,7 @@ const deserializeAws_restJson1MalformedArnExceptionResponse = async (parsedOutpu
|
|
|
2109
2089
|
});
|
|
2110
2090
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2111
2091
|
};
|
|
2112
|
-
const
|
|
2092
|
+
const de_MissingRequiredParameterExceptionRes = async (parsedOutput, context) => {
|
|
2113
2093
|
const contents = map({});
|
|
2114
2094
|
const data = parsedOutput.body;
|
|
2115
2095
|
if (data.message != null) {
|
|
@@ -2121,7 +2101,7 @@ const deserializeAws_restJson1MissingRequiredParameterExceptionResponse = async
|
|
|
2121
2101
|
});
|
|
2122
2102
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2123
2103
|
};
|
|
2124
|
-
const
|
|
2104
|
+
const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
|
|
2125
2105
|
const contents = map({});
|
|
2126
2106
|
const data = parsedOutput.body;
|
|
2127
2107
|
if (data.message != null) {
|
|
@@ -2133,7 +2113,7 @@ const deserializeAws_restJson1OperationNotPermittedExceptionResponse = async (pa
|
|
|
2133
2113
|
});
|
|
2134
2114
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2135
2115
|
};
|
|
2136
|
-
const
|
|
2116
|
+
const de_ResourceArnNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2137
2117
|
const contents = map({});
|
|
2138
2118
|
const data = parsedOutput.body;
|
|
2139
2119
|
if (data.message != null) {
|
|
@@ -2145,7 +2125,7 @@ const deserializeAws_restJson1ResourceArnNotFoundExceptionResponse = async (pars
|
|
|
2145
2125
|
});
|
|
2146
2126
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2147
2127
|
};
|
|
2148
|
-
const
|
|
2128
|
+
const de_ResourceShareInvitationAlreadyAcceptedExceptionRes = async (parsedOutput, context) => {
|
|
2149
2129
|
const contents = map({});
|
|
2150
2130
|
const data = parsedOutput.body;
|
|
2151
2131
|
if (data.message != null) {
|
|
@@ -2157,7 +2137,7 @@ const deserializeAws_restJson1ResourceShareInvitationAlreadyAcceptedExceptionRes
|
|
|
2157
2137
|
});
|
|
2158
2138
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2159
2139
|
};
|
|
2160
|
-
const
|
|
2140
|
+
const de_ResourceShareInvitationAlreadyRejectedExceptionRes = async (parsedOutput, context) => {
|
|
2161
2141
|
const contents = map({});
|
|
2162
2142
|
const data = parsedOutput.body;
|
|
2163
2143
|
if (data.message != null) {
|
|
@@ -2169,7 +2149,7 @@ const deserializeAws_restJson1ResourceShareInvitationAlreadyRejectedExceptionRes
|
|
|
2169
2149
|
});
|
|
2170
2150
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2171
2151
|
};
|
|
2172
|
-
const
|
|
2152
|
+
const de_ResourceShareInvitationArnNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2173
2153
|
const contents = map({});
|
|
2174
2154
|
const data = parsedOutput.body;
|
|
2175
2155
|
if (data.message != null) {
|
|
@@ -2181,7 +2161,7 @@ const deserializeAws_restJson1ResourceShareInvitationArnNotFoundExceptionRespons
|
|
|
2181
2161
|
});
|
|
2182
2162
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2183
2163
|
};
|
|
2184
|
-
const
|
|
2164
|
+
const de_ResourceShareInvitationExpiredExceptionRes = async (parsedOutput, context) => {
|
|
2185
2165
|
const contents = map({});
|
|
2186
2166
|
const data = parsedOutput.body;
|
|
2187
2167
|
if (data.message != null) {
|
|
@@ -2193,7 +2173,7 @@ const deserializeAws_restJson1ResourceShareInvitationExpiredExceptionResponse =
|
|
|
2193
2173
|
});
|
|
2194
2174
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2195
2175
|
};
|
|
2196
|
-
const
|
|
2176
|
+
const de_ResourceShareLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2197
2177
|
const contents = map({});
|
|
2198
2178
|
const data = parsedOutput.body;
|
|
2199
2179
|
if (data.message != null) {
|
|
@@ -2205,7 +2185,7 @@ const deserializeAws_restJson1ResourceShareLimitExceededExceptionResponse = asyn
|
|
|
2205
2185
|
});
|
|
2206
2186
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2207
2187
|
};
|
|
2208
|
-
const
|
|
2188
|
+
const de_ServerInternalExceptionRes = async (parsedOutput, context) => {
|
|
2209
2189
|
const contents = map({});
|
|
2210
2190
|
const data = parsedOutput.body;
|
|
2211
2191
|
if (data.message != null) {
|
|
@@ -2217,7 +2197,7 @@ const deserializeAws_restJson1ServerInternalExceptionResponse = async (parsedOut
|
|
|
2217
2197
|
});
|
|
2218
2198
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2219
2199
|
};
|
|
2220
|
-
const
|
|
2200
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2221
2201
|
const contents = map({});
|
|
2222
2202
|
const data = parsedOutput.body;
|
|
2223
2203
|
if (data.message != null) {
|
|
@@ -2229,7 +2209,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
2229
2209
|
});
|
|
2230
2210
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2231
2211
|
};
|
|
2232
|
-
const
|
|
2212
|
+
const de_TagLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2233
2213
|
const contents = map({});
|
|
2234
2214
|
const data = parsedOutput.body;
|
|
2235
2215
|
if (data.message != null) {
|
|
@@ -2241,7 +2221,7 @@ const deserializeAws_restJson1TagLimitExceededExceptionResponse = async (parsedO
|
|
|
2241
2221
|
});
|
|
2242
2222
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2243
2223
|
};
|
|
2244
|
-
const
|
|
2224
|
+
const de_TagPolicyViolationExceptionRes = async (parsedOutput, context) => {
|
|
2245
2225
|
const contents = map({});
|
|
2246
2226
|
const data = parsedOutput.body;
|
|
2247
2227
|
if (data.message != null) {
|
|
@@ -2253,7 +2233,7 @@ const deserializeAws_restJson1TagPolicyViolationExceptionResponse = async (parse
|
|
|
2253
2233
|
});
|
|
2254
2234
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2255
2235
|
};
|
|
2256
|
-
const
|
|
2236
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2257
2237
|
const contents = map({});
|
|
2258
2238
|
const data = parsedOutput.body;
|
|
2259
2239
|
if (data.message != null) {
|
|
@@ -2265,7 +2245,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2265
2245
|
});
|
|
2266
2246
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2267
2247
|
};
|
|
2268
|
-
const
|
|
2248
|
+
const de_UnknownResourceExceptionRes = async (parsedOutput, context) => {
|
|
2269
2249
|
const contents = map({});
|
|
2270
2250
|
const data = parsedOutput.body;
|
|
2271
2251
|
if (data.message != null) {
|
|
@@ -2277,82 +2257,82 @@ const deserializeAws_restJson1UnknownResourceExceptionResponse = async (parsedOu
|
|
|
2277
2257
|
});
|
|
2278
2258
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2279
2259
|
};
|
|
2280
|
-
const
|
|
2260
|
+
const se_PermissionArnList = (input, context) => {
|
|
2281
2261
|
return input
|
|
2282
2262
|
.filter((e) => e != null)
|
|
2283
2263
|
.map((entry) => {
|
|
2284
2264
|
return entry;
|
|
2285
2265
|
});
|
|
2286
2266
|
};
|
|
2287
|
-
const
|
|
2267
|
+
const se_PrincipalArnOrIdList = (input, context) => {
|
|
2288
2268
|
return input
|
|
2289
2269
|
.filter((e) => e != null)
|
|
2290
2270
|
.map((entry) => {
|
|
2291
2271
|
return entry;
|
|
2292
2272
|
});
|
|
2293
2273
|
};
|
|
2294
|
-
const
|
|
2274
|
+
const se_ResourceArnList = (input, context) => {
|
|
2295
2275
|
return input
|
|
2296
2276
|
.filter((e) => e != null)
|
|
2297
2277
|
.map((entry) => {
|
|
2298
2278
|
return entry;
|
|
2299
2279
|
});
|
|
2300
2280
|
};
|
|
2301
|
-
const
|
|
2281
|
+
const se_ResourceShareArnList = (input, context) => {
|
|
2302
2282
|
return input
|
|
2303
2283
|
.filter((e) => e != null)
|
|
2304
2284
|
.map((entry) => {
|
|
2305
2285
|
return entry;
|
|
2306
2286
|
});
|
|
2307
2287
|
};
|
|
2308
|
-
const
|
|
2288
|
+
const se_ResourceShareInvitationArnList = (input, context) => {
|
|
2309
2289
|
return input
|
|
2310
2290
|
.filter((e) => e != null)
|
|
2311
2291
|
.map((entry) => {
|
|
2312
2292
|
return entry;
|
|
2313
2293
|
});
|
|
2314
2294
|
};
|
|
2315
|
-
const
|
|
2295
|
+
const se_Tag = (input, context) => {
|
|
2316
2296
|
return {
|
|
2317
2297
|
...(input.key != null && { key: input.key }),
|
|
2318
2298
|
...(input.value != null && { value: input.value }),
|
|
2319
2299
|
};
|
|
2320
2300
|
};
|
|
2321
|
-
const
|
|
2301
|
+
const se_TagFilter = (input, context) => {
|
|
2322
2302
|
return {
|
|
2323
2303
|
...(input.tagKey != null && { tagKey: input.tagKey }),
|
|
2324
|
-
...(input.tagValues != null && { tagValues:
|
|
2304
|
+
...(input.tagValues != null && { tagValues: se_TagValueList(input.tagValues, context) }),
|
|
2325
2305
|
};
|
|
2326
2306
|
};
|
|
2327
|
-
const
|
|
2307
|
+
const se_TagFilters = (input, context) => {
|
|
2328
2308
|
return input
|
|
2329
2309
|
.filter((e) => e != null)
|
|
2330
2310
|
.map((entry) => {
|
|
2331
|
-
return
|
|
2311
|
+
return se_TagFilter(entry, context);
|
|
2332
2312
|
});
|
|
2333
2313
|
};
|
|
2334
|
-
const
|
|
2314
|
+
const se_TagKeyList = (input, context) => {
|
|
2335
2315
|
return input
|
|
2336
2316
|
.filter((e) => e != null)
|
|
2337
2317
|
.map((entry) => {
|
|
2338
2318
|
return entry;
|
|
2339
2319
|
});
|
|
2340
2320
|
};
|
|
2341
|
-
const
|
|
2321
|
+
const se_TagList = (input, context) => {
|
|
2342
2322
|
return input
|
|
2343
2323
|
.filter((e) => e != null)
|
|
2344
2324
|
.map((entry) => {
|
|
2345
|
-
return
|
|
2325
|
+
return se_Tag(entry, context);
|
|
2346
2326
|
});
|
|
2347
2327
|
};
|
|
2348
|
-
const
|
|
2328
|
+
const se_TagValueList = (input, context) => {
|
|
2349
2329
|
return input
|
|
2350
2330
|
.filter((e) => e != null)
|
|
2351
2331
|
.map((entry) => {
|
|
2352
2332
|
return entry;
|
|
2353
2333
|
});
|
|
2354
2334
|
};
|
|
2355
|
-
const
|
|
2335
|
+
const de_PolicyList = (output, context) => {
|
|
2356
2336
|
const retVal = (output || [])
|
|
2357
2337
|
.filter((e) => e != null)
|
|
2358
2338
|
.map((entry) => {
|
|
@@ -2363,7 +2343,7 @@ const deserializeAws_restJson1PolicyList = (output, context) => {
|
|
|
2363
2343
|
});
|
|
2364
2344
|
return retVal;
|
|
2365
2345
|
};
|
|
2366
|
-
const
|
|
2346
|
+
const de_Principal = (output, context) => {
|
|
2367
2347
|
return {
|
|
2368
2348
|
creationTime: output.creationTime != null
|
|
2369
2349
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
@@ -2376,18 +2356,18 @@ const deserializeAws_restJson1Principal = (output, context) => {
|
|
|
2376
2356
|
resourceShareArn: (0, smithy_client_1.expectString)(output.resourceShareArn),
|
|
2377
2357
|
};
|
|
2378
2358
|
};
|
|
2379
|
-
const
|
|
2359
|
+
const de_PrincipalList = (output, context) => {
|
|
2380
2360
|
const retVal = (output || [])
|
|
2381
2361
|
.filter((e) => e != null)
|
|
2382
2362
|
.map((entry) => {
|
|
2383
2363
|
if (entry === null) {
|
|
2384
2364
|
return null;
|
|
2385
2365
|
}
|
|
2386
|
-
return
|
|
2366
|
+
return de_Principal(entry, context);
|
|
2387
2367
|
});
|
|
2388
2368
|
return retVal;
|
|
2389
2369
|
};
|
|
2390
|
-
const
|
|
2370
|
+
const de_Resource = (output, context) => {
|
|
2391
2371
|
return {
|
|
2392
2372
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2393
2373
|
creationTime: output.creationTime != null
|
|
@@ -2404,18 +2384,18 @@ const deserializeAws_restJson1Resource = (output, context) => {
|
|
|
2404
2384
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2405
2385
|
};
|
|
2406
2386
|
};
|
|
2407
|
-
const
|
|
2387
|
+
const de_ResourceList = (output, context) => {
|
|
2408
2388
|
const retVal = (output || [])
|
|
2409
2389
|
.filter((e) => e != null)
|
|
2410
2390
|
.map((entry) => {
|
|
2411
2391
|
if (entry === null) {
|
|
2412
2392
|
return null;
|
|
2413
2393
|
}
|
|
2414
|
-
return
|
|
2394
|
+
return de_Resource(entry, context);
|
|
2415
2395
|
});
|
|
2416
2396
|
return retVal;
|
|
2417
2397
|
};
|
|
2418
|
-
const
|
|
2398
|
+
const de_ResourceShare = (output, context) => {
|
|
2419
2399
|
return {
|
|
2420
2400
|
allowExternalPrincipals: (0, smithy_client_1.expectBoolean)(output.allowExternalPrincipals),
|
|
2421
2401
|
creationTime: output.creationTime != null
|
|
@@ -2430,10 +2410,10 @@ const deserializeAws_restJson1ResourceShare = (output, context) => {
|
|
|
2430
2410
|
resourceShareArn: (0, smithy_client_1.expectString)(output.resourceShareArn),
|
|
2431
2411
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2432
2412
|
statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
|
|
2433
|
-
tags: output.tags != null ?
|
|
2413
|
+
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
2434
2414
|
};
|
|
2435
2415
|
};
|
|
2436
|
-
const
|
|
2416
|
+
const de_ResourceShareAssociation = (output, context) => {
|
|
2437
2417
|
return {
|
|
2438
2418
|
associatedEntity: (0, smithy_client_1.expectString)(output.associatedEntity),
|
|
2439
2419
|
associationType: (0, smithy_client_1.expectString)(output.associationType),
|
|
@@ -2450,18 +2430,18 @@ const deserializeAws_restJson1ResourceShareAssociation = (output, context) => {
|
|
|
2450
2430
|
statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
|
|
2451
2431
|
};
|
|
2452
2432
|
};
|
|
2453
|
-
const
|
|
2433
|
+
const de_ResourceShareAssociationList = (output, context) => {
|
|
2454
2434
|
const retVal = (output || [])
|
|
2455
2435
|
.filter((e) => e != null)
|
|
2456
2436
|
.map((entry) => {
|
|
2457
2437
|
if (entry === null) {
|
|
2458
2438
|
return null;
|
|
2459
2439
|
}
|
|
2460
|
-
return
|
|
2440
|
+
return de_ResourceShareAssociation(entry, context);
|
|
2461
2441
|
});
|
|
2462
2442
|
return retVal;
|
|
2463
2443
|
};
|
|
2464
|
-
const
|
|
2444
|
+
const de_ResourceShareInvitation = (output, context) => {
|
|
2465
2445
|
return {
|
|
2466
2446
|
invitationTimestamp: output.invitationTimestamp != null
|
|
2467
2447
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.invitationTimestamp)))
|
|
@@ -2470,7 +2450,7 @@ const deserializeAws_restJson1ResourceShareInvitation = (output, context) => {
|
|
|
2470
2450
|
receiverArn: (0, smithy_client_1.expectString)(output.receiverArn),
|
|
2471
2451
|
resourceShareArn: (0, smithy_client_1.expectString)(output.resourceShareArn),
|
|
2472
2452
|
resourceShareAssociations: output.resourceShareAssociations != null
|
|
2473
|
-
?
|
|
2453
|
+
? de_ResourceShareAssociationList(output.resourceShareAssociations, context)
|
|
2474
2454
|
: undefined,
|
|
2475
2455
|
resourceShareInvitationArn: (0, smithy_client_1.expectString)(output.resourceShareInvitationArn),
|
|
2476
2456
|
resourceShareName: (0, smithy_client_1.expectString)(output.resourceShareName),
|
|
@@ -2478,29 +2458,29 @@ const deserializeAws_restJson1ResourceShareInvitation = (output, context) => {
|
|
|
2478
2458
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2479
2459
|
};
|
|
2480
2460
|
};
|
|
2481
|
-
const
|
|
2461
|
+
const de_ResourceShareInvitationList = (output, context) => {
|
|
2482
2462
|
const retVal = (output || [])
|
|
2483
2463
|
.filter((e) => e != null)
|
|
2484
2464
|
.map((entry) => {
|
|
2485
2465
|
if (entry === null) {
|
|
2486
2466
|
return null;
|
|
2487
2467
|
}
|
|
2488
|
-
return
|
|
2468
|
+
return de_ResourceShareInvitation(entry, context);
|
|
2489
2469
|
});
|
|
2490
2470
|
return retVal;
|
|
2491
2471
|
};
|
|
2492
|
-
const
|
|
2472
|
+
const de_ResourceShareList = (output, context) => {
|
|
2493
2473
|
const retVal = (output || [])
|
|
2494
2474
|
.filter((e) => e != null)
|
|
2495
2475
|
.map((entry) => {
|
|
2496
2476
|
if (entry === null) {
|
|
2497
2477
|
return null;
|
|
2498
2478
|
}
|
|
2499
|
-
return
|
|
2479
|
+
return de_ResourceShare(entry, context);
|
|
2500
2480
|
});
|
|
2501
2481
|
return retVal;
|
|
2502
2482
|
};
|
|
2503
|
-
const
|
|
2483
|
+
const de_ResourceSharePermissionDetail = (output, context) => {
|
|
2504
2484
|
return {
|
|
2505
2485
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2506
2486
|
creationTime: output.creationTime != null
|
|
@@ -2517,18 +2497,18 @@ const deserializeAws_restJson1ResourceSharePermissionDetail = (output, context)
|
|
|
2517
2497
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
2518
2498
|
};
|
|
2519
2499
|
};
|
|
2520
|
-
const
|
|
2500
|
+
const de_ResourceSharePermissionList = (output, context) => {
|
|
2521
2501
|
const retVal = (output || [])
|
|
2522
2502
|
.filter((e) => e != null)
|
|
2523
2503
|
.map((entry) => {
|
|
2524
2504
|
if (entry === null) {
|
|
2525
2505
|
return null;
|
|
2526
2506
|
}
|
|
2527
|
-
return
|
|
2507
|
+
return de_ResourceSharePermissionSummary(entry, context);
|
|
2528
2508
|
});
|
|
2529
2509
|
return retVal;
|
|
2530
2510
|
};
|
|
2531
|
-
const
|
|
2511
|
+
const de_ResourceSharePermissionSummary = (output, context) => {
|
|
2532
2512
|
return {
|
|
2533
2513
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2534
2514
|
creationTime: output.creationTime != null
|
|
@@ -2545,38 +2525,38 @@ const deserializeAws_restJson1ResourceSharePermissionSummary = (output, context)
|
|
|
2545
2525
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
2546
2526
|
};
|
|
2547
2527
|
};
|
|
2548
|
-
const
|
|
2528
|
+
const de_ServiceNameAndResourceType = (output, context) => {
|
|
2549
2529
|
return {
|
|
2550
2530
|
resourceRegionScope: (0, smithy_client_1.expectString)(output.resourceRegionScope),
|
|
2551
2531
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2552
2532
|
serviceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
2553
2533
|
};
|
|
2554
2534
|
};
|
|
2555
|
-
const
|
|
2535
|
+
const de_ServiceNameAndResourceTypeList = (output, context) => {
|
|
2556
2536
|
const retVal = (output || [])
|
|
2557
2537
|
.filter((e) => e != null)
|
|
2558
2538
|
.map((entry) => {
|
|
2559
2539
|
if (entry === null) {
|
|
2560
2540
|
return null;
|
|
2561
2541
|
}
|
|
2562
|
-
return
|
|
2542
|
+
return de_ServiceNameAndResourceType(entry, context);
|
|
2563
2543
|
});
|
|
2564
2544
|
return retVal;
|
|
2565
2545
|
};
|
|
2566
|
-
const
|
|
2546
|
+
const de_Tag = (output, context) => {
|
|
2567
2547
|
return {
|
|
2568
2548
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
2569
2549
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2570
2550
|
};
|
|
2571
2551
|
};
|
|
2572
|
-
const
|
|
2552
|
+
const de_TagList = (output, context) => {
|
|
2573
2553
|
const retVal = (output || [])
|
|
2574
2554
|
.filter((e) => e != null)
|
|
2575
2555
|
.map((entry) => {
|
|
2576
2556
|
if (entry === null) {
|
|
2577
2557
|
return null;
|
|
2578
2558
|
}
|
|
2579
|
-
return
|
|
2559
|
+
return de_Tag(entry, context);
|
|
2580
2560
|
});
|
|
2581
2561
|
return retVal;
|
|
2582
2562
|
};
|