aws-sdk-organizations 1.26.0 → 1.27.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.
@@ -8,6 +8,20 @@
8
8
  module Aws::Organizations
9
9
  module Types
10
10
 
11
+ # Your account isn't a member of an organization. To make this request,
12
+ # you must use the credentials of an account that belongs to an
13
+ # organization.
14
+ #
15
+ # @!attribute [rw] message
16
+ # @return [String]
17
+ #
18
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AWSOrganizationsNotInUseException AWS API Documentation
19
+ #
20
+ class AWSOrganizationsNotInUseException < Struct.new(
21
+ :message)
22
+ include Aws::Structure
23
+ end
24
+
11
25
  # @note When making an API call, you may pass AcceptHandshakeRequest
12
26
  # data as a hash:
13
27
  #
@@ -44,6 +58,44 @@ module Aws::Organizations
44
58
  include Aws::Structure
45
59
  end
46
60
 
61
+ # You don't have permissions to perform the requested operation. The
62
+ # user or role that is making the request must have at least one IAM
63
+ # permissions policy attached that grants the required permissions. For
64
+ # more information, see [Access Management][1] in the *IAM User Guide*.
65
+ #
66
+ #
67
+ #
68
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html
69
+ #
70
+ # @!attribute [rw] message
71
+ # @return [String]
72
+ #
73
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AccessDeniedException AWS API Documentation
74
+ #
75
+ class AccessDeniedException < Struct.new(
76
+ :message)
77
+ include Aws::Structure
78
+ end
79
+
80
+ # The operation that you attempted requires you to have the
81
+ # `iam:CreateServiceLinkedRole` for `organizations.amazonaws.com`
82
+ # permission so that AWS Organizations can create the required
83
+ # service-linked role. You don't have that permission.
84
+ #
85
+ # @!attribute [rw] message
86
+ # @return [String]
87
+ #
88
+ # @!attribute [rw] reason
89
+ # @return [String]
90
+ #
91
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AccessDeniedForDependencyException AWS API Documentation
92
+ #
93
+ class AccessDeniedForDependencyException < Struct.new(
94
+ :message,
95
+ :reason)
96
+ include Aws::Structure
97
+ end
98
+
47
99
  # Contains information about an AWS account that is a member of an
48
100
  # organization.
49
101
  #
@@ -117,6 +169,52 @@ module Aws::Organizations
117
169
  include Aws::Structure
118
170
  end
119
171
 
172
+ # We can't find an AWS account with the `AccountId` that you specified,
173
+ # or the account whose credentials you used to make this request isn't
174
+ # a member of an organization.
175
+ #
176
+ # @!attribute [rw] message
177
+ # @return [String]
178
+ #
179
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AccountNotFoundException AWS API Documentation
180
+ #
181
+ class AccountNotFoundException < Struct.new(
182
+ :message)
183
+ include Aws::Structure
184
+ end
185
+
186
+ # You can't invite an existing account to your organization until you
187
+ # verify that you own the email address associated with the master
188
+ # account. For more information, see [Email Address Verification][1] in
189
+ # the *AWS Organizations User Guide.*
190
+ #
191
+ #
192
+ #
193
+ # [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_create.html#about-email-verification
194
+ #
195
+ # @!attribute [rw] message
196
+ # @return [String]
197
+ #
198
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AccountOwnerNotVerifiedException AWS API Documentation
199
+ #
200
+ class AccountOwnerNotVerifiedException < Struct.new(
201
+ :message)
202
+ include Aws::Structure
203
+ end
204
+
205
+ # This account is already a member of an organization. An account can
206
+ # belong to only one organization at a time.
207
+ #
208
+ # @!attribute [rw] message
209
+ # @return [String]
210
+ #
211
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AlreadyInOrganizationException AWS API Documentation
212
+ #
213
+ class AlreadyInOrganizationException < Struct.new(
214
+ :message)
215
+ include Aws::Structure
216
+ end
217
+
120
218
  # @note When making an API call, you may pass AttachPolicyRequest
121
219
  # data as a hash:
122
220
  #
@@ -240,6 +338,155 @@ module Aws::Organizations
240
338
  include Aws::Structure
241
339
  end
242
340
 
