@aws-sdk/client-organizations 3.289.0 → 3.292.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.
Files changed (56) hide show
  1. package/dist-types/commands/AcceptHandshakeCommand.d.ts +208 -0
  2. package/dist-types/commands/AttachPolicyCommand.d.ts +352 -0
  3. package/dist-types/commands/CancelHandshakeCommand.d.ts +139 -0
  4. package/dist-types/commands/CloseAccountCommand.d.ts +343 -0
  5. package/dist-types/commands/CreateAccountCommand.d.ts +336 -0
  6. package/dist-types/commands/CreateGovCloudAccountCommand.d.ts +336 -0
  7. package/dist-types/commands/CreateOrganizationCommand.d.ts +334 -0
  8. package/dist-types/commands/CreateOrganizationalUnitCommand.d.ts +334 -0
  9. package/dist-types/commands/CreatePolicyCommand.d.ts +348 -0
  10. package/dist-types/commands/DeclineHandshakeCommand.d.ts +139 -0
  11. package/dist-types/commands/DeleteOrganizationCommand.d.ts +135 -0
  12. package/dist-types/commands/DeleteOrganizationalUnitCommand.d.ts +139 -0
  13. package/dist-types/commands/DeletePolicyCommand.d.ts +141 -0
  14. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +230 -0
  15. package/dist-types/commands/DeregisterDelegatedAdministratorCommand.d.ts +339 -0
  16. package/dist-types/commands/DescribeAccountCommand.d.ts +132 -0
  17. package/dist-types/commands/DescribeCreateAccountStatusCommand.d.ts +134 -0
  18. package/dist-types/commands/DescribeEffectivePolicyCommand.d.ts +337 -0
  19. package/dist-types/commands/DescribeHandshakeCommand.d.ts +130 -0
  20. package/dist-types/commands/DescribeOrganizationCommand.d.ts +27 -0
  21. package/dist-types/commands/DescribeOrganizationalUnitCommand.d.ts +131 -0
  22. package/dist-types/commands/DescribePolicyCommand.d.ts +133 -0
  23. package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +226 -0
  24. package/dist-types/commands/DetachPolicyCommand.d.ts +345 -0
  25. package/dist-types/commands/DisableAWSServiceAccessCommand.d.ts +331 -0
  26. package/dist-types/commands/DisablePolicyTypeCommand.d.ts +345 -0
  27. package/dist-types/commands/EnableAWSServiceAccessCommand.d.ts +331 -0
  28. package/dist-types/commands/EnableAllFeaturesCommand.d.ts +190 -0
  29. package/dist-types/commands/EnablePolicyTypeCommand.d.ts +348 -0
  30. package/dist-types/commands/InviteAccountToOrganizationCommand.d.ts +406 -0
  31. package/dist-types/commands/LeaveOrganizationCommand.d.ts +338 -0
  32. package/dist-types/commands/ListAWSServiceAccessForOrganizationCommand.d.ts +327 -0
  33. package/dist-types/commands/ListAccountsCommand.d.ts +127 -0
  34. package/dist-types/commands/ListAccountsForParentCommand.d.ts +130 -0
  35. package/dist-types/commands/ListChildrenCommand.d.ts +130 -0
  36. package/dist-types/commands/ListCreateAccountStatusCommand.d.ts +130 -0
  37. package/dist-types/commands/ListDelegatedAdministratorsCommand.d.ts +327 -0
  38. package/dist-types/commands/ListDelegatedServicesForAccountCommand.d.ts +335 -0
  39. package/dist-types/commands/ListHandshakesForAccountCommand.d.ts +127 -0
  40. package/dist-types/commands/ListHandshakesForOrganizationCommand.d.ts +131 -0
  41. package/dist-types/commands/ListOrganizationalUnitsForParentCommand.d.ts +130 -0
  42. package/dist-types/commands/ListParentsCommand.d.ts +131 -0
  43. package/dist-types/commands/ListPoliciesCommand.d.ts +130 -0
  44. package/dist-types/commands/ListPoliciesForTargetCommand.d.ts +134 -0
  45. package/dist-types/commands/ListRootsCommand.d.ts +127 -0
  46. package/dist-types/commands/ListTagsForResourceCommand.d.ts +131 -0
  47. package/dist-types/commands/ListTargetsForPolicyCommand.d.ts +133 -0
  48. package/dist-types/commands/MoveAccountCommand.d.ts +147 -0
  49. package/dist-types/commands/PutResourcePolicyCommand.d.ts +331 -0
  50. package/dist-types/commands/RegisterDelegatedAdministratorCommand.d.ts +340 -0
  51. package/dist-types/commands/RemoveAccountFromOrganizationCommand.d.ts +338 -0
  52. package/dist-types/commands/TagResourceCommand.d.ts +332 -0
  53. package/dist-types/commands/UntagResourceCommand.d.ts +332 -0
  54. package/dist-types/commands/UpdateOrganizationalUnitCommand.d.ts +138 -0
  55. package/dist-types/commands/UpdatePolicyCommand.d.ts +348 -0
  56. package/package.json +35 -40
