@aws-sdk/client-organizations 3.288.0 → 3.290.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 +265 -0
  2. package/dist-types/commands/AttachPolicyCommand.d.ts +378 -0
  3. package/dist-types/commands/CancelHandshakeCommand.d.ts +201 -0
  4. package/dist-types/commands/CloseAccountCommand.d.ts +343 -0
  5. package/dist-types/commands/CreateAccountCommand.d.ts +358 -0
  6. package/dist-types/commands/CreateGovCloudAccountCommand.d.ts +336 -0
  7. package/dist-types/commands/CreateOrganizationCommand.d.ts +389 -0
  8. package/dist-types/commands/CreateOrganizationalUnitCommand.d.ts +357 -0
  9. package/dist-types/commands/CreatePolicyCommand.d.ts +377 -0
  10. package/dist-types/commands/DeclineHandshakeCommand.d.ts +196 -0
  11. package/dist-types/commands/DeleteOrganizationCommand.d.ts +135 -0
  12. package/dist-types/commands/DeleteOrganizationalUnitCommand.d.ts +152 -0
  13. package/dist-types/commands/DeletePolicyCommand.d.ts +154 -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 +153 -0
  17. package/dist-types/commands/DescribeCreateAccountStatusCommand.d.ts +154 -0
  18. package/dist-types/commands/DescribeEffectivePolicyCommand.d.ts +337 -0
  19. package/dist-types/commands/DescribeHandshakeCommand.d.ts +183 -0
  20. package/dist-types/commands/DescribeOrganizationCommand.d.ts +53 -0
  21. package/dist-types/commands/DescribeOrganizationalUnitCommand.d.ts +151 -0
  22. package/dist-types/commands/DescribePolicyCommand.d.ts +159 -0
  23. package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +226 -0
  24. package/dist-types/commands/DetachPolicyCommand.d.ts +357 -0
  25. package/dist-types/commands/DisableAWSServiceAccessCommand.d.ts +331 -0
  26. package/dist-types/commands/DisablePolicyTypeCommand.d.ts +367 -0
  27. package/dist-types/commands/EnableAWSServiceAccessCommand.d.ts +331 -0
  28. package/dist-types/commands/EnableAllFeaturesCommand.d.ts +223 -0
  29. package/dist-types/commands/EnablePolicyTypeCommand.d.ts +375 -0
  30. package/dist-types/commands/InviteAccountToOrganizationCommand.d.ts +467 -0
  31. package/dist-types/commands/LeaveOrganizationCommand.d.ts +347 -0
  32. package/dist-types/commands/ListAWSServiceAccessForOrganizationCommand.d.ts +327 -0
  33. package/dist-types/commands/ListAccountsCommand.d.ts +178 -0
  34. package/dist-types/commands/ListAccountsForParentCommand.d.ts +165 -0
  35. package/dist-types/commands/ListChildrenCommand.d.ts +156 -0
  36. package/dist-types/commands/ListCreateAccountStatusCommand.d.ts +182 -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 +184 -0
  40. package/dist-types/commands/ListHandshakesForOrganizationCommand.d.ts +230 -0
  41. package/dist-types/commands/ListOrganizationalUnitsForParentCommand.d.ts +157 -0
  42. package/dist-types/commands/ListParentsCommand.d.ts +152 -0
  43. package/dist-types/commands/ListPoliciesCommand.d.ts +171 -0
  44. package/dist-types/commands/ListPoliciesForTargetCommand.d.ts +160 -0
  45. package/dist-types/commands/ListRootsCommand.d.ts +153 -0
  46. package/dist-types/commands/ListTagsForResourceCommand.d.ts +131 -0
  47. package/dist-types/commands/ListTargetsForPolicyCommand.d.ts +168 -0
  48. package/dist-types/commands/MoveAccountCommand.d.ts +160 -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 +349 -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 +159 -0
  55. package/dist-types/commands/UpdatePolicyCommand.d.ts +403 -0
  56. package/package.json +29 -29
@@ -32,6 +32,409 @@ export interface UpdatePolicyCommandOutput extends UpdatePolicyResponse, __Metad
32
32
  * @see {@link UpdatePolicyCommandOutput} for command's `response` shape.
33
33
  * @see {@link OrganizationsClientResolvedConfig | config} for OrganizationsClient's `config` shape.