341
+ # We can't find an organizational unit (OU) or AWS account with the
342
+ # `ChildId` that you specified.
343
+ #
344
+ # @!attribute [rw] message
345
+ # @return [String]
346
+ #
347
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ChildNotFoundException AWS API Documentation
348
+ #
349
+ class ChildNotFoundException < Struct.new(
350
+ :message)
351
+ include Aws::Structure
352
+ end
353
+
354
+ # The target of the operation is currently being modified by a different
355
+ # request. Try again later.
356
+ #
357
+ # @!attribute [rw] message
358
+ # @return [String]
359
+ #
360
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ConcurrentModificationException AWS API Documentation
361
+ #
362
+ class ConcurrentModificationException < Struct.new(
363
+ :message)
364
+ include Aws::Structure
365
+ end
366
+
367
+ # Performing this operation violates a minimum or maximum value limit.
368
+ # For example, attempting to remove the last service control policy
369
+ # (SCP) from an OU or root, inviting or creating too many accounts to
370
+ # the organization, or attaching too many policies to an account, OU, or
371
+ # root. This exception includes a reason that contains additional
372
+ # information about the violated limit.
373
+ #
374
+ # Some of the reasons in the following list might not be applicable to
375
+ # this specific API or operation:
376
+ #
377
+ # * ACCOUNT\_NUMBER\_LIMIT\_EXCEEDED: You attempted to exceed the limit
378
+ # on the number of accounts in an organization. If you need more
379
+ # accounts, contact [AWS Support][1] to request an increase in your
380
+ # limit.
381
+ #
382
+ # Or the number of invitations that you tried to send would cause you
383
+ # to exceed the limit of accounts in your organization. Send fewer
384
+ # invitations or contact AWS Support to request an increase in the
385
+ # number of accounts.
386
+ #
387
+ # <note markdown="1"> Deleted and closed accounts still count toward your limit.
388
+ #
389
+ # </note>
390
+ #
391
+ # If you get receive this exception when running a command immediately
392
+ # after creating the organization, wait one hour and try again. If
393
+ # after an hour it continues to fail with this error, contact [AWS
394
+ # Support][1].
395
+ #
396
+ # * HANDSHAKE\_RATE\_LIMIT\_EXCEEDED: You attempted to exceed the number
397
+ # of handshakes that you can send in one day.
398
+ #
399
+ # * OU\_NUMBER\_LIMIT\_EXCEEDED: You attempted to exceed the number of
400
+ # OUs that you can have in an organization.
401
+ #
402
+ # * OU\_DEPTH\_LIMIT\_EXCEEDED: You attempted to create an OU tree that
403
+ # is too many levels deep.
404
+ #
405
+ # * ORGANIZATION\_NOT\_IN\_ALL\_FEATURES\_MODE: You attempted to perform
406
+ # an operation that requires the organization to be configured to
407
+ # support all features. An organization that supports only
408
+ # consolidated billing features can't perform this operation.
409
+ #
410
+ # * POLICY\_NUMBER\_LIMIT\_EXCEEDED. You attempted to exceed the number
411
+ # of policies that you can have in an organization.
412
+ #
413
+ # * MAX\_POLICY\_TYPE\_ATTACHMENT\_LIMIT\_EXCEEDED: You attempted to
414
+ # exceed the number of policies of a certain type that can be attached
415
+ # to an entity at one time.
416
+ #
417
+ # * MIN\_POLICY\_TYPE\_ATTACHMENT\_LIMIT\_EXCEEDED: You attempted to
418
+ # detach a policy from an entity that would cause the entity to have
419
+ # fewer than the minimum number of policies of a certain type
420
+ # required.
421
+ #
422
+ # * ACCOUNT\_CANNOT\_LEAVE\_WITHOUT\_EULA: You attempted to remove an
423
+ # account from the organization that doesn't yet have enough
424
+ # information to exist as a standalone account. This account requires
425
+ # you to first agree to the AWS Customer Agreement. Follow the steps
426
+ # at [To leave an organization when all required account information
427
+ # has not yet been provided][2] in the *AWS Organizations User Guide*.
428
+ #
429
+ # * ACCOUNT\_CANNOT\_LEAVE\_WITHOUT\_PHONE\_VERIFICATION: You attempted
430
+ # to remove an account from the organization that doesn't yet have
431
+ # enough information to exist as a standalone account. This account
432
+ # requires you to first complete phone verification. Follow the steps
433
+ # at [To leave an organization when all required account information
434
+ # has not yet been provided][2] in the *AWS Organizations User Guide*.
435
+ #
436
+ # * MASTER\_ACCOUNT\_PAYMENT\_INSTRUMENT\_REQUIRED: To create an
437
+ # organization with this master account, you first must associate a
438
+ # valid payment instrument, such as a credit card, with the account.
439
+ # Follow the steps at [To leave an organization when all required
440
+ # account information has not yet been provided][2] in the *AWS
441
+ # Organizations User Guide*.
442
+ #
443
+ # * MEMBER\_ACCOUNT\_PAYMENT\_INSTRUMENT\_REQUIRED: To complete this
444
+ # operation with this member account, you first must associate a valid
445
+ # payment instrument, such as a credit card, with the account. Follow
446
+ # the steps at [To leave an organization when all required account
447
+ # information has not yet been provided][2] in the *AWS Organizations
448
+ # User Guide*.
449
+ #
450
+ # * ACCOUNT\_CREATION\_RATE\_LIMIT\_EXCEEDED: You attempted to exceed
451
+ # the number of accounts that you can create in one day.
452
+ #
453
+ # * MASTER\_ACCOUNT\_ADDRESS\_DOES\_NOT\_MATCH\_MARKETPLACE: To create
454
+ # an account in this organization, you first must migrate the
455
+ # organization's master account to the marketplace that corresponds
456
+ # to the master account's address. For example, accounts with India
457
+ # addresses must be associated with the AISPL marketplace. All
458
+ # accounts in an organization must be associated with the same
459
+ # marketplace.
460
+ #
461
+ # * MASTER\_ACCOUNT\_MISSING\_CONTACT\_INFO: To complete this operation,
462
+ # you must first provide contact a valid address and phone number for
463
+ # the master account. Then try the operation again.
464
+ #
465
+ # * MASTER\_ACCOUNT\_NOT\_GOVCLOUD\_ENABLED: To complete this operation,
466
+ # the master account must have an associated account in the AWS
467
+ # GovCloud (US-West) Region. For more information, see [AWS
468
+ # Organizations][3] in the *AWS GovCloud User Guide.*
469
+ #
470
+ #
471
+ #
472
+ # [1]: https://console.aws.amazon.com/support/home#/
473
+ # [2]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info
474
+ # [3]: http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html
475
+ #
476
+ # @!attribute [rw] message
477
+ # @return [String]
478
+ #
479
+ # @!attribute [rw] reason
480
+ # @return [String]
481
+ #
482
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ConstraintViolationException AWS API Documentation
483
+ #
484
+ class ConstraintViolationException < Struct.new(
485
+ :message,
486
+ :reason)
487
+ include Aws::Structure
488
+ end
489
+
243
490
  # @note When making an API call, you may pass CreateAccountRequest
