@aws-sdk/client-organizations 3.315.0 → 3.316.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/Organizations.js +59 -770
- package/dist-es/Organizations.js +59 -770
- package/dist-types/Organizations.d.ts +133 -1077
- package/dist-types/ts3.4/Organizations.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Organizations = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AcceptHandshakeCommand_1 = require("./commands/AcceptHandshakeCommand");
|
|
5
6
|
const AttachPolicyCommand_1 = require("./commands/AttachPolicyCommand");
|
|
6
7
|
const CancelHandshakeCommand_1 = require("./commands/CancelHandshakeCommand");
|
|
@@ -57,776 +58,64 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
|
57
58
|
const UpdateOrganizationalUnitCommand_1 = require("./commands/UpdateOrganizationalUnitCommand");
|
|
58
59
|
const UpdatePolicyCommand_1 = require("./commands/UpdatePolicyCommand");
|
|
59
60
|
const OrganizationsClient_1 = require("./OrganizationsClient");
|
|
61
|
+
const commands = {
|
|
62
|
+
AcceptHandshakeCommand: AcceptHandshakeCommand_1.AcceptHandshakeCommand,
|
|
63
|
+
AttachPolicyCommand: AttachPolicyCommand_1.AttachPolicyCommand,
|
|
64
|
+
CancelHandshakeCommand: CancelHandshakeCommand_1.CancelHandshakeCommand,
|
|
65
|
+
CloseAccountCommand: CloseAccountCommand_1.CloseAccountCommand,
|
|
66
|
+
CreateAccountCommand: CreateAccountCommand_1.CreateAccountCommand,
|
|
67
|
+
CreateGovCloudAccountCommand: CreateGovCloudAccountCommand_1.CreateGovCloudAccountCommand,
|
|
68
|
+
CreateOrganizationCommand: CreateOrganizationCommand_1.CreateOrganizationCommand,
|
|
69
|
+
CreateOrganizationalUnitCommand: CreateOrganizationalUnitCommand_1.CreateOrganizationalUnitCommand,
|
|
70
|
+
CreatePolicyCommand: CreatePolicyCommand_1.CreatePolicyCommand,
|
|
71
|
+
DeclineHandshakeCommand: DeclineHandshakeCommand_1.DeclineHandshakeCommand,
|
|
72
|
+
DeleteOrganizationCommand: DeleteOrganizationCommand_1.DeleteOrganizationCommand,
|
|
73
|
+
DeleteOrganizationalUnitCommand: DeleteOrganizationalUnitCommand_1.DeleteOrganizationalUnitCommand,
|
|
74
|
+
DeletePolicyCommand: DeletePolicyCommand_1.DeletePolicyCommand,
|
|
75
|
+
DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand,
|
|
76
|
+
DeregisterDelegatedAdministratorCommand: DeregisterDelegatedAdministratorCommand_1.DeregisterDelegatedAdministratorCommand,
|
|
77
|
+
DescribeAccountCommand: DescribeAccountCommand_1.DescribeAccountCommand,
|
|
78
|
+
DescribeCreateAccountStatusCommand: DescribeCreateAccountStatusCommand_1.DescribeCreateAccountStatusCommand,
|
|
79
|
+
DescribeEffectivePolicyCommand: DescribeEffectivePolicyCommand_1.DescribeEffectivePolicyCommand,
|
|
80
|
+
DescribeHandshakeCommand: DescribeHandshakeCommand_1.DescribeHandshakeCommand,
|
|
81
|
+
DescribeOrganizationCommand: DescribeOrganizationCommand_1.DescribeOrganizationCommand,
|
|
82
|
+
DescribeOrganizationalUnitCommand: DescribeOrganizationalUnitCommand_1.DescribeOrganizationalUnitCommand,
|
|
83
|
+
DescribePolicyCommand: DescribePolicyCommand_1.DescribePolicyCommand,
|
|
84
|
+
DescribeResourcePolicyCommand: DescribeResourcePolicyCommand_1.DescribeResourcePolicyCommand,
|
|
85
|
+
DetachPolicyCommand: DetachPolicyCommand_1.DetachPolicyCommand,
|
|
86
|
+
DisableAWSServiceAccessCommand: DisableAWSServiceAccessCommand_1.DisableAWSServiceAccessCommand,
|
|
87
|
+
DisablePolicyTypeCommand: DisablePolicyTypeCommand_1.DisablePolicyTypeCommand,
|
|
88
|
+
EnableAllFeaturesCommand: EnableAllFeaturesCommand_1.EnableAllFeaturesCommand,
|
|
89
|
+
EnableAWSServiceAccessCommand: EnableAWSServiceAccessCommand_1.EnableAWSServiceAccessCommand,
|
|
90
|
+
EnablePolicyTypeCommand: EnablePolicyTypeCommand_1.EnablePolicyTypeCommand,
|
|
91
|
+
InviteAccountToOrganizationCommand: InviteAccountToOrganizationCommand_1.InviteAccountToOrganizationCommand,
|
|
92
|
+
LeaveOrganizationCommand: LeaveOrganizationCommand_1.LeaveOrganizationCommand,
|
|
93
|
+
ListAccountsCommand: ListAccountsCommand_1.ListAccountsCommand,
|
|
94
|
+
ListAccountsForParentCommand: ListAccountsForParentCommand_1.ListAccountsForParentCommand,
|
|
95
|
+
ListAWSServiceAccessForOrganizationCommand: ListAWSServiceAccessForOrganizationCommand_1.ListAWSServiceAccessForOrganizationCommand,
|
|
96
|
+
ListChildrenCommand: ListChildrenCommand_1.ListChildrenCommand,
|
|
97
|
+
ListCreateAccountStatusCommand: ListCreateAccountStatusCommand_1.ListCreateAccountStatusCommand,
|
|
98
|
+
ListDelegatedAdministratorsCommand: ListDelegatedAdministratorsCommand_1.ListDelegatedAdministratorsCommand,
|
|
99
|
+
ListDelegatedServicesForAccountCommand: ListDelegatedServicesForAccountCommand_1.ListDelegatedServicesForAccountCommand,
|
|
100
|
+
ListHandshakesForAccountCommand: ListHandshakesForAccountCommand_1.ListHandshakesForAccountCommand,
|
|
101
|
+
ListHandshakesForOrganizationCommand: ListHandshakesForOrganizationCommand_1.ListHandshakesForOrganizationCommand,
|
|
102
|
+
ListOrganizationalUnitsForParentCommand: ListOrganizationalUnitsForParentCommand_1.ListOrganizationalUnitsForParentCommand,
|
|
103
|
+
ListParentsCommand: ListParentsCommand_1.ListParentsCommand,
|
|
104
|
+
ListPoliciesCommand: ListPoliciesCommand_1.ListPoliciesCommand,
|
|
105
|
+
ListPoliciesForTargetCommand: ListPoliciesForTargetCommand_1.ListPoliciesForTargetCommand,
|
|
106
|
+
ListRootsCommand: ListRootsCommand_1.ListRootsCommand,
|
|
107
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
108
|
+
ListTargetsForPolicyCommand: ListTargetsForPolicyCommand_1.ListTargetsForPolicyCommand,
|
|
109
|
+
MoveAccountCommand: MoveAccountCommand_1.MoveAccountCommand,
|
|
110
|
+
PutResourcePolicyCommand: PutResourcePolicyCommand_1.PutResourcePolicyCommand,
|
|
111
|
+
RegisterDelegatedAdministratorCommand: RegisterDelegatedAdministratorCommand_1.RegisterDelegatedAdministratorCommand,
|
|
112
|
+
RemoveAccountFromOrganizationCommand: RemoveAccountFromOrganizationCommand_1.RemoveAccountFromOrganizationCommand,
|
|
113
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
114
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
115
|
+
UpdateOrganizationalUnitCommand: UpdateOrganizationalUnitCommand_1.UpdateOrganizationalUnitCommand,
|
|
116
|
+
UpdatePolicyCommand: UpdatePolicyCommand_1.UpdatePolicyCommand,
|
|
117
|
+
};
|
|
60
118
|
class Organizations extends OrganizationsClient_1.OrganizationsClient {
|
|
61
|
-
acceptHandshake(args, optionsOrCb, cb) {
|
|
62
|
-
const command = new AcceptHandshakeCommand_1.AcceptHandshakeCommand(args);
|
|
63
|
-
if (typeof optionsOrCb === "function") {
|
|
64
|
-
this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
else if (typeof cb === "function") {
|
|
67
|
-
if (typeof optionsOrCb !== "object")
|
|
68
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
69
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
return this.send(command, optionsOrCb);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
attachPolicy(args, optionsOrCb, cb) {
|
|
76
|
-
const command = new AttachPolicyCommand_1.AttachPolicyCommand(args);
|
|
77
|
-
if (typeof optionsOrCb === "function") {
|
|
78
|
-
this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
else if (typeof cb === "function") {
|
|
81
|
-
if (typeof optionsOrCb !== "object")
|
|
82
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
83
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
return this.send(command, optionsOrCb);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
cancelHandshake(args, optionsOrCb, cb) {
|
|
90
|
-
const command = new CancelHandshakeCommand_1.CancelHandshakeCommand(args);
|
|
91
|
-
if (typeof optionsOrCb === "function") {
|
|
92
|
-
this.send(command, optionsOrCb);
|
|
93
|
-
}
|
|
94
|
-
else if (typeof cb === "function") {
|
|
95
|
-
if (typeof optionsOrCb !== "object")
|
|
96
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
97
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
return this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
closeAccount(args, optionsOrCb, cb) {
|
|
104
|
-
const command = new CloseAccountCommand_1.CloseAccountCommand(args);
|
|
105
|
-
if (typeof optionsOrCb === "function") {
|
|
106
|
-
this.send(command, optionsOrCb);
|
|
107
|
-
}
|
|
108
|
-
else if (typeof cb === "function") {
|
|
109
|
-
if (typeof optionsOrCb !== "object")
|
|
110
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
111
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
return this.send(command, optionsOrCb);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
createAccount(args, optionsOrCb, cb) {
|
|
118
|
-
const command = new CreateAccountCommand_1.CreateAccountCommand(args);
|
|
119
|
-
if (typeof optionsOrCb === "function") {
|
|
120
|
-
this.send(command, optionsOrCb);
|
|
121
|
-
}
|
|
122
|
-
else if (typeof cb === "function") {
|
|
123
|
-
if (typeof optionsOrCb !== "object")
|
|
124
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
125
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
return this.send(command, optionsOrCb);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
createGovCloudAccount(args, optionsOrCb, cb) {
|
|
132
|
-
const command = new CreateGovCloudAccountCommand_1.CreateGovCloudAccountCommand(args);
|
|
133
|
-
if (typeof optionsOrCb === "function") {
|
|
134
|
-
this.send(command, optionsOrCb);
|
|
135
|
-
}
|
|
136
|
-
else if (typeof cb === "function") {
|
|
137
|
-
if (typeof optionsOrCb !== "object")
|
|
138
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
139
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
return this.send(command, optionsOrCb);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
createOrganization(args, optionsOrCb, cb) {
|
|
146
|
-
const command = new CreateOrganizationCommand_1.CreateOrganizationCommand(args);
|
|
147
|
-
if (typeof optionsOrCb === "function") {
|
|
148
|
-
this.send(command, optionsOrCb);
|
|
149
|
-
}
|
|
150
|
-
else if (typeof cb === "function") {
|
|
151
|
-
if (typeof optionsOrCb !== "object")
|
|
152
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
153
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
return this.send(command, optionsOrCb);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
createOrganizationalUnit(args, optionsOrCb, cb) {
|
|
160
|
-
const command = new CreateOrganizationalUnitCommand_1.CreateOrganizationalUnitCommand(args);
|
|
161
|
-
if (typeof optionsOrCb === "function") {
|
|
162
|
-
this.send(command, optionsOrCb);
|
|
163
|
-
}
|
|
164
|
-
else if (typeof cb === "function") {
|
|
165
|
-
if (typeof optionsOrCb !== "object")
|
|
166
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
167
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
return this.send(command, optionsOrCb);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
createPolicy(args, optionsOrCb, cb) {
|
|
174
|
-
const command = new CreatePolicyCommand_1.CreatePolicyCommand(args);
|
|
175
|
-
if (typeof optionsOrCb === "function") {
|
|
176
|
-
this.send(command, optionsOrCb);
|
|
177
|
-
}
|
|
178
|
-
else if (typeof cb === "function") {
|
|
179
|
-
if (typeof optionsOrCb !== "object")
|
|
180
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
181
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
return this.send(command, optionsOrCb);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
declineHandshake(args, optionsOrCb, cb) {
|
|
188
|
-
const command = new DeclineHandshakeCommand_1.DeclineHandshakeCommand(args);
|
|
189
|
-
if (typeof optionsOrCb === "function") {
|
|
190
|
-
this.send(command, optionsOrCb);
|
|
191
|
-
}
|
|
192
|
-
else if (typeof cb === "function") {
|
|
193
|
-
if (typeof optionsOrCb !== "object")
|
|
194
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
195
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
return this.send(command, optionsOrCb);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
deleteOrganization(args, optionsOrCb, cb) {
|
|
202
|
-
const command = new DeleteOrganizationCommand_1.DeleteOrganizationCommand(args);
|
|
203
|
-
if (typeof optionsOrCb === "function") {
|
|
204
|
-
this.send(command, optionsOrCb);
|
|
205
|
-
}
|
|
206
|
-
else if (typeof cb === "function") {
|
|
207
|
-
if (typeof optionsOrCb !== "object")
|
|
208
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
209
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
return this.send(command, optionsOrCb);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
deleteOrganizationalUnit(args, optionsOrCb, cb) {
|
|
216
|
-
const command = new DeleteOrganizationalUnitCommand_1.DeleteOrganizationalUnitCommand(args);
|
|
217
|
-
if (typeof optionsOrCb === "function") {
|
|
218
|
-
this.send(command, optionsOrCb);
|
|
219
|
-
}
|
|
220
|
-
else if (typeof cb === "function") {
|
|
221
|
-
if (typeof optionsOrCb !== "object")
|
|
222
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
223
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
return this.send(command, optionsOrCb);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
deletePolicy(args, optionsOrCb, cb) {
|
|
230
|
-
const command = new DeletePolicyCommand_1.DeletePolicyCommand(args);
|
|
231
|
-
if (typeof optionsOrCb === "function") {
|
|
232
|
-
this.send(command, optionsOrCb);
|
|
233
|
-
}
|
|
234
|
-
else if (typeof cb === "function") {
|
|
235
|
-
if (typeof optionsOrCb !== "object")
|
|
236
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
237
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
return this.send(command, optionsOrCb);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
244
|
-
const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
|
|
245
|
-
if (typeof optionsOrCb === "function") {
|
|
246
|
-
this.send(command, optionsOrCb);
|
|
247
|
-
}
|
|
248
|
-
else if (typeof cb === "function") {
|
|
249
|
-
if (typeof optionsOrCb !== "object")
|
|
250
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
251
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
252
|
-
}
|
|
253
|
-
else {
|
|
254
|
-
return this.send(command, optionsOrCb);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
deregisterDelegatedAdministrator(args, optionsOrCb, cb) {
|
|
258
|
-
const command = new DeregisterDelegatedAdministratorCommand_1.DeregisterDelegatedAdministratorCommand(args);
|
|
259
|
-
if (typeof optionsOrCb === "function") {
|
|
260
|
-
this.send(command, optionsOrCb);
|
|
261
|
-
}
|
|
262
|
-
else if (typeof cb === "function") {
|
|
263
|
-
if (typeof optionsOrCb !== "object")
|
|
264
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
265
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
266
|
-
}
|
|
267
|
-
else {
|
|
268
|
-
return this.send(command, optionsOrCb);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
describeAccount(args, optionsOrCb, cb) {
|
|
272
|
-
const command = new DescribeAccountCommand_1.DescribeAccountCommand(args);
|
|
273
|
-
if (typeof optionsOrCb === "function") {
|
|
274
|
-
this.send(command, optionsOrCb);
|
|
275
|
-
}
|
|
276
|
-
else if (typeof cb === "function") {
|
|
277
|
-
if (typeof optionsOrCb !== "object")
|
|
278
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
279
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
return this.send(command, optionsOrCb);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
describeCreateAccountStatus(args, optionsOrCb, cb) {
|
|
286
|
-
const command = new DescribeCreateAccountStatusCommand_1.DescribeCreateAccountStatusCommand(args);
|
|
287
|
-
if (typeof optionsOrCb === "function") {
|
|
288
|
-
this.send(command, optionsOrCb);
|
|
289
|
-
}
|
|
290
|
-
else if (typeof cb === "function") {
|
|
291
|
-
if (typeof optionsOrCb !== "object")
|
|
292
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
293
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
294
|
-
}
|
|
295
|
-
else {
|
|
296
|
-
return this.send(command, optionsOrCb);
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
describeEffectivePolicy(args, optionsOrCb, cb) {
|
|
300
|
-
const command = new DescribeEffectivePolicyCommand_1.DescribeEffectivePolicyCommand(args);
|
|
301
|
-
if (typeof optionsOrCb === "function") {
|
|
302
|
-
this.send(command, optionsOrCb);
|
|
303
|
-
}
|
|
304
|
-
else if (typeof cb === "function") {
|
|
305
|
-
if (typeof optionsOrCb !== "object")
|
|
306
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
307
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
return this.send(command, optionsOrCb);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
describeHandshake(args, optionsOrCb, cb) {
|
|
314
|
-
const command = new DescribeHandshakeCommand_1.DescribeHandshakeCommand(args);
|
|
315
|
-
if (typeof optionsOrCb === "function") {
|
|
316
|
-
this.send(command, optionsOrCb);
|
|
317
|
-
}
|
|
318
|
-
else if (typeof cb === "function") {
|
|
319
|
-
if (typeof optionsOrCb !== "object")
|
|
320
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
321
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
322
|
-
}
|
|
323
|
-
else {
|
|
324
|
-
return this.send(command, optionsOrCb);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
describeOrganization(args, optionsOrCb, cb) {
|
|
328
|
-
const command = new DescribeOrganizationCommand_1.DescribeOrganizationCommand(args);
|
|
329
|
-
if (typeof optionsOrCb === "function") {
|
|
330
|
-
this.send(command, optionsOrCb);
|
|
331
|
-
}
|
|
332
|
-
else if (typeof cb === "function") {
|
|
333
|
-
if (typeof optionsOrCb !== "object")
|
|
334
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
335
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
336
|
-
}
|
|
337
|
-
else {
|
|
338
|
-
return this.send(command, optionsOrCb);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
describeOrganizationalUnit(args, optionsOrCb, cb) {
|
|
342
|
-
const command = new DescribeOrganizationalUnitCommand_1.DescribeOrganizationalUnitCommand(args);
|
|
343
|
-
if (typeof optionsOrCb === "function") {
|
|
344
|
-
this.send(command, optionsOrCb);
|
|
345
|
-
}
|
|
346
|
-
else if (typeof cb === "function") {
|
|
347
|
-
if (typeof optionsOrCb !== "object")
|
|
348
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
349
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
350
|
-
}
|
|
351
|
-
else {
|
|
352
|
-
return this.send(command, optionsOrCb);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
describePolicy(args, optionsOrCb, cb) {
|
|
356
|
-
const command = new DescribePolicyCommand_1.DescribePolicyCommand(args);
|
|
357
|
-
if (typeof optionsOrCb === "function") {
|
|
358
|
-
this.send(command, optionsOrCb);
|
|
359
|
-
}
|
|
360
|
-
else if (typeof cb === "function") {
|
|
361
|
-
if (typeof optionsOrCb !== "object")
|
|
362
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
363
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
364
|
-
}
|
|
365
|
-
else {
|
|
366
|
-
return this.send(command, optionsOrCb);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
describeResourcePolicy(args, optionsOrCb, cb) {
|
|
370
|
-
const command = new DescribeResourcePolicyCommand_1.DescribeResourcePolicyCommand(args);
|
|
371
|
-
if (typeof optionsOrCb === "function") {
|
|
372
|
-
this.send(command, optionsOrCb);
|
|
373
|
-
}
|
|
374
|
-
else if (typeof cb === "function") {
|
|
375
|
-
if (typeof optionsOrCb !== "object")
|
|
376
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
377
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
378
|
-
}
|
|
379
|
-
else {
|
|
380
|
-
return this.send(command, optionsOrCb);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
detachPolicy(args, optionsOrCb, cb) {
|
|
384
|
-
const command = new DetachPolicyCommand_1.DetachPolicyCommand(args);
|
|
385
|
-
if (typeof optionsOrCb === "function") {
|
|
386
|
-
this.send(command, optionsOrCb);
|
|
387
|
-
}
|
|
388
|
-
else if (typeof cb === "function") {
|
|
389
|
-
if (typeof optionsOrCb !== "object")
|
|
390
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
391
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
392
|
-
}
|
|
393
|
-
else {
|
|
394
|
-
return this.send(command, optionsOrCb);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
disableAWSServiceAccess(args, optionsOrCb, cb) {
|
|
398
|
-
const command = new DisableAWSServiceAccessCommand_1.DisableAWSServiceAccessCommand(args);
|
|
399
|
-
if (typeof optionsOrCb === "function") {
|
|
400
|
-
this.send(command, optionsOrCb);
|
|
401
|
-
}
|
|
402
|
-
else if (typeof cb === "function") {
|
|
403
|
-
if (typeof optionsOrCb !== "object")
|
|
404
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
405
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
406
|
-
}
|
|
407
|
-
else {
|
|
408
|
-
return this.send(command, optionsOrCb);
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
disablePolicyType(args, optionsOrCb, cb) {
|
|
412
|
-
const command = new DisablePolicyTypeCommand_1.DisablePolicyTypeCommand(args);
|
|
413
|
-
if (typeof optionsOrCb === "function") {
|
|
414
|
-
this.send(command, optionsOrCb);
|
|
415
|
-
}
|
|
416
|
-
else if (typeof cb === "function") {
|
|
417
|
-
if (typeof optionsOrCb !== "object")
|
|
418
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
419
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
420
|
-
}
|
|
421
|
-
else {
|
|
422
|
-
return this.send(command, optionsOrCb);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
enableAllFeatures(args, optionsOrCb, cb) {
|
|
426
|
-
const command = new EnableAllFeaturesCommand_1.EnableAllFeaturesCommand(args);
|
|
427
|
-
if (typeof optionsOrCb === "function") {
|
|
428
|
-
this.send(command, optionsOrCb);
|
|
429
|
-
}
|
|
430
|
-
else if (typeof cb === "function") {
|
|
431
|
-
if (typeof optionsOrCb !== "object")
|
|
432
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
433
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
434
|
-
}
|
|
435
|
-
else {
|
|
436
|
-
return this.send(command, optionsOrCb);
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
enableAWSServiceAccess(args, optionsOrCb, cb) {
|
|
440
|
-
const command = new EnableAWSServiceAccessCommand_1.EnableAWSServiceAccessCommand(args);
|
|
441
|
-
if (typeof optionsOrCb === "function") {
|
|
442
|
-
this.send(command, optionsOrCb);
|
|
443
|
-
}
|
|
444
|
-
else if (typeof cb === "function") {
|
|
445
|
-
if (typeof optionsOrCb !== "object")
|
|
446
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
447
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
448
|
-
}
|
|
449
|
-
else {
|
|
450
|
-
return this.send(command, optionsOrCb);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
enablePolicyType(args, optionsOrCb, cb) {
|
|
454
|
-
const command = new EnablePolicyTypeCommand_1.EnablePolicyTypeCommand(args);
|
|
455
|
-
if (typeof optionsOrCb === "function") {
|
|
456
|
-
this.send(command, optionsOrCb);
|
|
457
|
-
}
|
|
458
|
-
else if (typeof cb === "function") {
|
|
459
|
-
if (typeof optionsOrCb !== "object")
|
|
460
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
461
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
462
|
-
}
|
|
463
|
-
else {
|
|
464
|
-
return this.send(command, optionsOrCb);
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
inviteAccountToOrganization(args, optionsOrCb, cb) {
|
|
468
|
-
const command = new InviteAccountToOrganizationCommand_1.InviteAccountToOrganizationCommand(args);
|
|
469
|
-
if (typeof optionsOrCb === "function") {
|
|
470
|
-
this.send(command, optionsOrCb);
|
|
471
|
-
}
|
|
472
|
-
else if (typeof cb === "function") {
|
|
473
|
-
if (typeof optionsOrCb !== "object")
|
|
474
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
475
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
476
|
-
}
|
|
477
|
-
else {
|
|
478
|
-
return this.send(command, optionsOrCb);
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
leaveOrganization(args, optionsOrCb, cb) {
|
|
482
|
-
const command = new LeaveOrganizationCommand_1.LeaveOrganizationCommand(args);
|
|
483
|
-
if (typeof optionsOrCb === "function") {
|
|
484
|
-
this.send(command, optionsOrCb);
|
|
485
|
-
}
|
|
486
|
-
else if (typeof cb === "function") {
|
|
487
|
-
if (typeof optionsOrCb !== "object")
|
|
488
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
489
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
490
|
-
}
|
|
491
|
-
else {
|
|
492
|
-
return this.send(command, optionsOrCb);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
listAccounts(args, optionsOrCb, cb) {
|
|
496
|
-
const command = new ListAccountsCommand_1.ListAccountsCommand(args);
|
|
497
|
-
if (typeof optionsOrCb === "function") {
|
|
498
|
-
this.send(command, optionsOrCb);
|
|
499
|
-
}
|
|
500
|
-
else if (typeof cb === "function") {
|
|
501
|
-
if (typeof optionsOrCb !== "object")
|
|
502
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
503
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
504
|
-
}
|
|
505
|
-
else {
|
|
506
|
-
return this.send(command, optionsOrCb);
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
listAccountsForParent(args, optionsOrCb, cb) {
|
|
510
|
-
const command = new ListAccountsForParentCommand_1.ListAccountsForParentCommand(args);
|
|
511
|
-
if (typeof optionsOrCb === "function") {
|
|
512
|
-
this.send(command, optionsOrCb);
|
|
513
|
-
}
|
|
514
|
-
else if (typeof cb === "function") {
|
|
515
|
-
if (typeof optionsOrCb !== "object")
|
|
516
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
517
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
518
|
-
}
|
|
519
|
-
else {
|
|
520
|
-
return this.send(command, optionsOrCb);
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
listAWSServiceAccessForOrganization(args, optionsOrCb, cb) {
|
|
524
|
-
const command = new ListAWSServiceAccessForOrganizationCommand_1.ListAWSServiceAccessForOrganizationCommand(args);
|
|
525
|
-
if (typeof optionsOrCb === "function") {
|
|
526
|
-
this.send(command, optionsOrCb);
|
|
527
|
-
}
|
|
528
|
-
else if (typeof cb === "function") {
|
|
529
|
-
if (typeof optionsOrCb !== "object")
|
|
530
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
531
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
532
|
-
}
|
|
533
|
-
else {
|
|
534
|
-
return this.send(command, optionsOrCb);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
listChildren(args, optionsOrCb, cb) {
|
|
538
|
-
const command = new ListChildrenCommand_1.ListChildrenCommand(args);
|
|
539
|
-
if (typeof optionsOrCb === "function") {
|
|
540
|
-
this.send(command, optionsOrCb);
|
|
541
|
-
}
|
|
542
|
-
else if (typeof cb === "function") {
|
|
543
|
-
if (typeof optionsOrCb !== "object")
|
|
544
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
545
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
546
|
-
}
|
|
547
|
-
else {
|
|
548
|
-
return this.send(command, optionsOrCb);
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
listCreateAccountStatus(args, optionsOrCb, cb) {
|
|
552
|
-
const command = new ListCreateAccountStatusCommand_1.ListCreateAccountStatusCommand(args);
|
|
553
|
-
if (typeof optionsOrCb === "function") {
|
|
554
|
-
this.send(command, optionsOrCb);
|
|
555
|
-
}
|
|
556
|
-
else if (typeof cb === "function") {
|
|
557
|
-
if (typeof optionsOrCb !== "object")
|
|
558
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
559
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
560
|
-
}
|
|
561
|
-
else {
|
|
562
|
-
return this.send(command, optionsOrCb);
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
listDelegatedAdministrators(args, optionsOrCb, cb) {
|
|
566
|
-
const command = new ListDelegatedAdministratorsCommand_1.ListDelegatedAdministratorsCommand(args);
|
|
567
|
-
if (typeof optionsOrCb === "function") {
|
|
568
|
-
this.send(command, optionsOrCb);
|
|
569
|
-
}
|
|
570
|
-
else if (typeof cb === "function") {
|
|
571
|
-
if (typeof optionsOrCb !== "object")
|
|
572
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
573
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
574
|
-
}
|
|
575
|
-
else {
|
|
576
|
-
return this.send(command, optionsOrCb);
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
listDelegatedServicesForAccount(args, optionsOrCb, cb) {
|
|
580
|
-
const command = new ListDelegatedServicesForAccountCommand_1.ListDelegatedServicesForAccountCommand(args);
|
|
581
|
-
if (typeof optionsOrCb === "function") {
|
|
582
|
-
this.send(command, optionsOrCb);
|
|
583
|
-
}
|
|
584
|
-
else if (typeof cb === "function") {
|
|
585
|
-
if (typeof optionsOrCb !== "object")
|
|
586
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
587
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
588
|
-
}
|
|
589
|
-
else {
|
|
590
|
-
return this.send(command, optionsOrCb);
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
listHandshakesForAccount(args, optionsOrCb, cb) {
|
|
594
|
-
const command = new ListHandshakesForAccountCommand_1.ListHandshakesForAccountCommand(args);
|
|
595
|
-
if (typeof optionsOrCb === "function") {
|
|
596
|
-
this.send(command, optionsOrCb);
|
|
597
|
-
}
|
|
598
|
-
else if (typeof cb === "function") {
|
|
599
|
-
if (typeof optionsOrCb !== "object")
|
|
600
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
601
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
602
|
-
}
|
|
603
|
-
else {
|
|
604
|
-
return this.send(command, optionsOrCb);
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
listHandshakesForOrganization(args, optionsOrCb, cb) {
|
|
608
|
-
const command = new ListHandshakesForOrganizationCommand_1.ListHandshakesForOrganizationCommand(args);
|
|
609
|
-
if (typeof optionsOrCb === "function") {
|
|
610
|
-
this.send(command, optionsOrCb);
|
|
611
|
-
}
|
|
612
|
-
else if (typeof cb === "function") {
|
|
613
|
-
if (typeof optionsOrCb !== "object")
|
|
614
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
615
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
616
|
-
}
|
|
617
|
-
else {
|
|
618
|
-
return this.send(command, optionsOrCb);
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
listOrganizationalUnitsForParent(args, optionsOrCb, cb) {
|
|
622
|
-
const command = new ListOrganizationalUnitsForParentCommand_1.ListOrganizationalUnitsForParentCommand(args);
|
|
623
|
-
if (typeof optionsOrCb === "function") {
|
|
624
|
-
this.send(command, optionsOrCb);
|
|
625
|
-
}
|
|
626
|
-
else if (typeof cb === "function") {
|
|
627
|
-
if (typeof optionsOrCb !== "object")
|
|
628
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
629
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
630
|
-
}
|
|
631
|
-
else {
|
|
632
|
-
return this.send(command, optionsOrCb);
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
listParents(args, optionsOrCb, cb) {
|
|
636
|
-
const command = new ListParentsCommand_1.ListParentsCommand(args);
|
|
637
|
-
if (typeof optionsOrCb === "function") {
|
|
638
|
-
this.send(command, optionsOrCb);
|
|
639
|
-
}
|
|
640
|
-
else if (typeof cb === "function") {
|
|
641
|
-
if (typeof optionsOrCb !== "object")
|
|
642
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
643
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
644
|
-
}
|
|
645
|
-
else {
|
|
646
|
-
return this.send(command, optionsOrCb);
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
listPolicies(args, optionsOrCb, cb) {
|
|
650
|
-
const command = new ListPoliciesCommand_1.ListPoliciesCommand(args);
|
|
651
|
-
if (typeof optionsOrCb === "function") {
|
|
652
|
-
this.send(command, optionsOrCb);
|
|
653
|
-
}
|
|
654
|
-
else if (typeof cb === "function") {
|
|
655
|
-
if (typeof optionsOrCb !== "object")
|
|
656
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
657
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
658
|
-
}
|
|
659
|
-
else {
|
|
660
|
-
return this.send(command, optionsOrCb);
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
listPoliciesForTarget(args, optionsOrCb, cb) {
|
|
664
|
-
const command = new ListPoliciesForTargetCommand_1.ListPoliciesForTargetCommand(args);
|
|
665
|
-
if (typeof optionsOrCb === "function") {
|
|
666
|
-
this.send(command, optionsOrCb);
|
|
667
|
-
}
|
|
668
|
-
else if (typeof cb === "function") {
|
|
669
|
-
if (typeof optionsOrCb !== "object")
|
|
670
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
671
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
672
|
-
}
|
|
673
|
-
else {
|
|
674
|
-
return this.send(command, optionsOrCb);
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
listRoots(args, optionsOrCb, cb) {
|
|
678
|
-
const command = new ListRootsCommand_1.ListRootsCommand(args);
|
|
679
|
-
if (typeof optionsOrCb === "function") {
|
|
680
|
-
this.send(command, optionsOrCb);
|
|
681
|
-
}
|
|
682
|
-
else if (typeof cb === "function") {
|
|
683
|
-
if (typeof optionsOrCb !== "object")
|
|
684
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
685
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
686
|
-
}
|
|
687
|
-
else {
|
|
688
|
-
return this.send(command, optionsOrCb);
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
692
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
693
|
-
if (typeof optionsOrCb === "function") {
|
|
694
|
-
this.send(command, optionsOrCb);
|
|
695
|
-
}
|
|
696
|
-
else if (typeof cb === "function") {
|
|
697
|
-
if (typeof optionsOrCb !== "object")
|
|
698
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
699
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
700
|
-
}
|
|
701
|
-
else {
|
|
702
|
-
return this.send(command, optionsOrCb);
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
listTargetsForPolicy(args, optionsOrCb, cb) {
|
|
706
|
-
const command = new ListTargetsForPolicyCommand_1.ListTargetsForPolicyCommand(args);
|
|
707
|
-
if (typeof optionsOrCb === "function") {
|
|
708
|
-
this.send(command, optionsOrCb);
|
|
709
|
-
}
|
|
710
|
-
else if (typeof cb === "function") {
|
|
711
|
-
if (typeof optionsOrCb !== "object")
|
|
712
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
713
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
714
|
-
}
|
|
715
|
-
else {
|
|
716
|
-
return this.send(command, optionsOrCb);
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
moveAccount(args, optionsOrCb, cb) {
|
|
720
|
-
const command = new MoveAccountCommand_1.MoveAccountCommand(args);
|
|
721
|
-
if (typeof optionsOrCb === "function") {
|
|
722
|
-
this.send(command, optionsOrCb);
|
|
723
|
-
}
|
|
724
|
-
else if (typeof cb === "function") {
|
|
725
|
-
if (typeof optionsOrCb !== "object")
|
|
726
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
727
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
728
|
-
}
|
|
729
|
-
else {
|
|
730
|
-
return this.send(command, optionsOrCb);
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
734
|
-
const command = new PutResourcePolicyCommand_1.PutResourcePolicyCommand(args);
|
|
735
|
-
if (typeof optionsOrCb === "function") {
|
|
736
|
-
this.send(command, optionsOrCb);
|
|
737
|
-
}
|
|
738
|
-
else if (typeof cb === "function") {
|
|
739
|
-
if (typeof optionsOrCb !== "object")
|
|
740
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
741
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
742
|
-
}
|
|
743
|
-
else {
|
|
744
|
-
return this.send(command, optionsOrCb);
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
registerDelegatedAdministrator(args, optionsOrCb, cb) {
|
|
748
|
-
const command = new RegisterDelegatedAdministratorCommand_1.RegisterDelegatedAdministratorCommand(args);
|
|
749
|
-
if (typeof optionsOrCb === "function") {
|
|
750
|
-
this.send(command, optionsOrCb);
|
|
751
|
-
}
|
|
752
|
-
else if (typeof cb === "function") {
|
|
753
|
-
if (typeof optionsOrCb !== "object")
|
|
754
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
755
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
756
|
-
}
|
|
757
|
-
else {
|
|
758
|
-
return this.send(command, optionsOrCb);
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
removeAccountFromOrganization(args, optionsOrCb, cb) {
|
|
762
|
-
const command = new RemoveAccountFromOrganizationCommand_1.RemoveAccountFromOrganizationCommand(args);
|
|
763
|
-
if (typeof optionsOrCb === "function") {
|
|
764
|
-
this.send(command, optionsOrCb);
|
|
765
|
-
}
|
|
766
|
-
else if (typeof cb === "function") {
|
|
767
|
-
if (typeof optionsOrCb !== "object")
|
|
768
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
769
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
770
|
-
}
|
|
771
|
-
else {
|
|
772
|
-
return this.send(command, optionsOrCb);
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
tagResource(args, optionsOrCb, cb) {
|
|
776
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
777
|
-
if (typeof optionsOrCb === "function") {
|
|
778
|
-
this.send(command, optionsOrCb);
|
|
779
|
-
}
|
|
780
|
-
else if (typeof cb === "function") {
|
|
781
|
-
if (typeof optionsOrCb !== "object")
|
|
782
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
783
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
784
|
-
}
|
|
785
|
-
else {
|
|
786
|
-
return this.send(command, optionsOrCb);
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
untagResource(args, optionsOrCb, cb) {
|
|
790
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
791
|
-
if (typeof optionsOrCb === "function") {
|
|
792
|
-
this.send(command, optionsOrCb);
|
|
793
|
-
}
|
|
794
|
-
else if (typeof cb === "function") {
|
|
795
|
-
if (typeof optionsOrCb !== "object")
|
|
796
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
797
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
798
|
-
}
|
|
799
|
-
else {
|
|
800
|
-
return this.send(command, optionsOrCb);
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
updateOrganizationalUnit(args, optionsOrCb, cb) {
|
|
804
|
-
const command = new UpdateOrganizationalUnitCommand_1.UpdateOrganizationalUnitCommand(args);
|
|
805
|
-
if (typeof optionsOrCb === "function") {
|
|
806
|
-
this.send(command, optionsOrCb);
|
|
807
|
-
}
|
|
808
|
-
else if (typeof cb === "function") {
|
|
809
|
-
if (typeof optionsOrCb !== "object")
|
|
810
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
811
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
812
|
-
}
|
|
813
|
-
else {
|
|
814
|
-
return this.send(command, optionsOrCb);
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
updatePolicy(args, optionsOrCb, cb) {
|
|
818
|
-
const command = new UpdatePolicyCommand_1.UpdatePolicyCommand(args);
|
|
819
|
-
if (typeof optionsOrCb === "function") {
|
|
820
|
-
this.send(command, optionsOrCb);
|
|
821
|
-
}
|
|
822
|
-
else if (typeof cb === "function") {
|
|
823
|
-
if (typeof optionsOrCb !== "object")
|
|
824
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
825
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
826
|
-
}
|
|
827
|
-
else {
|
|
828
|
-
return this.send(command, optionsOrCb);
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
119
|
}
|
|
832
120
|
exports.Organizations = Organizations;
|
|
121
|
+
(0, smithy_client_1.createAggregatedClient)(commands, Organizations);
|