34
34
  *
35
+ * @throws {@link AccessDeniedException} (client fault)
36
+ * <p>You don't have permissions to perform the requested operation. The user or role that
37
+ * is making the request must have at least one IAM permissions policy attached that
38
+ * 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
39
+ * <i>IAM User Guide.</i>
40
+ * </p>
41
+ *
42
+ * @throws {@link AWSOrganizationsNotInUseException} (client fault)
43
+ * <p>Your account isn't a member of an organization. To make this request, you must use the
44
+ * credentials of an account that belongs to an organization.</p>
45
+ *
46
+ * @throws {@link ConcurrentModificationException} (client fault)
47
+ * <p>The target of the operation is currently being modified by a different request. Try
48
+ * again later.</p>
49
+ *
50
+ * @throws {@link ConstraintViolationException} (client fault)
51
+ * <p>Performing this operation violates a minimum or maximum value limit. For example,
52
+ * attempting to remove the last service control policy (SCP) from an OU or root, inviting
53
+ * or creating too many accounts to the organization, or attaching too many policies to an
54
+ * account, OU, or root. This exception includes a reason that contains additional
55
+ * information about the violated limit:</p>
56
+ * <note>
57
+ * <p>Some of the reasons in the following list might not be applicable to this specific
58
+ * API or operation.</p>
59
+ * </note>
60
+ * <ul>
61
+ * <li>
62
+ * <p>ACCOUNT_CANNOT_LEAVE_ORGANIZATION: You attempted to remove the management
63
+ * account from the organization. You can't remove the management account. Instead,
64
+ * after you remove all member accounts, delete the organization itself.</p>
65
+ * </li>
66
+ * <li>
67
+ * <p>ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove an
68
+ * account from the organization that doesn't yet have enough information to exist
69
+ * as a standalone account. This account requires you to first complete phone
70
+ * 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
71
+ * <i>Organizations User Guide.</i>
72
+ * </p>
73
+ * </li>
74
+ * <li>
75
+ * <p>ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
76
+ * accounts that you can create in one day.</p>
77
+ * </li>
78
+ * <li>
79
+ * <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>
80
+ * </li>
81
+ * <li>
82
+ * <p>ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number
83
+ * 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
84
+ * request an increase in your limit. </p>
85
+ * <p>Or the number of invitations that you tried to send would cause you to exceed
86
+ * the limit of accounts in your organization. Send fewer invitations or contact
87
+ * Amazon Web Services Support to request an increase in the number of accounts.</p>
88
+ * <note>
89
+ * <p>Deleted and closed accounts still count toward your limit.</p>
90
+ * </note>
91
+ * <important>
92
+ * <p>If you get this exception when running a command immediately after
93
+ * creating the organization, wait one hour and try again. After an hour, if
94
+ * the command continues to fail with this error, contact <a href="https://docs.aws.amazon.com/support/home#/">Amazon Web Services
95
+ * Support</a>.</p>
96
+ * </important>
97
+ * </li>
98
+ * <li>
99
+ * <p>CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You attempted to register
100
+ * the management account of the organization as a delegated administrator for an
101
+ * Amazon Web Services service integrated with Organizations. You can designate only a member account as a
102
+ * delegated administrator.</p>
103
+ * </li>
104
+ * <li>
105
+ * <p>CANNOT_CLOSE_MANAGEMENT_ACCOUNT: You attempted to close the management
106
+ * account. To close the management account for the organization, you must first
107
+ * either remove or close all member accounts in the organization. Follow standard
108
+ * account closure process using root credentials.​ </p>
109
+ * </li>
110
+ * <li>
111
+ * <p>CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: You attempted to remove an
112
+ * account that is registered as a delegated administrator for a service integrated
113
+ * with your organization. To complete this operation, you must first deregister
114
+ * this account as a delegated administrator. </p>
115
+ * </li>
116
+ * <li>
117
+ * <p>CLOSE_ACCOUNT_QUOTA_EXCEEDED: You have exceeded close account quota for the
118
+ * past 30 days. </p>
119
+ * </li>
120
+ * <li>
121
+ * <p>CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED: You attempted to exceed the number of
122
+ * accounts that you can close at a time. ​ </p>
123
+ * </li>
124
+ * <li>
125
+ * <p>CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION: To create an
126
+ * organization in the specified region, you must enable all features mode.</p>
127
+ * </li>
128
+ * <li>
129
+ * <p>DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: You attempted to register an
130
+ * Amazon Web Services account as a delegated administrator for an Amazon Web Services service that already has
131
+ * a delegated administrator. To complete this operation, you must first deregister
132
+ * any existing delegated administrators for this service.</p>
133
+ * </li>
134
+ * <li>
135
+ * <p>EMAIL_VERIFICATION_CODE_EXPIRED: The email verification code is only valid for
136
+ * a limited period of time. You must resubmit the request and generate a new
137
+ * verfication code.</p>
138
+ * </li>
139
+ * <li>
140
+ * <p>HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
141
+ * handshakes that you can send in one day.</p>
142
+ * </li>
143
+ * <li>
144
+ * <p>INVALID_PAYMENT_INSTRUMENT: You cannot remove an account because no supported
145
+ * payment method is associated with the account. Amazon Web Services does not support cards
146
+ * issued by financial institutions in Russia or Belarus. For more information, see
147
+ * <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-general.html">Managing your
148
+ * Amazon Web Services payments</a>.</p>
149
+ * </li>
150
+ * <li>
151
+ * <p>MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account in
152
+ * this organization, you first must migrate the organization's management account
153
+ * to the marketplace that corresponds to the management account's address. For
154
+ * example, accounts with India addresses must be associated with the AISPL
155
+ * marketplace. All accounts in an organization must be associated with the same
156
+ * marketplace.</p>
157
+ * </li>
158
+ * <li>
159
+ * <p>MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE: Applies only to the Amazon Web Services /> Regions
160
+ * in China. To create an organization, the master must have a valid business
161
+ * license. For more information, contact customer support.</p>
162
+ * </li>
163
+ * <li>
164
+ * <p>MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you must
165
+ * first provide a valid contact address and phone number for the management
166
+ * account. Then try the operation again.</p>
167
+ * </li>
168
+ * <li>
169
+ * <p>MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the
170
+ * management account must have an associated account in the Amazon Web Services GovCloud
171
+ * (US-West) Region. For more information, see <a href="https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html">Organizations</a>
172
+ * in the
173
+ * <i>Amazon Web Services GovCloud User Guide.</i>
174
+ * </p>
175
+ * </li>
176
+ * <li>
177
+ * <p>MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization with
178
+ * this management account, you first must associate a valid payment instrument,
179
+ * 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
180
+ * been provided</a> in the <i>Organizations User Guide.</i>
181
+ * </p>
182
+ * </li>
183
+ * <li>
184
+ * <p>MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted to
185
+ * register more delegated administrators than allowed for the service principal.
186
+ * </p>
187
+ * </li>
188
+ * <li>
189
+ * <p>MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the number
190
+ * of policies of a certain type that can be attached to an entity at one
191
+ * time.</p>
192
+ * </li>
193
+ * <li>
194
+ * <p>MAX_TAG_LIMIT_EXCEEDED: You have exceeded the number of tags allowed on this
195
+ * resource. </p>
196
+ * </li>
197
+ * <li>
198
+ * <p>MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation with
199
+ * this member account, you first must associate a valid payment instrument, such
200
+ * 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
201
+ * been provided</a> in the <i>Organizations User Guide.</i>
202
+ * </p>
203
+ * </li>
204
+ * <li>
205
+ * <p>MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a policy
206
+ * from an entity that would cause the entity to have fewer than the minimum number
207
+ * of policies of a certain type required.</p>
208
+ * </li>
209
+ * <li>
210
+ * <p>ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation
211
+ * that requires the organization to be configured to support all features. An
212
+ * organization that supports only consolidated billing features can't perform this
213
+ * operation.</p>
214
+ * </li>
215
+ * <li>
216
+ * <p>OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is too many
217
+ * levels deep.</p>
218
+ * </li>
219
+ * <li>
220
+ * <p>OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs that you
221
+ * can have in an organization.</p>
222
+ * </li>
223
+ * <li>
224
+ * <p>POLICY_CONTENT_LIMIT_EXCEEDED: You attempted to create a policy that is larger
225
+ * than the maximum size.</p>
226
+ * </li>
227
+ * <li>
228
+ * <p>POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of policies
229
+ * that you can have in an organization.</p>
230
+ * </li>
231
+ * <li>
232
+ * <p>SERVICE_ACCESS_NOT_ENABLED: You attempted to register a delegated
233
+ * administrator before you enabled service access. Call the
234
+ * <code>EnableAWSServiceAccess</code> API first.</p>
235
+ * </li>
236
+ * <li>
237
+ * <p>TAG_POLICY_VIOLATION: You attempted to create or update a resource with tags
238
+ * that are not compliant with the tag policy requirements for this account.</p>
239
+ * </li>
240
+ * <li>
241
+ * <p>WAIT_PERIOD_ACTIVE: After you create an Amazon Web Services account, there is a waiting
242
+ * period before you can remove it from the organization. If you get an error that
243
+ * indicates that a wait period is required, try again in a few days.</p>
244
+ * </li>
245
+ * </ul>
246
+ *
247
+ * @throws {@link DuplicatePolicyException} (client fault)
248
+ * <p>A policy with the same name already exists.</p>
249
+ *
250
+ * @throws {@link InvalidInputException} (client fault)
251
+ * <p>The requested operation failed because you provided invalid values for one or more of
252
+ * the request parameters. This exception includes a reason that contains additional
253
+ * information about the violated limit:</p>
254
+ * <note>
255
+ * <p>Some of the reasons in the following list might not be applicable to this specific
256
+ * API or operation.</p>
257
+ * </note>
258
+ * <ul>
259
+ * <li>
260
+ * <p>DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to the same
261
+ * entity.</p>
262
+ * </li>
263
+ * <li>
264
+ * <p>IMMUTABLE_POLICY: You specified a policy that is managed by Amazon Web Services and can't be
265
+ * modified.</p>
266
+ * </li>
267
+ * <li>
268
+ * <p>INPUT_REQUIRED: You must include a value for all required parameters.</p>
269
+ * </li>
270
+ * <li>
271
+ * <p>INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address for the
272
+ * invited account owner.</p>
273
+ * </li>
274
+ * <li>
275
+ * <p>INVALID_ENUM: You specified an invalid value.</p>
276
+ * </li>
277
+ * <li>
278
+ * <p>INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.</p>
279
+ * </li>
280
+ * <li>
281
+ * <p>INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
282
+ * characters.</p>
283
+ * </li>
284
+ * <li>
285
+ * <p>INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least
286
+ * one invalid value.</p>
287
+ * </li>
288
+ * <li>
289
+ * <p>INVALID_PAGINATION_TOKEN: Get the value for the <code>NextToken</code>
290
+ * parameter from the response to a previous call of the operation.</p>
291
+ * </li>
292
+ * <li>
293
+ * <p>INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
294
+ * organization, or email) as a party.</p>
295
+ * </li>
296
+ * <li>
297
+ * <p>INVALID_PATTERN: You provided a value that doesn't match the required
298
+ * pattern.</p>
299
+ * </li>
300
+ * <li>
301
+ * <p>INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match
302
+ * the required pattern.</p>
303
+ * </li>
304
+ * <li>
305
+ * <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
306
+ * can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
307
+ * </li>
308
+ * <li>
309
+ * <p>INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name
310
+ * (ARN) for the organization.</p>
311
+ * </li>
312
+ * <li>
313
+ * <p>INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. </p>
314
+ * </li>
315
+ * <li>
316
+ * <p>INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system tag.
317
+ * You can’t add, edit, or delete system tag keys because they're reserved for
318
+ * Amazon Web Services use. System tags don’t count against your tags per resource limit.</p>
319
+ * </li>
320
+ * <li>
321
+ * <p>MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the
322
+ * operation.</p>
323
+ * </li>
324
+ * <li>
325
+ * <p>MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than
326
+ * allowed.</p>
327
+ * </li>
328
+ * <li>
329
+ * <p>MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value
330
+ * than allowed.</p>
331
+ * </li>
332
+ * <li>
333
+ * <p>MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than
334
+ * allowed.</p>
335
+ * </li>
336
+ * <li>
337
+ * <p>MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value
338
+ * than allowed.</p>
339
+ * </li>
340
+ * <li>
341
+ * <p>MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between
342
+ * entities in the same root.</p>
343
+ * </li>
344
+ * <li>
345
+ * <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
346
+ * entity.</p>
347
+ * </li>
348
+ * <li>
349
+ * <p>UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't
350
+ * recognized.</p>
351
+ * </li>
352
+ * </ul>
353
+ *
354
+ * @throws {@link MalformedPolicyDocumentException} (client fault)
355
+ * <p>The provided policy document doesn't meet the requirements of the specified policy
356
+ * type. For example, the syntax might be incorrect. For details about service control
357
+ * policy syntax, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html">Service Control Policy
358
+ * Syntax</a> in the <i>Organizations User Guide.</i>
359
+ * </p>
360
+ *
361
+ * @throws {@link PolicyChangesInProgressException} (client fault)
362
+ * <p>Changes to the effective policy are in progress, and its contents can't be returned.
363
+ * Try the operation again later. </p>
364
+ *
365
+ * @throws {@link PolicyNotFoundException} (client fault)
366
+ * <p>We can't find a policy with the <code>PolicyId</code> that you specified.</p>
367
+ *
368
+ * @throws {@link ServiceException} (server fault)
369
+ * <p>Organizations can't complete your request because of an internal service error. Try again
370
+ * later.</p>
371
+ *
372
+ * @throws {@link TooManyRequestsException} (client fault)
373
+ * <p>You have sent too many requests in too short a period of time. The quota helps protect
374
+ * against denial-of-service attacks. Try again later.</p>
375
+ * <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
376
+ * <i>Organizations User Guide.</i>
377
+ * </p>
378
+ *
379
+ * @throws {@link UnsupportedAPIEndpointException} (client fault)
380
+ * <p>This action isn't available in the current Amazon Web Services Region.</p>
381
+ *
382
+ *
383
+ * @example To update the details of a policy
384
+ * ```javascript
385
+ * // The following example shows how to rename a policy and give it a new description and new content. The output confirms the new name and description text:/n/n
386
+ * const input = {
387
+ * "Description": "This description replaces the original.",
388
+ * "Name": "Renamed-Policy",
389
+ * "PolicyId": "p-examplepolicyid111"
390
+ * };
391
+ * const command = new UpdatePolicyCommand(input);
392
+ * const response = await client.send(command);
393
+ * /* response ==
394
+ * {
395
+ * "Policy": {
396
+ * "Content": "{ \"Version\": \"2012-10-17\", \"Statement\": { \"Effect\": \"Allow\", \"Action\": \"ec2:*\", \"Resource\": \"*\" } }",
397
+ * "PolicySummary": {
398
+ * "Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid111",
399
+ * "AwsManaged": false,
400
+ * "Description": "This description replaces the original.",
401
+ * "Id": "p-examplepolicyid111",
402
+ * "Name": "Renamed-Policy",
403
+ * "Type": "SERVICE_CONTROL_POLICY"
404
+ * }
405
+ * }
406
+ * }
407
+ * *\/
408
+ * // example id: to-update-the-details-of-a-policy
409
+ * ```
410
+ *
411
+ * @example To update the content of a policy
412
+ * ```javascript
413
+ * // The following example shows how to replace the JSON text of the SCP from the preceding example with a new JSON policy text string that allows S3 actions instead of EC2 actions:/n/n
414
+ * const input = {
415
+ * "Content": "{ \\\"Version\\\": \\\"2012-10-17\\\", \\\"Statement\\\": {\\\"Effect\\\": \\\"Allow\\\", \\\"Action\\\": \\\"s3:*\\\", \\\"Resource\\\": \\\"*\\\" } }",
416
+ * "PolicyId": "p-examplepolicyid111"
417
+ * };
418
+ * const command = new UpdatePolicyCommand(input);
419
+ * const response = await client.send(command);
420
+ * /* response ==
421
+ * {
422
+ * "Policy": {
423
+ * "Content": "{ \\\"Version\\\": \\\"2012-10-17\\\", \\\"Statement\\\": { \\\"Effect\\\": \\\"Allow\\\", \\\"Action\\\": \\\"s3:*\\\", \\\"Resource\\\": \\\"*\\\" } }",
424
+ * "PolicySummary": {
425
+ * "Arn": "arn:aws:organizations::111111111111:policy/o-exampleorgid/service_control_policy/p-examplepolicyid111",
426
+ * "AwsManaged": false,
427
+ * "Description": "This description replaces the original.",
428
+ * "Id": "p-examplepolicyid111",
429
+ * "Name": "Renamed-Policy",
430
+ * "Type": "SERVICE_CONTROL_POLICY"
431
+ * }
432
+ * }
433
+ * }
434
+ * *\/
435
+ * // example id: to-update-the-content-of-a-policy
436
+ * ```
437
+ *
35
438
  */