244
491
  # data as a hash:
245
492
  #
@@ -428,6 +675,19 @@ module Aws::Organizations
428
675
  include Aws::Structure
429
676
  end
430
677
 
678
+ # We can't find an create account request with the
679
+ # `CreateAccountRequestId` that you specified.
680
+ #
681
+ # @!attribute [rw] message
682
+ # @return [String]
683
+ #
684
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateAccountStatusNotFoundException AWS API Documentation
685
+ #
686
+ class CreateAccountStatusNotFoundException < Struct.new(
687
+ :message)
688
+ include Aws::Structure
689
+ end
690
+
431
691
  # @note When making an API call, you may pass CreateGovCloudAccountRequest
432
692
  # data as a hash:
433
693
  #
@@ -997,6 +1257,19 @@ module Aws::Organizations
997
1257
  include Aws::Structure
998
1258
  end
999
1259
 
1260
+ # We can't find the destination container (a root or OU) with the
1261
+ # `ParentId` that you specified.
1262
+ #
1263
+ # @!attribute [rw] message
1264
+ # @return [String]
1265
+ #
1266
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DestinationParentNotFoundException AWS API Documentation
1267
+ #
1268
+ class DestinationParentNotFoundException < Struct.new(
1269
+ :message)
1270
+ include Aws::Structure
1271
+ end
1272
+
1000
1273
  # @note When making an API call, you may pass DetachPolicyRequest
1001
1274
  # data as a hash:
1002
1275
  #
@@ -1114,6 +1387,71 @@ module Aws::Organizations
1114
1387
  include Aws::Structure
1115
1388
  end
1116
1389
 