@@ -59,6 +59,214 @@ export interface AcceptHandshakeCommandOutput extends AcceptHandshakeResponse, _
59
59
  * @see {@link AcceptHandshakeCommandOutput} for command's `response` shape.
60
60
  * @see {@link OrganizationsClientResolvedConfig | config} for OrganizationsClient's `config` shape.
61
61
  *
62
+ * @throws {@link AccessDeniedException} (client fault)
63
+ * <p>You don't have permissions to perform the requested operation. The user or role that
64
+ * is making the request must have at least one IAM permissions policy attached that
65
+ * grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access Management</a> in the
66
+ * <i>IAM User Guide.</i>
67
+ * </p>
68
+ *
69
+ * @throws {@link AccessDeniedForDependencyException} (client fault)
70
+ * <p>The operation that you attempted requires you to have the
71
+ * <code>iam:CreateServiceLinkedRole</code> for
72
+ * <code>organizations.amazonaws.com</code> permission so that Organizations can create the
73
+ * required service-linked role. You don't have that permission.</p>
74
+ *
75
+ * @throws {@link AWSOrganizationsNotInUseException} (client fault)
76
+ * <p>Your account isn't a member of an organization. To make this request, you must use the
77
+ * credentials of an account that belongs to an organization.</p>
78
+ *
79
+ * @throws {@link ConcurrentModificationException} (client fault)
80
+ * <p>The target of the operation is currently being modified by a different request. Try
81
+ * again later.</p>
82
+ *
83
+ * @throws {@link HandshakeAlreadyInStateException} (client fault)
84
+ * <p>The specified handshake is already in the requested state. For example, you can't
85
+ * accept a handshake that was already accepted.</p>
86
+ *
87
+ * @throws {@link HandshakeConstraintViolationException} (client fault)
88
+ * <p>The requested operation would violate the constraint identified in the reason
89
+ * code.</p>
90
+ * <note>
91
+ * <p>Some of the reasons in the following list might not be applicable to this specific
92
+ * API or operation:</p>
93
+ * </note>
94
+ * <ul>
95
+ * <li>
96
+ * <p>ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number
97
+ * of accounts in an organization. Note that deleted and closed accounts still
98
+ * count toward your limit.</p>
99
+ * <important>
100
+ * <p>If you get this exception immediately after creating the organization,
101
+ * wait one hour and try again. If after an hour it continues to fail with this
102
+ * error, contact <a href="https://docs.aws.amazon.com/support/home#/">Amazon Web Services Support</a>.</p>
103
+ * </important>
104
+ * </li>
105
+ * <li>
106
+ * <p>ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because the
107
+ * invited account is already a member of an organization.</p>
108
+ * </li>
109
+ * <li>
110
+ * <p>HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
111
+ * handshakes that you can send in one day.</p>
112
+ * </li>
113
+ * <li>
114
+ * <p>INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations to
115
+ * join an organization while it's in the process of enabling all features. You can
116
+ * resume inviting accounts after you finalize the process when all accounts have
117
+ * agreed to the change.</p>
118
+ * </li>
119
+ * <li>
120
+ * <p>ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid
121
+ * because the organization has already enabled all features.</p>
122
+ * </li>
123
+ * <li>
124
+ * <p>ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION: The handshake request
125
+ * is invalid because the organization has already started the process to enable
126
+ * all features.</p>
127
+ * </li>
128
+ * <li>
129
+ * <p>ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because the
130
+ * account is from a different marketplace than the accounts in the organization.
131
+ * For example, accounts with India addresses must be associated with the AISPL
132
+ * marketplace. All accounts in an organization must be from the same
133
+ * marketplace.</p>
134
+ * </li>
135
+ * <li>
136
+ * <p>ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to change
137
+ * the membership of an account too quickly after its previous change.</p>
138
+ * </li>
139
+ * <li>
140
+ * <p>PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an account
141
+ * that doesn't have a payment instrument, such as a credit card, associated with
142
+ * it.</p>
143
+ * </li>
144
+ * </ul>
145
+ *
146
+ * @throws {@link HandshakeNotFoundException} (client fault)
147
+ * <p>We can't find a handshake with the <code>HandshakeId</code> that you specified.</p>
148
+ *
149
+ * @throws {@link InvalidHandshakeTransitionException} (client fault)
150
+ * <p>You can't perform the operation on the handshake in its current state. For example,
151
+ * you can't cancel a handshake that was already accepted or accept a handshake that was
152
+ * already declined.</p>
153
+ *
154
+ * @throws {@link InvalidInputException} (client fault)
155
+ * <p>The requested operation failed because you provided invalid values for one or more of
156
+ * the request parameters. This exception includes a reason that contains additional
157
+ * information about the violated limit:</p>
158
+ * <note>
159
+ * <p>Some of the reasons in the following list might not be applicable to this specific
160
+ * API or operation.</p>
161
+ * </note>
162
+ * <ul>
163
+ * <li>
164
+ * <p>DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to the same
165
+ * entity.</p>
166
+ * </li>
167
+ * <li>
168
+ * <p>IMMUTABLE_POLICY: You specified a policy that is managed by Amazon Web Services and can't be
169
+ * modified.</p>
170
+ * </li>
171
+ * <li>
172
+ * <p>INPUT_REQUIRED: You must include a value for all required parameters.</p>
173
+ * </li>
174
+ * <li>
175
+ * <p>INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address for the
176
+ * invited account owner.</p>
177
+ * </li>
178
+ * <li>
179
+ * <p>INVALID_ENUM: You specified an invalid value.</p>
180
+ * </li>
181
+ * <li>
182
+ * <p>INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.</p>
183
+ * </li>
184
+ * <li>
185
+ * <p>INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
186
+ * characters.</p>
187
+ * </li>
188
+ * <li>
189
+ * <p>INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least
190
+ * one invalid value.</p>
191
+ * </li>
192
+ * <li>
193
+ * <p>INVALID_PAGINATION_TOKEN: Get the value for the <code>NextToken</code>
194
+ * parameter from the response to a previous call of the operation.</p>
195
+ * </li>
196
+ * <li>
197
+ * <p>INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
198
+ * organization, or email) as a party.</p>
199
+ * </li>
200
+ * <li>
201
+ * <p>INVALID_PATTERN: You provided a value that doesn't match the required
202
+ * pattern.</p>
203
+ * </li>
204
+ * <li>
205
+ * <p>INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match
206
+ * the required pattern.</p>
207
+ * </li>
208
+ * <li>
209
+ * <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
210
+ * can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
211
+ * </li>
212
+ * <li>
213
+ * <p>INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name
214
+ * (ARN) for the organization.</p>
215
+ * </li>
216
+ * <li>
217
+ * <p>INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. </p>
218
+ * </li>
219
+ * <li>
220
+ * <p>INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system tag.
221
+ * You can’t add, edit, or delete system tag keys because they're reserved for
222
+ * Amazon Web Services use. System tags don’t count against your tags per resource limit.</p>
223
+ * </li>
224
+ * <li>
225
+ * <p>MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the
226
+ * operation.</p>
227
+ * </li>
228
+ * <li>
229
+ * <p>MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than
230
+ * allowed.</p>
231
+ * </li>
232
+ * <li>
233
+ * <p>MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value
234
+ * than allowed.</p>
235
+ * </li>
236
+ * <li>
237
+ * <p>MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than
238
+ * allowed.</p>
239
+ * </li>
240
+ * <li>
241
+ * <p>MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value
242
+ * than allowed.</p>
243
+ * </li>
244
+ * <li>
245
+ * <p>MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between
246
+ * entities in the same root.</p>
247
+ * </li>
248
+ * <li>
249
+ * <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
250
+ * entity.</p>
251
+ * </li>
252
+ * <li>
253
+ * <p>UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't
254
+ * recognized.</p>
255
+ * </li>
256
+ * </ul>
257
+ *
258
+ * @throws {@link ServiceException} (server fault)
259
+ * <p>Organizations can't complete your request because of an internal service error. Try again
260
+ * later.</p>
261
+ *
262
+ * @throws {@link TooManyRequestsException} (client fault)
263
+ * <p>You have sent too many requests in too short a period of time. The quota helps protect
264
+ * against denial-of-service attacks. Try again later.</p>
265
+ * <p>For information about quotas that affect Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html">Quotas for Organizations</a>in the
266
+ * <i>Organizations User Guide.</i>
267
+ * </p>
268
+ *
269
+ *
62
270
  * @example To accept a handshake from another account
