@aws-sdk/client-organizations 3.883.0 → 3.886.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/index.js +10 -0
- package/dist-es/models/models_0.js +7 -0
- package/dist-es/protocols/Aws_json1_1.js +1 -0
- package/dist-types/commands/CloseAccountCommand.d.ts +2 -2
- package/dist-types/commands/CreateAccountCommand.d.ts +8 -7
- package/dist-types/commands/DescribeAccountCommand.d.ts +1 -0
- package/dist-types/commands/DescribeEffectivePolicyCommand.d.ts +2 -2
- package/dist-types/commands/DisablePolicyTypeCommand.d.ts +1 -1
- package/dist-types/commands/EnableAWSServiceAccessCommand.d.ts +5 -5
- package/dist-types/commands/EnablePolicyTypeCommand.d.ts +1 -1
- package/dist-types/commands/InviteAccountToOrganizationCommand.d.ts +5 -4
- package/dist-types/commands/LeaveOrganizationCommand.d.ts +2 -2
- package/dist-types/commands/ListAccountsCommand.d.ts +1 -0
- package/dist-types/commands/ListAccountsForParentCommand.d.ts +1 -0
- package/dist-types/commands/ListAccountsWithInvalidEffectivePolicyCommand.d.ts +5 -2
- package/dist-types/commands/ListEffectivePolicyValidationErrorsCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +73 -14
- package/dist-types/ts3.4/models/models_0.d.ts +9 -0
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __export(index_exports, {
|
|
|
34
34
|
AccountNotFoundException: () => AccountNotFoundException,
|
|
35
35
|
AccountNotRegisteredException: () => AccountNotRegisteredException,
|
|
36
36
|
AccountOwnerNotVerifiedException: () => AccountOwnerNotVerifiedException,
|
|
37
|
+
AccountState: () => AccountState,
|
|
37
38
|
AccountStatus: () => AccountStatus,
|
|
38
39
|
ActionType: () => ActionType,
|
|
39
40
|
AlreadyInOrganizationException: () => AlreadyInOrganizationException,
|
|
@@ -675,6 +676,13 @@ var AccountJoinedMethod = {
|
|
|
675
676
|
CREATED: "CREATED",
|
|
676
677
|
INVITED: "INVITED"
|
|
677
678
|
};
|
|
679
|
+
var AccountState = {
|
|
680
|
+
ACTIVE: "ACTIVE",
|
|
681
|
+
CLOSED: "CLOSED",
|
|
682
|
+
PENDING_ACTIVATION: "PENDING_ACTIVATION",
|
|
683
|
+
PENDING_CLOSURE: "PENDING_CLOSURE",
|
|
684
|
+
SUSPENDED: "SUSPENDED"
|
|
685
|
+
};
|
|
678
686
|
var AccountStatus = {
|
|
679
687
|
ACTIVE: "ACTIVE",
|
|
680
688
|
PENDING_CLOSURE: "PENDING_CLOSURE",
|
|
@@ -3266,6 +3274,7 @@ var de_Account = /* @__PURE__ */ __name((output, context) => {
|
|
|
3266
3274
|
JoinedMethod: import_smithy_client.expectString,
|
|
3267
3275
|
JoinedTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "JoinedTimestamp"),
|
|
3268
3276
|
Name: import_smithy_client.expectString,
|
|
3277
|
+
State: import_smithy_client.expectString,
|
|
3269
3278
|
Status: import_smithy_client.expectString
|
|
3270
3279
|
});
|
|
3271
3280
|
}, "de_Account");
|
|
@@ -4614,6 +4623,7 @@ var paginateListTargetsForPolicy = (0, import_core.createPaginator)(Organization
|
|
|
4614
4623
|
ServiceException,
|
|
4615
4624
|
TooManyRequestsException,
|
|
4616
4625
|
AccountJoinedMethod,
|
|
4626
|
+
AccountState,
|
|
4617
4627
|
AccountStatus,
|
|
4618
4628
|
AccountAlreadyClosedException,
|
|
4619
4629
|
AccountAlreadyRegisteredException,
|
|
@@ -242,6 +242,13 @@ export const AccountJoinedMethod = {
|
|
|
242
242
|
CREATED: "CREATED",
|
|
243
243
|
INVITED: "INVITED",
|
|
244
244
|
};
|
|
245
|
+
export const AccountState = {
|
|
246
|
+
ACTIVE: "ACTIVE",
|
|
247
|
+
CLOSED: "CLOSED",
|
|
248
|
+
PENDING_ACTIVATION: "PENDING_ACTIVATION",
|
|
249
|
+
PENDING_CLOSURE: "PENDING_CLOSURE",
|
|
250
|
+
SUSPENDED: "SUSPENDED",
|
|
251
|
+
};
|
|
245
252
|
export const AccountStatus = {
|
|
246
253
|
ACTIVE: "ACTIVE",
|
|
247
254
|
PENDING_CLOSURE: "PENDING_CLOSURE",
|
|
@@ -1626,6 +1626,7 @@ const de_Account = (output, context) => {
|
|
|
1626
1626
|
JoinedMethod: __expectString,
|
|
1627
1627
|
JoinedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1628
1628
|
Name: __expectString,
|
|
1629
|
+
State: __expectString,
|
|
1629
1630
|
Status: __expectString,
|
|
1630
1631
|
});
|
|
1631
1632
|
};
|
|
@@ -56,8 +56,8 @@ declare const CloseAccountCommand_base: {
|
|
|
56
56
|
* <li>
|
|
57
57
|
* <p>You can close only 10% of member accounts, between 10 and 1000, within a
|
|
58
58
|
* rolling 30 day period. This quota is not bound by a calendar month, but
|
|
59
|
-
* starts when you close an account. After you reach this limit, you can't
|
|
60
|
-
* additional accounts. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_close.html">Closing a member
|
|
59
|
+
* starts when you close an account. After you reach this limit, you can't
|
|
60
|
+
* close additional accounts. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_close.html">Closing a member
|
|
61
61
|
* account in your organization</a> and <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html">Quotas for
|
|
62
62
|
* Organizations</a> in the <i>Organizations User Guide</i>. </p>
|
|
63
63
|
* </li>
|
|
@@ -65,10 +65,10 @@ declare const CreateAccountCommand_base: {
|
|
|
65
65
|
* <li>
|
|
66
66
|
* <p>When you create an account in an organization using the Organizations console,
|
|
67
67
|
* API, or CLI commands, the information required for the account to operate
|
|
68
|
-
* as a standalone account, such as a payment method is
|
|
69
|
-
*
|
|
70
|
-
* can do so only after you provide
|
|
71
|
-
* information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_account-before-remove.html">Considerations before removing an account from an organization</a>
|
|
68
|
+
* as a standalone account, such as a payment method is
|
|
69
|
+
* <i>not</i> automatically collected. If you must remove an
|
|
70
|
+
* account from your organization later, you can do so only after you provide
|
|
71
|
+
* the missing information. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_account-before-remove.html">Considerations before removing an account from an organization</a>
|
|
72
72
|
* in the <i>Organizations User Guide</i>.</p>
|
|
73
73
|
* </li>
|
|
74
74
|
* <li>
|
|
@@ -81,9 +81,10 @@ declare const CreateAccountCommand_base: {
|
|
|
81
81
|
* If the error persists, contact <a href="https://console.aws.amazon.com/support/home#/">Amazon Web Services Support</a>.</p>
|
|
82
82
|
* </li>
|
|
83
83
|
* <li>
|
|
84
|
-
* <p>It isn't recommended to use <code>CreateAccount</code> to create multiple
|
|
85
|
-
* the <code>CreateAccount</code> API to close
|
|
86
|
-
*
|
|
84
|
+
* <p>It isn't recommended to use <code>CreateAccount</code> to create multiple
|
|
85
|
+
* temporary accounts, and using the <code>CreateAccount</code> API to close
|
|
86
|
+
* accounts is subject to a 30-day usage quota. For information on the
|
|
87
|
+
* requirements and process for closing an account, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_close.html">Closing a member
|
|
87
88
|
* account in your organization</a> in the
|
|
88
89
|
* <i>Organizations User Guide</i>.</p>
|
|
89
90
|
* </li>
|
|
@@ -48,6 +48,7 @@ declare const DescribeAccountCommand_base: {
|
|
|
48
48
|
* // Email: "STRING_VALUE",
|
|
49
49
|
* // Name: "STRING_VALUE",
|
|
50
50
|
* // Status: "ACTIVE" || "SUSPENDED" || "PENDING_CLOSURE",
|
|
51
|
+
* // State: "PENDING_ACTIVATION" || "ACTIVE" || "SUSPENDED" || "PENDING_CLOSURE" || "CLOSED",
|
|
51
52
|
* // JoinedMethod: "INVITED" || "CREATED",
|
|
52
53
|
* // JoinedTimestamp: new Date("TIMESTAMP"),
|
|
53
54
|
* // },
|
|
@@ -31,8 +31,8 @@ declare const DescribeEffectivePolicyCommand_base: {
|
|
|
31
31
|
* The effective policy is the aggregation of any policies of the specified type that the
|
|
32
32
|
* account inherits, plus any policy of that type that is directly attached to the
|
|
33
33
|
* account.</p>
|
|
34
|
-
* <p>This operation applies only to management policies. It does not apply to authorization
|
|
35
|
-
* control policies (SCPs) and resource control policies (RCPs).</p>
|
|
34
|
+
* <p>This operation applies only to management policies. It does not apply to authorization
|
|
35
|
+
* policies: service control policies (SCPs) and resource control policies (RCPs).</p>
|
|
36
36
|
* <p>For more information about policy inheritance, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inheritance_mgmt.html">Understanding
|
|
37
37
|
* management policy inheritance</a> in the
|
|
38
38
|
* <i>Organizations User Guide</i>.</p>
|
|
@@ -38,7 +38,7 @@ declare const DisablePolicyTypeCommand_base: {
|
|
|
38
38
|
* root, and then use this operation.</p>
|
|
39
39
|
* <p>This operation can be called only from the organization's
|
|
40
40
|
* management account or by a member account that is a delegated administrator.</p>
|
|
41
|
-
* <p> To view the status of available policy types in the organization, use <a>
|
|
41
|
+
* <p> To view the status of available policy types in the organization, use <a>ListRoots</a>.</p>
|
|
42
42
|
* @example
|
|
43
43
|
* Use a bare-bones client and the command you need to make an API call.
|
|
44
44
|
* ```javascript
|
|
@@ -28,11 +28,11 @@ declare const EnableAWSServiceAccessCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Provides an Amazon Web Services service (the service that is specified by
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* and allow the service to perform operations
|
|
34
|
-
*
|
|
35
|
-
*
|
|
31
|
+
* <code>ServicePrincipal</code>) with permissions to view the structure of an
|
|
32
|
+
* organization, create a <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html">service-linked role</a> in
|
|
33
|
+
* all the accounts in the organization, and allow the service to perform operations on
|
|
34
|
+
* behalf of the organization and its accounts. Establishing these permissions can be a
|
|
35
|
+
* first step in enabling the integration of an Amazon Web Services service with Organizations.</p>
|
|
36
36
|
* <important>
|
|
37
37
|
* <p>We recommend that you enable integration between Organizations and the specified Amazon Web Services
|
|
38
38
|
* service by using the console or commands that are provided by the specified service.
|
|
@@ -38,7 +38,7 @@ declare const EnablePolicyTypeCommand_base: {
|
|
|
38
38
|
* management account or by a member account that is a delegated administrator.</p>
|
|
39
39
|
* <p>You can enable a policy type in a root only if that policy type is available in the
|
|
40
40
|
* organization. To view the status of available policy types in the organization, use
|
|
41
|
-
* <a>
|
|
41
|
+
* <a>ListRoots</a>.</p>
|
|
42
42
|
* @example
|
|
43
43
|
* Use a bare-bones client and the command you need to make an API call.
|
|
44
44
|
* ```javascript
|
|
@@ -32,10 +32,11 @@ declare const InviteAccountToOrganizationCommand_base: {
|
|
|
32
32
|
* other account's owner. The invitation is implemented as a <a>Handshake</a>
|
|
33
33
|
* whose details are in the response.</p>
|
|
34
34
|
* <important>
|
|
35
|
-
* <p>If you receive an exception that indicates that you exceeded your account
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
35
|
+
* <p>If you receive an exception that indicates that you exceeded your account limits
|
|
36
|
+
* for the organization or that the operation failed because your organization is still
|
|
37
|
+
* initializing, wait one hour and then try again. If the error persists after an hour,
|
|
38
|
+
* contact <a href="https://console.aws.amazon.com/support/home#/">Amazon Web Services
|
|
39
|
+
* Support</a>.</p>
|
|
39
40
|
* </important>
|
|
40
41
|
* <p>If the request includes tags, then the requester must have the
|
|
41
42
|
* <code>organizations:TagResource</code> permission.</p>
|
|
@@ -78,8 +78,8 @@ declare const LeaveOrganizationCommand_base: {
|
|
|
78
78
|
* </li>
|
|
79
79
|
* <li>
|
|
80
80
|
* <p>A newly created account has a waiting period before it can be removed from
|
|
81
|
-
* its organization.
|
|
82
|
-
*
|
|
81
|
+
* its organization. You must wait until at least seven days after the account
|
|
82
|
+
* was created. Invited accounts aren't subject to this waiting period.</p>
|
|
83
83
|
* </li>
|
|
84
84
|
* <li>
|
|
85
85
|
* <p>If you are using an organization principal to call
|
|
@@ -59,6 +59,7 @@ declare const ListAccountsCommand_base: {
|
|
|
59
59
|
* // Email: "STRING_VALUE",
|
|
60
60
|
* // Name: "STRING_VALUE",
|
|
61
61
|
* // Status: "ACTIVE" || "SUSPENDED" || "PENDING_CLOSURE",
|
|
62
|
+
* // State: "PENDING_ACTIVATION" || "ACTIVE" || "SUSPENDED" || "PENDING_CLOSURE" || "CLOSED",
|
|
62
63
|
* // JoinedMethod: "INVITED" || "CREATED",
|
|
63
64
|
* // JoinedTimestamp: new Date("TIMESTAMP"),
|
|
64
65
|
* // },
|
|
@@ -63,6 +63,7 @@ declare const ListAccountsForParentCommand_base: {
|
|
|
63
63
|
* // Email: "STRING_VALUE",
|
|
64
64
|
* // Name: "STRING_VALUE",
|
|
65
65
|
* // Status: "ACTIVE" || "SUSPENDED" || "PENDING_CLOSURE",
|
|
66
|
+
* // State: "PENDING_ACTIVATION" || "ACTIVE" || "SUSPENDED" || "PENDING_CLOSURE" || "CLOSED",
|
|
66
67
|
* // JoinedMethod: "INVITED" || "CREATED",
|
|
67
68
|
* // JoinedTimestamp: new Date("TIMESTAMP"),
|
|
68
69
|
* // },
|
|
@@ -27,8 +27,10 @@ declare const ListAccountsWithInvalidEffectivePolicyCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Lists all the accounts in an organization that have invalid effective policies.
|
|
31
|
-
*
|
|
30
|
+
* <p>Lists all the accounts in an organization that have invalid effective policies. An
|
|
31
|
+
* <i>invalid effective policy</i> is an <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_effective.html">effective
|
|
32
|
+
* policy</a> that fails validation checks, resulting in the effective policy not
|
|
33
|
+
* being fully enforced on all the intended accounts within an organization.</p>
|
|
32
34
|
* <p>This operation can be called only from the organization's
|
|
33
35
|
* management account or by a member account that is a delegated administrator.</p>
|
|
34
36
|
* @example
|
|
@@ -52,6 +54,7 @@ declare const ListAccountsWithInvalidEffectivePolicyCommand_base: {
|
|
|
52
54
|
* // Email: "STRING_VALUE",
|
|
53
55
|
* // Name: "STRING_VALUE",
|
|
54
56
|
* // Status: "ACTIVE" || "SUSPENDED" || "PENDING_CLOSURE",
|
|
57
|
+
* // State: "PENDING_ACTIVATION" || "ACTIVE" || "SUSPENDED" || "PENDING_CLOSURE" || "CLOSED",
|
|
55
58
|
* // JoinedMethod: "INVITED" || "CREATED",
|
|
56
59
|
* // JoinedTimestamp: new Date("TIMESTAMP"),
|
|
57
60
|
* // },
|
|
@@ -27,7 +27,8 @@ declare const ListEffectivePolicyValidationErrorsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Lists all the validation errors on an <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_effective.html">effective
|
|
30
|
+
* <p>Lists all the validation errors on an <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_effective.html">effective
|
|
31
|
+
* policy</a> for a specified account and policy type.</p>
|
|
31
32
|
* <p>This operation can be called only from the organization's
|
|
32
33
|
* management account or by a member account that is a delegated administrator.</p>
|
|
33
34
|
* @example
|
|
@@ -499,6 +499,21 @@ export declare const AccountJoinedMethod: {
|
|
|
499
499
|
* @public
|
|
500
500
|
*/
|
|
501
501
|
export type AccountJoinedMethod = (typeof AccountJoinedMethod)[keyof typeof AccountJoinedMethod];
|
|
502
|
+
/**
|
|
503
|
+
* @public
|
|
504
|
+
* @enum
|
|
505
|
+
*/
|
|
506
|
+
export declare const AccountState: {
|
|
507
|
+
readonly ACTIVE: "ACTIVE";
|
|
508
|
+
readonly CLOSED: "CLOSED";
|
|
509
|
+
readonly PENDING_ACTIVATION: "PENDING_ACTIVATION";
|
|
510
|
+
readonly PENDING_CLOSURE: "PENDING_CLOSURE";
|
|
511
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
512
|
+
};
|
|
513
|
+
/**
|
|
514
|
+
* @public
|
|
515
|
+
*/
|
|
516
|
+
export type AccountState = (typeof AccountState)[keyof typeof AccountState];
|
|
502
517
|
/**
|
|
503
518
|
* @public
|
|
504
519
|
* @enum
|
|
@@ -549,9 +564,25 @@ export interface Account {
|
|
|
549
564
|
Name?: string | undefined;
|
|
550
565
|
/**
|
|
551
566
|
* <p>The status of the account in the organization.</p>
|
|
567
|
+
* <important>
|
|
568
|
+
* <p>The <code>Status</code> parameter in the <code>Account</code> object will be retired on September 9, 2026.
|
|
569
|
+
* Although both the account <code>State</code> and account <code>Status</code> parameters are currently
|
|
570
|
+
* available in the Organizations APIs (<code>DescribeAccount</code>, <code>ListAccounts</code>,
|
|
571
|
+
* <code>ListAccountsForParent</code>), we recommend that you update your scripts or other code to
|
|
572
|
+
* use the <code>State</code> parameter instead of <code>Status</code> before September 9, 2026.</p>
|
|
573
|
+
* </important>
|
|
552
574
|
* @public
|
|
553
575
|
*/
|
|
554
576
|
Status?: AccountStatus | undefined;
|
|
577
|
+
/**
|
|
578
|
+
* <p>Each state represents a specific phase in the account lifecycle. Use this information
|
|
579
|
+
* to manage account access, automate workflows, or trigger actions based on account state
|
|
580
|
+
* changes.</p>
|
|
581
|
+
* <p>For more information about account states and their implications, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_account_state.html">Monitor the state of your Amazon Web Services accounts </a> in the
|
|
582
|
+
* <i>Organizations User Guide</i>.</p>
|
|
583
|
+
* @public
|
|
584
|
+
*/
|
|
585
|
+
State?: AccountState | undefined;
|
|
555
586
|
/**
|
|
556
587
|
* <p>The method by which the account joined the organization.</p>
|
|
557
588
|
* @public
|
|
@@ -1762,7 +1793,8 @@ export interface CreateOrganizationalUnitRequest {
|
|
|
1762
1793
|
*/
|
|
1763
1794
|
export interface OrganizationalUnit {
|
|
1764
1795
|
/**
|
|
1765
|
-
* <p>The unique identifier (ID) associated with this OU. The ID is unique to the
|
|
1796
|
+
* <p>The unique identifier (ID) associated with this OU. The ID is unique to the
|
|
1797
|
+
* organization only.</p>
|
|
1766
1798
|
* <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for an organizational unit ID string requires
|
|
1767
1799
|
* "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the
|
|
1768
1800
|
* OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters
|
|
@@ -2179,6 +2211,13 @@ export interface DescribeAccountRequest {
|
|
|
2179
2211
|
export interface DescribeAccountResponse {
|
|
2180
2212
|
/**
|
|
2181
2213
|
* <p>A structure that contains information about the requested account.</p>
|
|
2214
|
+
* <important>
|
|
2215
|
+
* <p>The <code>Status</code> parameter in the API response will be retired on September 9, 2026.
|
|
2216
|
+
* Although both the account <code>State</code> and account <code>Status</code> parameters are currently
|
|
2217
|
+
* available in the Organizations APIs (<code>DescribeAccount</code>, <code>ListAccounts</code>,
|
|
2218
|
+
* <code>ListAccountsForParent</code>), we recommend that you update your scripts or other code to
|
|
2219
|
+
* use the <code>State</code> parameter instead of <code>Status</code> before September 9, 2026.</p>
|
|
2220
|
+
* </important>
|
|
2182
2221
|
* @public
|
|
2183
2222
|
*/
|
|
2184
2223
|
Account?: Account | undefined;
|
|
@@ -2364,9 +2403,8 @@ export interface DescribeOrganizationResponse {
|
|
|
2364
2403
|
* <important>
|
|
2365
2404
|
* <p>The <code>AvailablePolicyTypes</code> part of the response is deprecated, and you
|
|
2366
2405
|
* shouldn't use it in your apps. It doesn't include any policy type supported by Organizations
|
|
2367
|
-
* other than SCPs. In the China (Ningxia) Region, no policy type is included.
|
|
2368
|
-
*
|
|
2369
|
-
* use the <code>
|
|
2406
|
+
* other than SCPs. In the China (Ningxia) Region, no policy type is included. To
|
|
2407
|
+
* determine which policy types are enabled in your organization, use the <code>
|
|
2370
2408
|
* <a>ListRoots</a>
|
|
2371
2409
|
* </code> operation.</p>
|
|
2372
2410
|
* </important>
|
|
@@ -2602,7 +2640,8 @@ export interface DisablePolicyTypeRequest {
|
|
|
2602
2640
|
*/
|
|
2603
2641
|
export interface Root {
|
|
2604
2642
|
/**
|
|
2605
|
-
* <p>The unique identifier (ID) for the root. The ID is unique to the organization
|
|
2643
|
+
* <p>The unique identifier (ID) for the root. The ID is unique to the organization
|
|
2644
|
+
* only.</p>
|
|
2606
2645
|
* <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for a root ID string requires "r-" followed by
|
|
2607
2646
|
* from 4 to 32 lowercase letters or digits.</p>
|
|
2608
2647
|
* @public
|
|
@@ -2882,6 +2921,13 @@ export interface ListAccountsRequest {
|
|
|
2882
2921
|
export interface ListAccountsResponse {
|
|
2883
2922
|
/**
|
|
2884
2923
|
* <p>A list of objects in the organization.</p>
|
|
2924
|
+
* <important>
|
|
2925
|
+
* <p>The <code>Status</code> parameter in the API response will be retired on September 9, 2026.
|
|
2926
|
+
* Although both the account <code>State</code> and account <code>Status</code> parameters are currently
|
|
2927
|
+
* available in the Organizations APIs (<code>DescribeAccount</code>, <code>ListAccounts</code>,
|
|
2928
|
+
* <code>ListAccountsForParent</code>), we recommend that you update your scripts or other code to
|
|
2929
|
+
* use the <code>State</code> parameter instead of <code>Status</code> before September 9, 2026.</p>
|
|
2930
|
+
* </important>
|
|
2885
2931
|
* @public
|
|
2886
2932
|
*/
|
|
2887
2933
|
Accounts?: Account[] | undefined;
|
|
@@ -2932,6 +2978,13 @@ export interface ListAccountsForParentRequest {
|
|
|
2932
2978
|
export interface ListAccountsForParentResponse {
|
|
2933
2979
|
/**
|
|
2934
2980
|
* <p>A list of the accounts in the specified root or OU.</p>
|
|
2981
|
+
* <important>
|
|
2982
|
+
* <p>The <code>Status</code> parameter in the API response will be retired on September 9, 2026.
|
|
2983
|
+
* Although both the account <code>State</code> and account <code>Status</code> parameters are currently
|
|
2984
|
+
* available in the Organizations APIs (<code>DescribeAccount</code>, <code>ListAccounts</code>,
|
|
2985
|
+
* <code>ListAccountsForParent</code>), we recommend that you update your scripts or other code to
|
|
2986
|
+
* use the <code>State</code> parameter instead of <code>Status</code> before September 9, 2026.</p>
|
|
2987
|
+
* </important>
|
|
2935
2988
|
* @public
|
|
2936
2989
|
*/
|
|
2937
2990
|
Accounts?: Account[] | undefined;
|
|
@@ -3469,7 +3522,8 @@ export interface ListDelegatedServicesForAccountResponse {
|
|
|
3469
3522
|
*/
|
|
3470
3523
|
export interface ListEffectivePolicyValidationErrorsRequest {
|
|
3471
3524
|
/**
|
|
3472
|
-
* <p>The ID of the account that you want details about. Specifying an organization root or
|
|
3525
|
+
* <p>The ID of the account that you want details about. Specifying an organization root or
|
|
3526
|
+
* organizational unit (OU) as the target is not supported.</p>
|
|
3473
3527
|
* @public
|
|
3474
3528
|
*/
|
|
3475
3529
|
AccountId: string | undefined;
|
|
@@ -3534,13 +3588,16 @@ export interface ListEffectivePolicyValidationErrorsRequest {
|
|
|
3534
3588
|
MaxResults?: number | undefined;
|
|
3535
3589
|
}
|
|
3536
3590
|
/**
|
|
3537
|
-
* <p>Contains details about the
|
|
3538
|
-
*
|
|
3591
|
+
* <p>Contains details about the validation errors that occurred when generating or
|
|
3592
|
+
* enforcing an <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_effective.html">effective
|
|
3593
|
+
* policy</a>, such as which policies contributed to the error and location of the
|
|
3594
|
+
* error.</p>
|
|
3539
3595
|
* @public
|
|
3540
3596
|
*/
|
|
3541
3597
|
export interface EffectivePolicyValidationError {
|
|
3542
3598
|
/**
|
|
3543
|
-
* <p>The error code for the validation error. For example,
|
|
3599
|
+
* <p>The error code for the validation error. For example,
|
|
3600
|
+
* <code>ELEMENTS_TOO_MANY</code>.</p>
|
|
3544
3601
|
* @public
|
|
3545
3602
|
*/
|
|
3546
3603
|
ErrorCode?: string | undefined;
|
|
@@ -3555,7 +3612,8 @@ export interface EffectivePolicyValidationError {
|
|
|
3555
3612
|
*/
|
|
3556
3613
|
PathToError?: string | undefined;
|
|
3557
3614
|
/**
|
|
3558
|
-
* <p>The individual policies <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inheritance_mgmt.html">inherited</a>
|
|
3615
|
+
* <p>The individual policies <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inheritance_mgmt.html">inherited</a> and <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_policies_attach.html">attached</a> to
|
|
3616
|
+
* the account which contributed to the validation error.</p>
|
|
3559
3617
|
* @public
|
|
3560
3618
|
*/
|
|
3561
3619
|
ContributingPolicies?: string[] | undefined;
|
|
@@ -3570,8 +3628,7 @@ export interface ListEffectivePolicyValidationErrorsResponse {
|
|
|
3570
3628
|
*/
|
|
3571
3629
|
AccountId?: string | undefined;
|
|
3572
3630
|
/**
|
|
3573
|
-
* <p>The specified policy type. One of the
|
|
3574
|
-
* following values:</p>
|
|
3631
|
+
* <p>The specified policy type. One of the following values:</p>
|
|
3575
3632
|
* <ul>
|
|
3576
3633
|
* <li>
|
|
3577
3634
|
* <p>
|
|
@@ -3613,7 +3670,8 @@ export interface ListEffectivePolicyValidationErrorsResponse {
|
|
|
3613
3670
|
*/
|
|
3614
3671
|
Path?: string | undefined;
|
|
3615
3672
|
/**
|
|
3616
|
-
* <p>The time when the latest effective policy was generated for the specified
|
|
3673
|
+
* <p>The time when the latest effective policy was generated for the specified
|
|
3674
|
+
* account.</p>
|
|
3617
3675
|
* @public
|
|
3618
3676
|
*/
|
|
3619
3677
|
EvaluationTimestamp?: Date | undefined;
|
|
@@ -3627,7 +3685,8 @@ export interface ListEffectivePolicyValidationErrorsResponse {
|
|
|
3627
3685
|
NextToken?: string | undefined;
|
|
3628
3686
|
/**
|
|
3629
3687
|
* <p>The <code>EffectivePolicyValidationError</code> object contains details about the
|
|
3630
|
-
* validation errors that occurred when generating or enforcing an effective policy, such
|
|
3688
|
+
* validation errors that occurred when generating or enforcing an effective policy, such
|
|
3689
|
+
* as which policies contributed to the error and location of the error.</p>
|
|
3631
3690
|
* @public
|
|
3632
3691
|
*/
|
|
3633
3692
|
EffectivePolicyValidationErrors?: EffectivePolicyValidationError[] | undefined;
|
|
@@ -210,6 +210,14 @@ export declare const AccountJoinedMethod: {
|
|
|
210
210
|
};
|
|
211
211
|
export type AccountJoinedMethod =
|
|
212
212
|
(typeof AccountJoinedMethod)[keyof typeof AccountJoinedMethod];
|
|
213
|
+
export declare const AccountState: {
|
|
214
|
+
readonly ACTIVE: "ACTIVE";
|
|
215
|
+
readonly CLOSED: "CLOSED";
|
|
216
|
+
readonly PENDING_ACTIVATION: "PENDING_ACTIVATION";
|
|
217
|
+
readonly PENDING_CLOSURE: "PENDING_CLOSURE";
|
|
218
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
219
|
+
};
|
|
220
|
+
export type AccountState = (typeof AccountState)[keyof typeof AccountState];
|
|
213
221
|
export declare const AccountStatus: {
|
|
214
222
|
readonly ACTIVE: "ACTIVE";
|
|
215
223
|
readonly PENDING_CLOSURE: "PENDING_CLOSURE";
|
|
@@ -222,6 +230,7 @@ export interface Account {
|
|
|
222
230
|
Email?: string | undefined;
|
|
223
231
|
Name?: string | undefined;
|
|
224
232
|
Status?: AccountStatus | undefined;
|
|
233
|
+
State?: AccountState | undefined;
|
|
225
234
|
JoinedMethod?: AccountJoinedMethod | undefined;
|
|
226
235
|
JoinedTimestamp?: Date | undefined;
|
|
227
236
|
}
|
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.886.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-organizations",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.883.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.886.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.873.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.876.0",
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.886.0",
|
|
28
28
|
"@aws-sdk/middleware-user-agent": "3.883.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.873.0",
|
|
30
30
|
"@aws-sdk/types": "3.862.0",
|