1390
+ # That account is already present in the specified destination.
1391
+ #
1392
+ # @!attribute [rw] message
1393
+ # @return [String]
1394
+ #
1395
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DuplicateAccountException AWS API Documentation
1396
+ #
1397
+ class DuplicateAccountException < Struct.new(
1398
+ :message)
1399
+ include Aws::Structure
1400
+ end
1401
+
1402
+ # A handshake with the same action and target already exists. For
1403
+ # example, if you invited an account to join your organization, the
1404
+ # invited account might already have a pending invitation from this
1405
+ # organization. If you intend to resend an invitation to an account,
1406
+ # ensure that existing handshakes that might be considered duplicates
1407
+ # are canceled or declined.
1408
+ #
1409
+ # @!attribute [rw] message
1410
+ # @return [String]
1411
+ #
1412
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DuplicateHandshakeException AWS API Documentation
1413
+ #
1414
+ class DuplicateHandshakeException < Struct.new(
1415
+ :message)
1416
+ include Aws::Structure
1417
+ end
1418
+
1419
+ # An OU with the same name already exists.
1420
+ #
1421
+ # @!attribute [rw] message
1422
+ # @return [String]
1423
+ #
1424
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DuplicateOrganizationalUnitException AWS API Documentation
1425
+ #
1426
+ class DuplicateOrganizationalUnitException < Struct.new(
1427
+ :message)
1428
+ include Aws::Structure
1429
+ end
1430
+
1431
+ # The selected policy is already attached to the specified target.
1432
+ #
1433
+ # @!attribute [rw] message
1434
+ # @return [String]
1435
+ #
1436
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DuplicatePolicyAttachmentException AWS API Documentation
1437
+ #
1438
+ class DuplicatePolicyAttachmentException < Struct.new(
1439
+ :message)
1440
+ include Aws::Structure
1441
+ end
1442
+
1443
+ # A policy with the same name already exists.
1444
+ #
1445
+ # @!attribute [rw] message
1446
+ # @return [String]
1447
+ #
1448
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DuplicatePolicyException AWS API Documentation
1449
+ #
1450
+ class DuplicatePolicyException < Struct.new(
1451
+ :message)
1452
+ include Aws::Structure
1453
+ end
1454
+
1117
1455
  # @note When making an API call, you may pass EnableAWSServiceAccessRequest
1118
1456
  # data as a hash:
1119
1457
  #
@@ -1217,6 +1555,25 @@ module Aws::Organizations
1217
1555
  include Aws::Structure
1218
1556
  end
1219
1557
 
1558
+ # AWS Organizations couldn't perform the operation because your
1559
+ # organization hasn't finished initializing. This can take up to an
1560
+ # hour. Try again later. If after one hour you continue to receive this
1561
+ # error, contact [AWS Support][1].
1562
+ #
1563
+ #
1564
+ #
1565
+ # [1]: https://console.aws.amazon.com/support/home#/
1566
+ #
1567
+ # @!attribute [rw] message
1568
+ # @return [String]
1569
+ #
1570
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/FinalizingOrganizationException AWS API Documentation
1571
+ #
1572
+ class FinalizingOrganizationException < Struct.new(
1573
+ :message)
1574
+ include Aws::Structure
1575
+ end
1576
+
1220
1577
  # Contains information that must be exchanged to securely establish a
1221
1578
  # relationship between two accounts (an *originator* and a *recipient*).
1222
1579
  # For example, when a master account (the originator) invites another
@@ -1336,6 +1693,81 @@ module Aws::Organizations
1336
1693
  include Aws::Structure
1337
1694
  end
1338
1695
 
1696
+ # The specified handshake is already in the requested state. For
1697
+ # example, you can't accept a handshake that was already accepted.
1698
+ #
1699
+ # @!attribute [rw] message
1700
+ # @return [String]
1701
+ #
1702
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/HandshakeAlreadyInStateException AWS API Documentation
1703
+ #
1704
+ class HandshakeAlreadyInStateException < Struct.new(
1705
+ :message)
1706
+ include Aws::Structure
1707
+ end
1708
+
1709
+ # The requested operation would violate the constraint identified in the
1710
+ # reason code.
1711
+ #
1712
+ # <note markdown="1"> Some of the reasons in the following list might not be applicable to
1713
+ # this specific API or operation:
1714
+ #
1715
+ # </note>
1716
+ #
1717
+ # * ACCOUNT\_NUMBER\_LIMIT\_EXCEEDED: You attempted to exceed the limit
1718
+ # on the number of accounts in an organization. Note that deleted and
1719
+ # closed accounts still count toward your limit.
1720
+ #
1721
+ # If you get this exception immediately after creating the
1722
+ # organization, wait one hour and try again. If after an hour it
1723
+ # continues to fail with this error, contact [AWS Support][1].
1724
+ #
1725
+ # * HANDSHAKE\_RATE\_LIMIT\_EXCEEDED: You attempted to exceed the number
1726
+ # of handshakes that you can send in one day.
1727
+ #
1728
+ # * ALREADY\_IN\_AN\_ORGANIZATION: The handshake request is invalid
1729
+ # because the invited account is already a member of an organization.
1730
+ #
1731
+ # * ORGANIZATION\_ALREADY\_HAS\_ALL\_FEATURES: The handshake request is
1732
+ # invalid because the organization has already enabled all features.
1733
+ #
1734
+ # * INVITE\_DISABLED\_DURING\_ENABLE\_ALL\_FEATURES: You can't issue
1735
+ # new invitations to join an organization while it's in the process
1736
+ # of enabling all features. You can resume inviting accounts after you
1737
+ # finalize the process when all accounts have agreed to the change.
1738
+ #
1739
+ # * PAYMENT\_INSTRUMENT\_REQUIRED: You can't complete the operation
1740
+ # with an account that doesn't have a payment instrument, such as a
1741
+ # credit card, associated with it.
1742
+ #
1743
+ # * ORGANIZATION\_FROM\_DIFFERENT\_SELLER\_OF\_RECORD: The request
1744
+ # failed because the account is from a different marketplace than the
1745
+ # accounts in the organization. For example, accounts with India
1746
+ # addresses must be associated with the AISPL marketplace. All
1747
+ # accounts in an organization must be from the same marketplace.
1748
+ #
1749
+ # * ORGANIZATION\_MEMBERSHIP\_CHANGE\_RATE\_LIMIT\_EXCEEDED: You
1750
+ # attempted to change the membership of an account too quickly after
1751
+ # its previous change.
1752
+ #
1753
+ #
1754
+ #
1755
+ # [1]: https://console.aws.amazon.com/support/home#/
1756
+ #
1757
+ # @!attribute [rw] message
1758
+ # @return [String]
1759
+ #
1760
+ # @!attribute [rw] reason
1761
+ # @return [String]
1762
+ #
1763
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/HandshakeConstraintViolationException AWS API Documentation
1764
+ #
1765
+ class HandshakeConstraintViolationException < Struct.new(
1766
+ :message,
1767
+ :reason)
1768
+ include Aws::Structure
1769
+ end
1770
+
1339
1771
  # Specifies the criteria that are used to select the handshakes for the
1340
1772
  # operation.
1341
1773
  #
@@ -1377,6 +1809,18 @@ module Aws::Organizations
1377
1809
  include Aws::Structure
1378
1810
  end
1379
1811
 
1812
+ # We can't find a handshake with the `HandshakeId` that you specified.
1813
+ #
1814
+ # @!attribute [rw] message
1815
+ # @return [String]
1816
+ #
1817
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/HandshakeNotFoundException AWS API Documentation
1818
+ #
1819
+ class HandshakeNotFoundException < Struct.new(
1820
+ :message)
1821
+ include Aws::Structure
1822
+ end
1823
+
1380
1824
  # Identifies a participant in a handshake.
1381
1825
  #
1382
1826
  # @note When making an API call, you may pass HandshakeParty
@@ -1453,6 +1897,96 @@ module Aws::Organizations
1453
1897
  include Aws::Structure
1454
1898
  end
1455
1899
 
1900
+ # You can't perform the operation on the handshake in its current
1901
+ # state. For example, you can't cancel a handshake that was already
1902
+ # accepted or accept a handshake that was already declined.
1903
+ #
1904
+ # @!attribute [rw] message
1905
+ # @return [String]
1906
+ #
1907
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/InvalidHandshakeTransitionException AWS API Documentation
1908
+ #
1909
+ class InvalidHandshakeTransitionException < Struct.new(
1910
+ :message)
1911
+ include Aws::Structure
1912
+ end
1913
+
1914
+ # The requested operation failed because you provided invalid values for
1915
+ # one or more of the request parameters. This exception includes a
1916
+ # reason that contains additional information about the violated limit:
1917
+ #
1918
+ # <note markdown="1"> Some of the reasons in the following list might not be applicable to
1919
+ # this specific API or operation:
1920
+ #
1921
+ # </note>
1922
+ #
1923
+ # * IMMUTABLE\_POLICY: You specified a policy that is managed by AWS and
1924
+ # can't be modified.
1925
+ #
1926
+ # * INPUT\_REQUIRED: You must include a value for all required
1927
+ # parameters.
1928
+ #
1929
+ # * INVALID\_ENUM: You specified a value that isn't valid for that
1930
+ # parameter.
1931
+ #
1932
+ # * INVALID\_FULL\_NAME\_TARGET: You specified a full name that contains
1933
+ # invalid characters.
1934
+ #
1935
+ # * INVALID\_LIST\_MEMBER: You provided a list to a parameter that
1936
+ # contains at least one invalid value.
1937
+ #
1938
+ # * INVALID\_PARTY\_TYPE\_TARGET: You specified the wrong type of entity
1939
+ # (account, organization, or email) as a party.
1940
+ #
1941
+ # * INVALID\_PAGINATION\_TOKEN: Get the value for the `NextToken`
1942
+ # parameter from the response to a previous call of the operation.
1943
+ #
1944
+ # * INVALID\_PATTERN: You provided a value that doesn't match the
1945
+ # required pattern.
1946
+ #
1947
+ # * INVALID\_PATTERN\_TARGET\_ID: You specified a policy target ID that
1948
+ # doesn't match the required pattern.
1949
+ #
1950
+ # * INVALID\_ROLE\_NAME: You provided a role name that isn't valid. A
1951
+ # role name can't begin with the reserved prefix `AWSServiceRoleFor`.
1952
+ #
1953
+ # * INVALID\_SYNTAX\_ORGANIZATION\_ARN: You specified an invalid Amazon
1954
+ # Resource Name (ARN) for the organization.
1955
+ #
1956
+ # * INVALID\_SYNTAX\_POLICY\_ID: You specified an invalid policy ID.
1957
+ #
1958
+ # * MAX\_FILTER\_LIMIT\_EXCEEDED: You can specify only one filter
1959
+ # parameter for the operation.
1960
+ #
1961
+ # * MAX\_LENGTH\_EXCEEDED: You provided a string parameter that is
1962
+ # longer than allowed.
1963
+ #
1964
+ # * MAX\_VALUE\_EXCEEDED: You provided a numeric parameter that has a
1965
+ # larger value than allowed.
1966
+ #
1967
+ # * MIN\_LENGTH\_EXCEEDED: You provided a string parameter that is
1968
+ # shorter than allowed.
1969
+ #
1970
+ # * MIN\_VALUE\_EXCEEDED: You provided a numeric parameter that has a
1971
+ # smaller value than allowed.
1972
+ #
1973
+ # * MOVING\_ACCOUNT\_BETWEEN\_DIFFERENT\_ROOTS: You can move an account
1974
+ # only between entities in the same root.
1975
+ #
1976
+ # @!attribute [rw] message
1977
+ # @return [String]
1978
+ #
1979
+ # @!attribute [rw] reason
1980
+ # @return [String]
1981
+ #
1982
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/InvalidInputException AWS API Documentation
1983
+ #
1984
+ class InvalidInputException < Struct.new(
1985
+ :message,
1986
+ :reason)
1987
+ include Aws::Structure
1988
+ end
1989
+
1456
1990
  # @note When making an API call, you may pass InviteAccountToOrganizationRequest
1457
1991
  # data as a hash:
1458
1992
  #
@@ -2416,6 +2950,39 @@ module Aws::Organizations
2416
2950
  include Aws::Structure
2417
2951
  end
2418
2952
 
2953
+ # The provided policy document doesn't meet the requirements of the
2954
+ # specified policy type. For example, the syntax might be incorrect. For
2955
+ # details about service control policy syntax, see [Service Control
2956
+ # Policy Syntax][1] in the *AWS Organizations User Guide*.
2957
+ #
2958
+ #
2959
+ #
2960
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html
2961
+ #
2962
+ # @!attribute [rw] message
2963
+ # @return [String]
2964
+ #
2965
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/MalformedPolicyDocumentException AWS API Documentation
2966
+ #
2967
+ class MalformedPolicyDocumentException < Struct.new(
2968
+ :message)
2969
+ include Aws::Structure
2970
+ end
2971
+
2972
+ # You can't remove a master account from an organization. If you want
2973
+ # the master account to become a member account in another organization,
2974
+ # you must first delete the current organization of the master account.
2975
+ #
2976
+ # @!attribute [rw] message
2977
+ # @return [String]
2978
+ #
2979
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/MasterCannotLeaveOrganizationException AWS API Documentation
2980
+ #
2981
+ class MasterCannotLeaveOrganizationException < Struct.new(
2982
+ :message)
2983
+ include Aws::Structure
2984
+ end
2985
+
2419
2986
  # @note When making an API call, you may pass MoveAccountRequest
2420
2987
  # data as a hash:
2421
2988
  #
@@ -2582,6 +3149,20 @@ module Aws::Organizations
2582
3149
  include Aws::Structure
2583
3150
  end
2584
3151
 
3152
+ # The organization isn't empty. To delete an organization, you must
3153
+ # first remove all accounts except the master account, delete all OUs,
3154
+ # and delete all policies.
3155
+ #
3156
+ # @!attribute [rw] message
3157
+ # @return [String]
3158
+ #
3159
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/OrganizationNotEmptyException AWS API Documentation
3160
+ #
3161
+ class OrganizationNotEmptyException < Struct.new(
3162
+ :message)
3163
+ include Aws::Structure
3164
+ end
3165
+
2585
3166
  # Contains details about an organizational unit (OU). An OU is a
2586
3167
  # container of AWS accounts within a root of an organization. Policies
2587
3168
  # that are attached to an OU apply to all accounts contained in that OU
@@ -2632,6 +3213,32 @@ module Aws::Organizations
2632
3213
  include Aws::Structure
2633
3214
  end
2634
3215
 
3216
+ # The specified OU is not empty. Move all accounts to another root or to
3217
+ # other OUs, remove all child OUs, and try the operation again.
3218
+ #
3219
+ # @!attribute [rw] message
3220
+ # @return [String]
3221
+ #
3222
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/OrganizationalUnitNotEmptyException AWS API Documentation
3223
+ #
3224
+ class OrganizationalUnitNotEmptyException < Struct.new(
3225
+ :message)
3226
+ include Aws::Structure
3227
+ end
3228
+
3229
+ # We can't find an OU with the `OrganizationalUnitId` that you
3230
+ # specified.
3231
+ #
3232
+ # @!attribute [rw] message
3233
+ # @return [String]
3234
+ #
3235
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/OrganizationalUnitNotFoundException AWS API Documentation
3236
+ #
3237
+ class OrganizationalUnitNotFoundException < Struct.new(
3238
+ :message)
3239
+ include Aws::Structure
3240
+ end
3241
+
2635
3242
  # Contains information about either a root or an organizational unit
2636
3243
  # (OU) that can contain OUs or accounts in an organization.
2637
3244
  #
@@ -2666,6 +3273,18 @@ module Aws::Organizations
2666
3273
  include Aws::Structure
2667
3274
  end
2668
3275
 
3276
+ # We can't find a root or OU with the `ParentId` that you specified.
3277
+ #
3278
+ # @!attribute [rw] message
3279
+ # @return [String]
3280
+ #
3281
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ParentNotFoundException AWS API Documentation
3282
+ #
3283
+ class ParentNotFoundException < Struct.new(
3284
+ :message)
3285
+ include Aws::Structure
3286
+ end
3287
+
2669
3288
  # Contains rules to be applied to the affected accounts. Policies can be
2670
3289
  # attached directly to accounts, or to roots and OUs to affect all
2671
3290
  # accounts in those hierarchies.
@@ -2686,6 +3305,44 @@ module Aws::Organizations
2686
3305
  include Aws::Structure
2687
3306
  end
2688
3307
 
3308
+ # The policy is attached to one or more entities. You must detach it
3309
+ # from all roots, OUs, and accounts before performing this operation.
3310
+ #
3311
+ # @!attribute [rw] message
3312
+ # @return [String]
3313
+ #
3314
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/PolicyInUseException AWS API Documentation
3315
+ #
3316
+ class PolicyInUseException < Struct.new(
3317
+ :message)
3318
+ include Aws::Structure
3319
+ end
3320
+
3321
+ # The policy isn't attached to the specified target in the specified
3322
+ # root.
3323
+ #
3324
+ # @!attribute [rw] message
3325
+ # @return [String]
3326
+ #
3327
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/PolicyNotAttachedException AWS API Documentation
3328
+ #
3329
+ class PolicyNotAttachedException < Struct.new(
3330
+ :message)
3331
+ include Aws::Structure
3332
+ end
3333
+
3334
+ # We can't find a policy with the `PolicyId` that you specified.
3335
+ #
3336
+ # @!attribute [rw] message
3337
+ # @return [String]
3338
+ #
3339
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/PolicyNotFoundException AWS API Documentation
3340
+ #
3341
+ class PolicyNotFoundException < Struct.new(
3342
+ :message)
3343
+ include Aws::Structure
3344
+ end
3345
+
2689
3346
  # Contains information about a policy, but does not include the content.
2690
3347
  # To see the content of a policy, see DescribePolicy.
2691
3348
  #
@@ -2810,6 +3467,58 @@ module Aws::Organizations
2810
3467
  include Aws::Structure
2811
3468
  end
2812
3469
 