63
271
  * ```javascript
64
272
  * // 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.
@@ -54,6 +54,358 @@ export interface AttachPolicyCommandOutput extends __MetadataBearer {
54
54
  * @see {@link AttachPolicyCommandOutput} for command's `response` shape.
55
55
  * @see {@link OrganizationsClientResolvedConfig | config} for OrganizationsClient's `config` shape.
56
56
  *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p>You don't have permissions to perform the requested operation. The user or role that
59
+ * is making the request must have at least one IAM permissions policy attached that
60
+ * grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access Management</a> in the
61
+ * <i>IAM User Guide.</i>
62
+ * </p>
63
+ *
64
+ * @throws {@link AWSOrganizationsNotInUseException} (client fault)
65
+ * <p>Your account isn't a member of an organization. To make this request, you must use the
66
+ * credentials of an account that belongs to an organization.</p>
67
+ *
68
+ * @throws {@link ConcurrentModificationException} (client fault)
69
+ * <p>The target of the operation is currently being modified by a different request. Try
70
+ * again later.</p>
71
+ *
72
+ * @throws {@link ConstraintViolationException} (client fault)
73
+ * <p>Performing this operation violates a minimum or maximum value limit. For example,
74
+ * attempting to remove the last service control policy (SCP) from an OU or root, inviting
75
+ * or creating too many accounts to the organization, or attaching too many policies to an
76
+ * account, OU, or root. This exception includes a reason that contains additional
77
+ * information about the violated limit:</p>
78
+ * <note>
79
+ * <p>Some of the reasons in the following list might not be applicable to this specific
80
+ * API or operation.</p>
81
+ * </note>
82
+ * <ul>
83
+ * <li>
84
+ * <p>ACCOUNT_CANNOT_LEAVE_ORGANIZATION: You attempted to remove the management
85
+ * account from the organization. You can't remove the management account. Instead,
86
+ * after you remove all member accounts, delete the organization itself.</p>
87
+ * </li>
88
+ * <li>
89
+ * <p>ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove an
90
+ * account from the organization that doesn't yet have enough information to exist
91
+ * as a standalone account. This account requires you to first complete phone
92
+ * verification. Follow the steps at <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#orgs_manage_accounts_remove-from-master">Removing a member account from your organization</a> in the
93
+ * <i>Organizations User Guide.</i>
94
+ * </p>
95
+ * </li>
96
+ * <li>
97
+ * <p>ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
98
+ * accounts that you can create in one day.</p>
99
+ * </li>
100
+ * <li>
101
+ * <p>ACCOUNT_CREATION_NOT_COMPLETE: Your account setup isn't complete or your account isn't fully active. You must complete the account setup before you create an organization.</p>
102
+ * </li>
103
+ * <li>
104
+ * <p>ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number
105
+ * of accounts in an organization. If you need more accounts, contact <a href="https://docs.aws.amazon.com/support/home#/">Amazon Web Services Support</a> to
106
+ * request an increase in your limit. </p>
107
+ * <p>Or the number of invitations that you tried to send would cause you to exceed
108
+ * the limit of accounts in your organization. Send fewer invitations or contact
109
+ * Amazon Web Services Support to request an increase in the number of accounts.</p>
110
+ * <note>
111
+ * <p>Deleted and closed accounts still count toward your limit.</p>
112
+ * </note>
113
+ * <important>
114
+ * <p>If you get this exception when running a command immediately after
115
+ * creating the organization, wait one hour and try again. After an hour, if
116
+ * the command continues to fail with this error, contact <a href="https://docs.aws.amazon.com/support/home#/">Amazon Web Services
117
+ * Support</a>.</p>
118
+ * </important>
119
+ * </li>
120
+ * <li>
121
+ * <p>CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You attempted to register
122
+ * the management account of the organization as a delegated administrator for an
123
+ * Amazon Web Services service integrated with Organizations. You can designate only a member account as a
124
+ * delegated administrator.</p>
125
+ * </li>
126
+ * <li>
127
+ * <p>CANNOT_CLOSE_MANAGEMENT_ACCOUNT: You attempted to close the management
128
+ * account. To close the management account for the organization, you must first
129
+ * either remove or close all member accounts in the organization. Follow standard
130
+ * account closure process using root credentials.​ </p>
131
+ * </li>
132
+ * <li>
133
+ * <p>CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: You attempted to remove an
134
+ * account that is registered as a delegated administrator for a service integrated
135
+ * with your organization. To complete this operation, you must first deregister
136
+ * this account as a delegated administrator. </p>
137
+ * </li>
138
+ * <li>
139
+ * <p>CLOSE_ACCOUNT_QUOTA_EXCEEDED: You have exceeded close account quota for the
140
+ * past 30 days. </p>
141
+ * </li>
142
+ * <li>
143
+ * <p>CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED: You attempted to exceed the number of
144
+ * accounts that you can close at a time. ​ </p>
145
+ * </li>
146
+ * <li>
147
+ * <p>CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION: To create an
148
+ * organization in the specified region, you must enable all features mode.</p>
149
+ * </li>
150
+ * <li>
151
+ * <p>DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: You attempted to register an
152
+ * Amazon Web Services account as a delegated administrator for an Amazon Web Services service that already has
153
+ * a delegated administrator. To complete this operation, you must first deregister
154
+ * any existing delegated administrators for this service.</p>
155
+ * </li>
156
+ * <li>
157
+ * <p>EMAIL_VERIFICATION_CODE_EXPIRED: The email verification code is only valid for
158
+ * a limited period of time. You must resubmit the request and generate a new
159
+ * verfication code.</p>
160
+ * </li>
161
+ * <li>
162
+ * <p>HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
163
+ * handshakes that you can send in one day.</p>
164
+ * </li>
165
+ * <li>
166
+ * <p>INVALID_PAYMENT_INSTRUMENT: You cannot remove an account because no supported
167
+ * payment method is associated with the account. Amazon Web Services does not support cards
168
+ * issued by financial institutions in Russia or Belarus. For more information, see
169
+ * <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-general.html">Managing your
170
+ * Amazon Web Services payments</a>.</p>
171
+ * </li>
172
+ * <li>
173
+ * <p>MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account in
174
+ * this organization, you first must migrate the organization's management account
175
+ * to the marketplace that corresponds to the management account's address. For
176
+ * example, accounts with India addresses must be associated with the AISPL
177
+ * marketplace. All accounts in an organization must be associated with the same
178
+ * marketplace.</p>
179
+ * </li>
180
+ * <li>
181
+ * <p>MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE: Applies only to the Amazon Web Services /> Regions
182
+ * in China. To create an organization, the master must have a valid business
183
+ * license. For more information, contact customer support.</p>
184
+ * </li>
185
+ * <li>
186
+ * <p>MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you must
187
+ * first provide a valid contact address and phone number for the management
188
+ * account. Then try the operation again.</p>
189
+ * </li>
190
+ * <li>
191
+ * <p>MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the
192
+ * management account must have an associated account in the Amazon Web Services GovCloud
193
+ * (US-West) Region. For more information, see <a href="https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html">Organizations</a>
194
+ * in the
195
+ * <i>Amazon Web Services GovCloud User Guide.</i>
196
+ * </p>
197
+ * </li>
198
+ * <li>
199
+ * <p>MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization with
200
+ * this management account, you first must associate a valid payment instrument,
201
+ * such as a credit card, with the account. Follow the steps at <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info">To leave an organization when all required account information has not yet
202
+ * been provided</a> in the <i>Organizations User Guide.</i>
203
+ * </p>
204
+ * </li>
205
+ * <li>
206
+ * <p>MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted to
207
+ * register more delegated administrators than allowed for the service principal.
208
+ * </p>
209
+ * </li>
210
+ * <li>
211
+ * <p>MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the number
212
+ * of policies of a certain type that can be attached to an entity at one
213
+ * time.</p>
214
+ * </li>
215
+ * <li>
216
+ * <p>MAX_TAG_LIMIT_EXCEEDED: You have exceeded the number of tags allowed on this
217
+ * resource. </p>
218
+ * </li>
219
+ * <li>
220
+ * <p>MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation with
221
+ * this member account, you first must associate a valid payment instrument, such
222
+ * as a credit card, with the account. Follow the steps at <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info">To leave an organization when all required account information has not yet
223
+ * been provided</a> in the <i>Organizations User Guide.</i>
224
+ * </p>
225
+ * </li>
226
+ * <li>
227
+ * <p>MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a policy
228
+ * from an entity that would cause the entity to have fewer than the minimum number
229
+ * of policies of a certain type required.</p>
230
+ * </li>
231
+ * <li>
232
+ * <p>ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation
233
+ * that requires the organization to be configured to support all features. An
234
+ * organization that supports only consolidated billing features can't perform this
235
+ * operation.</p>
236
+ * </li>
237
+ * <li>
238
+ * <p>OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is too many
239
+ * levels deep.</p>
240
+ * </li>
241
+ * <li>
242
+ * <p>OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs that you
243
+ * can have in an organization.</p>
244
+ * </li>
245
+ * <li>
246
+ * <p>POLICY_CONTENT_LIMIT_EXCEEDED: You attempted to create a policy that is larger
247
+ * than the maximum size.</p>
248
+ * </li>
249
+ * <li>
250
+ * <p>POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of policies
251
+ * that you can have in an organization.</p>
252
+ * </li>
253
+ * <li>
254
+ * <p>SERVICE_ACCESS_NOT_ENABLED: You attempted to register a delegated
255
+ * administrator before you enabled service access. Call the
256
+ * <code>EnableAWSServiceAccess</code> API first.</p>
257
+ * </li>
258
+ * <li>
259
+ * <p>TAG_POLICY_VIOLATION: You attempted to create or update a resource with tags
260
+ * that are not compliant with the tag policy requirements for this account.</p>
261
+ * </li>
262
+ * <li>
263
+ * <p>WAIT_PERIOD_ACTIVE: After you create an Amazon Web Services account, there is a waiting
264
+ * period before you can remove it from the organization. If you get an error that
265
+ * indicates that a wait period is required, try again in a few days.</p>
266
+ * </li>
267
+ * </ul>
268
+ *
269
+ * @throws {@link DuplicatePolicyAttachmentException} (client fault)
270
+ * <p>The selected policy is already attached to the specified target.</p>
271
+ *
272
+ * @throws {@link InvalidInputException} (client fault)
273
+ * <p>The requested operation failed because you provided invalid values for one or more of
274
+ * the request parameters. This exception includes a reason that contains additional
275
+ * information about the violated limit:</p>
276
+ * <note>
277
+ * <p>Some of the reasons in the following list might not be applicable to this specific
278
+ * API or operation.</p>
279
+ * </note>
280
+ * <ul>
281
+ * <li>
282
+ * <p>DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to the same
283
+ * entity.</p>
284
+ * </li>
285
+ * <li>
286
+ * <p>IMMUTABLE_POLICY: You specified a policy that is managed by Amazon Web Services and can't be
287
+ * modified.</p>
288
+ * </li>
289
+ * <li>
290
+ * <p>INPUT_REQUIRED: You must include a value for all required parameters.</p>
291
+ * </li>
292
+ * <li>
293
+ * <p>INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address for the
294
+ * invited account owner.</p>
295
+ * </li>
296
+ * <li>
297
+ * <p>INVALID_ENUM: You specified an invalid value.</p>
298
+ * </li>
299
+ * <li>
300
+ * <p>INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.</p>
301
+ * </li>
302
+ * <li>
303
+ * <p>INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
304
+ * characters.</p>
305
+ * </li>
306
+ * <li>
307
+ * <p>INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least
308
+ * one invalid value.</p>
309
+ * </li>
310
+ * <li>
311
+ * <p>INVALID_PAGINATION_TOKEN: Get the value for the <code>NextToken</code>
312
+ * parameter from the response to a previous call of the operation.</p>
313
+ * </li>
314
+ * <li>
315
+ * <p>INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
316
+ * organization, or email) as a party.</p>
317
+ * </li>
318
+ * <li>
319
+ * <p>INVALID_PATTERN: You provided a value that doesn't match the required
320
+ * pattern.</p>
321
+ * </li>
322
+ * <li>
323
+ * <p>INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match
324
+ * the required pattern.</p>
325
+ * </li>
326
+ * <li>
327
+ * <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
328
+ * can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
329
+ * </li>
330
+ * <li>
331
+ * <p>INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name
332
+ * (ARN) for the organization.</p>
333
+ * </li>
334
+ * <li>
335
+ * <p>INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. </p>
336
+ * </li>
337
+ * <li>
338
+ * <p>INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system tag.
339
+ * You can’t add, edit, or delete system tag keys because they're reserved for
340
+ * Amazon Web Services use. System tags don’t count against your tags per resource limit.</p>
341
+ * </li>
342
+ * <li>
343
+ * <p>MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the
344
+ * operation.</p>
345
+ * </li>
346
+ * <li>
347
+ * <p>MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than
348
+ * allowed.</p>
349
+ * </li>
350
+ * <li>
351
+ * <p>MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value
352
+ * than allowed.</p>
353
+ * </li>
354
+ * <li>
355
+ * <p>MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than
356
+ * allowed.</p>
357
+ * </li>
358
+ * <li>
359
+ * <p>MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value
360
+ * than allowed.</p>
361
+ * </li>
362
+ * <li>
363
+ * <p>MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between
364
+ * entities in the same root.</p>
365
+ * </li>
366
+ * <li>
367
+ * <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
368
+ * entity.</p>
369
+ * </li>
370
+ * <li>
371
+ * <p>UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't
372
+ * recognized.</p>
373
+ * </li>
374
+ * </ul>
375
+ *
376
+ * @throws {@link PolicyChangesInProgressException} (client fault)
377
+ * <p>Changes to the effective policy are in progress, and its contents can't be returned.
378
+ * Try the operation again later. </p>
379
+ *
380
+ * @throws {@link PolicyNotFoundException} (client fault)
381
+ * <p>We can't find a policy with the <code>PolicyId</code> that you specified.</p>
382
+ *
383
+ * @throws {@link PolicyTypeNotEnabledException} (client fault)
384
+ * <p>The specified policy type isn't currently enabled in this root. You can't attach
385
+ * policies of the specified type to entities in a root until you enable that type in the
386
+ * root. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html">Enabling All Features
387
+ * in Your Organization</a> in the <i>Organizations User Guide.</i>
388
+ * </p>
389
+ *
390
+ * @throws {@link ServiceException} (server fault)
391
+ * <p>Organizations can't complete your request because of an internal service error. Try again
392
+ * later.</p>
393
+ *
394
+ * @throws {@link TargetNotFoundException} (client fault)
395
+ * <p>We can't find a root, OU, account, or policy with the <code>TargetId</code> that you
396
+ * specified.</p>
397
+ *
398
+ * @throws {@link TooManyRequestsException} (client fault)
399
+ * <p>You have sent too many requests in too short a period of time. The quota helps protect
400
+ * against denial-of-service attacks. Try again later.</p>
401
+ * <p>For information about quotas that affect Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html">Quotas for Organizations</a>in the
402
+ * <i>Organizations User Guide.</i>
403
+ * </p>
404
+ *
405
+ * @throws {@link UnsupportedAPIEndpointException} (client fault)
406
+ * <p>This action isn't available in the current Amazon Web Services Region.</p>
407
+ *
408
+ *
57
409
  * @example To attach a policy to an OU
58
410
  * ```javascript
59
411
  * // The following example shows how to attach a service control policy (SCP) to an OU: