@aws-sdk/client-organizations 3.774.0 → 3.777.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/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/OrganizationsClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/AcceptHandshakeCommand.d.ts +1 -57
- package/dist-types/commands/AttachPolicyCommand.d.ts +20 -15
- package/dist-types/commands/CancelHandshakeCommand.d.ts +1 -62
- package/dist-types/commands/CloseAccountCommand.d.ts +1 -0
- package/dist-types/commands/CreateAccountCommand.d.ts +10 -10
- package/dist-types/commands/CreateGovCloudAccountCommand.d.ts +1 -0
- package/dist-types/commands/CreateOrganizationCommand.d.ts +28 -29
- package/dist-types/commands/CreateOrganizationalUnitCommand.d.ts +11 -11
- package/dist-types/commands/CreatePolicyCommand.d.ts +16 -16
- package/dist-types/commands/DeclineHandshakeCommand.d.ts +28 -28
- package/dist-types/commands/DeleteOrganizationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteOrganizationalUnitCommand.d.ts +9 -6
- package/dist-types/commands/DeletePolicyCommand.d.ts +9 -6
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +1 -0
- package/dist-types/commands/DeregisterDelegatedAdministratorCommand.d.ts +1 -0
- package/dist-types/commands/DescribeAccountCommand.d.ts +9 -9
- package/dist-types/commands/DescribeCreateAccountStatusCommand.d.ts +8 -8
- package/dist-types/commands/DescribeEffectivePolicyCommand.d.ts +1 -0
- package/dist-types/commands/DescribeHandshakeCommand.d.ts +26 -26
- package/dist-types/commands/DescribeOrganizationCommand.d.ts +13 -13
- package/dist-types/commands/DescribeOrganizationalUnitCommand.d.ts +8 -8
- package/dist-types/commands/DescribePolicyCommand.d.ts +13 -13
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +1 -0
- package/dist-types/commands/DetachPolicyCommand.d.ts +8 -5
- package/dist-types/commands/DisableAWSServiceAccessCommand.d.ts +1 -0
- package/dist-types/commands/DisablePolicyTypeCommand.d.ts +10 -10
- package/dist-types/commands/EnableAWSServiceAccessCommand.d.ts +1 -0
- package/dist-types/commands/EnableAllFeaturesCommand.d.ts +17 -17
- package/dist-types/commands/EnablePolicyTypeCommand.d.ts +12 -12
- package/dist-types/commands/InviteAccountToOrganizationCommand.d.ts +31 -31
- package/dist-types/commands/LeaveOrganizationCommand.d.ts +7 -4
- package/dist-types/commands/ListAWSServiceAccessForOrganizationCommand.d.ts +1 -0
- package/dist-types/commands/ListAccountsCommand.d.ts +1 -51
- package/dist-types/commands/ListAccountsForParentCommand.d.ts +19 -19
- package/dist-types/commands/ListChildrenCommand.d.ts +10 -10
- package/dist-types/commands/ListCreateAccountStatusCommand.d.ts +24 -25
- package/dist-types/commands/ListDelegatedAdministratorsCommand.d.ts +1 -0
- package/dist-types/commands/ListDelegatedServicesForAccountCommand.d.ts +1 -0
- package/dist-types/commands/ListHandshakesForAccountCommand.d.ts +28 -28
- package/dist-types/commands/ListHandshakesForOrganizationCommand.d.ts +51 -51
- package/dist-types/commands/ListOrganizationalUnitsForParentCommand.d.ts +11 -11
- package/dist-types/commands/ListParentsCommand.d.ts +7 -7
- package/dist-types/commands/ListPoliciesCommand.d.ts +23 -23
- package/dist-types/commands/ListPoliciesForTargetCommand.d.ts +12 -12
- package/dist-types/commands/ListRootsCommand.d.ts +11 -11
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -0
- package/dist-types/commands/ListTargetsForPolicyCommand.d.ts +17 -17
- package/dist-types/commands/MoveAccountCommand.d.ts +9 -6
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +1 -0
- package/dist-types/commands/RegisterDelegatedAdministratorCommand.d.ts +1 -0
- package/dist-types/commands/RemoveAccountFromOrganizationCommand.d.ts +7 -4
- package/dist-types/commands/TagResourceCommand.d.ts +1 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -0
- package/dist-types/commands/UpdateOrganizationalUnitCommand.d.ts +9 -9
- package/dist-types/commands/UpdatePolicyCommand.d.ts +31 -32
- package/package.json +33 -33
|
@@ -40,8 +40,6 @@ const defaultOrganizationsHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultOrganizationsHttpAuthSchemeProvider = defaultOrganizationsHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -209,12 +209,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
209
209
|
|
|
210
210
|
// src/endpoint/EndpointParameters.ts
|
|
211
211
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
212
|
-
return {
|
|
213
|
-
...options,
|
|
212
|
+
return Object.assign(options, {
|
|
214
213
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
215
214
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
216
215
|
defaultSigningName: "organizations"
|
|
217
|
-
};
|
|
216
|
+
});
|
|
218
217
|
}, "resolveClientEndpointParameters");
|
|
219
218
|
var commonParams = {
|
|
220
219
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -271,22 +270,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
271
270
|
}, "resolveHttpAuthRuntimeConfig");
|
|
272
271
|
|
|
273
272
|
// src/runtimeExtensions.ts
|
|
274
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
275
273
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
276
|
-
const extensionConfiguration =
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
274
|
+
const extensionConfiguration = Object.assign(
|
|
275
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
276
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
277
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
278
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
279
|
+
);
|
|
282
280
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
283
|
-
return
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
281
|
+
return Object.assign(
|
|
282
|
+
runtimeConfig,
|
|
283
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
284
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
285
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
286
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
287
|
+
);
|
|
290
288
|
}, "resolveRuntimeExtensions");
|
|
291
289
|
|
|
292
290
|
// src/OrganizationsClient.ts
|
|
@@ -300,6 +298,8 @@ var OrganizationsClient = class extends import_smithy_client.Client {
|
|
|
300
298
|
config;
|
|
301
299
|
constructor(...[configuration]) {
|
|
302
300
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
301
|
+
super(_config_0);
|
|
302
|
+
this.initConfig = _config_0;
|
|
303
303
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
304
304
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
305
305
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -308,7 +308,6 @@ var OrganizationsClient = class extends import_smithy_client.Client {
|
|
|
308
308
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
309
309
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
310
310
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
311
|
-
super(_config_8);
|
|
312
311
|
this.config = _config_8;
|
|
313
312
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
314
313
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
@@ -17,6 +17,8 @@ export class OrganizationsClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class OrganizationsClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultOrganizationsHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "organizations",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -321,64 +321,8 @@ declare const AcceptHandshakeCommand_base: {
|
|
|
321
321
|
* @throws {@link OrganizationsServiceException}
|
|
322
322
|
* <p>Base exception class for all service exceptions from Organizations service.</p>
|
|
323
323
|
*
|
|
324
|
-
* @public
|
|
325
|
-
* @example To accept a handshake from another account
|
|
326
|
-
* ```javascript
|
|
327
|
-
* // Bill is the owner of an organization, and he invites Juan's account (222222222222) to join his organization. The following example shows Juan's account accepting the handshake and thus agreeing to the invitation.
|
|
328
|
-
* const input = {
|
|
329
|
-
* "HandshakeId": "h-examplehandshakeid111"
|
|
330
|
-
* };
|
|
331
|
-
* const command = new AcceptHandshakeCommand(input);
|
|
332
|
-
* const response = await client.send(command);
|
|
333
|
-
* /* response ==
|
|
334
|
-
* {
|
|
335
|
-
* "Handshake": {
|
|
336
|
-
* "Action": "INVITE",
|
|
337
|
-
* "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111",
|
|
338
|
-
* "ExpirationTimestamp": "20170228T1215Z",
|
|
339
|
-
* "Id": "h-examplehandshakeid111",
|
|
340
|
-
* "Parties": [
|
|
341
|
-
* {
|
|
342
|
-
* "Id": "o-exampleorgid",
|
|
343
|
-
* "Type": "ORGANIZATION"
|
|
344
|
-
* },
|
|
345
|
-
* {
|
|
346
|
-
* "Id": "juan@example.com",
|
|
347
|
-
* "Type": "EMAIL"
|
|
348
|
-
* }
|
|
349
|
-
* ],
|
|
350
|
-
* "RequestedTimestamp": "20170214T1215Z",
|
|
351
|
-
* "Resources": [
|
|
352
|
-
* {
|
|
353
|
-
* "Resources": [
|
|
354
|
-
* {
|
|
355
|
-
* "Type": "MASTER_EMAIL",
|
|
356
|
-
* "Value": "bill@amazon.com"
|
|
357
|
-
* },
|
|
358
|
-
* {
|
|
359
|
-
* "Type": "MASTER_NAME",
|
|
360
|
-
* "Value": "Org Master Account"
|
|
361
|
-
* },
|
|
362
|
-
* {
|
|
363
|
-
* "Type": "ORGANIZATION_FEATURE_SET",
|
|
364
|
-
* "Value": "ALL"
|
|
365
|
-
* }
|
|
366
|
-
* ],
|
|
367
|
-
* "Type": "ORGANIZATION",
|
|
368
|
-
* "Value": "o-exampleorgid"
|
|
369
|
-
* },
|
|
370
|
-
* {
|
|
371
|
-
* "Type": "ACCOUNT",
|
|
372
|
-
* "Value": "222222222222"
|
|
373
|
-
* }
|
|
374
|
-
* ],
|
|
375
|
-
* "State": "ACCEPTED"
|
|
376
|
-
* }
|
|
377
|
-
* }
|
|
378
|
-
* *\/
|
|
379
|
-
* // example id: to-accept-a-handshake-from-another-account-1472500561150
|
|
380
|
-
* ```
|
|
381
324
|
*
|
|
325
|
+
* @public
|
|
382
326
|
*/
|
|
383
327
|
export declare class AcceptHandshakeCommand extends AcceptHandshakeCommand_base {
|
|
384
328
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -451,33 +451,38 @@ declare const AttachPolicyCommand_base: {
|
|
|
451
451
|
* @throws {@link OrganizationsServiceException}
|
|
452
452
|
* <p>Base exception class for all service exceptions from Organizations service.</p>
|
|
453
453
|
*
|
|
454
|
-
*
|
|
455
|
-
* @example To attach a policy to an
|
|
454
|
+
*
|
|
455
|
+
* @example To attach a policy to an account
|
|
456
456
|
* ```javascript
|
|
457
|
-
* // The following example shows how to attach a service control policy (SCP) to an
|
|
458
|
-
*
|
|
457
|
+
* // The following example shows how to attach a service control policy (SCP) to an account:
|
|
458
|
+
*
|
|
459
459
|
* const input = {
|
|
460
|
-
*
|
|
461
|
-
*
|
|
460
|
+
* PolicyId: "p-examplepolicyid111",
|
|
461
|
+
* TargetId: "333333333333"
|
|
462
462
|
* };
|
|
463
463
|
* const command = new AttachPolicyCommand(input);
|
|
464
|
-
* await client.send(command);
|
|
465
|
-
*
|
|
464
|
+
* const response = await client.send(command);
|
|
465
|
+
* /* response is
|
|
466
|
+
* { /* metadata only *\/ }
|
|
467
|
+
* *\/
|
|
466
468
|
* ```
|
|
467
469
|
*
|
|
468
|
-
* @example To attach a policy to an
|
|
470
|
+
* @example To attach a policy to an OU
|
|
469
471
|
* ```javascript
|
|
470
|
-
* // The following example shows how to attach a service control policy (SCP) to an
|
|
471
|
-
*
|
|
472
|
+
* // The following example shows how to attach a service control policy (SCP) to an OU:
|
|
473
|
+
*
|
|
472
474
|
* const input = {
|
|
473
|
-
*
|
|
474
|
-
*
|
|
475
|
+
* PolicyId: "p-examplepolicyid111",
|
|
476
|
+
* TargetId: "ou-examplerootid111-exampleouid111"
|
|
475
477
|
* };
|
|
476
478
|
* const command = new AttachPolicyCommand(input);
|
|
477
|
-
* await client.send(command);
|
|
478
|
-
*
|
|
479
|
+
* const response = await client.send(command);
|
|
480
|
+
* /* response is
|
|
481
|
+
* { /* metadata only *\/ }
|
|
482
|
+
* *\/
|
|
479
483
|
* ```
|
|
480
484
|
*
|
|
485
|
+
* @public
|
|
481
486
|
*/
|
|
482
487
|
export declare class AttachPolicyCommand extends AttachPolicyCommand_base {
|
|
483
488
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -227,69 +227,8 @@ declare const CancelHandshakeCommand_base: {
|
|
|
227
227
|
* @throws {@link OrganizationsServiceException}
|
|
228
228
|
* <p>Base exception class for all service exceptions from Organizations service.</p>
|
|
229
229
|
*
|
|
230
|
-
* @public
|
|
231
|
-
* @example To cancel a handshake sent to a member account
|
|
232
|
-
* ```javascript
|
|
233
|
-
* // Bill previously sent an invitation to Susan's account to join his organization. He changes his mind and decides to cancel the invitation before Susan accepts it. The following example shows Bill's cancellation:
|
|
234
|
-
* //
|
|
235
|
-
* const input = {
|
|
236
|
-
* "HandshakeId": "h-examplehandshakeid111"
|
|
237
|
-
* };
|
|
238
|
-
* const command = new CancelHandshakeCommand(input);
|
|
239
|
-
* const response = await client.send(command);
|
|
240
|
-
* /* response ==
|
|
241
|
-
* {
|
|
242
|
-
* "Handshake": {
|
|
243
|
-
* "Action": "INVITE",
|
|
244
|
-
* "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111",
|
|
245
|
-
* "ExpirationTimestamp": "20170228T1215Z",
|
|
246
|
-
* "Id": "h-examplehandshakeid111",
|
|
247
|
-
* "Parties": [
|
|
248
|
-
* {
|
|
249
|
-
* "Id": "o-exampleorgid",
|
|
250
|
-
* "Type": "ORGANIZATION"
|
|
251
|
-
* },
|
|
252
|
-
* {
|
|
253
|
-
* "Id": "susan@example.com",
|
|
254
|
-
* "Type": "EMAIL"
|
|
255
|
-
* }
|
|
256
|
-
* ],
|
|
257
|
-
* "RequestedTimestamp": "20170214T1215Z",
|
|
258
|
-
* "Resources": [
|
|
259
|
-
* {
|
|
260
|
-
* "Resources": [
|
|
261
|
-
* {
|
|
262
|
-
* "Type": "MASTER_EMAIL",
|
|
263
|
-
* "Value": "bill@example.com"
|
|
264
|
-
* },
|
|
265
|
-
* {
|
|
266
|
-
* "Type": "MASTER_NAME",
|
|
267
|
-
* "Value": "Master Account"
|
|
268
|
-
* },
|
|
269
|
-
* {
|
|
270
|
-
* "Type": "ORGANIZATION_FEATURE_SET",
|
|
271
|
-
* "Value": "CONSOLIDATED_BILLING"
|
|
272
|
-
* }
|
|
273
|
-
* ],
|
|
274
|
-
* "Type": "ORGANIZATION",
|
|
275
|
-
* "Value": "o-exampleorgid"
|
|
276
|
-
* },
|
|
277
|
-
* {
|
|
278
|
-
* "Type": "ACCOUNT",
|
|
279
|
-
* "Value": "222222222222"
|
|
280
|
-
* },
|
|
281
|
-
* {
|
|
282
|
-
* "Type": "NOTES",
|
|
283
|
-
* "Value": "This is a request for Susan's account to join Bob's organization."
|
|
284
|
-
* }
|
|
285
|
-
* ],
|
|
286
|
-
* "State": "CANCELED"
|
|
287
|
-
* }
|
|
288
|
-
* }
|
|
289
|
-
* *\/
|
|
290
|
-
* // example id: to-cancel-a-handshake-sent-to-a-member-account-1472501320506
|
|
291
|
-
* ```
|
|
292
230
|
*
|
|
231
|
+
* @public
|
|
293
232
|
*/
|
|
294
233
|
export declare class CancelHandshakeCommand extends CancelHandshakeCommand_base {
|
|
295
234
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -447,6 +447,7 @@ declare const CloseAccountCommand_base: {
|
|
|
447
447
|
* @throws {@link OrganizationsServiceException}
|
|
448
448
|
* <p>Base exception class for all service exceptions from Organizations service.</p>
|
|
449
449
|
*
|
|
450
|
+
*
|
|
450
451
|
* @public
|
|
451
452
|
*/
|
|
452
453
|
export declare class CloseAccountCommand extends CloseAccountCommand_base {
|
|
@@ -485,29 +485,29 @@ declare const CreateAccountCommand_base: {
|
|
|
485
485
|
* @throws {@link OrganizationsServiceException}
|
|
486
486
|
* <p>Base exception class for all service exceptions from Organizations service.</p>
|
|
487
487
|
*
|
|
488
|
-
*
|
|
488
|
+
*
|
|
489
489
|
* @example To create a new account that is automatically part of the organization
|
|
490
490
|
* ```javascript
|
|
491
491
|
* // The owner of an organization creates a member account in the organization. The following example shows that when the organization owner creates the member account, the account is preconfigured with the name "Production Account" and an owner email address of susan@example.com. An IAM role is automatically created using the default name because the roleName parameter is not used. AWS Organizations sends Susan a "Welcome to AWS" email:
|
|
492
|
-
*
|
|
493
|
-
*
|
|
492
|
+
*
|
|
493
|
+
*
|
|
494
494
|
* const input = {
|
|
495
|
-
*
|
|
496
|
-
*
|
|
495
|
+
* AccountName: "Production Account",
|
|
496
|
+
* Email: "susan@example.com"
|
|
497
497
|
* };
|
|
498
498
|
* const command = new CreateAccountCommand(input);
|
|
499
499
|
* const response = await client.send(command);
|
|
500
|
-
* /* response
|
|
500
|
+
* /* response is
|
|
501
501
|
* {
|
|
502
|
-
*
|
|
503
|
-
*
|
|
504
|
-
*
|
|
502
|
+
* CreateAccountStatus: {
|
|
503
|
+
* Id: "car-examplecreateaccountrequestid111",
|
|
504
|
+
* State: "IN_PROGRESS"
|
|
505
505
|
* }
|
|
506
506
|
* }
|
|
507
507
|
* *\/
|
|
508
|
-
* // example id: to-create-a-new-account-that-is-automatically-part-of-the-organization-1472501463507
|
|
509
508
|
* ```
|
|
510
509
|
*
|
|
510
|
+
* @public
|
|
511
511
|
*/
|
|
512
512
|
export declare class CreateAccountCommand extends CreateAccountCommand_base {
|
|
513
513
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -539,6 +539,7 @@ declare const CreateGovCloudAccountCommand_base: {
|
|
|
539
539
|
* @throws {@link OrganizationsServiceException}
|
|
540
540
|
* <p>Base exception class for all service exceptions from Organizations service.</p>
|
|
541
541
|
*
|
|
542
|
+
*
|
|
542
543
|
* @public
|
|
543
544
|
*/
|
|
544
545
|
export declare class CreateGovCloudAccountCommand extends CreateGovCloudAccountCommand_base {
|
|
@@ -417,62 +417,61 @@ declare const CreateOrganizationCommand_base: {
|
|
|
417
417
|
* @throws {@link OrganizationsServiceException}
|
|
418
418
|
* <p>Base exception class for all service exceptions from Organizations service.</p>
|
|
419
419
|
*
|
|
420
|
-
*
|
|
420
|
+
*
|
|
421
421
|
* @example To create a new organization with all features enabled
|
|
422
422
|
* ```javascript
|
|
423
423
|
* // Bill wants to create an organization using credentials from account 111111111111. The following example shows that the account becomes the master account in the new organization. Because he does not specify a feature set, the new organization defaults to all features enabled and service control policies enabled on the root:
|
|
424
|
-
*
|
|
425
|
-
*
|
|
426
|
-
* const input = {};
|
|
424
|
+
*
|
|
425
|
+
*
|
|
426
|
+
* const input = { /* empty *\/ };
|
|
427
427
|
* const command = new CreateOrganizationCommand(input);
|
|
428
428
|
* const response = await client.send(command);
|
|
429
|
-
* /* response
|
|
429
|
+
* /* response is
|
|
430
430
|
* {
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
431
|
+
* Organization: {
|
|
432
|
+
* Arn: "arn:aws:organizations::111111111111:organization/o-exampleorgid",
|
|
433
|
+
* AvailablePolicyTypes: [
|
|
434
434
|
* {
|
|
435
|
-
*
|
|
436
|
-
*
|
|
435
|
+
* Status: "ENABLED",
|
|
436
|
+
* Type: "SERVICE_CONTROL_POLICY"
|
|
437
437
|
* }
|
|
438
438
|
* ],
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
*
|
|
443
|
-
*
|
|
439
|
+
* FeatureSet: "ALL",
|
|
440
|
+
* Id: "o-exampleorgid",
|
|
441
|
+
* MasterAccountArn: "arn:aws:organizations::111111111111:account/o-exampleorgid/111111111111",
|
|
442
|
+
* MasterAccountEmail: "bill@example.com",
|
|
443
|
+
* MasterAccountId: "111111111111"
|
|
444
444
|
* }
|
|
445
445
|
* }
|
|
446
446
|
* *\/
|
|
447
|
-
* // example id: to-create-a-new-organization-with-all-features enabled
|
|
448
447
|
* ```
|
|
449
448
|
*
|
|
450
449
|
* @example To create a new organization with consolidated billing features only
|
|
451
450
|
* ```javascript
|
|
452
451
|
* // In the following example, Bill creates an organization using credentials from account 111111111111, and configures the organization to support only the consolidated billing feature set:
|
|
453
|
-
*
|
|
454
|
-
*
|
|
452
|
+
*
|
|
453
|
+
*
|
|
455
454
|
* const input = {
|
|
456
|
-
*
|
|
455
|
+
* FeatureSet: "CONSOLIDATED_BILLING"
|
|
457
456
|
* };
|
|
458
457
|
* const command = new CreateOrganizationCommand(input);
|
|
459
458
|
* const response = await client.send(command);
|
|
460
|
-
* /* response
|
|
459
|
+
* /* response is
|
|
461
460
|
* {
|
|
462
|
-
*
|
|
463
|
-
*
|
|
464
|
-
*
|
|
465
|
-
*
|
|
466
|
-
*
|
|
467
|
-
*
|
|
468
|
-
*
|
|
469
|
-
*
|
|
461
|
+
* Organization: {
|
|
462
|
+
* Arn: "arn:aws:organizations::111111111111:organization/o-exampleorgid",
|
|
463
|
+
* AvailablePolicyTypes: [],
|
|
464
|
+
* FeatureSet: "CONSOLIDATED_BILLING",
|
|
465
|
+
* Id: "o-exampleorgid",
|
|
466
|
+
* MasterAccountArn: "arn:aws:organizations::111111111111:account/o-exampleorgid/111111111111",
|
|
467
|
+
* MasterAccountEmail: "bill@example.com",
|
|
468
|
+
* MasterAccountId: "111111111111"
|
|
470
469
|
* }
|
|
471
470
|
* }
|
|
472
471
|
* *\/
|
|
473
|
-
* // example id: to-create-a-new-organization-with-consolidated-billing-features-only
|
|
474
472
|
* ```
|
|
475
473
|
*
|
|
474
|
+
* @public
|
|
476
475
|
*/
|
|
477
476
|
export declare class CreateOrganizationCommand extends CreateOrganizationCommand_base {
|
|
478
477
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -414,30 +414,30 @@ declare const CreateOrganizationalUnitCommand_base: {
|
|
|
414
414
|
* @throws {@link OrganizationsServiceException}
|
|
415
415
|
* <p>Base exception class for all service exceptions from Organizations service.</p>
|
|
416
416
|
*
|
|
417
|
-
*
|
|
417
|
+
*
|
|
418
418
|
* @example To create a new organization unit
|
|
419
419
|
* ```javascript
|
|
420
420
|
* // The following example shows how to create an OU that is named AccountingOU. The new OU is directly under the root.:
|
|
421
|
-
*
|
|
422
|
-
*
|
|
421
|
+
*
|
|
422
|
+
*
|
|
423
423
|
* const input = {
|
|
424
|
-
*
|
|
425
|
-
*
|
|
424
|
+
* Name: "AccountingOU",
|
|
425
|
+
* ParentId: "r-examplerootid111"
|
|
426
426
|
* };
|
|
427
427
|
* const command = new CreateOrganizationalUnitCommand(input);
|
|
428
428
|
* const response = await client.send(command);
|
|
429
|
-
* /* response
|
|
429
|
+
* /* response is
|
|
430
430
|
* {
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
*
|
|
431
|
+
* OrganizationalUnit: {
|
|
432
|
+
* Arn: "arn:aws:organizations::111111111111:ou/o-exampleorgid/ou-examplerootid111-exampleouid111",
|
|
433
|
+
* Id: "ou-examplerootid111-exampleouid111",
|
|
434
|
+
* Name: "AccountingOU"
|
|
435
435
|
* }
|
|
436
436
|
* }
|
|
437
437
|
* *\/
|
|
438
|
-
* // example id: to-create-a-new-organizational-unit
|
|
439
438
|
* ```
|
|
440
439
|
*
|
|
440
|
+
* @public
|
|
441
441
|
*/
|
|
442
442
|
export declare class CreateOrganizationalUnitCommand extends CreateOrganizationalUnitCommand_base {
|
|
443
443
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -432,36 +432,36 @@ declare const CreatePolicyCommand_base: {
|
|
|
432
432
|
* @throws {@link OrganizationsServiceException}
|
|
433
433
|
* <p>Base exception class for all service exceptions from Organizations service.</p>
|
|
434
434
|
*
|
|
435
|
-
*
|
|
435
|
+
*
|
|
436
436
|
* @example To create a service control policy
|
|
437
437
|
* ```javascript
|
|
438
438
|
* // The following example shows how to create a service control policy (SCP) that is named AllowAllS3Actions. The JSON string in the content parameter specifies the content in the policy. The parameter string is escaped with backslashes to ensure that the embedded double quotes in the JSON policy are treated as literals in the parameter, which itself is surrounded by double quotes:
|
|
439
|
-
*
|
|
440
|
-
*
|
|
439
|
+
*
|
|
440
|
+
*
|
|
441
441
|
* const input = {
|
|
442
|
-
*
|
|
443
|
-
*
|
|
444
|
-
*
|
|
445
|
-
*
|
|
442
|
+
* Content: `{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"s3:*\"}}`,
|
|
443
|
+
* Description: "Enables admins of attached accounts to delegate all S3 permissions",
|
|
444
|
+
* Name: "AllowAllS3Actions",
|
|
445
|
+
* Type: "SERVICE_CONTROL_POLICY"
|
|
446
446
|
* };
|
|
447
447
|
* const command = new CreatePolicyCommand(input);
|
|
448
448
|
* const response = await client.send(command);
|
|
449
|
-
* /* response
|
|
449
|
+
* /* response is
|
|
450
450
|
* {
|
|
451
|
-
*
|
|
452
|
-
*
|
|
453
|
-
*
|
|
454
|
-
*
|
|
455
|
-
*
|
|
456
|
-
*
|
|
457
|
-
*
|
|
451
|
+
* Policy: {
|
|
452
|
+
* Content: `{"Version":"2012-10-17","Statement":{"Effect":"Allow","Action":"s3:*"}}`,
|
|
453
|
+
* PolicySummary: {
|
|
454
|
+
* Arn: "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid111",
|
|
455
|
+
* Description: "Allows delegation of all S3 actions",
|
|
456
|
+
* Name: "AllowAllS3Actions",
|
|
457
|
+
* Type: "SERVICE_CONTROL_POLICY"
|
|
458
458
|
* }
|
|
459
459
|
* }
|
|
460
460
|
* }
|
|
461
461
|
* *\/
|
|
462
|
-
* // example id: to-create-a-service-control-policy
|
|
463
462
|
* ```
|
|
464
463
|
*
|
|
464
|
+
* @public
|
|
465
465
|
*/
|
|
466
466
|
export declare class CreatePolicyCommand extends CreatePolicyCommand_base {
|
|
467
467
|
/** @internal type navigation helper, not in runtime. */
|