@aws-sdk/client-organizations 3.310.0 → 3.312.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 +61 -220
- package/dist-es/protocols/Aws_json1_1.js +61 -220
- package/package.json +2 -2
|
@@ -8,545 +8,380 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const OrganizationsServiceException_1 = require("../models/OrganizationsServiceException");
|
|
10
10
|
const se_AcceptHandshakeCommand = async (input, context) => {
|
|
11
|
-
const headers =
|
|
12
|
-
"content-type": "application/x-amz-json-1.1",
|
|
13
|
-
"x-amz-target": "AWSOrganizationsV20161128.AcceptHandshake",
|
|
14
|
-
};
|
|
11
|
+
const headers = sharedHeaders("AcceptHandshake");
|
|
15
12
|
let body;
|
|
16
13
|
body = JSON.stringify(se_AcceptHandshakeRequest(input, context));
|
|
17
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
15
|
};
|
|
19
16
|
exports.se_AcceptHandshakeCommand = se_AcceptHandshakeCommand;
|
|
20
17
|
const se_AttachPolicyCommand = async (input, context) => {
|
|
21
|
-
const headers =
|
|
22
|
-
"content-type": "application/x-amz-json-1.1",
|
|
23
|
-
"x-amz-target": "AWSOrganizationsV20161128.AttachPolicy",
|
|
24
|
-
};
|
|
18
|
+
const headers = sharedHeaders("AttachPolicy");
|
|
25
19
|
let body;
|
|
26
20
|
body = JSON.stringify(se_AttachPolicyRequest(input, context));
|
|
27
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
22
|
};
|
|
29
23
|
exports.se_AttachPolicyCommand = se_AttachPolicyCommand;
|
|
30
24
|
const se_CancelHandshakeCommand = async (input, context) => {
|
|
31
|
-
const headers =
|
|
32
|
-
"content-type": "application/x-amz-json-1.1",
|
|
33
|
-
"x-amz-target": "AWSOrganizationsV20161128.CancelHandshake",
|
|
34
|
-
};
|
|
25
|
+
const headers = sharedHeaders("CancelHandshake");
|
|
35
26
|
let body;
|
|
36
27
|
body = JSON.stringify(se_CancelHandshakeRequest(input, context));
|
|
37
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
29
|
};
|
|
39
30
|
exports.se_CancelHandshakeCommand = se_CancelHandshakeCommand;
|
|
40
31
|
const se_CloseAccountCommand = async (input, context) => {
|
|
41
|
-
const headers =
|
|
42
|
-
"content-type": "application/x-amz-json-1.1",
|
|
43
|
-
"x-amz-target": "AWSOrganizationsV20161128.CloseAccount",
|
|
44
|
-
};
|
|
32
|
+
const headers = sharedHeaders("CloseAccount");
|
|
45
33
|
let body;
|
|
46
34
|
body = JSON.stringify(se_CloseAccountRequest(input, context));
|
|
47
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
36
|
};
|
|
49
37
|
exports.se_CloseAccountCommand = se_CloseAccountCommand;
|
|
50
38
|
const se_CreateAccountCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "AWSOrganizationsV20161128.CreateAccount",
|
|
54
|
-
};
|
|
39
|
+
const headers = sharedHeaders("CreateAccount");
|
|
55
40
|
let body;
|
|
56
41
|
body = JSON.stringify(se_CreateAccountRequest(input, context));
|
|
57
42
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
43
|
};
|
|
59
44
|
exports.se_CreateAccountCommand = se_CreateAccountCommand;
|
|
60
45
|
const se_CreateGovCloudAccountCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.1",
|
|
63
|
-
"x-amz-target": "AWSOrganizationsV20161128.CreateGovCloudAccount",
|
|
64
|
-
};
|
|
46
|
+
const headers = sharedHeaders("CreateGovCloudAccount");
|
|
65
47
|
let body;
|
|
66
48
|
body = JSON.stringify(se_CreateGovCloudAccountRequest(input, context));
|
|
67
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
50
|
};
|
|
69
51
|
exports.se_CreateGovCloudAccountCommand = se_CreateGovCloudAccountCommand;
|
|
70
52
|
const se_CreateOrganizationCommand = async (input, context) => {
|
|
71
|
-
const headers =
|
|
72
|
-
"content-type": "application/x-amz-json-1.1",
|
|
73
|
-
"x-amz-target": "AWSOrganizationsV20161128.CreateOrganization",
|
|
74
|
-
};
|
|
53
|
+
const headers = sharedHeaders("CreateOrganization");
|
|
75
54
|
let body;
|
|
76
55
|
body = JSON.stringify(se_CreateOrganizationRequest(input, context));
|
|
77
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
57
|
};
|
|
79
58
|
exports.se_CreateOrganizationCommand = se_CreateOrganizationCommand;
|
|
80
59
|
const se_CreateOrganizationalUnitCommand = async (input, context) => {
|
|
81
|
-
const headers =
|
|
82
|
-
"content-type": "application/x-amz-json-1.1",
|
|
83
|
-
"x-amz-target": "AWSOrganizationsV20161128.CreateOrganizationalUnit",
|
|
84
|
-
};
|
|
60
|
+
const headers = sharedHeaders("CreateOrganizationalUnit");
|
|
85
61
|
let body;
|
|
86
62
|
body = JSON.stringify(se_CreateOrganizationalUnitRequest(input, context));
|
|
87
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
64
|
};
|
|
89
65
|
exports.se_CreateOrganizationalUnitCommand = se_CreateOrganizationalUnitCommand;
|
|
90
66
|
const se_CreatePolicyCommand = async (input, context) => {
|
|
91
|
-
const headers =
|
|
92
|
-
"content-type": "application/x-amz-json-1.1",
|
|
93
|
-
"x-amz-target": "AWSOrganizationsV20161128.CreatePolicy",
|
|
94
|
-
};
|
|
67
|
+
const headers = sharedHeaders("CreatePolicy");
|
|
95
68
|
let body;
|
|
96
69
|
body = JSON.stringify(se_CreatePolicyRequest(input, context));
|
|
97
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
71
|
};
|
|
99
72
|
exports.se_CreatePolicyCommand = se_CreatePolicyCommand;
|
|
100
73
|
const se_DeclineHandshakeCommand = async (input, context) => {
|
|
101
|
-
const headers =
|
|
102
|
-
"content-type": "application/x-amz-json-1.1",
|
|
103
|
-
"x-amz-target": "AWSOrganizationsV20161128.DeclineHandshake",
|
|
104
|
-
};
|
|
74
|
+
const headers = sharedHeaders("DeclineHandshake");
|
|
105
75
|
let body;
|
|
106
76
|
body = JSON.stringify(se_DeclineHandshakeRequest(input, context));
|
|
107
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
78
|
};
|
|
109
79
|
exports.se_DeclineHandshakeCommand = se_DeclineHandshakeCommand;
|
|
110
80
|
const se_DeleteOrganizationCommand = async (input, context) => {
|
|
111
|
-
const headers =
|
|
112
|
-
"content-type": "application/x-amz-json-1.1",
|
|
113
|
-
"x-amz-target": "AWSOrganizationsV20161128.DeleteOrganization",
|
|
114
|
-
};
|
|
81
|
+
const headers = sharedHeaders("DeleteOrganization");
|
|
115
82
|
const body = "{}";
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_DeleteOrganizationCommand = se_DeleteOrganizationCommand;
|
|
119
86
|
const se_DeleteOrganizationalUnitCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.1",
|
|
122
|
-
"x-amz-target": "AWSOrganizationsV20161128.DeleteOrganizationalUnit",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("DeleteOrganizationalUnit");
|
|
124
88
|
let body;
|
|
125
89
|
body = JSON.stringify(se_DeleteOrganizationalUnitRequest(input, context));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_DeleteOrganizationalUnitCommand = se_DeleteOrganizationalUnitCommand;
|
|
129
93
|
const se_DeletePolicyCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "AWSOrganizationsV20161128.DeletePolicy",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("DeletePolicy");
|
|
134
95
|
let body;
|
|
135
96
|
body = JSON.stringify(se_DeletePolicyRequest(input, context));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_DeletePolicyCommand = se_DeletePolicyCommand;
|
|
139
100
|
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "AWSOrganizationsV20161128.DeleteResourcePolicy",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
144
102
|
const body = "{}";
|
|
145
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
104
|
};
|
|
147
105
|
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
148
106
|
const se_DeregisterDelegatedAdministratorCommand = async (input, context) => {
|
|
149
|
-
const headers =
|
|
150
|
-
"content-type": "application/x-amz-json-1.1",
|
|
151
|
-
"x-amz-target": "AWSOrganizationsV20161128.DeregisterDelegatedAdministrator",
|
|
152
|
-
};
|
|
107
|
+
const headers = sharedHeaders("DeregisterDelegatedAdministrator");
|
|
153
108
|
let body;
|
|
154
109
|
body = JSON.stringify(se_DeregisterDelegatedAdministratorRequest(input, context));
|
|
155
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
111
|
};
|
|
157
112
|
exports.se_DeregisterDelegatedAdministratorCommand = se_DeregisterDelegatedAdministratorCommand;
|
|
158
113
|
const se_DescribeAccountCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeAccount",
|
|
162
|
-
};
|
|
114
|
+
const headers = sharedHeaders("DescribeAccount");
|
|
163
115
|
let body;
|
|
164
116
|
body = JSON.stringify(se_DescribeAccountRequest(input, context));
|
|
165
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
118
|
};
|
|
167
119
|
exports.se_DescribeAccountCommand = se_DescribeAccountCommand;
|
|
168
120
|
const se_DescribeCreateAccountStatusCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.1",
|
|
171
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeCreateAccountStatus",
|
|
172
|
-
};
|
|
121
|
+
const headers = sharedHeaders("DescribeCreateAccountStatus");
|
|
173
122
|
let body;
|
|
174
123
|
body = JSON.stringify(se_DescribeCreateAccountStatusRequest(input, context));
|
|
175
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
125
|
};
|
|
177
126
|
exports.se_DescribeCreateAccountStatusCommand = se_DescribeCreateAccountStatusCommand;
|
|
178
127
|
const se_DescribeEffectivePolicyCommand = async (input, context) => {
|
|
179
|
-
const headers =
|
|
180
|
-
"content-type": "application/x-amz-json-1.1",
|
|
181
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeEffectivePolicy",
|
|
182
|
-
};
|
|
128
|
+
const headers = sharedHeaders("DescribeEffectivePolicy");
|
|
183
129
|
let body;
|
|
184
130
|
body = JSON.stringify(se_DescribeEffectivePolicyRequest(input, context));
|
|
185
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
132
|
};
|
|
187
133
|
exports.se_DescribeEffectivePolicyCommand = se_DescribeEffectivePolicyCommand;
|
|
188
134
|
const se_DescribeHandshakeCommand = async (input, context) => {
|
|
189
|
-
const headers =
|
|
190
|
-
"content-type": "application/x-amz-json-1.1",
|
|
191
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeHandshake",
|
|
192
|
-
};
|
|
135
|
+
const headers = sharedHeaders("DescribeHandshake");
|
|
193
136
|
let body;
|
|
194
137
|
body = JSON.stringify(se_DescribeHandshakeRequest(input, context));
|
|
195
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
139
|
};
|
|
197
140
|
exports.se_DescribeHandshakeCommand = se_DescribeHandshakeCommand;
|
|
198
141
|
const se_DescribeOrganizationCommand = async (input, context) => {
|
|
199
|
-
const headers =
|
|
200
|
-
"content-type": "application/x-amz-json-1.1",
|
|
201
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeOrganization",
|
|
202
|
-
};
|
|
142
|
+
const headers = sharedHeaders("DescribeOrganization");
|
|
203
143
|
const body = "{}";
|
|
204
144
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
145
|
};
|
|
206
146
|
exports.se_DescribeOrganizationCommand = se_DescribeOrganizationCommand;
|
|
207
147
|
const se_DescribeOrganizationalUnitCommand = async (input, context) => {
|
|
208
|
-
const headers =
|
|
209
|
-
"content-type": "application/x-amz-json-1.1",
|
|
210
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeOrganizationalUnit",
|
|
211
|
-
};
|
|
148
|
+
const headers = sharedHeaders("DescribeOrganizationalUnit");
|
|
212
149
|
let body;
|
|
213
150
|
body = JSON.stringify(se_DescribeOrganizationalUnitRequest(input, context));
|
|
214
151
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
152
|
};
|
|
216
153
|
exports.se_DescribeOrganizationalUnitCommand = se_DescribeOrganizationalUnitCommand;
|
|
217
154
|
const se_DescribePolicyCommand = async (input, context) => {
|
|
218
|
-
const headers =
|
|
219
|
-
"content-type": "application/x-amz-json-1.1",
|
|
220
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribePolicy",
|
|
221
|
-
};
|
|
155
|
+
const headers = sharedHeaders("DescribePolicy");
|
|
222
156
|
let body;
|
|
223
157
|
body = JSON.stringify(se_DescribePolicyRequest(input, context));
|
|
224
158
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
159
|
};
|
|
226
160
|
exports.se_DescribePolicyCommand = se_DescribePolicyCommand;
|
|
227
161
|
const se_DescribeResourcePolicyCommand = async (input, context) => {
|
|
228
|
-
const headers =
|
|
229
|
-
"content-type": "application/x-amz-json-1.1",
|
|
230
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeResourcePolicy",
|
|
231
|
-
};
|
|
162
|
+
const headers = sharedHeaders("DescribeResourcePolicy");
|
|
232
163
|
const body = "{}";
|
|
233
164
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
165
|
};
|
|
235
166
|
exports.se_DescribeResourcePolicyCommand = se_DescribeResourcePolicyCommand;
|
|
236
167
|
const se_DetachPolicyCommand = async (input, context) => {
|
|
237
|
-
const headers =
|
|
238
|
-
"content-type": "application/x-amz-json-1.1",
|
|
239
|
-
"x-amz-target": "AWSOrganizationsV20161128.DetachPolicy",
|
|
240
|
-
};
|
|
168
|
+
const headers = sharedHeaders("DetachPolicy");
|
|
241
169
|
let body;
|
|
242
170
|
body = JSON.stringify(se_DetachPolicyRequest(input, context));
|
|
243
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
244
172
|
};
|
|
245
173
|
exports.se_DetachPolicyCommand = se_DetachPolicyCommand;
|
|
246
174
|
const se_DisableAWSServiceAccessCommand = async (input, context) => {
|
|
247
|
-
const headers =
|
|
248
|
-
"content-type": "application/x-amz-json-1.1",
|
|
249
|
-
"x-amz-target": "AWSOrganizationsV20161128.DisableAWSServiceAccess",
|
|
250
|
-
};
|
|
175
|
+
const headers = sharedHeaders("DisableAWSServiceAccess");
|
|
251
176
|
let body;
|
|
252
177
|
body = JSON.stringify(se_DisableAWSServiceAccessRequest(input, context));
|
|
253
178
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
179
|
};
|
|
255
180
|
exports.se_DisableAWSServiceAccessCommand = se_DisableAWSServiceAccessCommand;
|
|
256
181
|
const se_DisablePolicyTypeCommand = async (input, context) => {
|
|
257
|
-
const headers =
|
|
258
|
-
"content-type": "application/x-amz-json-1.1",
|
|
259
|
-
"x-amz-target": "AWSOrganizationsV20161128.DisablePolicyType",
|
|
260
|
-
};
|
|
182
|
+
const headers = sharedHeaders("DisablePolicyType");
|
|
261
183
|
let body;
|
|
262
184
|
body = JSON.stringify(se_DisablePolicyTypeRequest(input, context));
|
|
263
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
264
186
|
};
|
|
265
187
|
exports.se_DisablePolicyTypeCommand = se_DisablePolicyTypeCommand;
|
|
266
188
|
const se_EnableAllFeaturesCommand = async (input, context) => {
|
|
267
|
-
const headers =
|
|
268
|
-
"content-type": "application/x-amz-json-1.1",
|
|
269
|
-
"x-amz-target": "AWSOrganizationsV20161128.EnableAllFeatures",
|
|
270
|
-
};
|
|
189
|
+
const headers = sharedHeaders("EnableAllFeatures");
|
|
271
190
|
let body;
|
|
272
191
|
body = JSON.stringify(se_EnableAllFeaturesRequest(input, context));
|
|
273
192
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
193
|
};
|
|
275
194
|
exports.se_EnableAllFeaturesCommand = se_EnableAllFeaturesCommand;
|
|
276
195
|
const se_EnableAWSServiceAccessCommand = async (input, context) => {
|
|
277
|
-
const headers =
|
|
278
|
-
"content-type": "application/x-amz-json-1.1",
|
|
279
|
-
"x-amz-target": "AWSOrganizationsV20161128.EnableAWSServiceAccess",
|
|
280
|
-
};
|
|
196
|
+
const headers = sharedHeaders("EnableAWSServiceAccess");
|
|
281
197
|
let body;
|
|
282
198
|
body = JSON.stringify(se_EnableAWSServiceAccessRequest(input, context));
|
|
283
199
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
284
200
|
};
|
|
285
201
|
exports.se_EnableAWSServiceAccessCommand = se_EnableAWSServiceAccessCommand;
|
|
286
202
|
const se_EnablePolicyTypeCommand = async (input, context) => {
|
|
287
|
-
const headers =
|
|
288
|
-
"content-type": "application/x-amz-json-1.1",
|
|
289
|
-
"x-amz-target": "AWSOrganizationsV20161128.EnablePolicyType",
|
|
290
|
-
};
|
|
203
|
+
const headers = sharedHeaders("EnablePolicyType");
|
|
291
204
|
let body;
|
|
292
205
|
body = JSON.stringify(se_EnablePolicyTypeRequest(input, context));
|
|
293
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
207
|
};
|
|
295
208
|
exports.se_EnablePolicyTypeCommand = se_EnablePolicyTypeCommand;
|
|
296
209
|
const se_InviteAccountToOrganizationCommand = async (input, context) => {
|
|
297
|
-
const headers =
|
|
298
|
-
"content-type": "application/x-amz-json-1.1",
|
|
299
|
-
"x-amz-target": "AWSOrganizationsV20161128.InviteAccountToOrganization",
|
|
300
|
-
};
|
|
210
|
+
const headers = sharedHeaders("InviteAccountToOrganization");
|
|
301
211
|
let body;
|
|
302
212
|
body = JSON.stringify(se_InviteAccountToOrganizationRequest(input, context));
|
|
303
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
304
214
|
};
|
|
305
215
|
exports.se_InviteAccountToOrganizationCommand = se_InviteAccountToOrganizationCommand;
|
|
306
216
|
const se_LeaveOrganizationCommand = async (input, context) => {
|
|
307
|
-
const headers =
|
|
308
|
-
"content-type": "application/x-amz-json-1.1",
|
|
309
|
-
"x-amz-target": "AWSOrganizationsV20161128.LeaveOrganization",
|
|
310
|
-
};
|
|
217
|
+
const headers = sharedHeaders("LeaveOrganization");
|
|
311
218
|
const body = "{}";
|
|
312
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
313
220
|
};
|
|
314
221
|
exports.se_LeaveOrganizationCommand = se_LeaveOrganizationCommand;
|
|
315
222
|
const se_ListAccountsCommand = async (input, context) => {
|
|
316
|
-
const headers =
|
|
317
|
-
"content-type": "application/x-amz-json-1.1",
|
|
318
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListAccounts",
|
|
319
|
-
};
|
|
223
|
+
const headers = sharedHeaders("ListAccounts");
|
|
320
224
|
let body;
|
|
321
225
|
body = JSON.stringify(se_ListAccountsRequest(input, context));
|
|
322
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
227
|
};
|
|
324
228
|
exports.se_ListAccountsCommand = se_ListAccountsCommand;
|
|
325
229
|
const se_ListAccountsForParentCommand = async (input, context) => {
|
|
326
|
-
const headers =
|
|
327
|
-
"content-type": "application/x-amz-json-1.1",
|
|
328
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListAccountsForParent",
|
|
329
|
-
};
|
|
230
|
+
const headers = sharedHeaders("ListAccountsForParent");
|
|
330
231
|
let body;
|
|
331
232
|
body = JSON.stringify(se_ListAccountsForParentRequest(input, context));
|
|
332
233
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
333
234
|
};
|
|
334
235
|
exports.se_ListAccountsForParentCommand = se_ListAccountsForParentCommand;
|
|
335
236
|
const se_ListAWSServiceAccessForOrganizationCommand = async (input, context) => {
|
|
336
|
-
const headers =
|
|
337
|
-
"content-type": "application/x-amz-json-1.1",
|
|
338
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization",
|
|
339
|
-
};
|
|
237
|
+
const headers = sharedHeaders("ListAWSServiceAccessForOrganization");
|
|
340
238
|
let body;
|
|
341
239
|
body = JSON.stringify(se_ListAWSServiceAccessForOrganizationRequest(input, context));
|
|
342
240
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
343
241
|
};
|
|
344
242
|
exports.se_ListAWSServiceAccessForOrganizationCommand = se_ListAWSServiceAccessForOrganizationCommand;
|
|
345
243
|
const se_ListChildrenCommand = async (input, context) => {
|
|
346
|
-
const headers =
|
|
347
|
-
"content-type": "application/x-amz-json-1.1",
|
|
348
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListChildren",
|
|
349
|
-
};
|
|
244
|
+
const headers = sharedHeaders("ListChildren");
|
|
350
245
|
let body;
|
|
351
246
|
body = JSON.stringify(se_ListChildrenRequest(input, context));
|
|
352
247
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
353
248
|
};
|
|
354
249
|
exports.se_ListChildrenCommand = se_ListChildrenCommand;
|
|
355
250
|
const se_ListCreateAccountStatusCommand = async (input, context) => {
|
|
356
|
-
const headers =
|
|
357
|
-
"content-type": "application/x-amz-json-1.1",
|
|
358
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListCreateAccountStatus",
|
|
359
|
-
};
|
|
251
|
+
const headers = sharedHeaders("ListCreateAccountStatus");
|
|
360
252
|
let body;
|
|
361
253
|
body = JSON.stringify(se_ListCreateAccountStatusRequest(input, context));
|
|
362
254
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
363
255
|
};
|
|
364
256
|
exports.se_ListCreateAccountStatusCommand = se_ListCreateAccountStatusCommand;
|
|
365
257
|
const se_ListDelegatedAdministratorsCommand = async (input, context) => {
|
|
366
|
-
const headers =
|
|
367
|
-
"content-type": "application/x-amz-json-1.1",
|
|
368
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListDelegatedAdministrators",
|
|
369
|
-
};
|
|
258
|
+
const headers = sharedHeaders("ListDelegatedAdministrators");
|
|
370
259
|
let body;
|
|
371
260
|
body = JSON.stringify(se_ListDelegatedAdministratorsRequest(input, context));
|
|
372
261
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
262
|
};
|
|
374
263
|
exports.se_ListDelegatedAdministratorsCommand = se_ListDelegatedAdministratorsCommand;
|
|
375
264
|
const se_ListDelegatedServicesForAccountCommand = async (input, context) => {
|
|
376
|
-
const headers =
|
|
377
|
-
"content-type": "application/x-amz-json-1.1",
|
|
378
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListDelegatedServicesForAccount",
|
|
379
|
-
};
|
|
265
|
+
const headers = sharedHeaders("ListDelegatedServicesForAccount");
|
|
380
266
|
let body;
|
|
381
267
|
body = JSON.stringify(se_ListDelegatedServicesForAccountRequest(input, context));
|
|
382
268
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
383
269
|
};
|
|
384
270
|
exports.se_ListDelegatedServicesForAccountCommand = se_ListDelegatedServicesForAccountCommand;
|
|
385
271
|
const se_ListHandshakesForAccountCommand = async (input, context) => {
|
|
386
|
-
const headers =
|
|
387
|
-
"content-type": "application/x-amz-json-1.1",
|
|
388
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListHandshakesForAccount",
|
|
389
|
-
};
|
|
272
|
+
const headers = sharedHeaders("ListHandshakesForAccount");
|
|
390
273
|
let body;
|
|
391
274
|
body = JSON.stringify(se_ListHandshakesForAccountRequest(input, context));
|
|
392
275
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
393
276
|
};
|
|
394
277
|
exports.se_ListHandshakesForAccountCommand = se_ListHandshakesForAccountCommand;
|
|
395
278
|
const se_ListHandshakesForOrganizationCommand = async (input, context) => {
|
|
396
|
-
const headers =
|
|
397
|
-
"content-type": "application/x-amz-json-1.1",
|
|
398
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListHandshakesForOrganization",
|
|
399
|
-
};
|
|
279
|
+
const headers = sharedHeaders("ListHandshakesForOrganization");
|
|
400
280
|
let body;
|
|
401
281
|
body = JSON.stringify(se_ListHandshakesForOrganizationRequest(input, context));
|
|
402
282
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
403
283
|
};
|
|
404
284
|
exports.se_ListHandshakesForOrganizationCommand = se_ListHandshakesForOrganizationCommand;
|
|
405
285
|
const se_ListOrganizationalUnitsForParentCommand = async (input, context) => {
|
|
406
|
-
const headers =
|
|
407
|
-
"content-type": "application/x-amz-json-1.1",
|
|
408
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListOrganizationalUnitsForParent",
|
|
409
|
-
};
|
|
286
|
+
const headers = sharedHeaders("ListOrganizationalUnitsForParent");
|
|
410
287
|
let body;
|
|
411
288
|
body = JSON.stringify(se_ListOrganizationalUnitsForParentRequest(input, context));
|
|
412
289
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
413
290
|
};
|
|
414
291
|
exports.se_ListOrganizationalUnitsForParentCommand = se_ListOrganizationalUnitsForParentCommand;
|
|
415
292
|
const se_ListParentsCommand = async (input, context) => {
|
|
416
|
-
const headers =
|
|
417
|
-
"content-type": "application/x-amz-json-1.1",
|
|
418
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListParents",
|
|
419
|
-
};
|
|
293
|
+
const headers = sharedHeaders("ListParents");
|
|
420
294
|
let body;
|
|
421
295
|
body = JSON.stringify(se_ListParentsRequest(input, context));
|
|
422
296
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
423
297
|
};
|
|
424
298
|
exports.se_ListParentsCommand = se_ListParentsCommand;
|
|
425
299
|
const se_ListPoliciesCommand = async (input, context) => {
|
|
426
|
-
const headers =
|
|
427
|
-
"content-type": "application/x-amz-json-1.1",
|
|
428
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListPolicies",
|
|
429
|
-
};
|
|
300
|
+
const headers = sharedHeaders("ListPolicies");
|
|
430
301
|
let body;
|
|
431
302
|
body = JSON.stringify(se_ListPoliciesRequest(input, context));
|
|
432
303
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
433
304
|
};
|
|
434
305
|
exports.se_ListPoliciesCommand = se_ListPoliciesCommand;
|
|
435
306
|
const se_ListPoliciesForTargetCommand = async (input, context) => {
|
|
436
|
-
const headers =
|
|
437
|
-
"content-type": "application/x-amz-json-1.1",
|
|
438
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListPoliciesForTarget",
|
|
439
|
-
};
|
|
307
|
+
const headers = sharedHeaders("ListPoliciesForTarget");
|
|
440
308
|
let body;
|
|
441
309
|
body = JSON.stringify(se_ListPoliciesForTargetRequest(input, context));
|
|
442
310
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
443
311
|
};
|
|
444
312
|
exports.se_ListPoliciesForTargetCommand = se_ListPoliciesForTargetCommand;
|
|
445
313
|
const se_ListRootsCommand = async (input, context) => {
|
|
446
|
-
const headers =
|
|
447
|
-
"content-type": "application/x-amz-json-1.1",
|
|
448
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListRoots",
|
|
449
|
-
};
|
|
314
|
+
const headers = sharedHeaders("ListRoots");
|
|
450
315
|
let body;
|
|
451
316
|
body = JSON.stringify(se_ListRootsRequest(input, context));
|
|
452
317
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
453
318
|
};
|
|
454
319
|
exports.se_ListRootsCommand = se_ListRootsCommand;
|
|
455
320
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
456
|
-
const headers =
|
|
457
|
-
"content-type": "application/x-amz-json-1.1",
|
|
458
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListTagsForResource",
|
|
459
|
-
};
|
|
321
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
460
322
|
let body;
|
|
461
323
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
462
324
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
463
325
|
};
|
|
464
326
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
465
327
|
const se_ListTargetsForPolicyCommand = async (input, context) => {
|
|
466
|
-
const headers =
|
|
467
|
-
"content-type": "application/x-amz-json-1.1",
|
|
468
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListTargetsForPolicy",
|
|
469
|
-
};
|
|
328
|
+
const headers = sharedHeaders("ListTargetsForPolicy");
|
|
470
329
|
let body;
|
|
471
330
|
body = JSON.stringify(se_ListTargetsForPolicyRequest(input, context));
|
|
472
331
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
473
332
|
};
|
|
474
333
|
exports.se_ListTargetsForPolicyCommand = se_ListTargetsForPolicyCommand;
|
|
475
334
|
const se_MoveAccountCommand = async (input, context) => {
|
|
476
|
-
const headers =
|
|
477
|
-
"content-type": "application/x-amz-json-1.1",
|
|
478
|
-
"x-amz-target": "AWSOrganizationsV20161128.MoveAccount",
|
|
479
|
-
};
|
|
335
|
+
const headers = sharedHeaders("MoveAccount");
|
|
480
336
|
let body;
|
|
481
337
|
body = JSON.stringify(se_MoveAccountRequest(input, context));
|
|
482
338
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
483
339
|
};
|
|
484
340
|
exports.se_MoveAccountCommand = se_MoveAccountCommand;
|
|
485
341
|
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
486
|
-
const headers =
|
|
487
|
-
"content-type": "application/x-amz-json-1.1",
|
|
488
|
-
"x-amz-target": "AWSOrganizationsV20161128.PutResourcePolicy",
|
|
489
|
-
};
|
|
342
|
+
const headers = sharedHeaders("PutResourcePolicy");
|
|
490
343
|
let body;
|
|
491
344
|
body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
|
|
492
345
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
493
346
|
};
|
|
494
347
|
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
495
348
|
const se_RegisterDelegatedAdministratorCommand = async (input, context) => {
|
|
496
|
-
const headers =
|
|
497
|
-
"content-type": "application/x-amz-json-1.1",
|
|
498
|
-
"x-amz-target": "AWSOrganizationsV20161128.RegisterDelegatedAdministrator",
|
|
499
|
-
};
|
|
349
|
+
const headers = sharedHeaders("RegisterDelegatedAdministrator");
|
|
500
350
|
let body;
|
|
501
351
|
body = JSON.stringify(se_RegisterDelegatedAdministratorRequest(input, context));
|
|
502
352
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
503
353
|
};
|
|
504
354
|
exports.se_RegisterDelegatedAdministratorCommand = se_RegisterDelegatedAdministratorCommand;
|
|
505
355
|
const se_RemoveAccountFromOrganizationCommand = async (input, context) => {
|
|
506
|
-
const headers =
|
|
507
|
-
"content-type": "application/x-amz-json-1.1",
|
|
508
|
-
"x-amz-target": "AWSOrganizationsV20161128.RemoveAccountFromOrganization",
|
|
509
|
-
};
|
|
356
|
+
const headers = sharedHeaders("RemoveAccountFromOrganization");
|
|
510
357
|
let body;
|
|
511
358
|
body = JSON.stringify(se_RemoveAccountFromOrganizationRequest(input, context));
|
|
512
359
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
513
360
|
};
|
|
514
361
|
exports.se_RemoveAccountFromOrganizationCommand = se_RemoveAccountFromOrganizationCommand;
|
|
515
362
|
const se_TagResourceCommand = async (input, context) => {
|
|
516
|
-
const headers =
|
|
517
|
-
"content-type": "application/x-amz-json-1.1",
|
|
518
|
-
"x-amz-target": "AWSOrganizationsV20161128.TagResource",
|
|
519
|
-
};
|
|
363
|
+
const headers = sharedHeaders("TagResource");
|
|
520
364
|
let body;
|
|
521
365
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
522
366
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
523
367
|
};
|
|
524
368
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
525
369
|
const se_UntagResourceCommand = async (input, context) => {
|
|
526
|
-
const headers =
|
|
527
|
-
"content-type": "application/x-amz-json-1.1",
|
|
528
|
-
"x-amz-target": "AWSOrganizationsV20161128.UntagResource",
|
|
529
|
-
};
|
|
370
|
+
const headers = sharedHeaders("UntagResource");
|
|
530
371
|
let body;
|
|
531
372
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
532
373
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
533
374
|
};
|
|
534
375
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
535
376
|
const se_UpdateOrganizationalUnitCommand = async (input, context) => {
|
|
536
|
-
const headers =
|
|
537
|
-
"content-type": "application/x-amz-json-1.1",
|
|
538
|
-
"x-amz-target": "AWSOrganizationsV20161128.UpdateOrganizationalUnit",
|
|
539
|
-
};
|
|
377
|
+
const headers = sharedHeaders("UpdateOrganizationalUnit");
|
|
540
378
|
let body;
|
|
541
379
|
body = JSON.stringify(se_UpdateOrganizationalUnitRequest(input, context));
|
|
542
380
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
543
381
|
};
|
|
544
382
|
exports.se_UpdateOrganizationalUnitCommand = se_UpdateOrganizationalUnitCommand;
|
|
545
383
|
const se_UpdatePolicyCommand = async (input, context) => {
|
|
546
|
-
const headers =
|
|
547
|
-
"content-type": "application/x-amz-json-1.1",
|
|
548
|
-
"x-amz-target": "AWSOrganizationsV20161128.UpdatePolicy",
|
|
549
|
-
};
|
|
384
|
+
const headers = sharedHeaders("UpdatePolicy");
|
|
550
385
|
let body;
|
|
551
386
|
body = JSON.stringify(se_UpdatePolicyRequest(input, context));
|
|
552
387
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -5162,6 +4997,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
5162
4997
|
}
|
|
5163
4998
|
return new protocol_http_1.HttpRequest(contents);
|
|
5164
4999
|
};
|
|
5000
|
+
function sharedHeaders(operation) {
|
|
5001
|
+
return {
|
|
5002
|
+
"content-type": "application/x-amz-json-1.1",
|
|
5003
|
+
"x-amz-target": `AWSOrganizationsV20161128.${operation}`,
|
|
5004
|
+
};
|
|
5005
|
+
}
|
|
5165
5006
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5166
5007
|
if (encoded.length) {
|
|
5167
5008
|
return JSON.parse(encoded);
|
|
@@ -3,491 +3,326 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { AccessDeniedException, AccessDeniedForDependencyException, AccountAlreadyClosedException, AccountAlreadyRegisteredException, AccountNotFoundException, AccountNotRegisteredException, AccountOwnerNotVerifiedException, AlreadyInOrganizationException, AWSOrganizationsNotInUseException, ChildNotFoundException, ConcurrentModificationException, ConflictException, ConstraintViolationException, CreateAccountStatusNotFoundException, DestinationParentNotFoundException, DuplicateAccountException, DuplicateHandshakeException, DuplicateOrganizationalUnitException, DuplicatePolicyAttachmentException, DuplicatePolicyException, EffectivePolicyNotFoundException, FinalizingOrganizationException, HandshakeAlreadyInStateException, HandshakeConstraintViolationException, HandshakeNotFoundException, InvalidHandshakeTransitionException, InvalidInputException, MalformedPolicyDocumentException, MasterCannotLeaveOrganizationException, OrganizationalUnitNotEmptyException, OrganizationalUnitNotFoundException, OrganizationNotEmptyException, ParentNotFoundException, PolicyChangesInProgressException, PolicyInUseException, PolicyNotAttachedException, PolicyNotFoundException, PolicyTypeAlreadyEnabledException, PolicyTypeNotAvailableForOrganizationException, PolicyTypeNotEnabledException, ResourcePolicyNotFoundException, RootNotFoundException, ServiceException, SourceParentNotFoundException, TargetNotFoundException, TooManyRequestsException, UnsupportedAPIEndpointException, } from "../models/models_0";
|
|
4
4
|
import { OrganizationsServiceException as __BaseException } from "../models/OrganizationsServiceException";
|
|
5
5
|
export const se_AcceptHandshakeCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "AWSOrganizationsV20161128.AcceptHandshake",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("AcceptHandshake");
|
|
10
7
|
let body;
|
|
11
8
|
body = JSON.stringify(se_AcceptHandshakeRequest(input, context));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_AttachPolicyCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "AWSOrganizationsV20161128.AttachPolicy",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("AttachPolicy");
|
|
19
13
|
let body;
|
|
20
14
|
body = JSON.stringify(se_AttachPolicyRequest(input, context));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_CancelHandshakeCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "AWSOrganizationsV20161128.CancelHandshake",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CancelHandshake");
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify(se_CancelHandshakeRequest(input, context));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_CloseAccountCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "AWSOrganizationsV20161128.CloseAccount",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CloseAccount");
|
|
37
25
|
let body;
|
|
38
26
|
body = JSON.stringify(se_CloseAccountRequest(input, context));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_CreateAccountCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "AWSOrganizationsV20161128.CreateAccount",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("CreateAccount");
|
|
46
31
|
let body;
|
|
47
32
|
body = JSON.stringify(se_CreateAccountRequest(input, context));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_CreateGovCloudAccountCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "AWSOrganizationsV20161128.CreateGovCloudAccount",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("CreateGovCloudAccount");
|
|
55
37
|
let body;
|
|
56
38
|
body = JSON.stringify(se_CreateGovCloudAccountRequest(input, context));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_CreateOrganizationCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AWSOrganizationsV20161128.CreateOrganization",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("CreateOrganization");
|
|
64
43
|
let body;
|
|
65
44
|
body = JSON.stringify(se_CreateOrganizationRequest(input, context));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_CreateOrganizationalUnitCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSOrganizationsV20161128.CreateOrganizationalUnit",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("CreateOrganizationalUnit");
|
|
73
49
|
let body;
|
|
74
50
|
body = JSON.stringify(se_CreateOrganizationalUnitRequest(input, context));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_CreatePolicyCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "AWSOrganizationsV20161128.CreatePolicy",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("CreatePolicy");
|
|
82
55
|
let body;
|
|
83
56
|
body = JSON.stringify(se_CreatePolicyRequest(input, context));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_DeclineHandshakeCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "AWSOrganizationsV20161128.DeclineHandshake",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DeclineHandshake");
|
|
91
61
|
let body;
|
|
92
62
|
body = JSON.stringify(se_DeclineHandshakeRequest(input, context));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_DeleteOrganizationCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "AWSOrganizationsV20161128.DeleteOrganization",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DeleteOrganization");
|
|
100
67
|
const body = "{}";
|
|
101
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
69
|
};
|
|
103
70
|
export const se_DeleteOrganizationalUnitCommand = async (input, context) => {
|
|
104
|
-
const headers =
|
|
105
|
-
"content-type": "application/x-amz-json-1.1",
|
|
106
|
-
"x-amz-target": "AWSOrganizationsV20161128.DeleteOrganizationalUnit",
|
|
107
|
-
};
|
|
71
|
+
const headers = sharedHeaders("DeleteOrganizationalUnit");
|
|
108
72
|
let body;
|
|
109
73
|
body = JSON.stringify(se_DeleteOrganizationalUnitRequest(input, context));
|
|
110
74
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
75
|
};
|
|
112
76
|
export const se_DeletePolicyCommand = async (input, context) => {
|
|
113
|
-
const headers =
|
|
114
|
-
"content-type": "application/x-amz-json-1.1",
|
|
115
|
-
"x-amz-target": "AWSOrganizationsV20161128.DeletePolicy",
|
|
116
|
-
};
|
|
77
|
+
const headers = sharedHeaders("DeletePolicy");
|
|
117
78
|
let body;
|
|
118
79
|
body = JSON.stringify(se_DeletePolicyRequest(input, context));
|
|
119
80
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
81
|
};
|
|
121
82
|
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
122
|
-
const headers =
|
|
123
|
-
"content-type": "application/x-amz-json-1.1",
|
|
124
|
-
"x-amz-target": "AWSOrganizationsV20161128.DeleteResourcePolicy",
|
|
125
|
-
};
|
|
83
|
+
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
126
84
|
const body = "{}";
|
|
127
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
86
|
};
|
|
129
87
|
export const se_DeregisterDelegatedAdministratorCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "AWSOrganizationsV20161128.DeregisterDelegatedAdministrator",
|
|
133
|
-
};
|
|
88
|
+
const headers = sharedHeaders("DeregisterDelegatedAdministrator");
|
|
134
89
|
let body;
|
|
135
90
|
body = JSON.stringify(se_DeregisterDelegatedAdministratorRequest(input, context));
|
|
136
91
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
92
|
};
|
|
138
93
|
export const se_DescribeAccountCommand = async (input, context) => {
|
|
139
|
-
const headers =
|
|
140
|
-
"content-type": "application/x-amz-json-1.1",
|
|
141
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeAccount",
|
|
142
|
-
};
|
|
94
|
+
const headers = sharedHeaders("DescribeAccount");
|
|
143
95
|
let body;
|
|
144
96
|
body = JSON.stringify(se_DescribeAccountRequest(input, context));
|
|
145
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
98
|
};
|
|
147
99
|
export const se_DescribeCreateAccountStatusCommand = async (input, context) => {
|
|
148
|
-
const headers =
|
|
149
|
-
"content-type": "application/x-amz-json-1.1",
|
|
150
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeCreateAccountStatus",
|
|
151
|
-
};
|
|
100
|
+
const headers = sharedHeaders("DescribeCreateAccountStatus");
|
|
152
101
|
let body;
|
|
153
102
|
body = JSON.stringify(se_DescribeCreateAccountStatusRequest(input, context));
|
|
154
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
104
|
};
|
|
156
105
|
export const se_DescribeEffectivePolicyCommand = async (input, context) => {
|
|
157
|
-
const headers =
|
|
158
|
-
"content-type": "application/x-amz-json-1.1",
|
|
159
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeEffectivePolicy",
|
|
160
|
-
};
|
|
106
|
+
const headers = sharedHeaders("DescribeEffectivePolicy");
|
|
161
107
|
let body;
|
|
162
108
|
body = JSON.stringify(se_DescribeEffectivePolicyRequest(input, context));
|
|
163
109
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
164
110
|
};
|
|
165
111
|
export const se_DescribeHandshakeCommand = async (input, context) => {
|
|
166
|
-
const headers =
|
|
167
|
-
"content-type": "application/x-amz-json-1.1",
|
|
168
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeHandshake",
|
|
169
|
-
};
|
|
112
|
+
const headers = sharedHeaders("DescribeHandshake");
|
|
170
113
|
let body;
|
|
171
114
|
body = JSON.stringify(se_DescribeHandshakeRequest(input, context));
|
|
172
115
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
116
|
};
|
|
174
117
|
export const se_DescribeOrganizationCommand = async (input, context) => {
|
|
175
|
-
const headers =
|
|
176
|
-
"content-type": "application/x-amz-json-1.1",
|
|
177
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeOrganization",
|
|
178
|
-
};
|
|
118
|
+
const headers = sharedHeaders("DescribeOrganization");
|
|
179
119
|
const body = "{}";
|
|
180
120
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
181
121
|
};
|
|
182
122
|
export const se_DescribeOrganizationalUnitCommand = async (input, context) => {
|
|
183
|
-
const headers =
|
|
184
|
-
"content-type": "application/x-amz-json-1.1",
|
|
185
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeOrganizationalUnit",
|
|
186
|
-
};
|
|
123
|
+
const headers = sharedHeaders("DescribeOrganizationalUnit");
|
|
187
124
|
let body;
|
|
188
125
|
body = JSON.stringify(se_DescribeOrganizationalUnitRequest(input, context));
|
|
189
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
127
|
};
|
|
191
128
|
export const se_DescribePolicyCommand = async (input, context) => {
|
|
192
|
-
const headers =
|
|
193
|
-
"content-type": "application/x-amz-json-1.1",
|
|
194
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribePolicy",
|
|
195
|
-
};
|
|
129
|
+
const headers = sharedHeaders("DescribePolicy");
|
|
196
130
|
let body;
|
|
197
131
|
body = JSON.stringify(se_DescribePolicyRequest(input, context));
|
|
198
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
199
133
|
};
|
|
200
134
|
export const se_DescribeResourcePolicyCommand = async (input, context) => {
|
|
201
|
-
const headers =
|
|
202
|
-
"content-type": "application/x-amz-json-1.1",
|
|
203
|
-
"x-amz-target": "AWSOrganizationsV20161128.DescribeResourcePolicy",
|
|
204
|
-
};
|
|
135
|
+
const headers = sharedHeaders("DescribeResourcePolicy");
|
|
205
136
|
const body = "{}";
|
|
206
137
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
138
|
};
|
|
208
139
|
export const se_DetachPolicyCommand = async (input, context) => {
|
|
209
|
-
const headers =
|
|
210
|
-
"content-type": "application/x-amz-json-1.1",
|
|
211
|
-
"x-amz-target": "AWSOrganizationsV20161128.DetachPolicy",
|
|
212
|
-
};
|
|
140
|
+
const headers = sharedHeaders("DetachPolicy");
|
|
213
141
|
let body;
|
|
214
142
|
body = JSON.stringify(se_DetachPolicyRequest(input, context));
|
|
215
143
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
144
|
};
|
|
217
145
|
export const se_DisableAWSServiceAccessCommand = async (input, context) => {
|
|
218
|
-
const headers =
|
|
219
|
-
"content-type": "application/x-amz-json-1.1",
|
|
220
|
-
"x-amz-target": "AWSOrganizationsV20161128.DisableAWSServiceAccess",
|
|
221
|
-
};
|
|
146
|
+
const headers = sharedHeaders("DisableAWSServiceAccess");
|
|
222
147
|
let body;
|
|
223
148
|
body = JSON.stringify(se_DisableAWSServiceAccessRequest(input, context));
|
|
224
149
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
150
|
};
|
|
226
151
|
export const se_DisablePolicyTypeCommand = async (input, context) => {
|
|
227
|
-
const headers =
|
|
228
|
-
"content-type": "application/x-amz-json-1.1",
|
|
229
|
-
"x-amz-target": "AWSOrganizationsV20161128.DisablePolicyType",
|
|
230
|
-
};
|
|
152
|
+
const headers = sharedHeaders("DisablePolicyType");
|
|
231
153
|
let body;
|
|
232
154
|
body = JSON.stringify(se_DisablePolicyTypeRequest(input, context));
|
|
233
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
156
|
};
|
|
235
157
|
export const se_EnableAllFeaturesCommand = async (input, context) => {
|
|
236
|
-
const headers =
|
|
237
|
-
"content-type": "application/x-amz-json-1.1",
|
|
238
|
-
"x-amz-target": "AWSOrganizationsV20161128.EnableAllFeatures",
|
|
239
|
-
};
|
|
158
|
+
const headers = sharedHeaders("EnableAllFeatures");
|
|
240
159
|
let body;
|
|
241
160
|
body = JSON.stringify(se_EnableAllFeaturesRequest(input, context));
|
|
242
161
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
243
162
|
};
|
|
244
163
|
export const se_EnableAWSServiceAccessCommand = async (input, context) => {
|
|
245
|
-
const headers =
|
|
246
|
-
"content-type": "application/x-amz-json-1.1",
|
|
247
|
-
"x-amz-target": "AWSOrganizationsV20161128.EnableAWSServiceAccess",
|
|
248
|
-
};
|
|
164
|
+
const headers = sharedHeaders("EnableAWSServiceAccess");
|
|
249
165
|
let body;
|
|
250
166
|
body = JSON.stringify(se_EnableAWSServiceAccessRequest(input, context));
|
|
251
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
168
|
};
|
|
253
169
|
export const se_EnablePolicyTypeCommand = async (input, context) => {
|
|
254
|
-
const headers =
|
|
255
|
-
"content-type": "application/x-amz-json-1.1",
|
|
256
|
-
"x-amz-target": "AWSOrganizationsV20161128.EnablePolicyType",
|
|
257
|
-
};
|
|
170
|
+
const headers = sharedHeaders("EnablePolicyType");
|
|
258
171
|
let body;
|
|
259
172
|
body = JSON.stringify(se_EnablePolicyTypeRequest(input, context));
|
|
260
173
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
174
|
};
|
|
262
175
|
export const se_InviteAccountToOrganizationCommand = async (input, context) => {
|
|
263
|
-
const headers =
|
|
264
|
-
"content-type": "application/x-amz-json-1.1",
|
|
265
|
-
"x-amz-target": "AWSOrganizationsV20161128.InviteAccountToOrganization",
|
|
266
|
-
};
|
|
176
|
+
const headers = sharedHeaders("InviteAccountToOrganization");
|
|
267
177
|
let body;
|
|
268
178
|
body = JSON.stringify(se_InviteAccountToOrganizationRequest(input, context));
|
|
269
179
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
270
180
|
};
|
|
271
181
|
export const se_LeaveOrganizationCommand = async (input, context) => {
|
|
272
|
-
const headers =
|
|
273
|
-
"content-type": "application/x-amz-json-1.1",
|
|
274
|
-
"x-amz-target": "AWSOrganizationsV20161128.LeaveOrganization",
|
|
275
|
-
};
|
|
182
|
+
const headers = sharedHeaders("LeaveOrganization");
|
|
276
183
|
const body = "{}";
|
|
277
184
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
278
185
|
};
|
|
279
186
|
export const se_ListAccountsCommand = async (input, context) => {
|
|
280
|
-
const headers =
|
|
281
|
-
"content-type": "application/x-amz-json-1.1",
|
|
282
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListAccounts",
|
|
283
|
-
};
|
|
187
|
+
const headers = sharedHeaders("ListAccounts");
|
|
284
188
|
let body;
|
|
285
189
|
body = JSON.stringify(se_ListAccountsRequest(input, context));
|
|
286
190
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
191
|
};
|
|
288
192
|
export const se_ListAccountsForParentCommand = async (input, context) => {
|
|
289
|
-
const headers =
|
|
290
|
-
"content-type": "application/x-amz-json-1.1",
|
|
291
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListAccountsForParent",
|
|
292
|
-
};
|
|
193
|
+
const headers = sharedHeaders("ListAccountsForParent");
|
|
293
194
|
let body;
|
|
294
195
|
body = JSON.stringify(se_ListAccountsForParentRequest(input, context));
|
|
295
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
296
197
|
};
|
|
297
198
|
export const se_ListAWSServiceAccessForOrganizationCommand = async (input, context) => {
|
|
298
|
-
const headers =
|
|
299
|
-
"content-type": "application/x-amz-json-1.1",
|
|
300
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListAWSServiceAccessForOrganization",
|
|
301
|
-
};
|
|
199
|
+
const headers = sharedHeaders("ListAWSServiceAccessForOrganization");
|
|
302
200
|
let body;
|
|
303
201
|
body = JSON.stringify(se_ListAWSServiceAccessForOrganizationRequest(input, context));
|
|
304
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
203
|
};
|
|
306
204
|
export const se_ListChildrenCommand = async (input, context) => {
|
|
307
|
-
const headers =
|
|
308
|
-
"content-type": "application/x-amz-json-1.1",
|
|
309
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListChildren",
|
|
310
|
-
};
|
|
205
|
+
const headers = sharedHeaders("ListChildren");
|
|
311
206
|
let body;
|
|
312
207
|
body = JSON.stringify(se_ListChildrenRequest(input, context));
|
|
313
208
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
314
209
|
};
|
|
315
210
|
export const se_ListCreateAccountStatusCommand = async (input, context) => {
|
|
316
|
-
const headers =
|
|
317
|
-
"content-type": "application/x-amz-json-1.1",
|
|
318
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListCreateAccountStatus",
|
|
319
|
-
};
|
|
211
|
+
const headers = sharedHeaders("ListCreateAccountStatus");
|
|
320
212
|
let body;
|
|
321
213
|
body = JSON.stringify(se_ListCreateAccountStatusRequest(input, context));
|
|
322
214
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
215
|
};
|
|
324
216
|
export const se_ListDelegatedAdministratorsCommand = async (input, context) => {
|
|
325
|
-
const headers =
|
|
326
|
-
"content-type": "application/x-amz-json-1.1",
|
|
327
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListDelegatedAdministrators",
|
|
328
|
-
};
|
|
217
|
+
const headers = sharedHeaders("ListDelegatedAdministrators");
|
|
329
218
|
let body;
|
|
330
219
|
body = JSON.stringify(se_ListDelegatedAdministratorsRequest(input, context));
|
|
331
220
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
332
221
|
};
|
|
333
222
|
export const se_ListDelegatedServicesForAccountCommand = async (input, context) => {
|
|
334
|
-
const headers =
|
|
335
|
-
"content-type": "application/x-amz-json-1.1",
|
|
336
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListDelegatedServicesForAccount",
|
|
337
|
-
};
|
|
223
|
+
const headers = sharedHeaders("ListDelegatedServicesForAccount");
|
|
338
224
|
let body;
|
|
339
225
|
body = JSON.stringify(se_ListDelegatedServicesForAccountRequest(input, context));
|
|
340
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
341
227
|
};
|
|
342
228
|
export const se_ListHandshakesForAccountCommand = async (input, context) => {
|
|
343
|
-
const headers =
|
|
344
|
-
"content-type": "application/x-amz-json-1.1",
|
|
345
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListHandshakesForAccount",
|
|
346
|
-
};
|
|
229
|
+
const headers = sharedHeaders("ListHandshakesForAccount");
|
|
347
230
|
let body;
|
|
348
231
|
body = JSON.stringify(se_ListHandshakesForAccountRequest(input, context));
|
|
349
232
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
350
233
|
};
|
|
351
234
|
export const se_ListHandshakesForOrganizationCommand = async (input, context) => {
|
|
352
|
-
const headers =
|
|
353
|
-
"content-type": "application/x-amz-json-1.1",
|
|
354
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListHandshakesForOrganization",
|
|
355
|
-
};
|
|
235
|
+
const headers = sharedHeaders("ListHandshakesForOrganization");
|
|
356
236
|
let body;
|
|
357
237
|
body = JSON.stringify(se_ListHandshakesForOrganizationRequest(input, context));
|
|
358
238
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
239
|
};
|
|
360
240
|
export const se_ListOrganizationalUnitsForParentCommand = async (input, context) => {
|
|
361
|
-
const headers =
|
|
362
|
-
"content-type": "application/x-amz-json-1.1",
|
|
363
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListOrganizationalUnitsForParent",
|
|
364
|
-
};
|
|
241
|
+
const headers = sharedHeaders("ListOrganizationalUnitsForParent");
|
|
365
242
|
let body;
|
|
366
243
|
body = JSON.stringify(se_ListOrganizationalUnitsForParentRequest(input, context));
|
|
367
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
368
245
|
};
|
|
369
246
|
export const se_ListParentsCommand = async (input, context) => {
|
|
370
|
-
const headers =
|
|
371
|
-
"content-type": "application/x-amz-json-1.1",
|
|
372
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListParents",
|
|
373
|
-
};
|
|
247
|
+
const headers = sharedHeaders("ListParents");
|
|
374
248
|
let body;
|
|
375
249
|
body = JSON.stringify(se_ListParentsRequest(input, context));
|
|
376
250
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
251
|
};
|
|
378
252
|
export const se_ListPoliciesCommand = async (input, context) => {
|
|
379
|
-
const headers =
|
|
380
|
-
"content-type": "application/x-amz-json-1.1",
|
|
381
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListPolicies",
|
|
382
|
-
};
|
|
253
|
+
const headers = sharedHeaders("ListPolicies");
|
|
383
254
|
let body;
|
|
384
255
|
body = JSON.stringify(se_ListPoliciesRequest(input, context));
|
|
385
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
386
257
|
};
|
|
387
258
|
export const se_ListPoliciesForTargetCommand = async (input, context) => {
|
|
388
|
-
const headers =
|
|
389
|
-
"content-type": "application/x-amz-json-1.1",
|
|
390
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListPoliciesForTarget",
|
|
391
|
-
};
|
|
259
|
+
const headers = sharedHeaders("ListPoliciesForTarget");
|
|
392
260
|
let body;
|
|
393
261
|
body = JSON.stringify(se_ListPoliciesForTargetRequest(input, context));
|
|
394
262
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
395
263
|
};
|
|
396
264
|
export const se_ListRootsCommand = async (input, context) => {
|
|
397
|
-
const headers =
|
|
398
|
-
"content-type": "application/x-amz-json-1.1",
|
|
399
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListRoots",
|
|
400
|
-
};
|
|
265
|
+
const headers = sharedHeaders("ListRoots");
|
|
401
266
|
let body;
|
|
402
267
|
body = JSON.stringify(se_ListRootsRequest(input, context));
|
|
403
268
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
404
269
|
};
|
|
405
270
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
406
|
-
const headers =
|
|
407
|
-
"content-type": "application/x-amz-json-1.1",
|
|
408
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListTagsForResource",
|
|
409
|
-
};
|
|
271
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
410
272
|
let body;
|
|
411
273
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
412
274
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
413
275
|
};
|
|
414
276
|
export const se_ListTargetsForPolicyCommand = async (input, context) => {
|
|
415
|
-
const headers =
|
|
416
|
-
"content-type": "application/x-amz-json-1.1",
|
|
417
|
-
"x-amz-target": "AWSOrganizationsV20161128.ListTargetsForPolicy",
|
|
418
|
-
};
|
|
277
|
+
const headers = sharedHeaders("ListTargetsForPolicy");
|
|
419
278
|
let body;
|
|
420
279
|
body = JSON.stringify(se_ListTargetsForPolicyRequest(input, context));
|
|
421
280
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
422
281
|
};
|
|
423
282
|
export const se_MoveAccountCommand = async (input, context) => {
|
|
424
|
-
const headers =
|
|
425
|
-
"content-type": "application/x-amz-json-1.1",
|
|
426
|
-
"x-amz-target": "AWSOrganizationsV20161128.MoveAccount",
|
|
427
|
-
};
|
|
283
|
+
const headers = sharedHeaders("MoveAccount");
|
|
428
284
|
let body;
|
|
429
285
|
body = JSON.stringify(se_MoveAccountRequest(input, context));
|
|
430
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
431
287
|
};
|
|
432
288
|
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
433
|
-
const headers =
|
|
434
|
-
"content-type": "application/x-amz-json-1.1",
|
|
435
|
-
"x-amz-target": "AWSOrganizationsV20161128.PutResourcePolicy",
|
|
436
|
-
};
|
|
289
|
+
const headers = sharedHeaders("PutResourcePolicy");
|
|
437
290
|
let body;
|
|
438
291
|
body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
|
|
439
292
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
440
293
|
};
|
|
441
294
|
export const se_RegisterDelegatedAdministratorCommand = async (input, context) => {
|
|
442
|
-
const headers =
|
|
443
|
-
"content-type": "application/x-amz-json-1.1",
|
|
444
|
-
"x-amz-target": "AWSOrganizationsV20161128.RegisterDelegatedAdministrator",
|
|
445
|
-
};
|
|
295
|
+
const headers = sharedHeaders("RegisterDelegatedAdministrator");
|
|
446
296
|
let body;
|
|
447
297
|
body = JSON.stringify(se_RegisterDelegatedAdministratorRequest(input, context));
|
|
448
298
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
449
299
|
};
|
|
450
300
|
export const se_RemoveAccountFromOrganizationCommand = async (input, context) => {
|
|
451
|
-
const headers =
|
|
452
|
-
"content-type": "application/x-amz-json-1.1",
|
|
453
|
-
"x-amz-target": "AWSOrganizationsV20161128.RemoveAccountFromOrganization",
|
|
454
|
-
};
|
|
301
|
+
const headers = sharedHeaders("RemoveAccountFromOrganization");
|
|
455
302
|
let body;
|
|
456
303
|
body = JSON.stringify(se_RemoveAccountFromOrganizationRequest(input, context));
|
|
457
304
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
458
305
|
};
|
|
459
306
|
export const se_TagResourceCommand = async (input, context) => {
|
|
460
|
-
const headers =
|
|
461
|
-
"content-type": "application/x-amz-json-1.1",
|
|
462
|
-
"x-amz-target": "AWSOrganizationsV20161128.TagResource",
|
|
463
|
-
};
|
|
307
|
+
const headers = sharedHeaders("TagResource");
|
|
464
308
|
let body;
|
|
465
309
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
466
310
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
467
311
|
};
|
|
468
312
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
469
|
-
const headers =
|
|
470
|
-
"content-type": "application/x-amz-json-1.1",
|
|
471
|
-
"x-amz-target": "AWSOrganizationsV20161128.UntagResource",
|
|
472
|
-
};
|
|
313
|
+
const headers = sharedHeaders("UntagResource");
|
|
473
314
|
let body;
|
|
474
315
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
475
316
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
476
317
|
};
|
|
477
318
|
export const se_UpdateOrganizationalUnitCommand = async (input, context) => {
|
|
478
|
-
const headers =
|
|
479
|
-
"content-type": "application/x-amz-json-1.1",
|
|
480
|
-
"x-amz-target": "AWSOrganizationsV20161128.UpdateOrganizationalUnit",
|
|
481
|
-
};
|
|
319
|
+
const headers = sharedHeaders("UpdateOrganizationalUnit");
|
|
482
320
|
let body;
|
|
483
321
|
body = JSON.stringify(se_UpdateOrganizationalUnitRequest(input, context));
|
|
484
322
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
485
323
|
};
|
|
486
324
|
export const se_UpdatePolicyCommand = async (input, context) => {
|
|
487
|
-
const headers =
|
|
488
|
-
"content-type": "application/x-amz-json-1.1",
|
|
489
|
-
"x-amz-target": "AWSOrganizationsV20161128.UpdatePolicy",
|
|
490
|
-
};
|
|
325
|
+
const headers = sharedHeaders("UpdatePolicy");
|
|
491
326
|
let body;
|
|
492
327
|
body = JSON.stringify(se_UpdatePolicyRequest(input, context));
|
|
493
328
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -5047,6 +4882,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
5047
4882
|
}
|
|
5048
4883
|
return new __HttpRequest(contents);
|
|
5049
4884
|
};
|
|
4885
|
+
function sharedHeaders(operation) {
|
|
4886
|
+
return {
|
|
4887
|
+
"content-type": "application/x-amz-json-1.1",
|
|
4888
|
+
"x-amz-target": `AWSOrganizationsV20161128.${operation}`,
|
|
4889
|
+
};
|
|
4890
|
+
}
|
|
5050
4891
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5051
4892
|
if (encoded.length) {
|
|
5052
4893
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-organizations",
|
|
3
3
|
"description": "AWS SDK for JavaScript Organizations Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.312.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.312.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
26
|
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|