@aws-sdk/client-organizations 3.312.0 → 3.315.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/protocols/Aws_json1_1.js +389 -1380
- package/dist-es/protocols/Aws_json1_1.js +390 -1381
- package/package.json +6 -6
|
@@ -10,70 +10,70 @@ const OrganizationsServiceException_1 = require("../models/OrganizationsServiceE
|
|
|
10
10
|
const se_AcceptHandshakeCommand = async (input, context) => {
|
|
11
11
|
const headers = sharedHeaders("AcceptHandshake");
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify(
|
|
13
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
15
|
};
|
|
16
16
|
exports.se_AcceptHandshakeCommand = se_AcceptHandshakeCommand;
|
|
17
17
|
const se_AttachPolicyCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("AttachPolicy");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
exports.se_AttachPolicyCommand = se_AttachPolicyCommand;
|
|
24
24
|
const se_CancelHandshakeCommand = async (input, context) => {
|
|
25
25
|
const headers = sharedHeaders("CancelHandshake");
|
|
26
26
|
let body;
|
|
27
|
-
body = JSON.stringify(
|
|
27
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
29
|
};
|
|
30
30
|
exports.se_CancelHandshakeCommand = se_CancelHandshakeCommand;
|
|
31
31
|
const se_CloseAccountCommand = async (input, context) => {
|
|
32
32
|
const headers = sharedHeaders("CloseAccount");
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
36
|
};
|
|
37
37
|
exports.se_CloseAccountCommand = se_CloseAccountCommand;
|
|
38
38
|
const se_CreateAccountCommand = async (input, context) => {
|
|
39
39
|
const headers = sharedHeaders("CreateAccount");
|
|
40
40
|
let body;
|
|
41
|
-
body = JSON.stringify(
|
|
41
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
42
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
43
|
};
|
|
44
44
|
exports.se_CreateAccountCommand = se_CreateAccountCommand;
|
|
45
45
|
const se_CreateGovCloudAccountCommand = async (input, context) => {
|
|
46
46
|
const headers = sharedHeaders("CreateGovCloudAccount");
|
|
47
47
|
let body;
|
|
48
|
-
body = JSON.stringify(
|
|
48
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
49
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
50
|
};
|
|
51
51
|
exports.se_CreateGovCloudAccountCommand = se_CreateGovCloudAccountCommand;
|
|
52
52
|
const se_CreateOrganizationCommand = async (input, context) => {
|
|
53
53
|
const headers = sharedHeaders("CreateOrganization");
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
58
|
exports.se_CreateOrganizationCommand = se_CreateOrganizationCommand;
|
|
59
59
|
const se_CreateOrganizationalUnitCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("CreateOrganizationalUnit");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
exports.se_CreateOrganizationalUnitCommand = se_CreateOrganizationalUnitCommand;
|
|
66
66
|
const se_CreatePolicyCommand = async (input, context) => {
|
|
67
67
|
const headers = sharedHeaders("CreatePolicy");
|
|
68
68
|
let body;
|
|
69
|
-
body = JSON.stringify(
|
|
69
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
71
|
};
|
|
72
72
|
exports.se_CreatePolicyCommand = se_CreatePolicyCommand;
|
|
73
73
|
const se_DeclineHandshakeCommand = async (input, context) => {
|
|
74
74
|
const headers = sharedHeaders("DeclineHandshake");
|
|
75
75
|
let body;
|
|
76
|
-
body = JSON.stringify(
|
|
76
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
78
|
};
|
|
79
79
|
exports.se_DeclineHandshakeCommand = se_DeclineHandshakeCommand;
|
|
@@ -86,14 +86,14 @@ exports.se_DeleteOrganizationCommand = se_DeleteOrganizationCommand;
|
|
|
86
86
|
const se_DeleteOrganizationalUnitCommand = async (input, context) => {
|
|
87
87
|
const headers = sharedHeaders("DeleteOrganizationalUnit");
|
|
88
88
|
let body;
|
|
89
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
91
|
};
|
|
92
92
|
exports.se_DeleteOrganizationalUnitCommand = se_DeleteOrganizationalUnitCommand;
|
|
93
93
|
const se_DeletePolicyCommand = async (input, context) => {
|
|
94
94
|
const headers = sharedHeaders("DeletePolicy");
|
|
95
95
|
let body;
|
|
96
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
98
|
};
|
|
99
99
|
exports.se_DeletePolicyCommand = se_DeletePolicyCommand;
|
|
@@ -106,35 +106,35 @@ exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
|
106
106
|
const se_DeregisterDelegatedAdministratorCommand = async (input, context) => {
|
|
107
107
|
const headers = sharedHeaders("DeregisterDelegatedAdministrator");
|
|
108
108
|
let body;
|
|
109
|
-
body = JSON.stringify(
|
|
109
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
110
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
111
|
};
|
|
112
112
|
exports.se_DeregisterDelegatedAdministratorCommand = se_DeregisterDelegatedAdministratorCommand;
|
|
113
113
|
const se_DescribeAccountCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("DescribeAccount");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
exports.se_DescribeAccountCommand = se_DescribeAccountCommand;
|
|
120
120
|
const se_DescribeCreateAccountStatusCommand = async (input, context) => {
|
|
121
121
|
const headers = sharedHeaders("DescribeCreateAccountStatus");
|
|
122
122
|
let body;
|
|
123
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
124
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
125
|
};
|
|
126
126
|
exports.se_DescribeCreateAccountStatusCommand = se_DescribeCreateAccountStatusCommand;
|
|
127
127
|
const se_DescribeEffectivePolicyCommand = async (input, context) => {
|
|
128
128
|
const headers = sharedHeaders("DescribeEffectivePolicy");
|
|
129
129
|
let body;
|
|
130
|
-
body = JSON.stringify(
|
|
130
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
131
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
132
|
};
|
|
133
133
|
exports.se_DescribeEffectivePolicyCommand = se_DescribeEffectivePolicyCommand;
|
|
134
134
|
const se_DescribeHandshakeCommand = async (input, context) => {
|
|
135
135
|
const headers = sharedHeaders("DescribeHandshake");
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
138
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
139
|
};
|
|
140
140
|
exports.se_DescribeHandshakeCommand = se_DescribeHandshakeCommand;
|
|
@@ -147,14 +147,14 @@ exports.se_DescribeOrganizationCommand = se_DescribeOrganizationCommand;
|
|
|
147
147
|
const se_DescribeOrganizationalUnitCommand = async (input, context) => {
|
|
148
148
|
const headers = sharedHeaders("DescribeOrganizationalUnit");
|
|
149
149
|
let body;
|
|
150
|
-
body = JSON.stringify(
|
|
150
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
151
151
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
152
152
|
};
|
|
153
153
|
exports.se_DescribeOrganizationalUnitCommand = se_DescribeOrganizationalUnitCommand;
|
|
154
154
|
const se_DescribePolicyCommand = async (input, context) => {
|
|
155
155
|
const headers = sharedHeaders("DescribePolicy");
|
|
156
156
|
let body;
|
|
157
|
-
body = JSON.stringify(
|
|
157
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
158
158
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
159
159
|
};
|
|
160
160
|
exports.se_DescribePolicyCommand = se_DescribePolicyCommand;
|
|
@@ -167,49 +167,49 @@ exports.se_DescribeResourcePolicyCommand = se_DescribeResourcePolicyCommand;
|
|
|
167
167
|
const se_DetachPolicyCommand = async (input, context) => {
|
|
168
168
|
const headers = sharedHeaders("DetachPolicy");
|
|
169
169
|
let body;
|
|
170
|
-
body = JSON.stringify(
|
|
170
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
171
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
172
172
|
};
|
|
173
173
|
exports.se_DetachPolicyCommand = se_DetachPolicyCommand;
|
|
174
174
|
const se_DisableAWSServiceAccessCommand = async (input, context) => {
|
|
175
175
|
const headers = sharedHeaders("DisableAWSServiceAccess");
|
|
176
176
|
let body;
|
|
177
|
-
body = JSON.stringify(
|
|
177
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
178
178
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
179
|
};
|
|
180
180
|
exports.se_DisableAWSServiceAccessCommand = se_DisableAWSServiceAccessCommand;
|
|
181
181
|
const se_DisablePolicyTypeCommand = async (input, context) => {
|
|
182
182
|
const headers = sharedHeaders("DisablePolicyType");
|
|
183
183
|
let body;
|
|
184
|
-
body = JSON.stringify(
|
|
184
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
185
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
186
|
};
|
|
187
187
|
exports.se_DisablePolicyTypeCommand = se_DisablePolicyTypeCommand;
|
|
188
188
|
const se_EnableAllFeaturesCommand = async (input, context) => {
|
|
189
189
|
const headers = sharedHeaders("EnableAllFeatures");
|
|
190
190
|
let body;
|
|
191
|
-
body = JSON.stringify(
|
|
191
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
192
192
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
193
|
};
|
|
194
194
|
exports.se_EnableAllFeaturesCommand = se_EnableAllFeaturesCommand;
|
|
195
195
|
const se_EnableAWSServiceAccessCommand = async (input, context) => {
|
|
196
196
|
const headers = sharedHeaders("EnableAWSServiceAccess");
|
|
197
197
|
let body;
|
|
198
|
-
body = JSON.stringify(
|
|
198
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
199
199
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
200
200
|
};
|
|
201
201
|
exports.se_EnableAWSServiceAccessCommand = se_EnableAWSServiceAccessCommand;
|
|
202
202
|
const se_EnablePolicyTypeCommand = async (input, context) => {
|
|
203
203
|
const headers = sharedHeaders("EnablePolicyType");
|
|
204
204
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
205
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
206
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
207
|
};
|
|
208
208
|
exports.se_EnablePolicyTypeCommand = se_EnablePolicyTypeCommand;
|
|
209
209
|
const se_InviteAccountToOrganizationCommand = async (input, context) => {
|
|
210
210
|
const headers = sharedHeaders("InviteAccountToOrganization");
|
|
211
211
|
let body;
|
|
212
|
-
body = JSON.stringify(
|
|
212
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
213
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
214
214
|
};
|
|
215
215
|
exports.se_InviteAccountToOrganizationCommand = se_InviteAccountToOrganizationCommand;
|
|
@@ -222,168 +222,168 @@ exports.se_LeaveOrganizationCommand = se_LeaveOrganizationCommand;
|
|
|
222
222
|
const se_ListAccountsCommand = async (input, context) => {
|
|
223
223
|
const headers = sharedHeaders("ListAccounts");
|
|
224
224
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
225
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
226
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
227
|
};
|
|
228
228
|
exports.se_ListAccountsCommand = se_ListAccountsCommand;
|
|
229
229
|
const se_ListAccountsForParentCommand = async (input, context) => {
|
|
230
230
|
const headers = sharedHeaders("ListAccountsForParent");
|
|
231
231
|
let body;
|
|
232
|
-
body = JSON.stringify(
|
|
232
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
233
233
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
234
|
};
|
|
235
235
|
exports.se_ListAccountsForParentCommand = se_ListAccountsForParentCommand;
|
|
236
236
|
const se_ListAWSServiceAccessForOrganizationCommand = async (input, context) => {
|
|
237
237
|
const headers = sharedHeaders("ListAWSServiceAccessForOrganization");
|
|
238
238
|
let body;
|
|
239
|
-
body = JSON.stringify(
|
|
239
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
240
240
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
241
241
|
};
|
|
242
242
|
exports.se_ListAWSServiceAccessForOrganizationCommand = se_ListAWSServiceAccessForOrganizationCommand;
|
|
243
243
|
const se_ListChildrenCommand = async (input, context) => {
|
|
244
244
|
const headers = sharedHeaders("ListChildren");
|
|
245
245
|
let body;
|
|
246
|
-
body = JSON.stringify(
|
|
246
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
247
247
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
248
|
};
|
|
249
249
|
exports.se_ListChildrenCommand = se_ListChildrenCommand;
|
|
250
250
|
const se_ListCreateAccountStatusCommand = async (input, context) => {
|
|
251
251
|
const headers = sharedHeaders("ListCreateAccountStatus");
|
|
252
252
|
let body;
|
|
253
|
-
body = JSON.stringify(
|
|
253
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
254
254
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
255
255
|
};
|
|
256
256
|
exports.se_ListCreateAccountStatusCommand = se_ListCreateAccountStatusCommand;
|
|
257
257
|
const se_ListDelegatedAdministratorsCommand = async (input, context) => {
|
|
258
258
|
const headers = sharedHeaders("ListDelegatedAdministrators");
|
|
259
259
|
let body;
|
|
260
|
-
body = JSON.stringify(
|
|
260
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
261
261
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
262
|
};
|
|
263
263
|
exports.se_ListDelegatedAdministratorsCommand = se_ListDelegatedAdministratorsCommand;
|
|
264
264
|
const se_ListDelegatedServicesForAccountCommand = async (input, context) => {
|
|
265
265
|
const headers = sharedHeaders("ListDelegatedServicesForAccount");
|
|
266
266
|
let body;
|
|
267
|
-
body = JSON.stringify(
|
|
267
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
268
268
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
269
|
};
|
|
270
270
|
exports.se_ListDelegatedServicesForAccountCommand = se_ListDelegatedServicesForAccountCommand;
|
|
271
271
|
const se_ListHandshakesForAccountCommand = async (input, context) => {
|
|
272
272
|
const headers = sharedHeaders("ListHandshakesForAccount");
|
|
273
273
|
let body;
|
|
274
|
-
body = JSON.stringify(
|
|
274
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
275
275
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
276
|
};
|
|
277
277
|
exports.se_ListHandshakesForAccountCommand = se_ListHandshakesForAccountCommand;
|
|
278
278
|
const se_ListHandshakesForOrganizationCommand = async (input, context) => {
|
|
279
279
|
const headers = sharedHeaders("ListHandshakesForOrganization");
|
|
280
280
|
let body;
|
|
281
|
-
body = JSON.stringify(
|
|
281
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
282
282
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
283
|
};
|
|
284
284
|
exports.se_ListHandshakesForOrganizationCommand = se_ListHandshakesForOrganizationCommand;
|
|
285
285
|
const se_ListOrganizationalUnitsForParentCommand = async (input, context) => {
|
|
286
286
|
const headers = sharedHeaders("ListOrganizationalUnitsForParent");
|
|
287
287
|
let body;
|
|
288
|
-
body = JSON.stringify(
|
|
288
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
289
289
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
290
290
|
};
|
|
291
291
|
exports.se_ListOrganizationalUnitsForParentCommand = se_ListOrganizationalUnitsForParentCommand;
|
|
292
292
|
const se_ListParentsCommand = async (input, context) => {
|
|
293
293
|
const headers = sharedHeaders("ListParents");
|
|
294
294
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
295
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
296
296
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
297
|
};
|
|
298
298
|
exports.se_ListParentsCommand = se_ListParentsCommand;
|
|
299
299
|
const se_ListPoliciesCommand = async (input, context) => {
|
|
300
300
|
const headers = sharedHeaders("ListPolicies");
|
|
301
301
|
let body;
|
|
302
|
-
body = JSON.stringify(
|
|
302
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
303
303
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
304
304
|
};
|
|
305
305
|
exports.se_ListPoliciesCommand = se_ListPoliciesCommand;
|
|
306
306
|
const se_ListPoliciesForTargetCommand = async (input, context) => {
|
|
307
307
|
const headers = sharedHeaders("ListPoliciesForTarget");
|
|
308
308
|
let body;
|
|
309
|
-
body = JSON.stringify(
|
|
309
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
310
310
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
311
|
};
|
|
312
312
|
exports.se_ListPoliciesForTargetCommand = se_ListPoliciesForTargetCommand;
|
|
313
313
|
const se_ListRootsCommand = async (input, context) => {
|
|
314
314
|
const headers = sharedHeaders("ListRoots");
|
|
315
315
|
let body;
|
|
316
|
-
body = JSON.stringify(
|
|
316
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
317
317
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
318
|
};
|
|
319
319
|
exports.se_ListRootsCommand = se_ListRootsCommand;
|
|
320
320
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
321
321
|
const headers = sharedHeaders("ListTagsForResource");
|
|
322
322
|
let body;
|
|
323
|
-
body = JSON.stringify(
|
|
323
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
324
324
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
325
325
|
};
|
|
326
326
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
327
327
|
const se_ListTargetsForPolicyCommand = async (input, context) => {
|
|
328
328
|
const headers = sharedHeaders("ListTargetsForPolicy");
|
|
329
329
|
let body;
|
|
330
|
-
body = JSON.stringify(
|
|
330
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
331
331
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
332
332
|
};
|
|
333
333
|
exports.se_ListTargetsForPolicyCommand = se_ListTargetsForPolicyCommand;
|
|
334
334
|
const se_MoveAccountCommand = async (input, context) => {
|
|
335
335
|
const headers = sharedHeaders("MoveAccount");
|
|
336
336
|
let body;
|
|
337
|
-
body = JSON.stringify(
|
|
337
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
338
338
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
339
339
|
};
|
|
340
340
|
exports.se_MoveAccountCommand = se_MoveAccountCommand;
|
|
341
341
|
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
342
342
|
const headers = sharedHeaders("PutResourcePolicy");
|
|
343
343
|
let body;
|
|
344
|
-
body = JSON.stringify(
|
|
344
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
345
345
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
346
|
};
|
|
347
347
|
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
348
348
|
const se_RegisterDelegatedAdministratorCommand = async (input, context) => {
|
|
349
349
|
const headers = sharedHeaders("RegisterDelegatedAdministrator");
|
|
350
350
|
let body;
|
|
351
|
-
body = JSON.stringify(
|
|
351
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
352
352
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
353
353
|
};
|
|
354
354
|
exports.se_RegisterDelegatedAdministratorCommand = se_RegisterDelegatedAdministratorCommand;
|
|
355
355
|
const se_RemoveAccountFromOrganizationCommand = async (input, context) => {
|
|
356
356
|
const headers = sharedHeaders("RemoveAccountFromOrganization");
|
|
357
357
|
let body;
|
|
358
|
-
body = JSON.stringify(
|
|
358
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
359
359
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
360
360
|
};
|
|
361
361
|
exports.se_RemoveAccountFromOrganizationCommand = se_RemoveAccountFromOrganizationCommand;
|
|
362
362
|
const se_TagResourceCommand = async (input, context) => {
|
|
363
363
|
const headers = sharedHeaders("TagResource");
|
|
364
364
|
let body;
|
|
365
|
-
body = JSON.stringify(
|
|
365
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
366
366
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
367
|
};
|
|
368
368
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
369
369
|
const se_UntagResourceCommand = async (input, context) => {
|
|
370
370
|
const headers = sharedHeaders("UntagResource");
|
|
371
371
|
let body;
|
|
372
|
-
body = JSON.stringify(
|
|
372
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
373
373
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
374
374
|
};
|
|
375
375
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
376
376
|
const se_UpdateOrganizationalUnitCommand = async (input, context) => {
|
|
377
377
|
const headers = sharedHeaders("UpdateOrganizationalUnit");
|
|
378
378
|
let body;
|
|
379
|
-
body = JSON.stringify(
|
|
379
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
380
380
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
381
381
|
};
|
|
382
382
|
exports.se_UpdateOrganizationalUnitCommand = se_UpdateOrganizationalUnitCommand;
|
|
383
383
|
const se_UpdatePolicyCommand = async (input, context) => {
|
|
384
384
|
const headers = sharedHeaders("UpdatePolicy");
|
|
385
385
|
let body;
|
|
386
|
-
body = JSON.stringify(
|
|
386
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
387
387
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
388
|
};
|
|
389
389
|
exports.se_UpdatePolicyCommand = se_UpdatePolicyCommand;
|
|
@@ -398,7 +398,7 @@ const de_AcceptHandshakeCommand = async (output, context) => {
|
|
|
398
398
|
$metadata: deserializeMetadata(output),
|
|
399
399
|
...contents,
|
|
400
400
|
};
|
|
401
|
-
return
|
|
401
|
+
return response;
|
|
402
402
|
};
|
|
403
403
|
exports.de_AcceptHandshakeCommand = de_AcceptHandshakeCommand;
|
|
404
404
|
const de_AcceptHandshakeCommandError = async (output, context) => {
|
|
@@ -443,10 +443,9 @@ const de_AcceptHandshakeCommandError = async (output, context) => {
|
|
|
443
443
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
444
444
|
default:
|
|
445
445
|
const parsedBody = parsedOutput.body;
|
|
446
|
-
|
|
446
|
+
return throwDefaultError({
|
|
447
447
|
output,
|
|
448
448
|
parsedBody,
|
|
449
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
450
449
|
errorCode,
|
|
451
450
|
});
|
|
452
451
|
}
|
|
@@ -459,7 +458,7 @@ const de_AttachPolicyCommand = async (output, context) => {
|
|
|
459
458
|
const response = {
|
|
460
459
|
$metadata: deserializeMetadata(output),
|
|
461
460
|
};
|
|
462
|
-
return
|
|
461
|
+
return response;
|
|
463
462
|
};
|
|
464
463
|
exports.de_AttachPolicyCommand = de_AttachPolicyCommand;
|
|
465
464
|
const de_AttachPolicyCommandError = async (output, context) => {
|
|
@@ -510,10 +509,9 @@ const de_AttachPolicyCommandError = async (output, context) => {
|
|
|
510
509
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
511
510
|
default:
|
|
512
511
|
const parsedBody = parsedOutput.body;
|
|
513
|
-
|
|
512
|
+
return throwDefaultError({
|
|
514
513
|
output,
|
|
515
514
|
parsedBody,
|
|
516
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
517
515
|
errorCode,
|
|
518
516
|
});
|
|
519
517
|
}
|
|
@@ -529,7 +527,7 @@ const de_CancelHandshakeCommand = async (output, context) => {
|
|
|
529
527
|
$metadata: deserializeMetadata(output),
|
|
530
528
|
...contents,
|
|
531
529
|
};
|
|
532
|
-
return
|
|
530
|
+
return response;
|
|
533
531
|
};
|
|
534
532
|
exports.de_CancelHandshakeCommand = de_CancelHandshakeCommand;
|
|
535
533
|
const de_CancelHandshakeCommandError = async (output, context) => {
|
|
@@ -565,10 +563,9 @@ const de_CancelHandshakeCommandError = async (output, context) => {
|
|
|
565
563
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
566
564
|
default:
|
|
567
565
|
const parsedBody = parsedOutput.body;
|
|
568
|
-
|
|
566
|
+
return throwDefaultError({
|
|
569
567
|
output,
|
|
570
568
|
parsedBody,
|
|
571
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
572
569
|
errorCode,
|
|
573
570
|
});
|
|
574
571
|
}
|
|
@@ -581,7 +578,7 @@ const de_CloseAccountCommand = async (output, context) => {
|
|
|
581
578
|
const response = {
|
|
582
579
|
$metadata: deserializeMetadata(output),
|
|
583
580
|
};
|
|
584
|
-
return
|
|
581
|
+
return response;
|
|
585
582
|
};
|
|
586
583
|
exports.de_CloseAccountCommand = de_CloseAccountCommand;
|
|
587
584
|
const de_CloseAccountCommandError = async (output, context) => {
|
|
@@ -626,10 +623,9 @@ const de_CloseAccountCommandError = async (output, context) => {
|
|
|
626
623
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
627
624
|
default:
|
|
628
625
|
const parsedBody = parsedOutput.body;
|
|
629
|
-
|
|
626
|
+
return throwDefaultError({
|
|
630
627
|
output,
|
|
631
628
|
parsedBody,
|
|
632
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
633
629
|
errorCode,
|
|
634
630
|
});
|
|
635
631
|
}
|
|
@@ -645,7 +641,7 @@ const de_CreateAccountCommand = async (output, context) => {
|
|
|
645
641
|
$metadata: deserializeMetadata(output),
|
|
646
642
|
...contents,
|
|
647
643
|
};
|
|
648
|
-
return
|
|
644
|
+
return response;
|
|
649
645
|
};
|
|
650
646
|
exports.de_CreateAccountCommand = de_CreateAccountCommand;
|
|
651
647
|
const de_CreateAccountCommandError = async (output, context) => {
|
|
@@ -684,10 +680,9 @@ const de_CreateAccountCommandError = async (output, context) => {
|
|
|
684
680
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
685
681
|
default:
|
|
686
682
|
const parsedBody = parsedOutput.body;
|
|
687
|
-
|
|
683
|
+
return throwDefaultError({
|
|
688
684
|
output,
|
|
689
685
|
parsedBody,
|
|
690
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
691
686
|
errorCode,
|
|
692
687
|
});
|
|
693
688
|
}
|
|
@@ -703,7 +698,7 @@ const de_CreateGovCloudAccountCommand = async (output, context) => {
|
|
|
703
698
|
$metadata: deserializeMetadata(output),
|
|
704
699
|
...contents,
|
|
705
700
|
};
|
|
706
|
-
return
|
|
701
|
+
return response;
|
|
707
702
|
};
|
|
708
703
|
exports.de_CreateGovCloudAccountCommand = de_CreateGovCloudAccountCommand;
|
|
709
704
|
const de_CreateGovCloudAccountCommandError = async (output, context) => {
|
|
@@ -742,10 +737,9 @@ const de_CreateGovCloudAccountCommandError = async (output, context) => {
|
|
|
742
737
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
743
738
|
default:
|
|
744
739
|
const parsedBody = parsedOutput.body;
|
|
745
|
-
|
|
740
|
+
return throwDefaultError({
|
|
746
741
|
output,
|
|
747
742
|
parsedBody,
|
|
748
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
749
743
|
errorCode,
|
|
750
744
|
});
|
|
751
745
|
}
|
|
@@ -756,12 +750,12 @@ const de_CreateOrganizationCommand = async (output, context) => {
|
|
|
756
750
|
}
|
|
757
751
|
const data = await parseBody(output.body, context);
|
|
758
752
|
let contents = {};
|
|
759
|
-
contents =
|
|
753
|
+
contents = (0, smithy_client_1._json)(data);
|
|
760
754
|
const response = {
|
|
761
755
|
$metadata: deserializeMetadata(output),
|
|
762
756
|
...contents,
|
|
763
757
|
};
|
|
764
|
-
return
|
|
758
|
+
return response;
|
|
765
759
|
};
|
|
766
760
|
exports.de_CreateOrganizationCommand = de_CreateOrganizationCommand;
|
|
767
761
|
const de_CreateOrganizationCommandError = async (output, context) => {
|
|
@@ -797,10 +791,9 @@ const de_CreateOrganizationCommandError = async (output, context) => {
|
|
|
797
791
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
798
792
|
default:
|
|
799
793
|
const parsedBody = parsedOutput.body;
|
|
800
|
-
|
|
794
|
+
return throwDefaultError({
|
|
801
795
|
output,
|
|
802
796
|
parsedBody,
|
|
803
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
804
797
|
errorCode,
|
|
805
798
|
});
|
|
806
799
|
}
|
|
@@ -811,12 +804,12 @@ const de_CreateOrganizationalUnitCommand = async (output, context) => {
|
|
|
811
804
|
}
|
|
812
805
|
const data = await parseBody(output.body, context);
|
|
813
806
|
let contents = {};
|
|
814
|
-
contents =
|
|
807
|
+
contents = (0, smithy_client_1._json)(data);
|
|
815
808
|
const response = {
|
|
816
809
|
$metadata: deserializeMetadata(output),
|
|
817
810
|
...contents,
|
|
818
811
|
};
|
|
819
|
-
return
|
|
812
|
+
return response;
|
|
820
813
|
};
|
|
821
814
|
exports.de_CreateOrganizationalUnitCommand = de_CreateOrganizationalUnitCommand;
|
|
822
815
|
const de_CreateOrganizationalUnitCommandError = async (output, context) => {
|
|
@@ -855,10 +848,9 @@ const de_CreateOrganizationalUnitCommandError = async (output, context) => {
|
|
|
855
848
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
856
849
|
default:
|
|
857
850
|
const parsedBody = parsedOutput.body;
|
|
858
|
-
|
|
851
|
+
return throwDefaultError({
|
|
859
852
|
output,
|
|
860
853
|
parsedBody,
|
|
861
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
862
854
|
errorCode,
|
|
863
855
|
});
|
|
864
856
|
}
|
|
@@ -869,12 +861,12 @@ const de_CreatePolicyCommand = async (output, context) => {
|
|
|
869
861
|
}
|
|
870
862
|
const data = await parseBody(output.body, context);
|
|
871
863
|
let contents = {};
|
|
872
|
-
contents =
|
|
864
|
+
contents = (0, smithy_client_1._json)(data);
|
|
873
865
|
const response = {
|
|
874
866
|
$metadata: deserializeMetadata(output),
|
|
875
867
|
...contents,
|
|
876
868
|
};
|
|
877
|
-
return
|
|
869
|
+
return response;
|
|
878
870
|
};
|
|
879
871
|
exports.de_CreatePolicyCommand = de_CreatePolicyCommand;
|
|
880
872
|
const de_CreatePolicyCommandError = async (output, context) => {
|
|
@@ -919,10 +911,9 @@ const de_CreatePolicyCommandError = async (output, context) => {
|
|
|
919
911
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
920
912
|
default:
|
|
921
913
|
const parsedBody = parsedOutput.body;
|
|
922
|
-
|
|
914
|
+
return throwDefaultError({
|
|
923
915
|
output,
|
|
924
916
|
parsedBody,
|
|
925
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
926
917
|
errorCode,
|
|
927
918
|
});
|
|
928
919
|
}
|
|
@@ -938,7 +929,7 @@ const de_DeclineHandshakeCommand = async (output, context) => {
|
|
|
938
929
|
$metadata: deserializeMetadata(output),
|
|
939
930
|
...contents,
|
|
940
931
|
};
|
|
941
|
-
return
|
|
932
|
+
return response;
|
|
942
933
|
};
|
|
943
934
|
exports.de_DeclineHandshakeCommand = de_DeclineHandshakeCommand;
|
|
944
935
|
const de_DeclineHandshakeCommandError = async (output, context) => {
|
|
@@ -974,10 +965,9 @@ const de_DeclineHandshakeCommandError = async (output, context) => {
|
|
|
974
965
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
975
966
|
default:
|
|
976
967
|
const parsedBody = parsedOutput.body;
|
|
977
|
-
|
|
968
|
+
return throwDefaultError({
|
|
978
969
|
output,
|
|
979
970
|
parsedBody,
|
|
980
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
981
971
|
errorCode,
|
|
982
972
|
});
|
|
983
973
|
}
|
|
@@ -990,7 +980,7 @@ const de_DeleteOrganizationCommand = async (output, context) => {
|
|
|
990
980
|
const response = {
|
|
991
981
|
$metadata: deserializeMetadata(output),
|
|
992
982
|
};
|
|
993
|
-
return
|
|
983
|
+
return response;
|
|
994
984
|
};
|
|
995
985
|
exports.de_DeleteOrganizationCommand = de_DeleteOrganizationCommand;
|
|
996
986
|
const de_DeleteOrganizationCommandError = async (output, context) => {
|
|
@@ -1023,10 +1013,9 @@ const de_DeleteOrganizationCommandError = async (output, context) => {
|
|
|
1023
1013
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1024
1014
|
default:
|
|
1025
1015
|
const parsedBody = parsedOutput.body;
|
|
1026
|
-
|
|
1016
|
+
return throwDefaultError({
|
|
1027
1017
|
output,
|
|
1028
1018
|
parsedBody,
|
|
1029
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1030
1019
|
errorCode,
|
|
1031
1020
|
});
|
|
1032
1021
|
}
|
|
@@ -1039,7 +1028,7 @@ const de_DeleteOrganizationalUnitCommand = async (output, context) => {
|
|
|
1039
1028
|
const response = {
|
|
1040
1029
|
$metadata: deserializeMetadata(output),
|
|
1041
1030
|
};
|
|
1042
|
-
return
|
|
1031
|
+
return response;
|
|
1043
1032
|
};
|
|
1044
1033
|
exports.de_DeleteOrganizationalUnitCommand = de_DeleteOrganizationalUnitCommand;
|
|
1045
1034
|
const de_DeleteOrganizationalUnitCommandError = async (output, context) => {
|
|
@@ -1075,10 +1064,9 @@ const de_DeleteOrganizationalUnitCommandError = async (output, context) => {
|
|
|
1075
1064
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1076
1065
|
default:
|
|
1077
1066
|
const parsedBody = parsedOutput.body;
|
|
1078
|
-
|
|
1067
|
+
return throwDefaultError({
|
|
1079
1068
|
output,
|
|
1080
1069
|
parsedBody,
|
|
1081
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1082
1070
|
errorCode,
|
|
1083
1071
|
});
|
|
1084
1072
|
}
|
|
@@ -1091,7 +1079,7 @@ const de_DeletePolicyCommand = async (output, context) => {
|
|
|
1091
1079
|
const response = {
|
|
1092
1080
|
$metadata: deserializeMetadata(output),
|
|
1093
1081
|
};
|
|
1094
|
-
return
|
|
1082
|
+
return response;
|
|
1095
1083
|
};
|
|
1096
1084
|
exports.de_DeletePolicyCommand = de_DeletePolicyCommand;
|
|
1097
1085
|
const de_DeletePolicyCommandError = async (output, context) => {
|
|
@@ -1130,10 +1118,9 @@ const de_DeletePolicyCommandError = async (output, context) => {
|
|
|
1130
1118
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1131
1119
|
default:
|
|
1132
1120
|
const parsedBody = parsedOutput.body;
|
|
1133
|
-
|
|
1121
|
+
return throwDefaultError({
|
|
1134
1122
|
output,
|
|
1135
1123
|
parsedBody,
|
|
1136
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1137
1124
|
errorCode,
|
|
1138
1125
|
});
|
|
1139
1126
|
}
|
|
@@ -1146,7 +1133,7 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
1146
1133
|
const response = {
|
|
1147
1134
|
$metadata: deserializeMetadata(output),
|
|
1148
1135
|
};
|
|
1149
|
-
return
|
|
1136
|
+
return response;
|
|
1150
1137
|
};
|
|
1151
1138
|
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
1152
1139
|
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
@@ -1182,10 +1169,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
1182
1169
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1183
1170
|
default:
|
|
1184
1171
|
const parsedBody = parsedOutput.body;
|
|
1185
|
-
|
|
1172
|
+
return throwDefaultError({
|
|
1186
1173
|
output,
|
|
1187
1174
|
parsedBody,
|
|
1188
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1189
1175
|
errorCode,
|
|
1190
1176
|
});
|
|
1191
1177
|
}
|
|
@@ -1198,7 +1184,7 @@ const de_DeregisterDelegatedAdministratorCommand = async (output, context) => {
|
|
|
1198
1184
|
const response = {
|
|
1199
1185
|
$metadata: deserializeMetadata(output),
|
|
1200
1186
|
};
|
|
1201
|
-
return
|
|
1187
|
+
return response;
|
|
1202
1188
|
};
|
|
1203
1189
|
exports.de_DeregisterDelegatedAdministratorCommand = de_DeregisterDelegatedAdministratorCommand;
|
|
1204
1190
|
const de_DeregisterDelegatedAdministratorCommandError = async (output, context) => {
|
|
@@ -1240,10 +1226,9 @@ const de_DeregisterDelegatedAdministratorCommandError = async (output, context)
|
|
|
1240
1226
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1241
1227
|
default:
|
|
1242
1228
|
const parsedBody = parsedOutput.body;
|
|
1243
|
-
|
|
1229
|
+
return throwDefaultError({
|
|
1244
1230
|
output,
|
|
1245
1231
|
parsedBody,
|
|
1246
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1247
1232
|
errorCode,
|
|
1248
1233
|
});
|
|
1249
1234
|
}
|
|
@@ -1259,7 +1244,7 @@ const de_DescribeAccountCommand = async (output, context) => {
|
|
|
1259
1244
|
$metadata: deserializeMetadata(output),
|
|
1260
1245
|
...contents,
|
|
1261
1246
|
};
|
|
1262
|
-
return
|
|
1247
|
+
return response;
|
|
1263
1248
|
};
|
|
1264
1249
|
exports.de_DescribeAccountCommand = de_DescribeAccountCommand;
|
|
1265
1250
|
const de_DescribeAccountCommandError = async (output, context) => {
|
|
@@ -1289,10 +1274,9 @@ const de_DescribeAccountCommandError = async (output, context) => {
|
|
|
1289
1274
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1290
1275
|
default:
|
|
1291
1276
|
const parsedBody = parsedOutput.body;
|
|
1292
|
-
|
|
1277
|
+
return throwDefaultError({
|
|
1293
1278
|
output,
|
|
1294
1279
|
parsedBody,
|
|
1295
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1296
1280
|
errorCode,
|
|
1297
1281
|
});
|
|
1298
1282
|
}
|
|
@@ -1308,7 +1292,7 @@ const de_DescribeCreateAccountStatusCommand = async (output, context) => {
|
|
|
1308
1292
|
$metadata: deserializeMetadata(output),
|
|
1309
1293
|
...contents,
|
|
1310
1294
|
};
|
|
1311
|
-
return
|
|
1295
|
+
return response;
|
|
1312
1296
|
};
|
|
1313
1297
|
exports.de_DescribeCreateAccountStatusCommand = de_DescribeCreateAccountStatusCommand;
|
|
1314
1298
|
const de_DescribeCreateAccountStatusCommandError = async (output, context) => {
|
|
@@ -1341,10 +1325,9 @@ const de_DescribeCreateAccountStatusCommandError = async (output, context) => {
|
|
|
1341
1325
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1342
1326
|
default:
|
|
1343
1327
|
const parsedBody = parsedOutput.body;
|
|
1344
|
-
|
|
1328
|
+
return throwDefaultError({
|
|
1345
1329
|
output,
|
|
1346
1330
|
parsedBody,
|
|
1347
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1348
1331
|
errorCode,
|
|
1349
1332
|
});
|
|
1350
1333
|
}
|
|
@@ -1360,7 +1343,7 @@ const de_DescribeEffectivePolicyCommand = async (output, context) => {
|
|
|
1360
1343
|
$metadata: deserializeMetadata(output),
|
|
1361
1344
|
...contents,
|
|
1362
1345
|
};
|
|
1363
|
-
return
|
|
1346
|
+
return response;
|
|
1364
1347
|
};
|
|
1365
1348
|
exports.de_DescribeEffectivePolicyCommand = de_DescribeEffectivePolicyCommand;
|
|
1366
1349
|
const de_DescribeEffectivePolicyCommandError = async (output, context) => {
|
|
@@ -1399,10 +1382,9 @@ const de_DescribeEffectivePolicyCommandError = async (output, context) => {
|
|
|
1399
1382
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1400
1383
|
default:
|
|
1401
1384
|
const parsedBody = parsedOutput.body;
|
|
1402
|
-
|
|
1385
|
+
return throwDefaultError({
|
|
1403
1386
|
output,
|
|
1404
1387
|
parsedBody,
|
|
1405
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1406
1388
|
errorCode,
|
|
1407
1389
|
});
|
|
1408
1390
|
}
|
|
@@ -1418,7 +1400,7 @@ const de_DescribeHandshakeCommand = async (output, context) => {
|
|
|
1418
1400
|
$metadata: deserializeMetadata(output),
|
|
1419
1401
|
...contents,
|
|
1420
1402
|
};
|
|
1421
|
-
return
|
|
1403
|
+
return response;
|
|
1422
1404
|
};
|
|
1423
1405
|
exports.de_DescribeHandshakeCommand = de_DescribeHandshakeCommand;
|
|
1424
1406
|
const de_DescribeHandshakeCommandError = async (output, context) => {
|
|
@@ -1448,10 +1430,9 @@ const de_DescribeHandshakeCommandError = async (output, context) => {
|
|
|
1448
1430
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1449
1431
|
default:
|
|
1450
1432
|
const parsedBody = parsedOutput.body;
|
|
1451
|
-
|
|
1433
|
+
return throwDefaultError({
|
|
1452
1434
|
output,
|
|
1453
1435
|
parsedBody,
|
|
1454
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1455
1436
|
errorCode,
|
|
1456
1437
|
});
|
|
1457
1438
|
}
|
|
@@ -1462,12 +1443,12 @@ const de_DescribeOrganizationCommand = async (output, context) => {
|
|
|
1462
1443
|
}
|
|
1463
1444
|
const data = await parseBody(output.body, context);
|
|
1464
1445
|
let contents = {};
|
|
1465
|
-
contents =
|
|
1446
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1466
1447
|
const response = {
|
|
1467
1448
|
$metadata: deserializeMetadata(output),
|
|
1468
1449
|
...contents,
|
|
1469
1450
|
};
|
|
1470
|
-
return
|
|
1451
|
+
return response;
|
|
1471
1452
|
};
|
|
1472
1453
|
exports.de_DescribeOrganizationCommand = de_DescribeOrganizationCommand;
|
|
1473
1454
|
const de_DescribeOrganizationCommandError = async (output, context) => {
|
|
@@ -1494,10 +1475,9 @@ const de_DescribeOrganizationCommandError = async (output, context) => {
|
|
|
1494
1475
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1495
1476
|
default:
|
|
1496
1477
|
const parsedBody = parsedOutput.body;
|
|
1497
|
-
|
|
1478
|
+
return throwDefaultError({
|
|
1498
1479
|
output,
|
|
1499
1480
|
parsedBody,
|
|
1500
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1501
1481
|
errorCode,
|
|
1502
1482
|
});
|
|
1503
1483
|
}
|
|
@@ -1508,12 +1488,12 @@ const de_DescribeOrganizationalUnitCommand = async (output, context) => {
|
|
|
1508
1488
|
}
|
|
1509
1489
|
const data = await parseBody(output.body, context);
|
|
1510
1490
|
let contents = {};
|
|
1511
|
-
contents =
|
|
1491
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1512
1492
|
const response = {
|
|
1513
1493
|
$metadata: deserializeMetadata(output),
|
|
1514
1494
|
...contents,
|
|
1515
1495
|
};
|
|
1516
|
-
return
|
|
1496
|
+
return response;
|
|
1517
1497
|
};
|
|
1518
1498
|
exports.de_DescribeOrganizationalUnitCommand = de_DescribeOrganizationalUnitCommand;
|
|
1519
1499
|
const de_DescribeOrganizationalUnitCommandError = async (output, context) => {
|
|
@@ -1543,10 +1523,9 @@ const de_DescribeOrganizationalUnitCommandError = async (output, context) => {
|
|
|
1543
1523
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1544
1524
|
default:
|
|
1545
1525
|
const parsedBody = parsedOutput.body;
|
|
1546
|
-
|
|
1526
|
+
return throwDefaultError({
|
|
1547
1527
|
output,
|
|
1548
1528
|
parsedBody,
|
|
1549
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1550
1529
|
errorCode,
|
|
1551
1530
|
});
|
|
1552
1531
|
}
|
|
@@ -1557,12 +1536,12 @@ const de_DescribePolicyCommand = async (output, context) => {
|
|
|
1557
1536
|
}
|
|
1558
1537
|
const data = await parseBody(output.body, context);
|
|
1559
1538
|
let contents = {};
|
|
1560
|
-
contents =
|
|
1539
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1561
1540
|
const response = {
|
|
1562
1541
|
$metadata: deserializeMetadata(output),
|
|
1563
1542
|
...contents,
|
|
1564
1543
|
};
|
|
1565
|
-
return
|
|
1544
|
+
return response;
|
|
1566
1545
|
};
|
|
1567
1546
|
exports.de_DescribePolicyCommand = de_DescribePolicyCommand;
|
|
1568
1547
|
const de_DescribePolicyCommandError = async (output, context) => {
|
|
@@ -1595,10 +1574,9 @@ const de_DescribePolicyCommandError = async (output, context) => {
|
|
|
1595
1574
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1596
1575
|
default:
|
|
1597
1576
|
const parsedBody = parsedOutput.body;
|
|
1598
|
-
|
|
1577
|
+
return throwDefaultError({
|
|
1599
1578
|
output,
|
|
1600
1579
|
parsedBody,
|
|
1601
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1602
1580
|
errorCode,
|
|
1603
1581
|
});
|
|
1604
1582
|
}
|
|
@@ -1609,12 +1587,12 @@ const de_DescribeResourcePolicyCommand = async (output, context) => {
|
|
|
1609
1587
|
}
|
|
1610
1588
|
const data = await parseBody(output.body, context);
|
|
1611
1589
|
let contents = {};
|
|
1612
|
-
contents =
|
|
1590
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1613
1591
|
const response = {
|
|
1614
1592
|
$metadata: deserializeMetadata(output),
|
|
1615
1593
|
...contents,
|
|
1616
1594
|
};
|
|
1617
|
-
return
|
|
1595
|
+
return response;
|
|
1618
1596
|
};
|
|
1619
1597
|
exports.de_DescribeResourcePolicyCommand = de_DescribeResourcePolicyCommand;
|
|
1620
1598
|
const de_DescribeResourcePolicyCommandError = async (output, context) => {
|
|
@@ -1647,10 +1625,9 @@ const de_DescribeResourcePolicyCommandError = async (output, context) => {
|
|
|
1647
1625
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1648
1626
|
default:
|
|
1649
1627
|
const parsedBody = parsedOutput.body;
|
|
1650
|
-
|
|
1628
|
+
return throwDefaultError({
|
|
1651
1629
|
output,
|
|
1652
1630
|
parsedBody,
|
|
1653
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1654
1631
|
errorCode,
|
|
1655
1632
|
});
|
|
1656
1633
|
}
|
|
@@ -1663,7 +1640,7 @@ const de_DetachPolicyCommand = async (output, context) => {
|
|
|
1663
1640
|
const response = {
|
|
1664
1641
|
$metadata: deserializeMetadata(output),
|
|
1665
1642
|
};
|
|
1666
|
-
return
|
|
1643
|
+
return response;
|
|
1667
1644
|
};
|
|
1668
1645
|
exports.de_DetachPolicyCommand = de_DetachPolicyCommand;
|
|
1669
1646
|
const de_DetachPolicyCommandError = async (output, context) => {
|
|
@@ -1711,10 +1688,9 @@ const de_DetachPolicyCommandError = async (output, context) => {
|
|
|
1711
1688
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1712
1689
|
default:
|
|
1713
1690
|
const parsedBody = parsedOutput.body;
|
|
1714
|
-
|
|
1691
|
+
return throwDefaultError({
|
|
1715
1692
|
output,
|
|
1716
1693
|
parsedBody,
|
|
1717
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1718
1694
|
errorCode,
|
|
1719
1695
|
});
|
|
1720
1696
|
}
|
|
@@ -1727,7 +1703,7 @@ const de_DisableAWSServiceAccessCommand = async (output, context) => {
|
|
|
1727
1703
|
const response = {
|
|
1728
1704
|
$metadata: deserializeMetadata(output),
|
|
1729
1705
|
};
|
|
1730
|
-
return
|
|
1706
|
+
return response;
|
|
1731
1707
|
};
|
|
1732
1708
|
exports.de_DisableAWSServiceAccessCommand = de_DisableAWSServiceAccessCommand;
|
|
1733
1709
|
const de_DisableAWSServiceAccessCommandError = async (output, context) => {
|
|
@@ -1763,10 +1739,9 @@ const de_DisableAWSServiceAccessCommandError = async (output, context) => {
|
|
|
1763
1739
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1764
1740
|
default:
|
|
1765
1741
|
const parsedBody = parsedOutput.body;
|
|
1766
|
-
|
|
1742
|
+
return throwDefaultError({
|
|
1767
1743
|
output,
|
|
1768
1744
|
parsedBody,
|
|
1769
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1770
1745
|
errorCode,
|
|
1771
1746
|
});
|
|
1772
1747
|
}
|
|
@@ -1777,12 +1752,12 @@ const de_DisablePolicyTypeCommand = async (output, context) => {
|
|
|
1777
1752
|
}
|
|
1778
1753
|
const data = await parseBody(output.body, context);
|
|
1779
1754
|
let contents = {};
|
|
1780
|
-
contents =
|
|
1755
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1781
1756
|
const response = {
|
|
1782
1757
|
$metadata: deserializeMetadata(output),
|
|
1783
1758
|
...contents,
|
|
1784
1759
|
};
|
|
1785
|
-
return
|
|
1760
|
+
return response;
|
|
1786
1761
|
};
|
|
1787
1762
|
exports.de_DisablePolicyTypeCommand = de_DisablePolicyTypeCommand;
|
|
1788
1763
|
const de_DisablePolicyTypeCommandError = async (output, context) => {
|
|
@@ -1827,10 +1802,9 @@ const de_DisablePolicyTypeCommandError = async (output, context) => {
|
|
|
1827
1802
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1828
1803
|
default:
|
|
1829
1804
|
const parsedBody = parsedOutput.body;
|
|
1830
|
-
|
|
1805
|
+
return throwDefaultError({
|
|
1831
1806
|
output,
|
|
1832
1807
|
parsedBody,
|
|
1833
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1834
1808
|
errorCode,
|
|
1835
1809
|
});
|
|
1836
1810
|
}
|
|
@@ -1846,7 +1820,7 @@ const de_EnableAllFeaturesCommand = async (output, context) => {
|
|
|
1846
1820
|
$metadata: deserializeMetadata(output),
|
|
1847
1821
|
...contents,
|
|
1848
1822
|
};
|
|
1849
|
-
return
|
|
1823
|
+
return response;
|
|
1850
1824
|
};
|
|
1851
1825
|
exports.de_EnableAllFeaturesCommand = de_EnableAllFeaturesCommand;
|
|
1852
1826
|
const de_EnableAllFeaturesCommandError = async (output, context) => {
|
|
@@ -1879,10 +1853,9 @@ const de_EnableAllFeaturesCommandError = async (output, context) => {
|
|
|
1879
1853
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1880
1854
|
default:
|
|
1881
1855
|
const parsedBody = parsedOutput.body;
|
|
1882
|
-
|
|
1856
|
+
return throwDefaultError({
|
|
1883
1857
|
output,
|
|
1884
1858
|
parsedBody,
|
|
1885
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1886
1859
|
errorCode,
|
|
1887
1860
|
});
|
|
1888
1861
|
}
|
|
@@ -1895,7 +1868,7 @@ const de_EnableAWSServiceAccessCommand = async (output, context) => {
|
|
|
1895
1868
|
const response = {
|
|
1896
1869
|
$metadata: deserializeMetadata(output),
|
|
1897
1870
|
};
|
|
1898
|
-
return
|
|
1871
|
+
return response;
|
|
1899
1872
|
};
|
|
1900
1873
|
exports.de_EnableAWSServiceAccessCommand = de_EnableAWSServiceAccessCommand;
|
|
1901
1874
|
const de_EnableAWSServiceAccessCommandError = async (output, context) => {
|
|
@@ -1931,10 +1904,9 @@ const de_EnableAWSServiceAccessCommandError = async (output, context) => {
|
|
|
1931
1904
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1932
1905
|
default:
|
|
1933
1906
|
const parsedBody = parsedOutput.body;
|
|
1934
|
-
|
|
1907
|
+
return throwDefaultError({
|
|
1935
1908
|
output,
|
|
1936
1909
|
parsedBody,
|
|
1937
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
1938
1910
|
errorCode,
|
|
1939
1911
|
});
|
|
1940
1912
|
}
|
|
@@ -1945,12 +1917,12 @@ const de_EnablePolicyTypeCommand = async (output, context) => {
|
|
|
1945
1917
|
}
|
|
1946
1918
|
const data = await parseBody(output.body, context);
|
|
1947
1919
|
let contents = {};
|
|
1948
|
-
contents =
|
|
1920
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1949
1921
|
const response = {
|
|
1950
1922
|
$metadata: deserializeMetadata(output),
|
|
1951
1923
|
...contents,
|
|
1952
1924
|
};
|
|
1953
|
-
return
|
|
1925
|
+
return response;
|
|
1954
1926
|
};
|
|
1955
1927
|
exports.de_EnablePolicyTypeCommand = de_EnablePolicyTypeCommand;
|
|
1956
1928
|
const de_EnablePolicyTypeCommandError = async (output, context) => {
|
|
@@ -1998,10 +1970,9 @@ const de_EnablePolicyTypeCommandError = async (output, context) => {
|
|
|
1998
1970
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1999
1971
|
default:
|
|
2000
1972
|
const parsedBody = parsedOutput.body;
|
|
2001
|
-
|
|
1973
|
+
return throwDefaultError({
|
|
2002
1974
|
output,
|
|
2003
1975
|
parsedBody,
|
|
2004
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2005
1976
|
errorCode,
|
|
2006
1977
|
});
|
|
2007
1978
|
}
|
|
@@ -2017,7 +1988,7 @@ const de_InviteAccountToOrganizationCommand = async (output, context) => {
|
|
|
2017
1988
|
$metadata: deserializeMetadata(output),
|
|
2018
1989
|
...contents,
|
|
2019
1990
|
};
|
|
2020
|
-
return
|
|
1991
|
+
return response;
|
|
2021
1992
|
};
|
|
2022
1993
|
exports.de_InviteAccountToOrganizationCommand = de_InviteAccountToOrganizationCommand;
|
|
2023
1994
|
const de_InviteAccountToOrganizationCommandError = async (output, context) => {
|
|
@@ -2062,10 +2033,9 @@ const de_InviteAccountToOrganizationCommandError = async (output, context) => {
|
|
|
2062
2033
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2063
2034
|
default:
|
|
2064
2035
|
const parsedBody = parsedOutput.body;
|
|
2065
|
-
|
|
2036
|
+
return throwDefaultError({
|
|
2066
2037
|
output,
|
|
2067
2038
|
parsedBody,
|
|
2068
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2069
2039
|
errorCode,
|
|
2070
2040
|
});
|
|
2071
2041
|
}
|
|
@@ -2078,7 +2048,7 @@ const de_LeaveOrganizationCommand = async (output, context) => {
|
|
|
2078
2048
|
const response = {
|
|
2079
2049
|
$metadata: deserializeMetadata(output),
|
|
2080
2050
|
};
|
|
2081
|
-
return
|
|
2051
|
+
return response;
|
|
2082
2052
|
};
|
|
2083
2053
|
exports.de_LeaveOrganizationCommand = de_LeaveOrganizationCommand;
|
|
2084
2054
|
const de_LeaveOrganizationCommandError = async (output, context) => {
|
|
@@ -2117,10 +2087,9 @@ const de_LeaveOrganizationCommandError = async (output, context) => {
|
|
|
2117
2087
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2118
2088
|
default:
|
|
2119
2089
|
const parsedBody = parsedOutput.body;
|
|
2120
|
-
|
|
2090
|
+
return throwDefaultError({
|
|
2121
2091
|
output,
|
|
2122
2092
|
parsedBody,
|
|
2123
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2124
2093
|
errorCode,
|
|
2125
2094
|
});
|
|
2126
2095
|
}
|
|
@@ -2136,7 +2105,7 @@ const de_ListAccountsCommand = async (output, context) => {
|
|
|
2136
2105
|
$metadata: deserializeMetadata(output),
|
|
2137
2106
|
...contents,
|
|
2138
2107
|
};
|
|
2139
|
-
return
|
|
2108
|
+
return response;
|
|
2140
2109
|
};
|
|
2141
2110
|
exports.de_ListAccountsCommand = de_ListAccountsCommand;
|
|
2142
2111
|
const de_ListAccountsCommandError = async (output, context) => {
|
|
@@ -2163,10 +2132,9 @@ const de_ListAccountsCommandError = async (output, context) => {
|
|
|
2163
2132
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2164
2133
|
default:
|
|
2165
2134
|
const parsedBody = parsedOutput.body;
|
|
2166
|
-
|
|
2135
|
+
return throwDefaultError({
|
|
2167
2136
|
output,
|
|
2168
2137
|
parsedBody,
|
|
2169
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2170
2138
|
errorCode,
|
|
2171
2139
|
});
|
|
2172
2140
|
}
|
|
@@ -2182,7 +2150,7 @@ const de_ListAccountsForParentCommand = async (output, context) => {
|
|
|
2182
2150
|
$metadata: deserializeMetadata(output),
|
|
2183
2151
|
...contents,
|
|
2184
2152
|
};
|
|
2185
|
-
return
|
|
2153
|
+
return response;
|
|
2186
2154
|
};
|
|
2187
2155
|
exports.de_ListAccountsForParentCommand = de_ListAccountsForParentCommand;
|
|
2188
2156
|
const de_ListAccountsForParentCommandError = async (output, context) => {
|
|
@@ -2212,10 +2180,9 @@ const de_ListAccountsForParentCommandError = async (output, context) => {
|
|
|
2212
2180
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2213
2181
|
default:
|
|
2214
2182
|
const parsedBody = parsedOutput.body;
|
|
2215
|
-
|
|
2183
|
+
return throwDefaultError({
|
|
2216
2184
|
output,
|
|
2217
2185
|
parsedBody,
|
|
2218
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2219
2186
|
errorCode,
|
|
2220
2187
|
});
|
|
2221
2188
|
}
|
|
@@ -2231,7 +2198,7 @@ const de_ListAWSServiceAccessForOrganizationCommand = async (output, context) =>
|
|
|
2231
2198
|
$metadata: deserializeMetadata(output),
|
|
2232
2199
|
...contents,
|
|
2233
2200
|
};
|
|
2234
|
-
return
|
|
2201
|
+
return response;
|
|
2235
2202
|
};
|
|
2236
2203
|
exports.de_ListAWSServiceAccessForOrganizationCommand = de_ListAWSServiceAccessForOrganizationCommand;
|
|
2237
2204
|
const de_ListAWSServiceAccessForOrganizationCommandError = async (output, context) => {
|
|
@@ -2264,10 +2231,9 @@ const de_ListAWSServiceAccessForOrganizationCommandError = async (output, contex
|
|
|
2264
2231
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2265
2232
|
default:
|
|
2266
2233
|
const parsedBody = parsedOutput.body;
|
|
2267
|
-
|
|
2234
|
+
return throwDefaultError({
|
|
2268
2235
|
output,
|
|
2269
2236
|
parsedBody,
|
|
2270
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2271
2237
|
errorCode,
|
|
2272
2238
|
});
|
|
2273
2239
|
}
|
|
@@ -2278,12 +2244,12 @@ const de_ListChildrenCommand = async (output, context) => {
|
|
|
2278
2244
|
}
|
|
2279
2245
|
const data = await parseBody(output.body, context);
|
|
2280
2246
|
let contents = {};
|
|
2281
|
-
contents =
|
|
2247
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2282
2248
|
const response = {
|
|
2283
2249
|
$metadata: deserializeMetadata(output),
|
|
2284
2250
|
...contents,
|
|
2285
2251
|
};
|
|
2286
|
-
return
|
|
2252
|
+
return response;
|
|
2287
2253
|
};
|
|
2288
2254
|
exports.de_ListChildrenCommand = de_ListChildrenCommand;
|
|
2289
2255
|
const de_ListChildrenCommandError = async (output, context) => {
|
|
@@ -2313,10 +2279,9 @@ const de_ListChildrenCommandError = async (output, context) => {
|
|
|
2313
2279
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2314
2280
|
default:
|
|
2315
2281
|
const parsedBody = parsedOutput.body;
|
|
2316
|
-
|
|
2282
|
+
return throwDefaultError({
|
|
2317
2283
|
output,
|
|
2318
2284
|
parsedBody,
|
|
2319
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2320
2285
|
errorCode,
|
|
2321
2286
|
});
|
|
2322
2287
|
}
|
|
@@ -2332,7 +2297,7 @@ const de_ListCreateAccountStatusCommand = async (output, context) => {
|
|
|
2332
2297
|
$metadata: deserializeMetadata(output),
|
|
2333
2298
|
...contents,
|
|
2334
2299
|
};
|
|
2335
|
-
return
|
|
2300
|
+
return response;
|
|
2336
2301
|
};
|
|
2337
2302
|
exports.de_ListCreateAccountStatusCommand = de_ListCreateAccountStatusCommand;
|
|
2338
2303
|
const de_ListCreateAccountStatusCommandError = async (output, context) => {
|
|
@@ -2362,10 +2327,9 @@ const de_ListCreateAccountStatusCommandError = async (output, context) => {
|
|
|
2362
2327
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2363
2328
|
default:
|
|
2364
2329
|
const parsedBody = parsedOutput.body;
|
|
2365
|
-
|
|
2330
|
+
return throwDefaultError({
|
|
2366
2331
|
output,
|
|
2367
2332
|
parsedBody,
|
|
2368
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2369
2333
|
errorCode,
|
|
2370
2334
|
});
|
|
2371
2335
|
}
|
|
@@ -2381,7 +2345,7 @@ const de_ListDelegatedAdministratorsCommand = async (output, context) => {
|
|
|
2381
2345
|
$metadata: deserializeMetadata(output),
|
|
2382
2346
|
...contents,
|
|
2383
2347
|
};
|
|
2384
|
-
return
|
|
2348
|
+
return response;
|
|
2385
2349
|
};
|
|
2386
2350
|
exports.de_ListDelegatedAdministratorsCommand = de_ListDelegatedAdministratorsCommand;
|
|
2387
2351
|
const de_ListDelegatedAdministratorsCommandError = async (output, context) => {
|
|
@@ -2414,10 +2378,9 @@ const de_ListDelegatedAdministratorsCommandError = async (output, context) => {
|
|
|
2414
2378
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2415
2379
|
default:
|
|
2416
2380
|
const parsedBody = parsedOutput.body;
|
|
2417
|
-
|
|
2381
|
+
return throwDefaultError({
|
|
2418
2382
|
output,
|
|
2419
2383
|
parsedBody,
|
|
2420
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2421
2384
|
errorCode,
|
|
2422
2385
|
});
|
|
2423
2386
|
}
|
|
@@ -2433,7 +2396,7 @@ const de_ListDelegatedServicesForAccountCommand = async (output, context) => {
|
|
|
2433
2396
|
$metadata: deserializeMetadata(output),
|
|
2434
2397
|
...contents,
|
|
2435
2398
|
};
|
|
2436
|
-
return
|
|
2399
|
+
return response;
|
|
2437
2400
|
};
|
|
2438
2401
|
exports.de_ListDelegatedServicesForAccountCommand = de_ListDelegatedServicesForAccountCommand;
|
|
2439
2402
|
const de_ListDelegatedServicesForAccountCommandError = async (output, context) => {
|
|
@@ -2472,10 +2435,9 @@ const de_ListDelegatedServicesForAccountCommandError = async (output, context) =
|
|
|
2472
2435
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2473
2436
|
default:
|
|
2474
2437
|
const parsedBody = parsedOutput.body;
|
|
2475
|
-
|
|
2438
|
+
return throwDefaultError({
|
|
2476
2439
|
output,
|
|
2477
2440
|
parsedBody,
|
|
2478
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2479
2441
|
errorCode,
|
|
2480
2442
|
});
|
|
2481
2443
|
}
|
|
@@ -2491,7 +2453,7 @@ const de_ListHandshakesForAccountCommand = async (output, context) => {
|
|
|
2491
2453
|
$metadata: deserializeMetadata(output),
|
|
2492
2454
|
...contents,
|
|
2493
2455
|
};
|
|
2494
|
-
return
|
|
2456
|
+
return response;
|
|
2495
2457
|
};
|
|
2496
2458
|
exports.de_ListHandshakesForAccountCommand = de_ListHandshakesForAccountCommand;
|
|
2497
2459
|
const de_ListHandshakesForAccountCommandError = async (output, context) => {
|
|
@@ -2518,10 +2480,9 @@ const de_ListHandshakesForAccountCommandError = async (output, context) => {
|
|
|
2518
2480
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2519
2481
|
default:
|
|
2520
2482
|
const parsedBody = parsedOutput.body;
|
|
2521
|
-
|
|
2483
|
+
return throwDefaultError({
|
|
2522
2484
|
output,
|
|
2523
2485
|
parsedBody,
|
|
2524
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2525
2486
|
errorCode,
|
|
2526
2487
|
});
|
|
2527
2488
|
}
|
|
@@ -2537,7 +2498,7 @@ const de_ListHandshakesForOrganizationCommand = async (output, context) => {
|
|
|
2537
2498
|
$metadata: deserializeMetadata(output),
|
|
2538
2499
|
...contents,
|
|
2539
2500
|
};
|
|
2540
|
-
return
|
|
2501
|
+
return response;
|
|
2541
2502
|
};
|
|
2542
2503
|
exports.de_ListHandshakesForOrganizationCommand = de_ListHandshakesForOrganizationCommand;
|
|
2543
2504
|
const de_ListHandshakesForOrganizationCommandError = async (output, context) => {
|
|
@@ -2567,10 +2528,9 @@ const de_ListHandshakesForOrganizationCommandError = async (output, context) =>
|
|
|
2567
2528
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2568
2529
|
default:
|
|
2569
2530
|
const parsedBody = parsedOutput.body;
|
|
2570
|
-
|
|
2531
|
+
return throwDefaultError({
|
|
2571
2532
|
output,
|
|
2572
2533
|
parsedBody,
|
|
2573
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2574
2534
|
errorCode,
|
|
2575
2535
|
});
|
|
2576
2536
|
}
|
|
@@ -2581,12 +2541,12 @@ const de_ListOrganizationalUnitsForParentCommand = async (output, context) => {
|
|
|
2581
2541
|
}
|
|
2582
2542
|
const data = await parseBody(output.body, context);
|
|
2583
2543
|
let contents = {};
|
|
2584
|
-
contents =
|
|
2544
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2585
2545
|
const response = {
|
|
2586
2546
|
$metadata: deserializeMetadata(output),
|
|
2587
2547
|
...contents,
|
|
2588
2548
|
};
|
|
2589
|
-
return
|
|
2549
|
+
return response;
|
|
2590
2550
|
};
|
|
2591
2551
|
exports.de_ListOrganizationalUnitsForParentCommand = de_ListOrganizationalUnitsForParentCommand;
|
|
2592
2552
|
const de_ListOrganizationalUnitsForParentCommandError = async (output, context) => {
|
|
@@ -2616,10 +2576,9 @@ const de_ListOrganizationalUnitsForParentCommandError = async (output, context)
|
|
|
2616
2576
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2617
2577
|
default:
|
|
2618
2578
|
const parsedBody = parsedOutput.body;
|
|
2619
|
-
|
|
2579
|
+
return throwDefaultError({
|
|
2620
2580
|
output,
|
|
2621
2581
|
parsedBody,
|
|
2622
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2623
2582
|
errorCode,
|
|
2624
2583
|
});
|
|
2625
2584
|
}
|
|
@@ -2630,12 +2589,12 @@ const de_ListParentsCommand = async (output, context) => {
|
|
|
2630
2589
|
}
|
|
2631
2590
|
const data = await parseBody(output.body, context);
|
|
2632
2591
|
let contents = {};
|
|
2633
|
-
contents =
|
|
2592
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2634
2593
|
const response = {
|
|
2635
2594
|
$metadata: deserializeMetadata(output),
|
|
2636
2595
|
...contents,
|
|
2637
2596
|
};
|
|
2638
|
-
return
|
|
2597
|
+
return response;
|
|
2639
2598
|
};
|
|
2640
2599
|
exports.de_ListParentsCommand = de_ListParentsCommand;
|
|
2641
2600
|
const de_ListParentsCommandError = async (output, context) => {
|
|
@@ -2665,10 +2624,9 @@ const de_ListParentsCommandError = async (output, context) => {
|
|
|
2665
2624
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2666
2625
|
default:
|
|
2667
2626
|
const parsedBody = parsedOutput.body;
|
|
2668
|
-
|
|
2627
|
+
return throwDefaultError({
|
|
2669
2628
|
output,
|
|
2670
2629
|
parsedBody,
|
|
2671
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2672
2630
|
errorCode,
|
|
2673
2631
|
});
|
|
2674
2632
|
}
|
|
@@ -2679,12 +2637,12 @@ const de_ListPoliciesCommand = async (output, context) => {
|
|
|
2679
2637
|
}
|
|
2680
2638
|
const data = await parseBody(output.body, context);
|
|
2681
2639
|
let contents = {};
|
|
2682
|
-
contents =
|
|
2640
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2683
2641
|
const response = {
|
|
2684
2642
|
$metadata: deserializeMetadata(output),
|
|
2685
2643
|
...contents,
|
|
2686
2644
|
};
|
|
2687
|
-
return
|
|
2645
|
+
return response;
|
|
2688
2646
|
};
|
|
2689
2647
|
exports.de_ListPoliciesCommand = de_ListPoliciesCommand;
|
|
2690
2648
|
const de_ListPoliciesCommandError = async (output, context) => {
|
|
@@ -2714,10 +2672,9 @@ const de_ListPoliciesCommandError = async (output, context) => {
|
|
|
2714
2672
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2715
2673
|
default:
|
|
2716
2674
|
const parsedBody = parsedOutput.body;
|
|
2717
|
-
|
|
2675
|
+
return throwDefaultError({
|
|
2718
2676
|
output,
|
|
2719
2677
|
parsedBody,
|
|
2720
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2721
2678
|
errorCode,
|
|
2722
2679
|
});
|
|
2723
2680
|
}
|
|
@@ -2728,12 +2685,12 @@ const de_ListPoliciesForTargetCommand = async (output, context) => {
|
|
|
2728
2685
|
}
|
|
2729
2686
|
const data = await parseBody(output.body, context);
|
|
2730
2687
|
let contents = {};
|
|
2731
|
-
contents =
|
|
2688
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2732
2689
|
const response = {
|
|
2733
2690
|
$metadata: deserializeMetadata(output),
|
|
2734
2691
|
...contents,
|
|
2735
2692
|
};
|
|
2736
|
-
return
|
|
2693
|
+
return response;
|
|
2737
2694
|
};
|
|
2738
2695
|
exports.de_ListPoliciesForTargetCommand = de_ListPoliciesForTargetCommand;
|
|
2739
2696
|
const de_ListPoliciesForTargetCommandError = async (output, context) => {
|
|
@@ -2766,10 +2723,9 @@ const de_ListPoliciesForTargetCommandError = async (output, context) => {
|
|
|
2766
2723
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2767
2724
|
default:
|
|
2768
2725
|
const parsedBody = parsedOutput.body;
|
|
2769
|
-
|
|
2726
|
+
return throwDefaultError({
|
|
2770
2727
|
output,
|
|
2771
2728
|
parsedBody,
|
|
2772
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2773
2729
|
errorCode,
|
|
2774
2730
|
});
|
|
2775
2731
|
}
|
|
@@ -2780,12 +2736,12 @@ const de_ListRootsCommand = async (output, context) => {
|
|
|
2780
2736
|
}
|
|
2781
2737
|
const data = await parseBody(output.body, context);
|
|
2782
2738
|
let contents = {};
|
|
2783
|
-
contents =
|
|
2739
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2784
2740
|
const response = {
|
|
2785
2741
|
$metadata: deserializeMetadata(output),
|
|
2786
2742
|
...contents,
|
|
2787
2743
|
};
|
|
2788
|
-
return
|
|
2744
|
+
return response;
|
|
2789
2745
|
};
|
|
2790
2746
|
exports.de_ListRootsCommand = de_ListRootsCommand;
|
|
2791
2747
|
const de_ListRootsCommandError = async (output, context) => {
|
|
@@ -2812,10 +2768,9 @@ const de_ListRootsCommandError = async (output, context) => {
|
|
|
2812
2768
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2813
2769
|
default:
|
|
2814
2770
|
const parsedBody = parsedOutput.body;
|
|
2815
|
-
|
|
2771
|
+
return throwDefaultError({
|
|
2816
2772
|
output,
|
|
2817
2773
|
parsedBody,
|
|
2818
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2819
2774
|
errorCode,
|
|
2820
2775
|
});
|
|
2821
2776
|
}
|
|
@@ -2826,12 +2781,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2826
2781
|
}
|
|
2827
2782
|
const data = await parseBody(output.body, context);
|
|
2828
2783
|
let contents = {};
|
|
2829
|
-
contents =
|
|
2784
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2830
2785
|
const response = {
|
|
2831
2786
|
$metadata: deserializeMetadata(output),
|
|
2832
2787
|
...contents,
|
|
2833
2788
|
};
|
|
2834
|
-
return
|
|
2789
|
+
return response;
|
|
2835
2790
|
};
|
|
2836
2791
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2837
2792
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2861,10 +2816,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2861
2816
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2862
2817
|
default:
|
|
2863
2818
|
const parsedBody = parsedOutput.body;
|
|
2864
|
-
|
|
2819
|
+
return throwDefaultError({
|
|
2865
2820
|
output,
|
|
2866
2821
|
parsedBody,
|
|
2867
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2868
2822
|
errorCode,
|
|
2869
2823
|
});
|
|
2870
2824
|
}
|
|
@@ -2875,12 +2829,12 @@ const de_ListTargetsForPolicyCommand = async (output, context) => {
|
|
|
2875
2829
|
}
|
|
2876
2830
|
const data = await parseBody(output.body, context);
|
|
2877
2831
|
let contents = {};
|
|
2878
|
-
contents =
|
|
2832
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2879
2833
|
const response = {
|
|
2880
2834
|
$metadata: deserializeMetadata(output),
|
|
2881
2835
|
...contents,
|
|
2882
2836
|
};
|
|
2883
|
-
return
|
|
2837
|
+
return response;
|
|
2884
2838
|
};
|
|
2885
2839
|
exports.de_ListTargetsForPolicyCommand = de_ListTargetsForPolicyCommand;
|
|
2886
2840
|
const de_ListTargetsForPolicyCommandError = async (output, context) => {
|
|
@@ -2913,10 +2867,9 @@ const de_ListTargetsForPolicyCommandError = async (output, context) => {
|
|
|
2913
2867
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2914
2868
|
default:
|
|
2915
2869
|
const parsedBody = parsedOutput.body;
|
|
2916
|
-
|
|
2870
|
+
return throwDefaultError({
|
|
2917
2871
|
output,
|
|
2918
2872
|
parsedBody,
|
|
2919
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2920
2873
|
errorCode,
|
|
2921
2874
|
});
|
|
2922
2875
|
}
|
|
@@ -2929,7 +2882,7 @@ const de_MoveAccountCommand = async (output, context) => {
|
|
|
2929
2882
|
const response = {
|
|
2930
2883
|
$metadata: deserializeMetadata(output),
|
|
2931
2884
|
};
|
|
2932
|
-
return
|
|
2885
|
+
return response;
|
|
2933
2886
|
};
|
|
2934
2887
|
exports.de_MoveAccountCommand = de_MoveAccountCommand;
|
|
2935
2888
|
const de_MoveAccountCommandError = async (output, context) => {
|
|
@@ -2971,10 +2924,9 @@ const de_MoveAccountCommandError = async (output, context) => {
|
|
|
2971
2924
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2972
2925
|
default:
|
|
2973
2926
|
const parsedBody = parsedOutput.body;
|
|
2974
|
-
|
|
2927
|
+
return throwDefaultError({
|
|
2975
2928
|
output,
|
|
2976
2929
|
parsedBody,
|
|
2977
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
2978
2930
|
errorCode,
|
|
2979
2931
|
});
|
|
2980
2932
|
}
|
|
@@ -2985,12 +2937,12 @@ const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
2985
2937
|
}
|
|
2986
2938
|
const data = await parseBody(output.body, context);
|
|
2987
2939
|
let contents = {};
|
|
2988
|
-
contents =
|
|
2940
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2989
2941
|
const response = {
|
|
2990
2942
|
$metadata: deserializeMetadata(output),
|
|
2991
2943
|
...contents,
|
|
2992
2944
|
};
|
|
2993
|
-
return
|
|
2945
|
+
return response;
|
|
2994
2946
|
};
|
|
2995
2947
|
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
2996
2948
|
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
@@ -3026,10 +2978,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
3026
2978
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3027
2979
|
default:
|
|
3028
2980
|
const parsedBody = parsedOutput.body;
|
|
3029
|
-
|
|
2981
|
+
return throwDefaultError({
|
|
3030
2982
|
output,
|
|
3031
2983
|
parsedBody,
|
|
3032
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3033
2984
|
errorCode,
|
|
3034
2985
|
});
|
|
3035
2986
|
}
|
|
@@ -3042,7 +2993,7 @@ const de_RegisterDelegatedAdministratorCommand = async (output, context) => {
|
|
|
3042
2993
|
const response = {
|
|
3043
2994
|
$metadata: deserializeMetadata(output),
|
|
3044
2995
|
};
|
|
3045
|
-
return
|
|
2996
|
+
return response;
|
|
3046
2997
|
};
|
|
3047
2998
|
exports.de_RegisterDelegatedAdministratorCommand = de_RegisterDelegatedAdministratorCommand;
|
|
3048
2999
|
const de_RegisterDelegatedAdministratorCommandError = async (output, context) => {
|
|
@@ -3084,10 +3035,9 @@ const de_RegisterDelegatedAdministratorCommandError = async (output, context) =>
|
|
|
3084
3035
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3085
3036
|
default:
|
|
3086
3037
|
const parsedBody = parsedOutput.body;
|
|
3087
|
-
|
|
3038
|
+
return throwDefaultError({
|
|
3088
3039
|
output,
|
|
3089
3040
|
parsedBody,
|
|
3090
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3091
3041
|
errorCode,
|
|
3092
3042
|
});
|
|
3093
3043
|
}
|
|
@@ -3100,7 +3050,7 @@ const de_RemoveAccountFromOrganizationCommand = async (output, context) => {
|
|
|
3100
3050
|
const response = {
|
|
3101
3051
|
$metadata: deserializeMetadata(output),
|
|
3102
3052
|
};
|
|
3103
|
-
return
|
|
3053
|
+
return response;
|
|
3104
3054
|
};
|
|
3105
3055
|
exports.de_RemoveAccountFromOrganizationCommand = de_RemoveAccountFromOrganizationCommand;
|
|
3106
3056
|
const de_RemoveAccountFromOrganizationCommandError = async (output, context) => {
|
|
@@ -3139,10 +3089,9 @@ const de_RemoveAccountFromOrganizationCommandError = async (output, context) =>
|
|
|
3139
3089
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3140
3090
|
default:
|
|
3141
3091
|
const parsedBody = parsedOutput.body;
|
|
3142
|
-
|
|
3092
|
+
return throwDefaultError({
|
|
3143
3093
|
output,
|
|
3144
3094
|
parsedBody,
|
|
3145
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3146
3095
|
errorCode,
|
|
3147
3096
|
});
|
|
3148
3097
|
}
|
|
@@ -3155,7 +3104,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
3155
3104
|
const response = {
|
|
3156
3105
|
$metadata: deserializeMetadata(output),
|
|
3157
3106
|
};
|
|
3158
|
-
return
|
|
3107
|
+
return response;
|
|
3159
3108
|
};
|
|
3160
3109
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3161
3110
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -3191,10 +3140,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
3191
3140
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3192
3141
|
default:
|
|
3193
3142
|
const parsedBody = parsedOutput.body;
|
|
3194
|
-
|
|
3143
|
+
return throwDefaultError({
|
|
3195
3144
|
output,
|
|
3196
3145
|
parsedBody,
|
|
3197
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3198
3146
|
errorCode,
|
|
3199
3147
|
});
|
|
3200
3148
|
}
|
|
@@ -3207,7 +3155,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
3207
3155
|
const response = {
|
|
3208
3156
|
$metadata: deserializeMetadata(output),
|
|
3209
3157
|
};
|
|
3210
|
-
return
|
|
3158
|
+
return response;
|
|
3211
3159
|
};
|
|
3212
3160
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3213
3161
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -3243,10 +3191,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
3243
3191
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3244
3192
|
default:
|
|
3245
3193
|
const parsedBody = parsedOutput.body;
|
|
3246
|
-
|
|
3194
|
+
return throwDefaultError({
|
|
3247
3195
|
output,
|
|
3248
3196
|
parsedBody,
|
|
3249
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3250
3197
|
errorCode,
|
|
3251
3198
|
});
|
|
3252
3199
|
}
|
|
@@ -3257,12 +3204,12 @@ const de_UpdateOrganizationalUnitCommand = async (output, context) => {
|
|
|
3257
3204
|
}
|
|
3258
3205
|
const data = await parseBody(output.body, context);
|
|
3259
3206
|
let contents = {};
|
|
3260
|
-
contents =
|
|
3207
|
+
contents = (0, smithy_client_1._json)(data);
|
|
3261
3208
|
const response = {
|
|
3262
3209
|
$metadata: deserializeMetadata(output),
|
|
3263
3210
|
...contents,
|
|
3264
3211
|
};
|
|
3265
|
-
return
|
|
3212
|
+
return response;
|
|
3266
3213
|
};
|
|
3267
3214
|
exports.de_UpdateOrganizationalUnitCommand = de_UpdateOrganizationalUnitCommand;
|
|
3268
3215
|
const de_UpdateOrganizationalUnitCommandError = async (output, context) => {
|
|
@@ -3298,10 +3245,9 @@ const de_UpdateOrganizationalUnitCommandError = async (output, context) => {
|
|
|
3298
3245
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3299
3246
|
default:
|
|
3300
3247
|
const parsedBody = parsedOutput.body;
|
|
3301
|
-
|
|
3248
|
+
return throwDefaultError({
|
|
3302
3249
|
output,
|
|
3303
3250
|
parsedBody,
|
|
3304
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3305
3251
|
errorCode,
|
|
3306
3252
|
});
|
|
3307
3253
|
}
|
|
@@ -3312,12 +3258,12 @@ const de_UpdatePolicyCommand = async (output, context) => {
|
|
|
3312
3258
|
}
|
|
3313
3259
|
const data = await parseBody(output.body, context);
|
|
3314
3260
|
let contents = {};
|
|
3315
|
-
contents =
|
|
3261
|
+
contents = (0, smithy_client_1._json)(data);
|
|
3316
3262
|
const response = {
|
|
3317
3263
|
$metadata: deserializeMetadata(output),
|
|
3318
3264
|
...contents,
|
|
3319
3265
|
};
|
|
3320
|
-
return
|
|
3266
|
+
return response;
|
|
3321
3267
|
};
|
|
3322
3268
|
exports.de_UpdatePolicyCommand = de_UpdatePolicyCommand;
|
|
3323
3269
|
const de_UpdatePolicyCommandError = async (output, context) => {
|
|
@@ -3365,17 +3311,16 @@ const de_UpdatePolicyCommandError = async (output, context) => {
|
|
|
3365
3311
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3366
3312
|
default:
|
|
3367
3313
|
const parsedBody = parsedOutput.body;
|
|
3368
|
-
|
|
3314
|
+
return throwDefaultError({
|
|
3369
3315
|
output,
|
|
3370
3316
|
parsedBody,
|
|
3371
|
-
exceptionCtor: OrganizationsServiceException_1.OrganizationsServiceException,
|
|
3372
3317
|
errorCode,
|
|
3373
3318
|
});
|
|
3374
3319
|
}
|
|
3375
3320
|
};
|
|
3376
3321
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3377
3322
|
const body = parsedOutput.body;
|
|
3378
|
-
const deserialized =
|
|
3323
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3379
3324
|
const exception = new models_0_1.AccessDeniedException({
|
|
3380
3325
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3381
3326
|
...deserialized,
|
|
@@ -3384,7 +3329,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
3384
3329
|
};
|
|
3385
3330
|
const de_AccessDeniedForDependencyExceptionRes = async (parsedOutput, context) => {
|
|
3386
3331
|
const body = parsedOutput.body;
|
|
3387
|
-
const deserialized =
|
|
3332
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3388
3333
|
const exception = new models_0_1.AccessDeniedForDependencyException({
|
|
3389
3334
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3390
3335
|
...deserialized,
|
|
@@ -3393,7 +3338,7 @@ const de_AccessDeniedForDependencyExceptionRes = async (parsedOutput, context) =
|
|
|
3393
3338
|
};
|
|
3394
3339
|
const de_AccountAlreadyClosedExceptionRes = async (parsedOutput, context) => {
|
|
3395
3340
|
const body = parsedOutput.body;
|
|
3396
|
-
const deserialized =
|
|
3341
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3397
3342
|
const exception = new models_0_1.AccountAlreadyClosedException({
|
|
3398
3343
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3399
3344
|
...deserialized,
|
|
@@ -3402,7 +3347,7 @@ const de_AccountAlreadyClosedExceptionRes = async (parsedOutput, context) => {
|
|
|
3402
3347
|
};
|
|
3403
3348
|
const de_AccountAlreadyRegisteredExceptionRes = async (parsedOutput, context) => {
|
|
3404
3349
|
const body = parsedOutput.body;
|
|
3405
|
-
const deserialized =
|
|
3350
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3406
3351
|
const exception = new models_0_1.AccountAlreadyRegisteredException({
|
|
3407
3352
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3408
3353
|
...deserialized,
|
|
@@ -3411,7 +3356,7 @@ const de_AccountAlreadyRegisteredExceptionRes = async (parsedOutput, context) =>
|
|
|
3411
3356
|
};
|
|
3412
3357
|
const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3413
3358
|
const body = parsedOutput.body;
|
|
3414
|
-
const deserialized =
|
|
3359
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3415
3360
|
const exception = new models_0_1.AccountNotFoundException({
|
|
3416
3361
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3417
3362
|
...deserialized,
|
|
@@ -3420,7 +3365,7 @@ const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3420
3365
|
};
|
|
3421
3366
|
const de_AccountNotRegisteredExceptionRes = async (parsedOutput, context) => {
|
|
3422
3367
|
const body = parsedOutput.body;
|
|
3423
|
-
const deserialized =
|
|
3368
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3424
3369
|
const exception = new models_0_1.AccountNotRegisteredException({
|
|
3425
3370
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3426
3371
|
...deserialized,
|
|
@@ -3429,7 +3374,7 @@ const de_AccountNotRegisteredExceptionRes = async (parsedOutput, context) => {
|
|
|
3429
3374
|
};
|
|
3430
3375
|
const de_AccountOwnerNotVerifiedExceptionRes = async (parsedOutput, context) => {
|
|
3431
3376
|
const body = parsedOutput.body;
|
|
3432
|
-
const deserialized =
|
|
3377
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3433
3378
|
const exception = new models_0_1.AccountOwnerNotVerifiedException({
|
|
3434
3379
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3435
3380
|
...deserialized,
|
|
@@ -3438,7 +3383,7 @@ const de_AccountOwnerNotVerifiedExceptionRes = async (parsedOutput, context) =>
|
|
|
3438
3383
|
};
|
|
3439
3384
|
const de_AlreadyInOrganizationExceptionRes = async (parsedOutput, context) => {
|
|
3440
3385
|
const body = parsedOutput.body;
|
|
3441
|
-
const deserialized =
|
|
3386
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3442
3387
|
const exception = new models_0_1.AlreadyInOrganizationException({
|
|
3443
3388
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3444
3389
|
...deserialized,
|
|
@@ -3447,7 +3392,7 @@ const de_AlreadyInOrganizationExceptionRes = async (parsedOutput, context) => {
|
|
|
3447
3392
|
};
|
|
3448
3393
|
const de_AWSOrganizationsNotInUseExceptionRes = async (parsedOutput, context) => {
|
|
3449
3394
|
const body = parsedOutput.body;
|
|
3450
|
-
const deserialized =
|
|
3395
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3451
3396
|
const exception = new models_0_1.AWSOrganizationsNotInUseException({
|
|
3452
3397
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3453
3398
|
...deserialized,
|
|
@@ -3456,7 +3401,7 @@ const de_AWSOrganizationsNotInUseExceptionRes = async (parsedOutput, context) =>
|
|
|
3456
3401
|
};
|
|
3457
3402
|
const de_ChildNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3458
3403
|
const body = parsedOutput.body;
|
|
3459
|
-
const deserialized =
|
|
3404
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3460
3405
|
const exception = new models_0_1.ChildNotFoundException({
|
|
3461
3406
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3462
3407
|
...deserialized,
|
|
@@ -3465,7 +3410,7 @@ const de_ChildNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3465
3410
|
};
|
|
3466
3411
|
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
3467
3412
|
const body = parsedOutput.body;
|
|
3468
|
-
const deserialized =
|
|
3413
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3469
3414
|
const exception = new models_0_1.ConcurrentModificationException({
|
|
3470
3415
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3471
3416
|
...deserialized,
|
|
@@ -3474,7 +3419,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
|
3474
3419
|
};
|
|
3475
3420
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3476
3421
|
const body = parsedOutput.body;
|
|
3477
|
-
const deserialized =
|
|
3422
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3478
3423
|
const exception = new models_0_1.ConflictException({
|
|
3479
3424
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3480
3425
|
...deserialized,
|
|
@@ -3483,7 +3428,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
3483
3428
|
};
|
|
3484
3429
|
const de_ConstraintViolationExceptionRes = async (parsedOutput, context) => {
|
|
3485
3430
|
const body = parsedOutput.body;
|
|
3486
|
-
const deserialized =
|
|
3431
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3487
3432
|
const exception = new models_0_1.ConstraintViolationException({
|
|
3488
3433
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3489
3434
|
...deserialized,
|
|
@@ -3492,7 +3437,7 @@ const de_ConstraintViolationExceptionRes = async (parsedOutput, context) => {
|
|
|
3492
3437
|
};
|
|
3493
3438
|
const de_CreateAccountStatusNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3494
3439
|
const body = parsedOutput.body;
|
|
3495
|
-
const deserialized =
|
|
3440
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3496
3441
|
const exception = new models_0_1.CreateAccountStatusNotFoundException({
|
|
3497
3442
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3498
3443
|
...deserialized,
|
|
@@ -3501,7 +3446,7 @@ const de_CreateAccountStatusNotFoundExceptionRes = async (parsedOutput, context)
|
|
|
3501
3446
|
};
|
|
3502
3447
|
const de_DestinationParentNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3503
3448
|
const body = parsedOutput.body;
|
|
3504
|
-
const deserialized =
|
|
3449
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3505
3450
|
const exception = new models_0_1.DestinationParentNotFoundException({
|
|
3506
3451
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3507
3452
|
...deserialized,
|
|
@@ -3510,7 +3455,7 @@ const de_DestinationParentNotFoundExceptionRes = async (parsedOutput, context) =
|
|
|
3510
3455
|
};
|
|
3511
3456
|
const de_DuplicateAccountExceptionRes = async (parsedOutput, context) => {
|
|
3512
3457
|
const body = parsedOutput.body;
|
|
3513
|
-
const deserialized =
|
|
3458
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3514
3459
|
const exception = new models_0_1.DuplicateAccountException({
|
|
3515
3460
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3516
3461
|
...deserialized,
|
|
@@ -3519,7 +3464,7 @@ const de_DuplicateAccountExceptionRes = async (parsedOutput, context) => {
|
|
|
3519
3464
|
};
|
|
3520
3465
|
const de_DuplicateHandshakeExceptionRes = async (parsedOutput, context) => {
|
|
3521
3466
|
const body = parsedOutput.body;
|
|
3522
|
-
const deserialized =
|
|
3467
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3523
3468
|
const exception = new models_0_1.DuplicateHandshakeException({
|
|
3524
3469
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3525
3470
|
...deserialized,
|
|
@@ -3528,7 +3473,7 @@ const de_DuplicateHandshakeExceptionRes = async (parsedOutput, context) => {
|
|
|
3528
3473
|
};
|
|
3529
3474
|
const de_DuplicateOrganizationalUnitExceptionRes = async (parsedOutput, context) => {
|
|
3530
3475
|
const body = parsedOutput.body;
|
|
3531
|
-
const deserialized =
|
|
3476
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3532
3477
|
const exception = new models_0_1.DuplicateOrganizationalUnitException({
|
|
3533
3478
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3534
3479
|
...deserialized,
|
|
@@ -3537,7 +3482,7 @@ const de_DuplicateOrganizationalUnitExceptionRes = async (parsedOutput, context)
|
|
|
3537
3482
|
};
|
|
3538
3483
|
const de_DuplicatePolicyAttachmentExceptionRes = async (parsedOutput, context) => {
|
|
3539
3484
|
const body = parsedOutput.body;
|
|
3540
|
-
const deserialized =
|
|
3485
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3541
3486
|
const exception = new models_0_1.DuplicatePolicyAttachmentException({
|
|
3542
3487
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3543
3488
|
...deserialized,
|
|
@@ -3546,7 +3491,7 @@ const de_DuplicatePolicyAttachmentExceptionRes = async (parsedOutput, context) =
|
|
|
3546
3491
|
};
|
|
3547
3492
|
const de_DuplicatePolicyExceptionRes = async (parsedOutput, context) => {
|
|
3548
3493
|
const body = parsedOutput.body;
|
|
3549
|
-
const deserialized =
|
|
3494
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3550
3495
|
const exception = new models_0_1.DuplicatePolicyException({
|
|
3551
3496
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3552
3497
|
...deserialized,
|
|
@@ -3555,7 +3500,7 @@ const de_DuplicatePolicyExceptionRes = async (parsedOutput, context) => {
|
|
|
3555
3500
|
};
|
|
3556
3501
|
const de_EffectivePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3557
3502
|
const body = parsedOutput.body;
|
|
3558
|
-
const deserialized =
|
|
3503
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3559
3504
|
const exception = new models_0_1.EffectivePolicyNotFoundException({
|
|
3560
3505
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3561
3506
|
...deserialized,
|
|
@@ -3564,7 +3509,7 @@ const de_EffectivePolicyNotFoundExceptionRes = async (parsedOutput, context) =>
|
|
|
3564
3509
|
};
|
|
3565
3510
|
const de_FinalizingOrganizationExceptionRes = async (parsedOutput, context) => {
|
|
3566
3511
|
const body = parsedOutput.body;
|
|
3567
|
-
const deserialized =
|
|
3512
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3568
3513
|
const exception = new models_0_1.FinalizingOrganizationException({
|
|
3569
3514
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3570
3515
|
...deserialized,
|
|
@@ -3573,7 +3518,7 @@ const de_FinalizingOrganizationExceptionRes = async (parsedOutput, context) => {
|
|
|
3573
3518
|
};
|
|
3574
3519
|
const de_HandshakeAlreadyInStateExceptionRes = async (parsedOutput, context) => {
|
|
3575
3520
|
const body = parsedOutput.body;
|
|
3576
|
-
const deserialized =
|
|
3521
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3577
3522
|
const exception = new models_0_1.HandshakeAlreadyInStateException({
|
|
3578
3523
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3579
3524
|
...deserialized,
|
|
@@ -3582,7 +3527,7 @@ const de_HandshakeAlreadyInStateExceptionRes = async (parsedOutput, context) =>
|
|
|
3582
3527
|
};
|
|
3583
3528
|
const de_HandshakeConstraintViolationExceptionRes = async (parsedOutput, context) => {
|
|
3584
3529
|
const body = parsedOutput.body;
|
|
3585
|
-
const deserialized =
|
|
3530
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3586
3531
|
const exception = new models_0_1.HandshakeConstraintViolationException({
|
|
3587
3532
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3588
3533
|
...deserialized,
|
|
@@ -3591,7 +3536,7 @@ const de_HandshakeConstraintViolationExceptionRes = async (parsedOutput, context
|
|
|
3591
3536
|
};
|
|
3592
3537
|
const de_HandshakeNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3593
3538
|
const body = parsedOutput.body;
|
|
3594
|
-
const deserialized =
|
|
3539
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3595
3540
|
const exception = new models_0_1.HandshakeNotFoundException({
|
|
3596
3541
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3597
3542
|
...deserialized,
|
|
@@ -3600,7 +3545,7 @@ const de_HandshakeNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3600
3545
|
};
|
|
3601
3546
|
const de_InvalidHandshakeTransitionExceptionRes = async (parsedOutput, context) => {
|
|
3602
3547
|
const body = parsedOutput.body;
|
|
3603
|
-
const deserialized =
|
|
3548
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3604
3549
|
const exception = new models_0_1.InvalidHandshakeTransitionException({
|
|
3605
3550
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3606
3551
|
...deserialized,
|
|
@@ -3609,7 +3554,7 @@ const de_InvalidHandshakeTransitionExceptionRes = async (parsedOutput, context)
|
|
|
3609
3554
|
};
|
|
3610
3555
|
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
3611
3556
|
const body = parsedOutput.body;
|
|
3612
|
-
const deserialized =
|
|
3557
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3613
3558
|
const exception = new models_0_1.InvalidInputException({
|
|
3614
3559
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3615
3560
|
...deserialized,
|
|
@@ -3618,7 +3563,7 @@ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
|
3618
3563
|
};
|
|
3619
3564
|
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
3620
3565
|
const body = parsedOutput.body;
|
|
3621
|
-
const deserialized =
|
|
3566
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3622
3567
|
const exception = new models_0_1.MalformedPolicyDocumentException({
|
|
3623
3568
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3624
3569
|
...deserialized,
|
|
@@ -3627,7 +3572,7 @@ const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) =>
|
|
|
3627
3572
|
};
|
|
3628
3573
|
const de_MasterCannotLeaveOrganizationExceptionRes = async (parsedOutput, context) => {
|
|
3629
3574
|
const body = parsedOutput.body;
|
|
3630
|
-
const deserialized =
|
|
3575
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3631
3576
|
const exception = new models_0_1.MasterCannotLeaveOrganizationException({
|
|
3632
3577
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3633
3578
|
...deserialized,
|
|
@@ -3636,7 +3581,7 @@ const de_MasterCannotLeaveOrganizationExceptionRes = async (parsedOutput, contex
|
|
|
3636
3581
|
};
|
|
3637
3582
|
const de_OrganizationalUnitNotEmptyExceptionRes = async (parsedOutput, context) => {
|
|
3638
3583
|
const body = parsedOutput.body;
|
|
3639
|
-
const deserialized =
|
|
3584
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3640
3585
|
const exception = new models_0_1.OrganizationalUnitNotEmptyException({
|
|
3641
3586
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3642
3587
|
...deserialized,
|
|
@@ -3645,7 +3590,7 @@ const de_OrganizationalUnitNotEmptyExceptionRes = async (parsedOutput, context)
|
|
|
3645
3590
|
};
|
|
3646
3591
|
const de_OrganizationalUnitNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3647
3592
|
const body = parsedOutput.body;
|
|
3648
|
-
const deserialized =
|
|
3593
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3649
3594
|
const exception = new models_0_1.OrganizationalUnitNotFoundException({
|
|
3650
3595
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3651
3596
|
...deserialized,
|
|
@@ -3654,7 +3599,7 @@ const de_OrganizationalUnitNotFoundExceptionRes = async (parsedOutput, context)
|
|
|
3654
3599
|
};
|
|
3655
3600
|
const de_OrganizationNotEmptyExceptionRes = async (parsedOutput, context) => {
|
|
3656
3601
|
const body = parsedOutput.body;
|
|
3657
|
-
const deserialized =
|
|
3602
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3658
3603
|
const exception = new models_0_1.OrganizationNotEmptyException({
|
|
3659
3604
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3660
3605
|
...deserialized,
|
|
@@ -3663,7 +3608,7 @@ const de_OrganizationNotEmptyExceptionRes = async (parsedOutput, context) => {
|
|
|
3663
3608
|
};
|
|
3664
3609
|
const de_ParentNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3665
3610
|
const body = parsedOutput.body;
|
|
3666
|
-
const deserialized =
|
|
3611
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3667
3612
|
const exception = new models_0_1.ParentNotFoundException({
|
|
3668
3613
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3669
3614
|
...deserialized,
|
|
@@ -3672,7 +3617,7 @@ const de_ParentNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3672
3617
|
};
|
|
3673
3618
|
const de_PolicyChangesInProgressExceptionRes = async (parsedOutput, context) => {
|
|
3674
3619
|
const body = parsedOutput.body;
|
|
3675
|
-
const deserialized =
|
|
3620
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3676
3621
|
const exception = new models_0_1.PolicyChangesInProgressException({
|
|
3677
3622
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3678
3623
|
...deserialized,
|
|
@@ -3681,7 +3626,7 @@ const de_PolicyChangesInProgressExceptionRes = async (parsedOutput, context) =>
|
|
|
3681
3626
|
};
|
|
3682
3627
|
const de_PolicyInUseExceptionRes = async (parsedOutput, context) => {
|
|
3683
3628
|
const body = parsedOutput.body;
|
|
3684
|
-
const deserialized =
|
|
3629
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3685
3630
|
const exception = new models_0_1.PolicyInUseException({
|
|
3686
3631
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3687
3632
|
...deserialized,
|
|
@@ -3690,7 +3635,7 @@ const de_PolicyInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
3690
3635
|
};
|
|
3691
3636
|
const de_PolicyNotAttachedExceptionRes = async (parsedOutput, context) => {
|
|
3692
3637
|
const body = parsedOutput.body;
|
|
3693
|
-
const deserialized =
|
|
3638
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3694
3639
|
const exception = new models_0_1.PolicyNotAttachedException({
|
|
3695
3640
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3696
3641
|
...deserialized,
|
|
@@ -3699,7 +3644,7 @@ const de_PolicyNotAttachedExceptionRes = async (parsedOutput, context) => {
|
|
|
3699
3644
|
};
|
|
3700
3645
|
const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3701
3646
|
const body = parsedOutput.body;
|
|
3702
|
-
const deserialized =
|
|
3647
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3703
3648
|
const exception = new models_0_1.PolicyNotFoundException({
|
|
3704
3649
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3705
3650
|
...deserialized,
|
|
@@ -3708,7 +3653,7 @@ const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3708
3653
|
};
|
|
3709
3654
|
const de_PolicyTypeAlreadyEnabledExceptionRes = async (parsedOutput, context) => {
|
|
3710
3655
|
const body = parsedOutput.body;
|
|
3711
|
-
const deserialized =
|
|
3656
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3712
3657
|
const exception = new models_0_1.PolicyTypeAlreadyEnabledException({
|
|
3713
3658
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3714
3659
|
...deserialized,
|
|
@@ -3717,7 +3662,7 @@ const de_PolicyTypeAlreadyEnabledExceptionRes = async (parsedOutput, context) =>
|
|
|
3717
3662
|
};
|
|
3718
3663
|
const de_PolicyTypeNotAvailableForOrganizationExceptionRes = async (parsedOutput, context) => {
|
|
3719
3664
|
const body = parsedOutput.body;
|
|
3720
|
-
const deserialized =
|
|
3665
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3721
3666
|
const exception = new models_0_1.PolicyTypeNotAvailableForOrganizationException({
|
|
3722
3667
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3723
3668
|
...deserialized,
|
|
@@ -3726,7 +3671,7 @@ const de_PolicyTypeNotAvailableForOrganizationExceptionRes = async (parsedOutput
|
|
|
3726
3671
|
};
|
|
3727
3672
|
const de_PolicyTypeNotEnabledExceptionRes = async (parsedOutput, context) => {
|
|
3728
3673
|
const body = parsedOutput.body;
|
|
3729
|
-
const deserialized =
|
|
3674
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3730
3675
|
const exception = new models_0_1.PolicyTypeNotEnabledException({
|
|
3731
3676
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3732
3677
|
...deserialized,
|
|
@@ -3735,7 +3680,7 @@ const de_PolicyTypeNotEnabledExceptionRes = async (parsedOutput, context) => {
|
|
|
3735
3680
|
};
|
|
3736
3681
|
const de_ResourcePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3737
3682
|
const body = parsedOutput.body;
|
|
3738
|
-
const deserialized =
|
|
3683
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3739
3684
|
const exception = new models_0_1.ResourcePolicyNotFoundException({
|
|
3740
3685
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3741
3686
|
...deserialized,
|
|
@@ -3744,7 +3689,7 @@ const de_ResourcePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3744
3689
|
};
|
|
3745
3690
|
const de_RootNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3746
3691
|
const body = parsedOutput.body;
|
|
3747
|
-
const deserialized =
|
|
3692
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3748
3693
|
const exception = new models_0_1.RootNotFoundException({
|
|
3749
3694
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3750
3695
|
...deserialized,
|
|
@@ -3753,7 +3698,7 @@ const de_RootNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3753
3698
|
};
|
|
3754
3699
|
const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
3755
3700
|
const body = parsedOutput.body;
|
|
3756
|
-
const deserialized =
|
|
3701
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3757
3702
|
const exception = new models_0_1.ServiceException({
|
|
3758
3703
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3759
3704
|
...deserialized,
|
|
@@ -3762,7 +3707,7 @@ const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
3762
3707
|
};
|
|
3763
3708
|
const de_SourceParentNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3764
3709
|
const body = parsedOutput.body;
|
|
3765
|
-
const deserialized =
|
|
3710
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3766
3711
|
const exception = new models_0_1.SourceParentNotFoundException({
|
|
3767
3712
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3768
3713
|
...deserialized,
|
|
@@ -3771,7 +3716,7 @@ const de_SourceParentNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3771
3716
|
};
|
|
3772
3717
|
const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3773
3718
|
const body = parsedOutput.body;
|
|
3774
|
-
const deserialized =
|
|
3719
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3775
3720
|
const exception = new models_0_1.TargetNotFoundException({
|
|
3776
3721
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3777
3722
|
...deserialized,
|
|
@@ -3780,7 +3725,7 @@ const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3780
3725
|
};
|
|
3781
3726
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
3782
3727
|
const body = parsedOutput.body;
|
|
3783
|
-
const deserialized =
|
|
3728
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3784
3729
|
const exception = new models_0_1.TooManyRequestsException({
|
|
3785
3730
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3786
3731
|
...deserialized,
|
|
@@ -3789,1182 +3734,245 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
3789
3734
|
};
|
|
3790
3735
|
const de_UnsupportedAPIEndpointExceptionRes = async (parsedOutput, context) => {
|
|
3791
3736
|
const body = parsedOutput.body;
|
|
3792
|
-
const deserialized =
|
|
3737
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3793
3738
|
const exception = new models_0_1.UnsupportedAPIEndpointException({
|
|
3794
3739
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3795
3740
|
...deserialized,
|
|
3796
3741
|
});
|
|
3797
3742
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3798
3743
|
};
|
|
3799
|
-
const
|
|
3800
|
-
return {
|
|
3801
|
-
|
|
3802
|
-
};
|
|
3803
|
-
};
|
|
3804
|
-
const se_AttachPolicyRequest = (input, context) => {
|
|
3805
|
-
return {
|
|
3806
|
-
...(input.PolicyId != null && { PolicyId: input.PolicyId }),
|
|
3807
|
-
...(input.TargetId != null && { TargetId: input.TargetId }),
|
|
3808
|
-
};
|
|
3809
|
-
};
|
|
3810
|
-
const se_CancelHandshakeRequest = (input, context) => {
|
|
3811
|
-
return {
|
|
3812
|
-
...(input.HandshakeId != null && { HandshakeId: input.HandshakeId }),
|
|
3813
|
-
};
|
|
3814
|
-
};
|
|
3815
|
-
const se_CloseAccountRequest = (input, context) => {
|
|
3816
|
-
return {
|
|
3817
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
3818
|
-
};
|
|
3819
|
-
};
|
|
3820
|
-
const se_CreateAccountRequest = (input, context) => {
|
|
3821
|
-
return {
|
|
3822
|
-
...(input.AccountName != null && { AccountName: input.AccountName }),
|
|
3823
|
-
...(input.Email != null && { Email: input.Email }),
|
|
3824
|
-
...(input.IamUserAccessToBilling != null && { IamUserAccessToBilling: input.IamUserAccessToBilling }),
|
|
3825
|
-
...(input.RoleName != null && { RoleName: input.RoleName }),
|
|
3826
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3827
|
-
};
|
|
3828
|
-
};
|
|
3829
|
-
const se_CreateAccountStates = (input, context) => {
|
|
3830
|
-
return input
|
|
3831
|
-
.filter((e) => e != null)
|
|
3832
|
-
.map((entry) => {
|
|
3833
|
-
return entry;
|
|
3834
|
-
});
|
|
3835
|
-
};
|
|
3836
|
-
const se_CreateGovCloudAccountRequest = (input, context) => {
|
|
3837
|
-
return {
|
|
3838
|
-
...(input.AccountName != null && { AccountName: input.AccountName }),
|
|
3839
|
-
...(input.Email != null && { Email: input.Email }),
|
|
3840
|
-
...(input.IamUserAccessToBilling != null && { IamUserAccessToBilling: input.IamUserAccessToBilling }),
|
|
3841
|
-
...(input.RoleName != null && { RoleName: input.RoleName }),
|
|
3842
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3843
|
-
};
|
|
3844
|
-
};
|
|
3845
|
-
const se_CreateOrganizationalUnitRequest = (input, context) => {
|
|
3846
|
-
return {
|
|
3847
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3848
|
-
...(input.ParentId != null && { ParentId: input.ParentId }),
|
|
3849
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3850
|
-
};
|
|
3851
|
-
};
|
|
3852
|
-
const se_CreateOrganizationRequest = (input, context) => {
|
|
3853
|
-
return {
|
|
3854
|
-
...(input.FeatureSet != null && { FeatureSet: input.FeatureSet }),
|
|
3855
|
-
};
|
|
3856
|
-
};
|
|
3857
|
-
const se_CreatePolicyRequest = (input, context) => {
|
|
3858
|
-
return {
|
|
3859
|
-
...(input.Content != null && { Content: input.Content }),
|
|
3860
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3861
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3862
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3863
|
-
...(input.Type != null && { Type: input.Type }),
|
|
3864
|
-
};
|
|
3865
|
-
};
|
|
3866
|
-
const se_DeclineHandshakeRequest = (input, context) => {
|
|
3867
|
-
return {
|
|
3868
|
-
...(input.HandshakeId != null && { HandshakeId: input.HandshakeId }),
|
|
3869
|
-
};
|
|
3870
|
-
};
|
|
3871
|
-
const se_DeleteOrganizationalUnitRequest = (input, context) => {
|
|
3872
|
-
return {
|
|
3873
|
-
...(input.OrganizationalUnitId != null && { OrganizationalUnitId: input.OrganizationalUnitId }),
|
|
3874
|
-
};
|
|
3875
|
-
};
|
|
3876
|
-
const se_DeletePolicyRequest = (input, context) => {
|
|
3877
|
-
return {
|
|
3878
|
-
...(input.PolicyId != null && { PolicyId: input.PolicyId }),
|
|
3879
|
-
};
|
|
3880
|
-
};
|
|
3881
|
-
const se_DeregisterDelegatedAdministratorRequest = (input, context) => {
|
|
3882
|
-
return {
|
|
3883
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
3884
|
-
...(input.ServicePrincipal != null && { ServicePrincipal: input.ServicePrincipal }),
|
|
3885
|
-
};
|
|
3886
|
-
};
|
|
3887
|
-
const se_DescribeAccountRequest = (input, context) => {
|
|
3888
|
-
return {
|
|
3889
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
3890
|
-
};
|
|
3891
|
-
};
|
|
3892
|
-
const se_DescribeCreateAccountStatusRequest = (input, context) => {
|
|
3893
|
-
return {
|
|
3894
|
-
...(input.CreateAccountRequestId != null && { CreateAccountRequestId: input.CreateAccountRequestId }),
|
|
3895
|
-
};
|
|
3896
|
-
};
|
|
3897
|
-
const se_DescribeEffectivePolicyRequest = (input, context) => {
|
|
3898
|
-
return {
|
|
3899
|
-
...(input.PolicyType != null && { PolicyType: input.PolicyType }),
|
|
3900
|
-
...(input.TargetId != null && { TargetId: input.TargetId }),
|
|
3901
|
-
};
|
|
3902
|
-
};
|
|
3903
|
-
const se_DescribeHandshakeRequest = (input, context) => {
|
|
3904
|
-
return {
|
|
3905
|
-
...(input.HandshakeId != null && { HandshakeId: input.HandshakeId }),
|
|
3906
|
-
};
|
|
3907
|
-
};
|
|
3908
|
-
const se_DescribeOrganizationalUnitRequest = (input, context) => {
|
|
3909
|
-
return {
|
|
3910
|
-
...(input.OrganizationalUnitId != null && { OrganizationalUnitId: input.OrganizationalUnitId }),
|
|
3911
|
-
};
|
|
3912
|
-
};
|
|
3913
|
-
const se_DescribePolicyRequest = (input, context) => {
|
|
3914
|
-
return {
|
|
3915
|
-
...(input.PolicyId != null && { PolicyId: input.PolicyId }),
|
|
3916
|
-
};
|
|
3917
|
-
};
|
|
3918
|
-
const se_DetachPolicyRequest = (input, context) => {
|
|
3919
|
-
return {
|
|
3920
|
-
...(input.PolicyId != null && { PolicyId: input.PolicyId }),
|
|
3921
|
-
...(input.TargetId != null && { TargetId: input.TargetId }),
|
|
3922
|
-
};
|
|
3923
|
-
};
|
|
3924
|
-
const se_DisableAWSServiceAccessRequest = (input, context) => {
|
|
3925
|
-
return {
|
|
3926
|
-
...(input.ServicePrincipal != null && { ServicePrincipal: input.ServicePrincipal }),
|
|
3927
|
-
};
|
|
3928
|
-
};
|
|
3929
|
-
const se_DisablePolicyTypeRequest = (input, context) => {
|
|
3930
|
-
return {
|
|
3931
|
-
...(input.PolicyType != null && { PolicyType: input.PolicyType }),
|
|
3932
|
-
...(input.RootId != null && { RootId: input.RootId }),
|
|
3933
|
-
};
|
|
3934
|
-
};
|
|
3935
|
-
const se_EnableAllFeaturesRequest = (input, context) => {
|
|
3936
|
-
return {};
|
|
3937
|
-
};
|
|
3938
|
-
const se_EnableAWSServiceAccessRequest = (input, context) => {
|
|
3939
|
-
return {
|
|
3940
|
-
...(input.ServicePrincipal != null && { ServicePrincipal: input.ServicePrincipal }),
|
|
3941
|
-
};
|
|
3942
|
-
};
|
|
3943
|
-
const se_EnablePolicyTypeRequest = (input, context) => {
|
|
3944
|
-
return {
|
|
3945
|
-
...(input.PolicyType != null && { PolicyType: input.PolicyType }),
|
|
3946
|
-
...(input.RootId != null && { RootId: input.RootId }),
|
|
3947
|
-
};
|
|
3948
|
-
};
|
|
3949
|
-
const se_HandshakeFilter = (input, context) => {
|
|
3950
|
-
return {
|
|
3951
|
-
...(input.ActionType != null && { ActionType: input.ActionType }),
|
|
3952
|
-
...(input.ParentHandshakeId != null && { ParentHandshakeId: input.ParentHandshakeId }),
|
|
3953
|
-
};
|
|
3954
|
-
};
|
|
3955
|
-
const se_HandshakeParty = (input, context) => {
|
|
3956
|
-
return {
|
|
3957
|
-
...(input.Id != null && { Id: input.Id }),
|
|
3958
|
-
...(input.Type != null && { Type: input.Type }),
|
|
3959
|
-
};
|
|
3960
|
-
};
|
|
3961
|
-
const se_InviteAccountToOrganizationRequest = (input, context) => {
|
|
3962
|
-
return {
|
|
3963
|
-
...(input.Notes != null && { Notes: input.Notes }),
|
|
3964
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
3965
|
-
...(input.Target != null && { Target: se_HandshakeParty(input.Target, context) }),
|
|
3966
|
-
};
|
|
3967
|
-
};
|
|
3968
|
-
const se_ListAccountsForParentRequest = (input, context) => {
|
|
3969
|
-
return {
|
|
3970
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3971
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3972
|
-
...(input.ParentId != null && { ParentId: input.ParentId }),
|
|
3973
|
-
};
|
|
3974
|
-
};
|
|
3975
|
-
const se_ListAccountsRequest = (input, context) => {
|
|
3976
|
-
return {
|
|
3977
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3978
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3979
|
-
};
|
|
3980
|
-
};
|
|
3981
|
-
const se_ListAWSServiceAccessForOrganizationRequest = (input, context) => {
|
|
3982
|
-
return {
|
|
3983
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3984
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3985
|
-
};
|
|
3986
|
-
};
|
|
3987
|
-
const se_ListChildrenRequest = (input, context) => {
|
|
3988
|
-
return {
|
|
3989
|
-
...(input.ChildType != null && { ChildType: input.ChildType }),
|
|
3990
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3991
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3992
|
-
...(input.ParentId != null && { ParentId: input.ParentId }),
|
|
3993
|
-
};
|
|
3994
|
-
};
|
|
3995
|
-
const se_ListCreateAccountStatusRequest = (input, context) => {
|
|
3996
|
-
return {
|
|
3997
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3998
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3999
|
-
...(input.States != null && { States: se_CreateAccountStates(input.States, context) }),
|
|
4000
|
-
};
|
|
4001
|
-
};
|
|
4002
|
-
const se_ListDelegatedAdministratorsRequest = (input, context) => {
|
|
4003
|
-
return {
|
|
4004
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4005
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4006
|
-
...(input.ServicePrincipal != null && { ServicePrincipal: input.ServicePrincipal }),
|
|
4007
|
-
};
|
|
4008
|
-
};
|
|
4009
|
-
const se_ListDelegatedServicesForAccountRequest = (input, context) => {
|
|
4010
|
-
return {
|
|
4011
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
4012
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4013
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4014
|
-
};
|
|
4015
|
-
};
|
|
4016
|
-
const se_ListHandshakesForAccountRequest = (input, context) => {
|
|
4017
|
-
return {
|
|
4018
|
-
...(input.Filter != null && { Filter: se_HandshakeFilter(input.Filter, context) }),
|
|
4019
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4020
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4021
|
-
};
|
|
4022
|
-
};
|
|
4023
|
-
const se_ListHandshakesForOrganizationRequest = (input, context) => {
|
|
4024
|
-
return {
|
|
4025
|
-
...(input.Filter != null && { Filter: se_HandshakeFilter(input.Filter, context) }),
|
|
4026
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4027
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4028
|
-
};
|
|
4029
|
-
};
|
|
4030
|
-
const se_ListOrganizationalUnitsForParentRequest = (input, context) => {
|
|
4031
|
-
return {
|
|
4032
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4033
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4034
|
-
...(input.ParentId != null && { ParentId: input.ParentId }),
|
|
4035
|
-
};
|
|
4036
|
-
};
|
|
4037
|
-
const se_ListParentsRequest = (input, context) => {
|
|
4038
|
-
return {
|
|
4039
|
-
...(input.ChildId != null && { ChildId: input.ChildId }),
|
|
4040
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4041
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4042
|
-
};
|
|
4043
|
-
};
|
|
4044
|
-
const se_ListPoliciesForTargetRequest = (input, context) => {
|
|
4045
|
-
return {
|
|
4046
|
-
...(input.Filter != null && { Filter: input.Filter }),
|
|
4047
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4048
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4049
|
-
...(input.TargetId != null && { TargetId: input.TargetId }),
|
|
4050
|
-
};
|
|
4051
|
-
};
|
|
4052
|
-
const se_ListPoliciesRequest = (input, context) => {
|
|
4053
|
-
return {
|
|
4054
|
-
...(input.Filter != null && { Filter: input.Filter }),
|
|
4055
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4056
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4057
|
-
};
|
|
4058
|
-
};
|
|
4059
|
-
const se_ListRootsRequest = (input, context) => {
|
|
4060
|
-
return {
|
|
4061
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4062
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4063
|
-
};
|
|
4064
|
-
};
|
|
4065
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
4066
|
-
return {
|
|
4067
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4068
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4069
|
-
};
|
|
4070
|
-
};
|
|
4071
|
-
const se_ListTargetsForPolicyRequest = (input, context) => {
|
|
4072
|
-
return {
|
|
4073
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4074
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4075
|
-
...(input.PolicyId != null && { PolicyId: input.PolicyId }),
|
|
4076
|
-
};
|
|
4077
|
-
};
|
|
4078
|
-
const se_MoveAccountRequest = (input, context) => {
|
|
4079
|
-
return {
|
|
4080
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
4081
|
-
...(input.DestinationParentId != null && { DestinationParentId: input.DestinationParentId }),
|
|
4082
|
-
...(input.SourceParentId != null && { SourceParentId: input.SourceParentId }),
|
|
4083
|
-
};
|
|
4084
|
-
};
|
|
4085
|
-
const se_PutResourcePolicyRequest = (input, context) => {
|
|
4086
|
-
return {
|
|
4087
|
-
...(input.Content != null && { Content: input.Content }),
|
|
4088
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
4089
|
-
};
|
|
4090
|
-
};
|
|
4091
|
-
const se_RegisterDelegatedAdministratorRequest = (input, context) => {
|
|
4092
|
-
return {
|
|
4093
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
4094
|
-
...(input.ServicePrincipal != null && { ServicePrincipal: input.ServicePrincipal }),
|
|
4095
|
-
};
|
|
4096
|
-
};
|
|
4097
|
-
const se_RemoveAccountFromOrganizationRequest = (input, context) => {
|
|
4098
|
-
return {
|
|
4099
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
4100
|
-
};
|
|
4101
|
-
};
|
|
4102
|
-
const se_Tag = (input, context) => {
|
|
4103
|
-
return {
|
|
4104
|
-
...(input.Key != null && { Key: input.Key }),
|
|
4105
|
-
...(input.Value != null && { Value: input.Value }),
|
|
4106
|
-
};
|
|
4107
|
-
};
|
|
4108
|
-
const se_TagKeys = (input, context) => {
|
|
4109
|
-
return input
|
|
4110
|
-
.filter((e) => e != null)
|
|
4111
|
-
.map((entry) => {
|
|
4112
|
-
return entry;
|
|
4113
|
-
});
|
|
4114
|
-
};
|
|
4115
|
-
const se_TagResourceRequest = (input, context) => {
|
|
4116
|
-
return {
|
|
4117
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4118
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
4119
|
-
};
|
|
4120
|
-
};
|
|
4121
|
-
const se_Tags = (input, context) => {
|
|
4122
|
-
return input
|
|
4123
|
-
.filter((e) => e != null)
|
|
4124
|
-
.map((entry) => {
|
|
4125
|
-
return se_Tag(entry, context);
|
|
4126
|
-
});
|
|
4127
|
-
};
|
|
4128
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
4129
|
-
return {
|
|
4130
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
4131
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
|
|
4132
|
-
};
|
|
4133
|
-
};
|
|
4134
|
-
const se_UpdateOrganizationalUnitRequest = (input, context) => {
|
|
4135
|
-
return {
|
|
4136
|
-
...(input.Name != null && { Name: input.Name }),
|
|
4137
|
-
...(input.OrganizationalUnitId != null && { OrganizationalUnitId: input.OrganizationalUnitId }),
|
|
4138
|
-
};
|
|
4139
|
-
};
|
|
4140
|
-
const se_UpdatePolicyRequest = (input, context) => {
|
|
4141
|
-
return {
|
|
4142
|
-
...(input.Content != null && { Content: input.Content }),
|
|
4143
|
-
...(input.Description != null && { Description: input.Description }),
|
|
4144
|
-
...(input.Name != null && { Name: input.Name }),
|
|
4145
|
-
...(input.PolicyId != null && { PolicyId: input.PolicyId }),
|
|
4146
|
-
};
|
|
4147
|
-
};
|
|
4148
|
-
const de_AcceptHandshakeResponse = (output, context) => {
|
|
4149
|
-
return {
|
|
4150
|
-
Handshake: output.Handshake != null ? de_Handshake(output.Handshake, context) : undefined,
|
|
4151
|
-
};
|
|
4152
|
-
};
|
|
4153
|
-
const de_AccessDeniedException = (output, context) => {
|
|
4154
|
-
return {
|
|
4155
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4156
|
-
};
|
|
4157
|
-
};
|
|
4158
|
-
const de_AccessDeniedForDependencyException = (output, context) => {
|
|
4159
|
-
return {
|
|
4160
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4161
|
-
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
4162
|
-
};
|
|
4163
|
-
};
|
|
4164
|
-
const de_Account = (output, context) => {
|
|
4165
|
-
return {
|
|
4166
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4167
|
-
Email: (0, smithy_client_1.expectString)(output.Email),
|
|
4168
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4169
|
-
JoinedMethod: (0, smithy_client_1.expectString)(output.JoinedMethod),
|
|
4170
|
-
JoinedTimestamp: output.JoinedTimestamp != null
|
|
4171
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.JoinedTimestamp)))
|
|
4172
|
-
: undefined,
|
|
4173
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4174
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4175
|
-
};
|
|
4176
|
-
};
|
|
4177
|
-
const de_AccountAlreadyClosedException = (output, context) => {
|
|
4178
|
-
return {
|
|
4179
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4180
|
-
};
|
|
4181
|
-
};
|
|
4182
|
-
const de_AccountAlreadyRegisteredException = (output, context) => {
|
|
4183
|
-
return {
|
|
4184
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4185
|
-
};
|
|
4186
|
-
};
|
|
4187
|
-
const de_AccountNotFoundException = (output, context) => {
|
|
4188
|
-
return {
|
|
4189
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4190
|
-
};
|
|
4191
|
-
};
|
|
4192
|
-
const de_AccountNotRegisteredException = (output, context) => {
|
|
4193
|
-
return {
|
|
4194
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4195
|
-
};
|
|
4196
|
-
};
|
|
4197
|
-
const de_AccountOwnerNotVerifiedException = (output, context) => {
|
|
4198
|
-
return {
|
|
4199
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4200
|
-
};
|
|
4201
|
-
};
|
|
4202
|
-
const de_Accounts = (output, context) => {
|
|
4203
|
-
const retVal = (output || [])
|
|
4204
|
-
.filter((e) => e != null)
|
|
4205
|
-
.map((entry) => {
|
|
4206
|
-
if (entry === null) {
|
|
4207
|
-
return null;
|
|
4208
|
-
}
|
|
4209
|
-
return de_Account(entry, context);
|
|
4210
|
-
});
|
|
4211
|
-
return retVal;
|
|
4212
|
-
};
|
|
4213
|
-
const de_AlreadyInOrganizationException = (output, context) => {
|
|
4214
|
-
return {
|
|
4215
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4216
|
-
};
|
|
4217
|
-
};
|
|
4218
|
-
const de_AWSOrganizationsNotInUseException = (output, context) => {
|
|
4219
|
-
return {
|
|
4220
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4221
|
-
};
|
|
4222
|
-
};
|
|
4223
|
-
const de_CancelHandshakeResponse = (output, context) => {
|
|
4224
|
-
return {
|
|
4225
|
-
Handshake: output.Handshake != null ? de_Handshake(output.Handshake, context) : undefined,
|
|
4226
|
-
};
|
|
4227
|
-
};
|
|
4228
|
-
const de_Child = (output, context) => {
|
|
4229
|
-
return {
|
|
4230
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4231
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4232
|
-
};
|
|
4233
|
-
};
|
|
4234
|
-
const de_ChildNotFoundException = (output, context) => {
|
|
4235
|
-
return {
|
|
4236
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4237
|
-
};
|
|
4238
|
-
};
|
|
4239
|
-
const de_Children = (output, context) => {
|
|
4240
|
-
const retVal = (output || [])
|
|
4241
|
-
.filter((e) => e != null)
|
|
4242
|
-
.map((entry) => {
|
|
4243
|
-
if (entry === null) {
|
|
4244
|
-
return null;
|
|
4245
|
-
}
|
|
4246
|
-
return de_Child(entry, context);
|
|
4247
|
-
});
|
|
4248
|
-
return retVal;
|
|
4249
|
-
};
|
|
4250
|
-
const de_ConcurrentModificationException = (output, context) => {
|
|
4251
|
-
return {
|
|
4252
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4253
|
-
};
|
|
4254
|
-
};
|
|
4255
|
-
const de_ConflictException = (output, context) => {
|
|
4256
|
-
return {
|
|
4257
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4258
|
-
};
|
|
4259
|
-
};
|
|
4260
|
-
const de_ConstraintViolationException = (output, context) => {
|
|
4261
|
-
return {
|
|
4262
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4263
|
-
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
4264
|
-
};
|
|
4265
|
-
};
|
|
4266
|
-
const de_CreateAccountResponse = (output, context) => {
|
|
4267
|
-
return {
|
|
4268
|
-
CreateAccountStatus: output.CreateAccountStatus != null ? de_CreateAccountStatus(output.CreateAccountStatus, context) : undefined,
|
|
4269
|
-
};
|
|
4270
|
-
};
|
|
4271
|
-
const de_CreateAccountStatus = (output, context) => {
|
|
4272
|
-
return {
|
|
4273
|
-
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
4274
|
-
AccountName: (0, smithy_client_1.expectString)(output.AccountName),
|
|
4275
|
-
CompletedTimestamp: output.CompletedTimestamp != null
|
|
4276
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletedTimestamp)))
|
|
4277
|
-
: undefined,
|
|
4278
|
-
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
4279
|
-
GovCloudAccountId: (0, smithy_client_1.expectString)(output.GovCloudAccountId),
|
|
4280
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4281
|
-
RequestedTimestamp: output.RequestedTimestamp != null
|
|
4282
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RequestedTimestamp)))
|
|
4283
|
-
: undefined,
|
|
4284
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
4285
|
-
};
|
|
4286
|
-
};
|
|
4287
|
-
const de_CreateAccountStatuses = (output, context) => {
|
|
4288
|
-
const retVal = (output || [])
|
|
4289
|
-
.filter((e) => e != null)
|
|
4290
|
-
.map((entry) => {
|
|
4291
|
-
if (entry === null) {
|
|
4292
|
-
return null;
|
|
4293
|
-
}
|
|
4294
|
-
return de_CreateAccountStatus(entry, context);
|
|
4295
|
-
});
|
|
4296
|
-
return retVal;
|
|
4297
|
-
};
|
|
4298
|
-
const de_CreateAccountStatusNotFoundException = (output, context) => {
|
|
4299
|
-
return {
|
|
4300
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4301
|
-
};
|
|
4302
|
-
};
|
|
4303
|
-
const de_CreateGovCloudAccountResponse = (output, context) => {
|
|
4304
|
-
return {
|
|
4305
|
-
CreateAccountStatus: output.CreateAccountStatus != null ? de_CreateAccountStatus(output.CreateAccountStatus, context) : undefined,
|
|
4306
|
-
};
|
|
4307
|
-
};
|
|
4308
|
-
const de_CreateOrganizationalUnitResponse = (output, context) => {
|
|
4309
|
-
return {
|
|
4310
|
-
OrganizationalUnit: output.OrganizationalUnit != null ? de_OrganizationalUnit(output.OrganizationalUnit, context) : undefined,
|
|
4311
|
-
};
|
|
4312
|
-
};
|
|
4313
|
-
const de_CreateOrganizationResponse = (output, context) => {
|
|
4314
|
-
return {
|
|
4315
|
-
Organization: output.Organization != null ? de_Organization(output.Organization, context) : undefined,
|
|
4316
|
-
};
|
|
4317
|
-
};
|
|
4318
|
-
const de_CreatePolicyResponse = (output, context) => {
|
|
4319
|
-
return {
|
|
4320
|
-
Policy: output.Policy != null ? de_Policy(output.Policy, context) : undefined,
|
|
4321
|
-
};
|
|
4322
|
-
};
|
|
4323
|
-
const de_DeclineHandshakeResponse = (output, context) => {
|
|
4324
|
-
return {
|
|
4325
|
-
Handshake: output.Handshake != null ? de_Handshake(output.Handshake, context) : undefined,
|
|
4326
|
-
};
|
|
4327
|
-
};
|
|
4328
|
-
const de_DelegatedAdministrator = (output, context) => {
|
|
4329
|
-
return {
|
|
4330
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4331
|
-
DelegationEnabledDate: output.DelegationEnabledDate != null
|
|
4332
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DelegationEnabledDate)))
|
|
4333
|
-
: undefined,
|
|
4334
|
-
Email: (0, smithy_client_1.expectString)(output.Email),
|
|
4335
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4336
|
-
JoinedMethod: (0, smithy_client_1.expectString)(output.JoinedMethod),
|
|
4337
|
-
JoinedTimestamp: output.JoinedTimestamp != null
|
|
4338
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.JoinedTimestamp)))
|
|
4339
|
-
: undefined,
|
|
4340
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4341
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4342
|
-
};
|
|
4343
|
-
};
|
|
4344
|
-
const de_DelegatedAdministrators = (output, context) => {
|
|
4345
|
-
const retVal = (output || [])
|
|
4346
|
-
.filter((e) => e != null)
|
|
4347
|
-
.map((entry) => {
|
|
4348
|
-
if (entry === null) {
|
|
4349
|
-
return null;
|
|
4350
|
-
}
|
|
4351
|
-
return de_DelegatedAdministrator(entry, context);
|
|
4352
|
-
});
|
|
4353
|
-
return retVal;
|
|
4354
|
-
};
|
|
4355
|
-
const de_DelegatedService = (output, context) => {
|
|
4356
|
-
return {
|
|
4357
|
-
DelegationEnabledDate: output.DelegationEnabledDate != null
|
|
4358
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DelegationEnabledDate)))
|
|
4359
|
-
: undefined,
|
|
4360
|
-
ServicePrincipal: (0, smithy_client_1.expectString)(output.ServicePrincipal),
|
|
4361
|
-
};
|
|
4362
|
-
};
|
|
4363
|
-
const de_DelegatedServices = (output, context) => {
|
|
4364
|
-
const retVal = (output || [])
|
|
4365
|
-
.filter((e) => e != null)
|
|
4366
|
-
.map((entry) => {
|
|
4367
|
-
if (entry === null) {
|
|
4368
|
-
return null;
|
|
4369
|
-
}
|
|
4370
|
-
return de_DelegatedService(entry, context);
|
|
4371
|
-
});
|
|
4372
|
-
return retVal;
|
|
4373
|
-
};
|
|
4374
|
-
const de_DescribeAccountResponse = (output, context) => {
|
|
4375
|
-
return {
|
|
4376
|
-
Account: output.Account != null ? de_Account(output.Account, context) : undefined,
|
|
4377
|
-
};
|
|
4378
|
-
};
|
|
4379
|
-
const de_DescribeCreateAccountStatusResponse = (output, context) => {
|
|
4380
|
-
return {
|
|
4381
|
-
CreateAccountStatus: output.CreateAccountStatus != null ? de_CreateAccountStatus(output.CreateAccountStatus, context) : undefined,
|
|
4382
|
-
};
|
|
4383
|
-
};
|
|
4384
|
-
const de_DescribeEffectivePolicyResponse = (output, context) => {
|
|
4385
|
-
return {
|
|
4386
|
-
EffectivePolicy: output.EffectivePolicy != null ? de_EffectivePolicy(output.EffectivePolicy, context) : undefined,
|
|
4387
|
-
};
|
|
4388
|
-
};
|
|
4389
|
-
const de_DescribeHandshakeResponse = (output, context) => {
|
|
4390
|
-
return {
|
|
4391
|
-
Handshake: output.Handshake != null ? de_Handshake(output.Handshake, context) : undefined,
|
|
4392
|
-
};
|
|
4393
|
-
};
|
|
4394
|
-
const de_DescribeOrganizationalUnitResponse = (output, context) => {
|
|
4395
|
-
return {
|
|
4396
|
-
OrganizationalUnit: output.OrganizationalUnit != null ? de_OrganizationalUnit(output.OrganizationalUnit, context) : undefined,
|
|
4397
|
-
};
|
|
4398
|
-
};
|
|
4399
|
-
const de_DescribeOrganizationResponse = (output, context) => {
|
|
4400
|
-
return {
|
|
4401
|
-
Organization: output.Organization != null ? de_Organization(output.Organization, context) : undefined,
|
|
4402
|
-
};
|
|
4403
|
-
};
|
|
4404
|
-
const de_DescribePolicyResponse = (output, context) => {
|
|
4405
|
-
return {
|
|
4406
|
-
Policy: output.Policy != null ? de_Policy(output.Policy, context) : undefined,
|
|
4407
|
-
};
|
|
4408
|
-
};
|
|
4409
|
-
const de_DescribeResourcePolicyResponse = (output, context) => {
|
|
4410
|
-
return {
|
|
4411
|
-
ResourcePolicy: output.ResourcePolicy != null ? de_ResourcePolicy(output.ResourcePolicy, context) : undefined,
|
|
4412
|
-
};
|
|
4413
|
-
};
|
|
4414
|
-
const de_DestinationParentNotFoundException = (output, context) => {
|
|
4415
|
-
return {
|
|
4416
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4417
|
-
};
|
|
4418
|
-
};
|
|
4419
|
-
const de_DisablePolicyTypeResponse = (output, context) => {
|
|
4420
|
-
return {
|
|
4421
|
-
Root: output.Root != null ? de_Root(output.Root, context) : undefined,
|
|
4422
|
-
};
|
|
4423
|
-
};
|
|
4424
|
-
const de_DuplicateAccountException = (output, context) => {
|
|
4425
|
-
return {
|
|
4426
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4427
|
-
};
|
|
4428
|
-
};
|
|
4429
|
-
const de_DuplicateHandshakeException = (output, context) => {
|
|
4430
|
-
return {
|
|
4431
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4432
|
-
};
|
|
4433
|
-
};
|
|
4434
|
-
const de_DuplicateOrganizationalUnitException = (output, context) => {
|
|
4435
|
-
return {
|
|
4436
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4437
|
-
};
|
|
4438
|
-
};
|
|
4439
|
-
const de_DuplicatePolicyAttachmentException = (output, context) => {
|
|
4440
|
-
return {
|
|
4441
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4442
|
-
};
|
|
4443
|
-
};
|
|
4444
|
-
const de_DuplicatePolicyException = (output, context) => {
|
|
4445
|
-
return {
|
|
4446
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4447
|
-
};
|
|
4448
|
-
};
|
|
4449
|
-
const de_EffectivePolicy = (output, context) => {
|
|
4450
|
-
return {
|
|
4451
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
4452
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
4453
|
-
: undefined,
|
|
4454
|
-
PolicyContent: (0, smithy_client_1.expectString)(output.PolicyContent),
|
|
4455
|
-
PolicyType: (0, smithy_client_1.expectString)(output.PolicyType),
|
|
4456
|
-
TargetId: (0, smithy_client_1.expectString)(output.TargetId),
|
|
4457
|
-
};
|
|
4458
|
-
};
|
|
4459
|
-
const de_EffectivePolicyNotFoundException = (output, context) => {
|
|
4460
|
-
return {
|
|
4461
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4462
|
-
};
|
|
4463
|
-
};
|
|
4464
|
-
const de_EnableAllFeaturesResponse = (output, context) => {
|
|
4465
|
-
return {
|
|
4466
|
-
Handshake: output.Handshake != null ? de_Handshake(output.Handshake, context) : undefined,
|
|
4467
|
-
};
|
|
4468
|
-
};
|
|
4469
|
-
const de_EnabledServicePrincipal = (output, context) => {
|
|
4470
|
-
return {
|
|
4471
|
-
DateEnabled: output.DateEnabled != null
|
|
4472
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DateEnabled)))
|
|
4473
|
-
: undefined,
|
|
4474
|
-
ServicePrincipal: (0, smithy_client_1.expectString)(output.ServicePrincipal),
|
|
4475
|
-
};
|
|
4476
|
-
};
|
|
4477
|
-
const de_EnabledServicePrincipals = (output, context) => {
|
|
4478
|
-
const retVal = (output || [])
|
|
4479
|
-
.filter((e) => e != null)
|
|
4480
|
-
.map((entry) => {
|
|
4481
|
-
if (entry === null) {
|
|
4482
|
-
return null;
|
|
4483
|
-
}
|
|
4484
|
-
return de_EnabledServicePrincipal(entry, context);
|
|
4485
|
-
});
|
|
4486
|
-
return retVal;
|
|
4487
|
-
};
|
|
4488
|
-
const de_EnablePolicyTypeResponse = (output, context) => {
|
|
4489
|
-
return {
|
|
4490
|
-
Root: output.Root != null ? de_Root(output.Root, context) : undefined,
|
|
4491
|
-
};
|
|
4492
|
-
};
|
|
4493
|
-
const de_FinalizingOrganizationException = (output, context) => {
|
|
4494
|
-
return {
|
|
4495
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4496
|
-
};
|
|
4497
|
-
};
|
|
4498
|
-
const de_Handshake = (output, context) => {
|
|
4499
|
-
return {
|
|
4500
|
-
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
4501
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4502
|
-
ExpirationTimestamp: output.ExpirationTimestamp != null
|
|
4503
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpirationTimestamp)))
|
|
4504
|
-
: undefined,
|
|
4505
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4506
|
-
Parties: output.Parties != null ? de_HandshakeParties(output.Parties, context) : undefined,
|
|
4507
|
-
RequestedTimestamp: output.RequestedTimestamp != null
|
|
4508
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RequestedTimestamp)))
|
|
4509
|
-
: undefined,
|
|
4510
|
-
Resources: output.Resources != null ? de_HandshakeResources(output.Resources, context) : undefined,
|
|
4511
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
4512
|
-
};
|
|
4513
|
-
};
|
|
4514
|
-
const de_HandshakeAlreadyInStateException = (output, context) => {
|
|
4515
|
-
return {
|
|
4516
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4517
|
-
};
|
|
4518
|
-
};
|
|
4519
|
-
const de_HandshakeConstraintViolationException = (output, context) => {
|
|
4520
|
-
return {
|
|
4521
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4522
|
-
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
4523
|
-
};
|
|
3744
|
+
const de_AcceptHandshakeResponse = (output, context) => {
|
|
3745
|
+
return (0, smithy_client_1.take)(output, {
|
|
3746
|
+
Handshake: (_) => de_Handshake(_, context),
|
|
3747
|
+
});
|
|
4524
3748
|
};
|
|
4525
|
-
const
|
|
4526
|
-
return {
|
|
4527
|
-
|
|
4528
|
-
|
|
3749
|
+
const de_Account = (output, context) => {
|
|
3750
|
+
return (0, smithy_client_1.take)(output, {
|
|
3751
|
+
Arn: smithy_client_1.expectString,
|
|
3752
|
+
Email: smithy_client_1.expectString,
|
|
3753
|
+
Id: smithy_client_1.expectString,
|
|
3754
|
+
JoinedMethod: smithy_client_1.expectString,
|
|
3755
|
+
JoinedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3756
|
+
Name: smithy_client_1.expectString,
|
|
3757
|
+
Status: smithy_client_1.expectString,
|
|
3758
|
+
});
|
|
4529
3759
|
};
|
|
4530
|
-
const
|
|
3760
|
+
const de_Accounts = (output, context) => {
|
|
4531
3761
|
const retVal = (output || [])
|
|
4532
3762
|
.filter((e) => e != null)
|
|
4533
3763
|
.map((entry) => {
|
|
4534
|
-
|
|
4535
|
-
return null;
|
|
4536
|
-
}
|
|
4537
|
-
return de_HandshakeParty(entry, context);
|
|
3764
|
+
return de_Account(entry, context);
|
|
4538
3765
|
});
|
|
4539
3766
|
return retVal;
|
|
4540
3767
|
};
|
|
4541
|
-
const
|
|
4542
|
-
return {
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
};
|
|
3768
|
+
const de_CancelHandshakeResponse = (output, context) => {
|
|
3769
|
+
return (0, smithy_client_1.take)(output, {
|
|
3770
|
+
Handshake: (_) => de_Handshake(_, context),
|
|
3771
|
+
});
|
|
4546
3772
|
};
|
|
4547
|
-
const
|
|
4548
|
-
return {
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
4552
|
-
};
|
|
3773
|
+
const de_CreateAccountResponse = (output, context) => {
|
|
3774
|
+
return (0, smithy_client_1.take)(output, {
|
|
3775
|
+
CreateAccountStatus: (_) => de_CreateAccountStatus(_, context),
|
|
3776
|
+
});
|
|
4553
3777
|
};
|
|
4554
|
-
const
|
|
4555
|
-
|
|
4556
|
-
.
|
|
4557
|
-
.
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
3778
|
+
const de_CreateAccountStatus = (output, context) => {
|
|
3779
|
+
return (0, smithy_client_1.take)(output, {
|
|
3780
|
+
AccountId: smithy_client_1.expectString,
|
|
3781
|
+
AccountName: smithy_client_1.expectString,
|
|
3782
|
+
CompletedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3783
|
+
FailureReason: smithy_client_1.expectString,
|
|
3784
|
+
GovCloudAccountId: smithy_client_1.expectString,
|
|
3785
|
+
Id: smithy_client_1.expectString,
|
|
3786
|
+
RequestedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3787
|
+
State: smithy_client_1.expectString,
|
|
4562
3788
|
});
|
|
4563
|
-
return retVal;
|
|
4564
3789
|
};
|
|
4565
|
-
const
|
|
3790
|
+
const de_CreateAccountStatuses = (output, context) => {
|
|
4566
3791
|
const retVal = (output || [])
|
|
4567
3792
|
.filter((e) => e != null)
|
|
4568
3793
|
.map((entry) => {
|
|
4569
|
-
|
|
4570
|
-
return null;
|
|
4571
|
-
}
|
|
4572
|
-
return de_Handshake(entry, context);
|
|
3794
|
+
return de_CreateAccountStatus(entry, context);
|
|
4573
3795
|
});
|
|
4574
3796
|
return retVal;
|
|
4575
3797
|
};
|
|
4576
|
-
const
|
|
4577
|
-
return {
|
|
4578
|
-
|
|
4579
|
-
};
|
|
4580
|
-
};
|
|
4581
|
-
const de_InvalidInputException = (output, context) => {
|
|
4582
|
-
return {
|
|
4583
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4584
|
-
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
4585
|
-
};
|
|
4586
|
-
};
|
|
4587
|
-
const de_InviteAccountToOrganizationResponse = (output, context) => {
|
|
4588
|
-
return {
|
|
4589
|
-
Handshake: output.Handshake != null ? de_Handshake(output.Handshake, context) : undefined,
|
|
4590
|
-
};
|
|
4591
|
-
};
|
|
4592
|
-
const de_ListAccountsForParentResponse = (output, context) => {
|
|
4593
|
-
return {
|
|
4594
|
-
Accounts: output.Accounts != null ? de_Accounts(output.Accounts, context) : undefined,
|
|
4595
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4596
|
-
};
|
|
4597
|
-
};
|
|
4598
|
-
const de_ListAccountsResponse = (output, context) => {
|
|
4599
|
-
return {
|
|
4600
|
-
Accounts: output.Accounts != null ? de_Accounts(output.Accounts, context) : undefined,
|
|
4601
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4602
|
-
};
|
|
4603
|
-
};
|
|
4604
|
-
const de_ListAWSServiceAccessForOrganizationResponse = (output, context) => {
|
|
4605
|
-
return {
|
|
4606
|
-
EnabledServicePrincipals: output.EnabledServicePrincipals != null
|
|
4607
|
-
? de_EnabledServicePrincipals(output.EnabledServicePrincipals, context)
|
|
4608
|
-
: undefined,
|
|
4609
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4610
|
-
};
|
|
4611
|
-
};
|
|
4612
|
-
const de_ListChildrenResponse = (output, context) => {
|
|
4613
|
-
return {
|
|
4614
|
-
Children: output.Children != null ? de_Children(output.Children, context) : undefined,
|
|
4615
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4616
|
-
};
|
|
4617
|
-
};
|
|
4618
|
-
const de_ListCreateAccountStatusResponse = (output, context) => {
|
|
4619
|
-
return {
|
|
4620
|
-
CreateAccountStatuses: output.CreateAccountStatuses != null
|
|
4621
|
-
? de_CreateAccountStatuses(output.CreateAccountStatuses, context)
|
|
4622
|
-
: undefined,
|
|
4623
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4624
|
-
};
|
|
4625
|
-
};
|
|
4626
|
-
const de_ListDelegatedAdministratorsResponse = (output, context) => {
|
|
4627
|
-
return {
|
|
4628
|
-
DelegatedAdministrators: output.DelegatedAdministrators != null
|
|
4629
|
-
? de_DelegatedAdministrators(output.DelegatedAdministrators, context)
|
|
4630
|
-
: undefined,
|
|
4631
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4632
|
-
};
|
|
4633
|
-
};
|
|
4634
|
-
const de_ListDelegatedServicesForAccountResponse = (output, context) => {
|
|
4635
|
-
return {
|
|
4636
|
-
DelegatedServices: output.DelegatedServices != null ? de_DelegatedServices(output.DelegatedServices, context) : undefined,
|
|
4637
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4638
|
-
};
|
|
4639
|
-
};
|
|
4640
|
-
const de_ListHandshakesForAccountResponse = (output, context) => {
|
|
4641
|
-
return {
|
|
4642
|
-
Handshakes: output.Handshakes != null ? de_Handshakes(output.Handshakes, context) : undefined,
|
|
4643
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4644
|
-
};
|
|
4645
|
-
};
|
|
4646
|
-
const de_ListHandshakesForOrganizationResponse = (output, context) => {
|
|
4647
|
-
return {
|
|
4648
|
-
Handshakes: output.Handshakes != null ? de_Handshakes(output.Handshakes, context) : undefined,
|
|
4649
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4650
|
-
};
|
|
4651
|
-
};
|
|
4652
|
-
const de_ListOrganizationalUnitsForParentResponse = (output, context) => {
|
|
4653
|
-
return {
|
|
4654
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4655
|
-
OrganizationalUnits: output.OrganizationalUnits != null ? de_OrganizationalUnits(output.OrganizationalUnits, context) : undefined,
|
|
4656
|
-
};
|
|
4657
|
-
};
|
|
4658
|
-
const de_ListParentsResponse = (output, context) => {
|
|
4659
|
-
return {
|
|
4660
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4661
|
-
Parents: output.Parents != null ? de_Parents(output.Parents, context) : undefined,
|
|
4662
|
-
};
|
|
4663
|
-
};
|
|
4664
|
-
const de_ListPoliciesForTargetResponse = (output, context) => {
|
|
4665
|
-
return {
|
|
4666
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4667
|
-
Policies: output.Policies != null ? de_Policies(output.Policies, context) : undefined,
|
|
4668
|
-
};
|
|
4669
|
-
};
|
|
4670
|
-
const de_ListPoliciesResponse = (output, context) => {
|
|
4671
|
-
return {
|
|
4672
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4673
|
-
Policies: output.Policies != null ? de_Policies(output.Policies, context) : undefined,
|
|
4674
|
-
};
|
|
4675
|
-
};
|
|
4676
|
-
const de_ListRootsResponse = (output, context) => {
|
|
4677
|
-
return {
|
|
4678
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4679
|
-
Roots: output.Roots != null ? de_Roots(output.Roots, context) : undefined,
|
|
4680
|
-
};
|
|
4681
|
-
};
|
|
4682
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
4683
|
-
return {
|
|
4684
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4685
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
4686
|
-
};
|
|
4687
|
-
};
|
|
4688
|
-
const de_ListTargetsForPolicyResponse = (output, context) => {
|
|
4689
|
-
return {
|
|
4690
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4691
|
-
Targets: output.Targets != null ? de_PolicyTargets(output.Targets, context) : undefined,
|
|
4692
|
-
};
|
|
4693
|
-
};
|
|
4694
|
-
const de_MalformedPolicyDocumentException = (output, context) => {
|
|
4695
|
-
return {
|
|
4696
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4697
|
-
};
|
|
4698
|
-
};
|
|
4699
|
-
const de_MasterCannotLeaveOrganizationException = (output, context) => {
|
|
4700
|
-
return {
|
|
4701
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4702
|
-
};
|
|
4703
|
-
};
|
|
4704
|
-
const de_Organization = (output, context) => {
|
|
4705
|
-
return {
|
|
4706
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4707
|
-
AvailablePolicyTypes: output.AvailablePolicyTypes != null ? de_PolicyTypes(output.AvailablePolicyTypes, context) : undefined,
|
|
4708
|
-
FeatureSet: (0, smithy_client_1.expectString)(output.FeatureSet),
|
|
4709
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4710
|
-
MasterAccountArn: (0, smithy_client_1.expectString)(output.MasterAccountArn),
|
|
4711
|
-
MasterAccountEmail: (0, smithy_client_1.expectString)(output.MasterAccountEmail),
|
|
4712
|
-
MasterAccountId: (0, smithy_client_1.expectString)(output.MasterAccountId),
|
|
4713
|
-
};
|
|
4714
|
-
};
|
|
4715
|
-
const de_OrganizationalUnit = (output, context) => {
|
|
4716
|
-
return {
|
|
4717
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4718
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4719
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4720
|
-
};
|
|
3798
|
+
const de_CreateGovCloudAccountResponse = (output, context) => {
|
|
3799
|
+
return (0, smithy_client_1.take)(output, {
|
|
3800
|
+
CreateAccountStatus: (_) => de_CreateAccountStatus(_, context),
|
|
3801
|
+
});
|
|
4721
3802
|
};
|
|
4722
|
-
const
|
|
4723
|
-
return {
|
|
4724
|
-
|
|
4725
|
-
};
|
|
3803
|
+
const de_DeclineHandshakeResponse = (output, context) => {
|
|
3804
|
+
return (0, smithy_client_1.take)(output, {
|
|
3805
|
+
Handshake: (_) => de_Handshake(_, context),
|
|
3806
|
+
});
|
|
4726
3807
|
};
|
|
4727
|
-
const
|
|
4728
|
-
return {
|
|
4729
|
-
|
|
4730
|
-
|
|
3808
|
+
const de_DelegatedAdministrator = (output, context) => {
|
|
3809
|
+
return (0, smithy_client_1.take)(output, {
|
|
3810
|
+
Arn: smithy_client_1.expectString,
|
|
3811
|
+
DelegationEnabledDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3812
|
+
Email: smithy_client_1.expectString,
|
|
3813
|
+
Id: smithy_client_1.expectString,
|
|
3814
|
+
JoinedMethod: smithy_client_1.expectString,
|
|
3815
|
+
JoinedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3816
|
+
Name: smithy_client_1.expectString,
|
|
3817
|
+
Status: smithy_client_1.expectString,
|
|
3818
|
+
});
|
|
4731
3819
|
};
|
|
4732
|
-
const
|
|
3820
|
+
const de_DelegatedAdministrators = (output, context) => {
|
|
4733
3821
|
const retVal = (output || [])
|
|
4734
3822
|
.filter((e) => e != null)
|
|
4735
3823
|
.map((entry) => {
|
|
4736
|
-
|
|
4737
|
-
return null;
|
|
4738
|
-
}
|
|
4739
|
-
return de_OrganizationalUnit(entry, context);
|
|
3824
|
+
return de_DelegatedAdministrator(entry, context);
|
|
4740
3825
|
});
|
|
4741
3826
|
return retVal;
|
|
4742
3827
|
};
|
|
4743
|
-
const
|
|
4744
|
-
return {
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
};
|
|
4748
|
-
const de_Parent = (output, context) => {
|
|
4749
|
-
return {
|
|
4750
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4751
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4752
|
-
};
|
|
4753
|
-
};
|
|
4754
|
-
const de_ParentNotFoundException = (output, context) => {
|
|
4755
|
-
return {
|
|
4756
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4757
|
-
};
|
|
3828
|
+
const de_DelegatedService = (output, context) => {
|
|
3829
|
+
return (0, smithy_client_1.take)(output, {
|
|
3830
|
+
DelegationEnabledDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3831
|
+
ServicePrincipal: smithy_client_1.expectString,
|
|
3832
|
+
});
|
|
4758
3833
|
};
|
|
4759
|
-
const
|
|
3834
|
+
const de_DelegatedServices = (output, context) => {
|
|
4760
3835
|
const retVal = (output || [])
|
|
4761
3836
|
.filter((e) => e != null)
|
|
4762
3837
|
.map((entry) => {
|
|
4763
|
-
|
|
4764
|
-
return null;
|
|
4765
|
-
}
|
|
4766
|
-
return de_Parent(entry, context);
|
|
3838
|
+
return de_DelegatedService(entry, context);
|
|
4767
3839
|
});
|
|
4768
3840
|
return retVal;
|
|
4769
3841
|
};
|
|
4770
|
-
const
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
.map((entry) => {
|
|
4774
|
-
if (entry === null) {
|
|
4775
|
-
return null;
|
|
4776
|
-
}
|
|
4777
|
-
return de_PolicySummary(entry, context);
|
|
3842
|
+
const de_DescribeAccountResponse = (output, context) => {
|
|
3843
|
+
return (0, smithy_client_1.take)(output, {
|
|
3844
|
+
Account: (_) => de_Account(_, context),
|
|
4778
3845
|
});
|
|
4779
|
-
return retVal;
|
|
4780
3846
|
};
|
|
4781
|
-
const
|
|
4782
|
-
return {
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
};
|
|
3847
|
+
const de_DescribeCreateAccountStatusResponse = (output, context) => {
|
|
3848
|
+
return (0, smithy_client_1.take)(output, {
|
|
3849
|
+
CreateAccountStatus: (_) => de_CreateAccountStatus(_, context),
|
|
3850
|
+
});
|
|
4786
3851
|
};
|
|
4787
|
-
const
|
|
4788
|
-
return {
|
|
4789
|
-
|
|
4790
|
-
};
|
|
3852
|
+
const de_DescribeEffectivePolicyResponse = (output, context) => {
|
|
3853
|
+
return (0, smithy_client_1.take)(output, {
|
|
3854
|
+
EffectivePolicy: (_) => de_EffectivePolicy(_, context),
|
|
3855
|
+
});
|
|
4791
3856
|
};
|
|
4792
|
-
const
|
|
4793
|
-
return {
|
|
4794
|
-
|
|
4795
|
-
};
|
|
3857
|
+
const de_DescribeHandshakeResponse = (output, context) => {
|
|
3858
|
+
return (0, smithy_client_1.take)(output, {
|
|
3859
|
+
Handshake: (_) => de_Handshake(_, context),
|
|
3860
|
+
});
|
|
4796
3861
|
};
|
|
4797
|
-
const
|
|
4798
|
-
return {
|
|
4799
|
-
|
|
4800
|
-
|
|
3862
|
+
const de_EffectivePolicy = (output, context) => {
|
|
3863
|
+
return (0, smithy_client_1.take)(output, {
|
|
3864
|
+
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3865
|
+
PolicyContent: smithy_client_1.expectString,
|
|
3866
|
+
PolicyType: smithy_client_1.expectString,
|
|
3867
|
+
TargetId: smithy_client_1.expectString,
|
|
3868
|
+
});
|
|
4801
3869
|
};
|
|
4802
|
-
const
|
|
4803
|
-
return {
|
|
4804
|
-
|
|
4805
|
-
};
|
|
3870
|
+
const de_EnableAllFeaturesResponse = (output, context) => {
|
|
3871
|
+
return (0, smithy_client_1.take)(output, {
|
|
3872
|
+
Handshake: (_) => de_Handshake(_, context),
|
|
3873
|
+
});
|
|
4806
3874
|
};
|
|
4807
|
-
const
|
|
4808
|
-
return {
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4813
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4814
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4815
|
-
};
|
|
3875
|
+
const de_EnabledServicePrincipal = (output, context) => {
|
|
3876
|
+
return (0, smithy_client_1.take)(output, {
|
|
3877
|
+
DateEnabled: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3878
|
+
ServicePrincipal: smithy_client_1.expectString,
|
|
3879
|
+
});
|
|
4816
3880
|
};
|
|
4817
|
-
const
|
|
3881
|
+
const de_EnabledServicePrincipals = (output, context) => {
|
|
4818
3882
|
const retVal = (output || [])
|
|
4819
3883
|
.filter((e) => e != null)
|
|
4820
3884
|
.map((entry) => {
|
|
4821
|
-
|
|
4822
|
-
return null;
|
|
4823
|
-
}
|
|
4824
|
-
return de_PolicyTargetSummary(entry, context);
|
|
3885
|
+
return de_EnabledServicePrincipal(entry, context);
|
|
4825
3886
|
});
|
|
4826
3887
|
return retVal;
|
|
4827
3888
|
};
|
|
4828
|
-
const
|
|
4829
|
-
return {
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
};
|
|
4840
|
-
};
|
|
4841
|
-
const de_PolicyTypeNotAvailableForOrganizationException = (output, context) => {
|
|
4842
|
-
return {
|
|
4843
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4844
|
-
};
|
|
3889
|
+
const de_Handshake = (output, context) => {
|
|
3890
|
+
return (0, smithy_client_1.take)(output, {
|
|
3891
|
+
Action: smithy_client_1.expectString,
|
|
3892
|
+
Arn: smithy_client_1.expectString,
|
|
3893
|
+
ExpirationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3894
|
+
Id: smithy_client_1.expectString,
|
|
3895
|
+
Parties: smithy_client_1._json,
|
|
3896
|
+
RequestedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3897
|
+
Resources: (_) => de_HandshakeResources(_, context),
|
|
3898
|
+
State: smithy_client_1.expectString,
|
|
3899
|
+
});
|
|
4845
3900
|
};
|
|
4846
|
-
const
|
|
4847
|
-
return {
|
|
4848
|
-
|
|
4849
|
-
|
|
3901
|
+
const de_HandshakeResource = (output, context) => {
|
|
3902
|
+
return (0, smithy_client_1.take)(output, {
|
|
3903
|
+
Resources: (_) => de_HandshakeResources(_, context),
|
|
3904
|
+
Type: smithy_client_1.expectString,
|
|
3905
|
+
Value: smithy_client_1.expectString,
|
|
3906
|
+
});
|
|
4850
3907
|
};
|
|
4851
|
-
const
|
|
3908
|
+
const de_HandshakeResources = (output, context) => {
|
|
4852
3909
|
const retVal = (output || [])
|
|
4853
3910
|
.filter((e) => e != null)
|
|
4854
3911
|
.map((entry) => {
|
|
4855
|
-
|
|
4856
|
-
return null;
|
|
4857
|
-
}
|
|
4858
|
-
return de_PolicyTypeSummary(entry, context);
|
|
3912
|
+
return de_HandshakeResource(entry, context);
|
|
4859
3913
|
});
|
|
4860
3914
|
return retVal;
|
|
4861
3915
|
};
|
|
4862
|
-
const
|
|
4863
|
-
return {
|
|
4864
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4865
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4866
|
-
};
|
|
4867
|
-
};
|
|
4868
|
-
const de_PutResourcePolicyResponse = (output, context) => {
|
|
4869
|
-
return {
|
|
4870
|
-
ResourcePolicy: output.ResourcePolicy != null ? de_ResourcePolicy(output.ResourcePolicy, context) : undefined,
|
|
4871
|
-
};
|
|
4872
|
-
};
|
|
4873
|
-
const de_ResourcePolicy = (output, context) => {
|
|
4874
|
-
return {
|
|
4875
|
-
Content: (0, smithy_client_1.expectString)(output.Content),
|
|
4876
|
-
ResourcePolicySummary: output.ResourcePolicySummary != null
|
|
4877
|
-
? de_ResourcePolicySummary(output.ResourcePolicySummary, context)
|
|
4878
|
-
: undefined,
|
|
4879
|
-
};
|
|
4880
|
-
};
|
|
4881
|
-
const de_ResourcePolicyNotFoundException = (output, context) => {
|
|
4882
|
-
return {
|
|
4883
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4884
|
-
};
|
|
4885
|
-
};
|
|
4886
|
-
const de_ResourcePolicySummary = (output, context) => {
|
|
4887
|
-
return {
|
|
4888
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4889
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4890
|
-
};
|
|
4891
|
-
};
|
|
4892
|
-
const de_Root = (output, context) => {
|
|
4893
|
-
return {
|
|
4894
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4895
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4896
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4897
|
-
PolicyTypes: output.PolicyTypes != null ? de_PolicyTypes(output.PolicyTypes, context) : undefined,
|
|
4898
|
-
};
|
|
4899
|
-
};
|
|
4900
|
-
const de_RootNotFoundException = (output, context) => {
|
|
4901
|
-
return {
|
|
4902
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4903
|
-
};
|
|
4904
|
-
};
|
|
4905
|
-
const de_Roots = (output, context) => {
|
|
3916
|
+
const de_Handshakes = (output, context) => {
|
|
4906
3917
|
const retVal = (output || [])
|
|
4907
3918
|
.filter((e) => e != null)
|
|
4908
3919
|
.map((entry) => {
|
|
4909
|
-
|
|
4910
|
-
return null;
|
|
4911
|
-
}
|
|
4912
|
-
return de_Root(entry, context);
|
|
3920
|
+
return de_Handshake(entry, context);
|
|
4913
3921
|
});
|
|
4914
3922
|
return retVal;
|
|
4915
3923
|
};
|
|
4916
|
-
const
|
|
4917
|
-
return {
|
|
4918
|
-
|
|
4919
|
-
};
|
|
3924
|
+
const de_InviteAccountToOrganizationResponse = (output, context) => {
|
|
3925
|
+
return (0, smithy_client_1.take)(output, {
|
|
3926
|
+
Handshake: (_) => de_Handshake(_, context),
|
|
3927
|
+
});
|
|
4920
3928
|
};
|
|
4921
|
-
const
|
|
4922
|
-
return {
|
|
4923
|
-
|
|
4924
|
-
|
|
3929
|
+
const de_ListAccountsForParentResponse = (output, context) => {
|
|
3930
|
+
return (0, smithy_client_1.take)(output, {
|
|
3931
|
+
Accounts: (_) => de_Accounts(_, context),
|
|
3932
|
+
NextToken: smithy_client_1.expectString,
|
|
3933
|
+
});
|
|
4925
3934
|
};
|
|
4926
|
-
const
|
|
4927
|
-
return {
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
};
|
|
3935
|
+
const de_ListAccountsResponse = (output, context) => {
|
|
3936
|
+
return (0, smithy_client_1.take)(output, {
|
|
3937
|
+
Accounts: (_) => de_Accounts(_, context),
|
|
3938
|
+
NextToken: smithy_client_1.expectString,
|
|
3939
|
+
});
|
|
4931
3940
|
};
|
|
4932
|
-
const
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
.
|
|
4936
|
-
if (entry === null) {
|
|
4937
|
-
return null;
|
|
4938
|
-
}
|
|
4939
|
-
return de_Tag(entry, context);
|
|
3941
|
+
const de_ListAWSServiceAccessForOrganizationResponse = (output, context) => {
|
|
3942
|
+
return (0, smithy_client_1.take)(output, {
|
|
3943
|
+
EnabledServicePrincipals: (_) => de_EnabledServicePrincipals(_, context),
|
|
3944
|
+
NextToken: smithy_client_1.expectString,
|
|
4940
3945
|
});
|
|
4941
|
-
return retVal;
|
|
4942
3946
|
};
|
|
4943
|
-
const
|
|
4944
|
-
return {
|
|
4945
|
-
|
|
4946
|
-
|
|
3947
|
+
const de_ListCreateAccountStatusResponse = (output, context) => {
|
|
3948
|
+
return (0, smithy_client_1.take)(output, {
|
|
3949
|
+
CreateAccountStatuses: (_) => de_CreateAccountStatuses(_, context),
|
|
3950
|
+
NextToken: smithy_client_1.expectString,
|
|
3951
|
+
});
|
|
4947
3952
|
};
|
|
4948
|
-
const
|
|
4949
|
-
return {
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
};
|
|
3953
|
+
const de_ListDelegatedAdministratorsResponse = (output, context) => {
|
|
3954
|
+
return (0, smithy_client_1.take)(output, {
|
|
3955
|
+
DelegatedAdministrators: (_) => de_DelegatedAdministrators(_, context),
|
|
3956
|
+
NextToken: smithy_client_1.expectString,
|
|
3957
|
+
});
|
|
4953
3958
|
};
|
|
4954
|
-
const
|
|
4955
|
-
return {
|
|
4956
|
-
|
|
4957
|
-
|
|
3959
|
+
const de_ListDelegatedServicesForAccountResponse = (output, context) => {
|
|
3960
|
+
return (0, smithy_client_1.take)(output, {
|
|
3961
|
+
DelegatedServices: (_) => de_DelegatedServices(_, context),
|
|
3962
|
+
NextToken: smithy_client_1.expectString,
|
|
3963
|
+
});
|
|
4958
3964
|
};
|
|
4959
|
-
const
|
|
4960
|
-
return {
|
|
4961
|
-
|
|
4962
|
-
|
|
3965
|
+
const de_ListHandshakesForAccountResponse = (output, context) => {
|
|
3966
|
+
return (0, smithy_client_1.take)(output, {
|
|
3967
|
+
Handshakes: (_) => de_Handshakes(_, context),
|
|
3968
|
+
NextToken: smithy_client_1.expectString,
|
|
3969
|
+
});
|
|
4963
3970
|
};
|
|
4964
|
-
const
|
|
4965
|
-
return {
|
|
4966
|
-
|
|
4967
|
-
|
|
3971
|
+
const de_ListHandshakesForOrganizationResponse = (output, context) => {
|
|
3972
|
+
return (0, smithy_client_1.take)(output, {
|
|
3973
|
+
Handshakes: (_) => de_Handshakes(_, context),
|
|
3974
|
+
NextToken: smithy_client_1.expectString,
|
|
3975
|
+
});
|
|
4968
3976
|
};
|
|
4969
3977
|
const deserializeMetadata = (output) => ({
|
|
4970
3978
|
httpStatusCode: output.statusCode,
|
|
@@ -4979,6 +3987,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4979
3987
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4980
3988
|
};
|
|
4981
3989
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3990
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(OrganizationsServiceException_1.OrganizationsServiceException);
|
|
4982
3991
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4983
3992
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4984
3993
|
const contents = {
|