36
439
  export declare class UpdatePolicyCommand extends $Command<UpdatePolicyCommandInput, UpdatePolicyCommandOutput, OrganizationsClientResolvedConfig> {
37
440
  readonly input: UpdatePolicyCommandInput;
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.288.0",
4
+ "version": "3.290.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,37 +20,37 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.288.0",
24
- "@aws-sdk/config-resolver": "3.287.0",
25
- "@aws-sdk/credential-provider-node": "3.288.0",
26
- "@aws-sdk/fetch-http-handler": "3.282.0",
27
- "@aws-sdk/hash-node": "3.272.0",
28
- "@aws-sdk/invalid-dependency": "3.272.0",
29
- "@aws-sdk/middleware-content-length": "3.282.0",
30
- "@aws-sdk/middleware-endpoint": "3.282.0",
31
- "@aws-sdk/middleware-host-header": "3.282.0",
32
- "@aws-sdk/middleware-logger": "3.288.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
- "@aws-sdk/middleware-retry": "3.287.0",
35
- "@aws-sdk/middleware-serde": "3.272.0",
36
- "@aws-sdk/middleware-signing": "3.282.0",
37
- "@aws-sdk/middleware-stack": "3.272.0",
38
- "@aws-sdk/middleware-user-agent": "3.282.0",
39
- "@aws-sdk/node-config-provider": "3.287.0",
40
- "@aws-sdk/node-http-handler": "3.282.0",
41
- "@aws-sdk/protocol-http": "3.282.0",
42
- "@aws-sdk/smithy-client": "3.279.0",
43
- "@aws-sdk/types": "3.272.0",
44
- "@aws-sdk/url-parser": "3.272.0",
23
+ "@aws-sdk/client-sts": "3.290.0",
24
+ "@aws-sdk/config-resolver": "3.290.0",
25
+ "@aws-sdk/credential-provider-node": "3.290.0",
26
+ "@aws-sdk/fetch-http-handler": "3.290.0",
27
+ "@aws-sdk/hash-node": "3.290.0",
28
+ "@aws-sdk/invalid-dependency": "3.290.0",
29
+ "@aws-sdk/middleware-content-length": "3.290.0",
30
+ "@aws-sdk/middleware-endpoint": "3.290.0",
31
+ "@aws-sdk/middleware-host-header": "3.290.0",
32
+ "@aws-sdk/middleware-logger": "3.290.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.290.0",
34
+ "@aws-sdk/middleware-retry": "3.290.0",
35
+ "@aws-sdk/middleware-serde": "3.290.0",
36
+ "@aws-sdk/middleware-signing": "3.290.0",
37
+ "@aws-sdk/middleware-stack": "3.290.0",
38
+ "@aws-sdk/middleware-user-agent": "3.290.0",
39
+ "@aws-sdk/node-config-provider": "3.290.0",
40
+ "@aws-sdk/node-http-handler": "3.290.0",
41
+ "@aws-sdk/protocol-http": "3.290.0",
42
+ "@aws-sdk/smithy-client": "3.290.0",
43
+ "@aws-sdk/types": "3.290.0",
44
+ "@aws-sdk/url-parser": "3.290.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.279.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.287.0",
50
- "@aws-sdk/util-endpoints": "3.272.0",
51
- "@aws-sdk/util-retry": "3.272.0",
52
- "@aws-sdk/util-user-agent-browser": "3.282.0",
53
- "@aws-sdk/util-user-agent-node": "3.287.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.290.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.290.0",
50
+ "@aws-sdk/util-endpoints": "3.290.0",
51
+ "@aws-sdk/util-retry": "3.290.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.290.0",
53
+ "@aws-sdk/util-user-agent-node": "3.290.0",
54
54
  "@aws-sdk/util-utf8": "3.254.0",
55
55
  "tslib": "^2.3.1"
56
56
  },