3470
+ # The specified policy type is already enabled in the specified root.
3471
+ #
3472
+ # @!attribute [rw] message
3473
+ # @return [String]
3474
+ #
3475
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/PolicyTypeAlreadyEnabledException AWS API Documentation
3476
+ #
3477
+ class PolicyTypeAlreadyEnabledException < Struct.new(
3478
+ :message)
3479
+ include Aws::Structure
3480
+ end
3481
+
3482
+ # You can't use the specified policy type with the feature set
3483
+ # currently enabled for this organization. For example, you can enable
3484
+ # SCPs only after you enable all features in the organization. For more
3485
+ # information, see [Enabling and Disabling a Policy Type on a Root][1]
3486
+ # in the *AWS Organizations User Guide*.
3487
+ #
3488
+ #
3489
+ #
3490
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html#enable_policies_on_root
3491
+ #
3492
+ # @!attribute [rw] message
3493
+ # @return [String]
3494
+ #
3495
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/PolicyTypeNotAvailableForOrganizationException AWS API Documentation
3496
+ #
3497
+ class PolicyTypeNotAvailableForOrganizationException < Struct.new(
3498
+ :message)
3499
+ include Aws::Structure
3500
+ end
3501
+
3502
+ # The specified policy type isn't currently enabled in this root. You
3503
+ # can't attach policies of the specified type to entities in a root
3504
+ # until you enable that type in the root. For more information, see
3505
+ # [Enabling All Features in Your Organization][1] in the *AWS
3506
+ # Organizations User Guide*.
3507
+ #
3508
+ #
3509
+ #
3510
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
3511
+ #
3512
+ # @!attribute [rw] message
3513
+ # @return [String]
3514
+ #
3515
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/PolicyTypeNotEnabledException AWS API Documentation
3516
+ #
3517
+ class PolicyTypeNotEnabledException < Struct.new(
3518
+ :message)
3519
+ include Aws::Structure
3520
+ end
3521
+
2813
3522
  # Contains information about a policy type and its status in the
2814
3523
  # associated root.
2815
3524
  #
@@ -2921,6 +3630,94 @@ module Aws::Organizations
2921
3630
  include Aws::Structure
2922
3631
  end
2923
3632
 
3633
+ # We can't find a root with the `RootId` that you specified.
3634
+ #
3635
+ # @!attribute [rw] message
3636
+ # @return [String]
3637
+ #
3638
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/RootNotFoundException AWS API Documentation
3639
+ #
3640
+ class RootNotFoundException < Struct.new(
3641
+ :message)
3642
+ include Aws::Structure
3643
+ end
3644
+
3645
+ # AWS Organizations can't complete your request because of an internal
3646
+ # service error. Try again later.
3647
+ #
3648
+ # @!attribute [rw] message
3649
+ # @return [String]
3650
+ #
3651
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ServiceException AWS API Documentation
3652
+ #
3653
+ class ServiceException < Struct.new(
3654
+ :message)
3655
+ include Aws::Structure
3656
+ end
3657
+
3658
+ # We can't find a source root or OU with the `ParentId` that you
3659
+ # specified.
3660
+ #
3661
+ # @!attribute [rw] message
3662
+ # @return [String]
3663
+ #
3664
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/SourceParentNotFoundException AWS API Documentation
3665
+ #
3666
+ class SourceParentNotFoundException < Struct.new(
3667
+ :message)
3668
+ include Aws::Structure
3669
+ end
3670
+
3671
+ # We can't find a root, OU, or account with the `TargetId` that you
3672
+ # specified.
3673
+ #
3674
+ # @!attribute [rw] message
3675
+ # @return [String]
3676
+ #
3677
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/TargetNotFoundException AWS API Documentation
3678
+ #
3679
+ class TargetNotFoundException < Struct.new(
3680
+ :message)
3681
+ include Aws::Structure
3682
+ end
3683
+
3684
+ # You've sent too many requests in too short a period of time. The
3685
+ # limit helps protect against denial-of-service attacks. Try again
3686
+ # later.
3687
+ #
3688
+ # For information on limits that affect Organizations, see [Limits of
3689
+ # AWS Organizations][1] in the *AWS Organizations User Guide*.
3690
+ #
3691
+ #
3692
+ #
3693
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html
3694
+ #
3695
+ # @!attribute [rw] type
3696
+ # @return [String]
3697
+ #
3698
+ # @!attribute [rw] message
3699
+ # @return [String]
3700
+ #
3701
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/TooManyRequestsException AWS API Documentation
3702
+ #
3703
+ class TooManyRequestsException < Struct.new(
3704
+ :type,
3705
+ :message)
3706
+ include Aws::Structure
3707
+ end
3708
+
3709
+ # This action isn't available in the current Region.
3710
+ #
3711
+ # @!attribute [rw] message
3712
+ # @return [String]
3713
+ #
3714
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UnsupportedAPIEndpointException AWS API Documentation
3715
+ #
3716
+ class UnsupportedAPIEndpointException < Struct.new(
3717
+ :message)
3718
+ include Aws::Structure
3719
+ end
3720
+
2924
3721
  # @note When making an API call, you may pass UpdateOrganizationalUnitRequest
2925
3722
  # data as a hash:
2926
3723
  #