aws-sdk-organizations 1.27.0 → 1.28.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -143,6 +143,8 @@ module Aws::Organizations
143
143
  ListPoliciesResponse = Shapes::StructureShape.new(name: 'ListPoliciesResponse')
144
144
  ListRootsRequest = Shapes::StructureShape.new(name: 'ListRootsRequest')
145
145
  ListRootsResponse = Shapes::StructureShape.new(name: 'ListRootsResponse')
146
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
147
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
146
148
  ListTargetsForPolicyRequest = Shapes::StructureShape.new(name: 'ListTargetsForPolicyRequest')
147
149
  ListTargetsForPolicyResponse = Shapes::StructureShape.new(name: 'ListTargetsForPolicyResponse')
148
150
  MalformedPolicyDocumentException = Shapes::StructureShape.new(name: 'MalformedPolicyDocumentException')
@@ -199,12 +201,20 @@ module Aws::Organizations
199
201
  ServiceException = Shapes::StructureShape.new(name: 'ServiceException')
200
202
  ServicePrincipal = Shapes::StringShape.new(name: 'ServicePrincipal')
201
203
  SourceParentNotFoundException = Shapes::StructureShape.new(name: 'SourceParentNotFoundException')
204
+ Tag = Shapes::StructureShape.new(name: 'Tag')
205
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
206
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
207
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
208
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
209
+ TaggableResourceId = Shapes::StringShape.new(name: 'TaggableResourceId')
210
+ Tags = Shapes::ListShape.new(name: 'Tags')
202
211
  TargetName = Shapes::StringShape.new(name: 'TargetName')
203
212
  TargetNotFoundException = Shapes::StructureShape.new(name: 'TargetNotFoundException')
204
213
  TargetType = Shapes::StringShape.new(name: 'TargetType')
205
214
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
206
215
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
207
216
  UnsupportedAPIEndpointException = Shapes::StructureShape.new(name: 'UnsupportedAPIEndpointException')
217
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
208
218
  UpdateOrganizationalUnitRequest = Shapes::StructureShape.new(name: 'UpdateOrganizationalUnitRequest')
209
219
  UpdateOrganizationalUnitResponse = Shapes::StructureShape.new(name: 'UpdateOrganizationalUnitResponse')
210
220
  UpdatePolicyRequest = Shapes::StructureShape.new(name: 'UpdatePolicyRequest')
@@ -590,6 +600,14 @@ module Aws::Organizations
590
600
  ListRootsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
591
601
  ListRootsResponse.struct_class = Types::ListRootsResponse
592
602
 
603
+ ListTagsForResourceRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: TaggableResourceId, required: true, location_name: "ResourceId"))
604
+ ListTagsForResourceRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
605
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
606
+
607
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
608
+ ListTagsForResourceResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
609
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
610
+
593
611
  ListTargetsForPolicyRequest.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, required: true, location_name: "PolicyId"))
594
612
  ListTargetsForPolicyRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
595
613
  ListTargetsForPolicyRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
@@ -710,6 +728,18 @@ module Aws::Organizations
710
728
  SourceParentNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
711
729
  SourceParentNotFoundException.struct_class = Types::SourceParentNotFoundException
712
730
 
731
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, location_name: "Key"))
732
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, location_name: "Value"))
733
+ Tag.struct_class = Types::Tag
734
+
735
+ TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
736
+
737
+ TagResourceRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: TaggableResourceId, required: true, location_name: "ResourceId"))
738
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
739
+ TagResourceRequest.struct_class = Types::TagResourceRequest
740
+
741
+ Tags.member = Shapes::ShapeRef.new(shape: Tag)
742
+
713
743
  TargetNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
714
744
  TargetNotFoundException.struct_class = Types::TargetNotFoundException
715
745
 
@@ -720,6 +750,10 @@ module Aws::Organizations
720
750
  UnsupportedAPIEndpointException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
721
751
  UnsupportedAPIEndpointException.struct_class = Types::UnsupportedAPIEndpointException
722
752
 
753
+ UntagResourceRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: TaggableResourceId, required: true, location_name: "ResourceId"))
754
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location_name: "TagKeys"))
755
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
756
+
723
757
  UpdateOrganizationalUnitRequest.add_member(:organizational_unit_id, Shapes::ShapeRef.new(shape: OrganizationalUnitId, required: true, location_name: "OrganizationalUnitId"))
724
758
  UpdateOrganizationalUnitRequest.add_member(:name, Shapes::ShapeRef.new(shape: OrganizationalUnitName, location_name: "Name"))
725
759
  UpdateOrganizationalUnitRequest.struct_class = Types::UpdateOrganizationalUnitRequest
@@ -1410,6 +1444,25 @@ module Aws::Organizations
1410
1444
  )
1411
1445
  end)
1412
1446
 
1447
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1448
+ o.name = "ListTagsForResource"
1449
+ o.http_method = "POST"
1450
+ o.http_request_uri = "/"
1451
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
1452
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
1453
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1454
+ o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
1455
+ o.errors << Shapes::ShapeRef.new(shape: TargetNotFoundException)
1456
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1457
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
1458
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1459
+ o[:pager] = Aws::Pager.new(
1460
+ tokens: {
1461
+ "next_token" => "next_token"
1462
+ }
1463
+ )
1464
+ end)
1465
+
1413
1466
  api.add_operation(:list_targets_for_policy, Seahorse::Model::Operation.new.tap do |o|
1414
1467
  o.name = "ListTargetsForPolicy"
1415
1468
  o.http_method = "POST"
@@ -1465,6 +1518,38 @@ module Aws::Organizations
1465
1518
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1466
1519
  end)
1467
1520
 
1521
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1522
+ o.name = "TagResource"
1523
+ o.http_method = "POST"
1524
+ o.http_request_uri = "/"
1525
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
1526
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1527
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1528
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
1529
+ o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
1530
+ o.errors << Shapes::ShapeRef.new(shape: TargetNotFoundException)
1531
+ o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
1532
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1533
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
1534
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1535
+ end)
1536
+
1537
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1538
+ o.name = "UntagResource"
1539
+ o.http_method = "POST"
1540
+ o.http_request_uri = "/"
1541
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
1542
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1543
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1544
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
1545
+ o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
1546
+ o.errors << Shapes::ShapeRef.new(shape: TargetNotFoundException)
1547
+ o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
1548
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1549
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
1550
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1551
+ end)
1552
+
1468
1553
  api.add_operation(:update_organizational_unit, Seahorse::Model::Operation.new.tap do |o|
1469
1554
  o.name = "UpdateOrganizationalUnit"
1470
1555
  o.http_method = "POST"
@@ -61,7 +61,7 @@ module Aws::Organizations
61
61
  # You don't have permissions to perform the requested operation. The
62
62
  # user or role that is making the request must have at least one IAM
63
63
  # permissions policy attached that grants the required permissions. For
64
- # more information, see [Access Management][1] in the *IAM User Guide*.
64
+ # more information, see [Access Management][1] in the *IAM User Guide.*
65
65
  #
66
66
  #
67
67
  #
@@ -374,9 +374,26 @@ module Aws::Organizations
374
374
  # Some of the reasons in the following list might not be applicable to
375
375
  # this specific API or operation:
376
376
  #
377
+ # * ACCOUNT\_CANNOT\_LEAVE\_WITHOUT\_EULA: You attempted to remove an
378
+ # account from the organization that doesn't yet have enough
379
+ # information to exist as a standalone account. This account requires
380
+ # you to first agree to the AWS Customer Agreement. Follow the steps
381
+ # at [To leave an organization when all required account information
382
+ # has not yet been provided][1] in the *AWS Organizations User Guide.*
383
+ #
384
+ # * ACCOUNT\_CANNOT\_LEAVE\_WITHOUT\_PHONE\_VERIFICATION: You attempted
385
+ # to remove an account from the organization that doesn't yet have
386
+ # enough information to exist as a standalone account. This account
387
+ # requires you to first complete phone verification. Follow the steps
388
+ # at [To leave an organization when all required account information
389
+ # has not yet been provided][1] in the *AWS Organizations User Guide.*
390
+ #
391
+ # * ACCOUNT\_CREATION\_RATE\_LIMIT\_EXCEEDED: You attempted to exceed
392
+ # the number of accounts that you can create in one day.
393
+ #
377
394
  # * ACCOUNT\_NUMBER\_LIMIT\_EXCEEDED: You attempted to exceed the limit
378
395
  # on the number of accounts in an organization. If you need more
379
- # accounts, contact [AWS Support][1] to request an increase in your
396
+ # accounts, contact [AWS Support][2] to request an increase in your
380
397
  # limit.
381
398
  #
382
399
  # Or the number of invitations that you tried to send would cause you
@@ -391,86 +408,72 @@ module Aws::Organizations
391
408
  # If you get receive this exception when running a command immediately
392
409
  # after creating the organization, wait one hour and try again. If
393
410
  # after an hour it continues to fail with this error, contact [AWS
394
- # Support][1].
411
+ # Support][2].
395
412
  #
396
413
  # * HANDSHAKE\_RATE\_LIMIT\_EXCEEDED: You attempted to exceed the number
397
414
  # of handshakes that you can send in one day.
398
415
  #
399
- # * OU\_NUMBER\_LIMIT\_EXCEEDED: You attempted to exceed the number of
400
- # OUs that you can have in an organization.
416
+ # * MASTER\_ACCOUNT\_ADDRESS\_DOES\_NOT\_MATCH\_MARKETPLACE: To create
417
+ # an account in this organization, you first must migrate the
418
+ # organization's master account to the marketplace that corresponds
419
+ # to the master account's address. For example, accounts with India
420
+ # addresses must be associated with the AISPL marketplace. All
421
+ # accounts in an organization must be associated with the same
422
+ # marketplace.
401
423
  #
402
- # * OU\_DEPTH\_LIMIT\_EXCEEDED: You attempted to create an OU tree that
403
- # is too many levels deep.
424
+ # * MASTER\_ACCOUNT\_MISSING\_CONTACT\_INFO: To complete this operation,
425
+ # you must first provide contact a valid address and phone number for
426
+ # the master account. Then try the operation again.
404
427
  #
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.
428
+ # * MASTER\_ACCOUNT\_NOT\_GOVCLOUD\_ENABLED: To complete this operation,
429
+ # the master account must have an associated account in the AWS
430
+ # GovCloud (US-West) Region. For more information, see [AWS
431
+ # Organizations][3] in the *AWS GovCloud User Guide.*
409
432
  #
410
- # * POLICY\_NUMBER\_LIMIT\_EXCEEDED. You attempted to exceed the number
411
- # of policies that you can have in an organization.
433
+ # * MASTER\_ACCOUNT\_PAYMENT\_INSTRUMENT\_REQUIRED: To create an
434
+ # organization with this master account, you first must associate a
435
+ # valid payment instrument, such as a credit card, with the account.
436
+ # Follow the steps at [To leave an organization when all required
437
+ # account information has not yet been provided][1] in the *AWS
438
+ # Organizations User Guide.*
412
439
  #
413
440
  # * MAX\_POLICY\_TYPE\_ATTACHMENT\_LIMIT\_EXCEEDED: You attempted to
414
441
  # exceed the number of policies of a certain type that can be attached
415
442
  # to an entity at one time.
416
443
  #
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*.
444
+ # * MAX\_TAG\_LIMIT\_EXCEEDED: You have exceeded the number of tags
445
+ # allowed on this resource.
442
446
  #
443
447
  # * MEMBER\_ACCOUNT\_PAYMENT\_INSTRUMENT\_REQUIRED: To complete this
444
448
  # operation with this member account, you first must associate a valid
445
449
  # payment instrument, such as a credit card, with the account. Follow
446
450
  # 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*.
451
+ # information has not yet been provided][1] in the *AWS Organizations
452
+ # User Guide.*
449
453
  #
450
- # * ACCOUNT\_CREATION\_RATE\_LIMIT\_EXCEEDED: You attempted to exceed
451
- # the number of accounts that you can create in one day.
454
+ # * MIN\_POLICY\_TYPE\_ATTACHMENT\_LIMIT\_EXCEEDED: You attempted to
455
+ # detach a policy from an entity that would cause the entity to have
456
+ # fewer than the minimum number of policies of a certain type
457
+ # required.
452
458
  #
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.
459
+ # * OU\_DEPTH\_LIMIT\_EXCEEDED: You attempted to create an OU tree that
460
+ # is too many levels deep.
460
461
  #
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.
462
+ # * ORGANIZATION\_NOT\_IN\_ALL\_FEATURES\_MODE: You attempted to perform
463
+ # an operation that requires the organization to be configured to
464
+ # support all features. An organization that supports only
465
+ # consolidated billing features can't perform this operation.
464
466
  #
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.*
467
+ # * OU\_NUMBER\_LIMIT\_EXCEEDED: You attempted to exceed the number of
468
+ # OUs that you can have in an organization.
469
+ #
470
+ # * POLICY\_NUMBER\_LIMIT\_EXCEEDED. You attempted to exceed the number
471
+ # of policies that you can have in an organization.
469
472
  #
470
473
  #
471
474
  #
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
475
+ # [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info
476
+ # [2]: https://console.aws.amazon.com/support/home#/
474
477
  # [3]: http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html
475
478
  #
476
479
  # @!attribute [rw] message
@@ -525,7 +528,7 @@ module Aws::Organizations
525
528
  # account, see [Accessing and Administering the Member Accounts in
526
529
  # Your Organization][1] in the *AWS Organizations User Guide*, and
527
530
  # steps 2 and 3 in [Tutorial: Delegate Access Across AWS Accounts
528
- # Using IAM Roles][2] in the *IAM User Guide*.
531
+ # Using IAM Roles][2] in the *IAM User Guide.*
529
532
  #
530
533
  # The [regex pattern][3] that is used to validate this parameter is a
531
534
  # string of characters that can consist of uppercase letters,
@@ -638,6 +641,8 @@ module Aws::Organizations
638
641
  # @return [String]
639
642
  #
640
643
  # @!attribute [rw] gov_cloud_account_id
644
+ # If the account was created successfully, the unique identifier (ID)
645
+ # of the new account in the AWS GovCloud (US) Region.
641
646
  # @return [String]
642
647
  #
643
648
  # @!attribute [rw] failure_reason
@@ -797,19 +802,19 @@ module Aws::Organizations
797
802
  # Specifies the feature set supported by the new organization. Each
798
803
  # feature set supports different levels of functionality.
799
804
  #
800
- # * *CONSOLIDATED\_BILLING*\: All member accounts have their bills
805
+ # * `CONSOLIDATED_BILLING`\: All member accounts have their bills
801
806
  # consolidated to and paid by the master account. For more
802
807
  # information, see [Consolidated billing][1] in the *AWS
803
- # Organizations User Guide*.
808
+ # Organizations User Guide.*
804
809
  #
805
810
  # The consolidated billing feature subset isn't available for
806
811
  # organizations in the AWS GovCloud (US) Region.
807
812
  #
808
- # * *ALL*\: In addition to all the features supported by the
813
+ # * `ALL`\: In addition to all the features supported by the
809
814
  # consolidated billing feature set, the master account can also
810
815
  # apply any type of policy to any member account in the
811
816
  # organization. For more information, see [All features][2] in the
812
- # *AWS Organizations User Guide*.
817
+ # *AWS Organizations User Guide.*
813
818
  #
814
819
  #
815
820
  #
@@ -845,8 +850,8 @@ module Aws::Organizations
845
850
  # }
846
851
  #
847
852
  # @!attribute [rw] parent_id
848
- # The unique identifier (ID) of the parent root or OU in which you
849
- # want to create the new OU.
853
+ # The unique identifier (ID) of the parent root or OU that you want to
854
+ # create the new OU in.
850
855
  #
851
856
  # The [regex pattern][1] for a parent ID string requires one of the
852
857
  # following:
@@ -903,7 +908,7 @@ module Aws::Organizations
903
908
  # text that specifies the permissions that admins in attached accounts
904
909
  # can delegate to their users, groups, and roles. For more information
905
910
  # about the SCP syntax, see [Service Control Policy Syntax][2] in the
906
- # *AWS Organizations User Guide*.
911
+ # *AWS Organizations User Guide.*
907
912
  #
908
913
  #
909
914
  #
@@ -1292,10 +1297,9 @@ module Aws::Organizations
1292
1297
  # @return [String]
1293
1298
  #
1294
1299
  # @!attribute [rw] target_id
1295
- # The unique identifier (ID) of the root, OU, or account from which
1296
- # you want to detach the policy. You can get the ID from the
1297
- # ListRoots, ListOrganizationalUnitsForParent, or ListAccounts
1298
- # operations.
1300
+ # The unique identifier (ID) of the root, OU, or account that you want
1301
+ # to detach the policy from. You can get the ID from the ListRoots,
1302
+ # ListOrganizationalUnitsForParent, or ListAccounts operations.
1299
1303
  #
1300
1304
  # The [regex pattern][1] for a target ID string requires one of the
1301
1305
  # following:
@@ -1722,23 +1726,19 @@ module Aws::Organizations
1722
1726
  # organization, wait one hour and try again. If after an hour it
1723
1727
  # continues to fail with this error, contact [AWS Support][1].
1724
1728
  #
1725
- # * HANDSHAKE\_RATE\_LIMIT\_EXCEEDED: You attempted to exceed the number
1726
- # of handshakes that you can send in one day.
1727
- #
1728
1729
  # * ALREADY\_IN\_AN\_ORGANIZATION: The handshake request is invalid
1729
1730
  # because the invited account is already a member of an organization.
1730
1731
  #
1731
- # * ORGANIZATION\_ALREADY\_HAS\_ALL\_FEATURES: The handshake request is
1732
- # invalid because the organization has already enabled all features.
1732
+ # * HANDSHAKE\_RATE\_LIMIT\_EXCEEDED: You attempted to exceed the number
1733
+ # of handshakes that you can send in one day.
1733
1734
  #
1734
1735
  # * INVITE\_DISABLED\_DURING\_ENABLE\_ALL\_FEATURES: You can't issue
1735
1736
  # new invitations to join an organization while it's in the process
1736
1737
  # of enabling all features. You can resume inviting accounts after you
1737
1738
  # finalize the process when all accounts have agreed to the change.
1738
1739
  #
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.
1740
+ # * ORGANIZATION\_ALREADY\_HAS\_ALL\_FEATURES: The handshake request is
1741
+ # invalid because the organization has already enabled all features.
1742
1742
  #
1743
1743
  # * ORGANIZATION\_FROM\_DIFFERENT\_SELLER\_OF\_RECORD: The request
1744
1744
  # failed because the account is from a different marketplace than the
@@ -1750,6 +1750,10 @@ module Aws::Organizations
1750
1750
  # attempted to change the membership of an account too quickly after
1751
1751
  # its previous change.
1752
1752
  #
1753
+ # * PAYMENT\_INSTRUMENT\_REQUIRED: You can't complete the operation
1754
+ # with an account that doesn't have a payment instrument, such as a
1755
+ # credit card, associated with it.
1756
+ #
1753
1757
  #
1754
1758
  #
1755
1759
  # [1]: https://console.aws.amazon.com/support/home#/
@@ -1935,12 +1939,12 @@ module Aws::Organizations
1935
1939
  # * INVALID\_LIST\_MEMBER: You provided a list to a parameter that
1936
1940
  # contains at least one invalid value.
1937
1941
  #
1938
- # * INVALID\_PARTY\_TYPE\_TARGET: You specified the wrong type of entity
1939
- # (account, organization, or email) as a party.
1940
- #
1941
1942
  # * INVALID\_PAGINATION\_TOKEN: Get the value for the `NextToken`
1942
1943
  # parameter from the response to a previous call of the operation.
1943
1944
  #
1945
+ # * INVALID\_PARTY\_TYPE\_TARGET: You specified the wrong type of entity
1946
+ # (account, organization, or email) as a party.
1947
+ #
1944
1948
  # * INVALID\_PATTERN: You provided a value that doesn't match the
1945
1949
  # required pattern.
1946
1950
  #
@@ -1955,6 +1959,11 @@ module Aws::Organizations
1955
1959
  #
1956
1960
  # * INVALID\_SYNTAX\_POLICY\_ID: You specified an invalid policy ID.
1957
1961
  #
1962
+ # * INVALID\_SYSTEM\_TAGS\_PARAMETER: You specified a tag key that is a
1963
+ # system tag. You can’t add, edit, or delete system tag keys because
1964
+ # they're reserved for AWS use. System tags don’t count against your
1965
+ # tags per resource limit.
1966
+ #
1958
1967
  # * MAX\_FILTER\_LIMIT\_EXCEEDED: You can specify only one filter
1959
1968
  # parameter for the operation.
1960
1969
  #
@@ -2010,10 +2019,9 @@ module Aws::Organizations
2010
2019
  #
2011
2020
  # `--target Id=123456789012,Type=ACCOUNT`
2012
2021
  #
2013
- # If you specify `"Type": "ACCOUNT"`, then you must provide the AWS
2014
- # account ID number as the `Id`. If you specify `"Type": "EMAIL"`,
2015
- # then you must specify the email address that is associated with the
2016
- # account.
2022
+ # If you specify `"Type": "ACCOUNT"`, you must provide the AWS account
2023
+ # ID number as the `Id`. If you specify `"Type": "EMAIL"`, you must
2024
+ # specify the email address that is associated with the account.
2017
2025
  #
2018
2026
  # `--target Id=diego@example.com,Type=EMAIL`
2019
2027
  # @return [Types::HandshakeParty]
@@ -2316,8 +2324,8 @@ module Aws::Organizations
2316
2324
  #
2317
2325
  # @!attribute [rw] states
2318
2326
  # A list of one or more states that you want included in the response.
2319
- # If this parameter is not present, then all requests are included in
2320
- # the response.
2327
+ # If this parameter isn't present, all requests are included in the
2328
+ # response.
2321
2329
  # @return [Array<String>]
2322
2330
  #
2323
2331
  # @!attribute [rw] next_token
@@ -2606,7 +2614,7 @@ module Aws::Organizations
2606
2614
  #
2607
2615
  # @!attribute [rw] child_id
2608
2616
  # The unique identifier (ID) of the OU or account whose parent
2609
- # containers you want to list. Do not specify a root.
2617
+ # containers you want to list. Don't specify a root.
2610
2618
  #
2611
2619
  # The [regex pattern][1] for a child ID string requires one of the
2612
2620
  # following:
@@ -2803,7 +2811,7 @@ module Aws::Organizations
2803
2811
 
2804
2812
  # @!attribute [rw] policies
2805
2813
  # A list of policies that match the filter criteria in the request.
2806
- # The output list does not include the policy contents. To see the
2814
+ # The output list doesn't include the policy contents. To see the
2807
2815
  # content for a policy, see DescribePolicy.
2808
2816
  # @return [Array<Types::PolicySummary>]
2809
2817
  #
@@ -2879,6 +2887,53 @@ module Aws::Organizations
2879
2887
  include Aws::Structure
2880
2888
  end
2881
2889
 
2890
+ # @note When making an API call, you may pass ListTagsForResourceRequest
2891
+ # data as a hash:
2892
+ #
2893
+ # {
2894
+ # resource_id: "TaggableResourceId", # required
2895
+ # next_token: "NextToken",
2896
+ # }
2897
+ #
2898
+ # @!attribute [rw] resource_id
2899
+ # The ID of the resource that you want to retrieve tags for.
2900
+ # @return [String]
2901
+ #
2902
+ # @!attribute [rw] next_token
2903
+ # Use this parameter if you receive a `NextToken` response in a
2904
+ # previous request that indicates that there is more output available.
2905
+ # Set it to the value of the previous call's `NextToken` response to
2906
+ # indicate where the output should continue from.
2907
+ # @return [String]
2908
+ #
2909
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListTagsForResourceRequest AWS API Documentation
2910
+ #
2911
+ class ListTagsForResourceRequest < Struct.new(
2912
+ :resource_id,
2913
+ :next_token)
2914
+ include Aws::Structure
2915
+ end
2916
+
2917
+ # @!attribute [rw] tags
2918
+ # The tags that are assigned to the resource.
2919
+ # @return [Array<Types::Tag>]
2920
+ #
2921
+ # @!attribute [rw] next_token
2922
+ # If present, this value indicates that there is more output available
2923
+ # than is included in the current response. Use this value in the
2924
+ # `NextToken` request parameter in a subsequent call to the operation
2925
+ # to get the next part of the output. You should repeat this until the
2926
+ # `NextToken` response element comes back as `null`.
2927
+ # @return [String]
2928
+ #
2929
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListTagsForResourceResponse AWS API Documentation
2930
+ #
2931
+ class ListTagsForResourceResponse < Struct.new(
2932
+ :tags,
2933
+ :next_token)
2934
+ include Aws::Structure
2935
+ end
2936
+
2882
2937
  # @note When making an API call, you may pass ListTargetsForPolicyRequest
2883
2938
  # data as a hash:
2884
2939
  #
@@ -2889,8 +2944,8 @@ module Aws::Organizations
2889
2944
  # }
2890
2945
  #
2891
2946
  # @!attribute [rw] policy_id
2892
- # The unique identifier (ID) of the policy for which you want to know
2893
- # its attachments.
2947
+ # The unique identifier (ID) of the policy whose attachments you want
2948
+ # to know.
2894
2949
  #
2895
2950
  # The [regex pattern][1] for a policy ID string requires "p-"
2896
2951
  # followed by from 8 to 128 lower-case letters or digits.
@@ -2953,7 +3008,7 @@ module Aws::Organizations
2953
3008
  # The provided policy document doesn't meet the requirements of the
2954
3009
  # specified policy type. For example, the syntax might be incorrect. For
2955
3010
  # details about service control policy syntax, see [Service Control
2956
- # Policy Syntax][1] in the *AWS Organizations User Guide*.
3011
+ # Policy Syntax][1] in the *AWS Organizations User Guide.*
2957
3012
  #
2958
3013
  #
2959
3014
  #
@@ -3483,7 +3538,7 @@ module Aws::Organizations
3483
3538
  # currently enabled for this organization. For example, you can enable
3484
3539
  # SCPs only after you enable all features in the organization. For more
3485
3540
  # information, see [Enabling and Disabling a Policy Type on a Root][1]
3486
- # in the *AWS Organizations User Guide*.
3541
+ # in the *AWS Organizations User Guide.*
3487
3542
  #
3488
3543
  #
3489
3544
  #
@@ -3503,7 +3558,7 @@ module Aws::Organizations
3503
3558
  # can't attach policies of the specified type to entities in a root
3504
3559
  # until you enable that type in the root. For more information, see
3505
3560
  # [Enabling All Features in Your Organization][1] in the *AWS
3506
- # Organizations User Guide*.
3561
+ # Organizations User Guide.*
3507
3562
  #
3508
3563
  #
3509
3564
  #
@@ -3668,6 +3723,62 @@ module Aws::Organizations
3668
3723
  include Aws::Structure
3669
3724
  end
3670
3725
 
3726
+ # A custom key-value pair associated with a resource such as an account
3727
+ # within your organization.
3728
+ #
3729
+ # @note When making an API call, you may pass Tag
3730
+ # data as a hash:
3731
+ #
3732
+ # {
3733
+ # key: "TagKey",
3734
+ # value: "TagValue",
3735
+ # }
3736
+ #
3737
+ # @!attribute [rw] key
3738
+ # The key identifier, or name, of the tag.
3739
+ # @return [String]
3740
+ #
3741
+ # @!attribute [rw] value
3742
+ # The string value that's associated with the key of the tag.
3743
+ # @return [String]
3744
+ #
3745
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/Tag AWS API Documentation
3746
+ #
3747
+ class Tag < Struct.new(
3748
+ :key,
3749
+ :value)
3750
+ include Aws::Structure
3751
+ end
3752
+
3753
+ # @note When making an API call, you may pass TagResourceRequest
3754
+ # data as a hash:
3755
+ #
3756
+ # {
3757
+ # resource_id: "TaggableResourceId", # required
3758
+ # tags: [ # required
3759
+ # {
3760
+ # key: "TagKey",
3761
+ # value: "TagValue",
3762
+ # },
3763
+ # ],
3764
+ # }
3765
+ #
3766
+ # @!attribute [rw] resource_id
3767
+ # The ID of the resource to add a tag to.
3768
+ # @return [String]
3769
+ #
3770
+ # @!attribute [rw] tags
3771
+ # The tag to add to the specified resource.
3772
+ # @return [Array<Types::Tag>]
3773
+ #
3774
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/TagResourceRequest AWS API Documentation
3775
+ #
3776
+ class TagResourceRequest < Struct.new(
3777
+ :resource_id,
3778
+ :tags)
3779
+ include Aws::Structure
3780
+ end
3781
+
3671
3782
  # We can't find a root, OU, or account with the `TargetId` that you
3672
3783
  # specified.
3673
3784
  #
@@ -3681,12 +3792,12 @@ module Aws::Organizations
3681
3792
  include Aws::Structure
3682
3793
  end
3683
3794
 
3684
- # You've sent too many requests in too short a period of time. The
3795
+ # You have sent too many requests in too short a period of time. The
3685
3796
  # limit helps protect against denial-of-service attacks. Try again
3686
3797
  # later.
3687
3798
  #
3688
- # For information on limits that affect Organizations, see [Limits of
3689
- # AWS Organizations][1] in the *AWS Organizations User Guide*.
3799
+ # For information on limits that affect AWS Organizations, see [Limits
3800
+ # of AWS Organizations][1] in the *AWS Organizations User Guide.*
3690
3801
  #
3691
3802
  #
3692
3803
  #
@@ -3718,6 +3829,30 @@ module Aws::Organizations
3718
3829
  include Aws::Structure
3719
3830
  end
3720
3831
 
3832
+ # @note When making an API call, you may pass UntagResourceRequest
3833
+ # data as a hash:
3834
+ #
3835
+ # {
3836
+ # resource_id: "TaggableResourceId", # required
3837
+ # tag_keys: ["TagKey"], # required
3838
+ # }
3839
+ #
3840
+ # @!attribute [rw] resource_id
3841
+ # The ID of the resource to remove the tag from.
3842
+ # @return [String]
3843
+ #
3844
+ # @!attribute [rw] tag_keys
3845
+ # The tag to remove from the specified resource.
3846
+ # @return [Array<String>]
3847
+ #
3848
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UntagResourceRequest AWS API Documentation
3849
+ #
3850
+ class UntagResourceRequest < Struct.new(
3851
+ :resource_id,
3852
+ :tag_keys)
3853
+ include Aws::Structure
3854
+ end
3855
+
3721
3856
  # @note When making an API call, you may pass UpdateOrganizationalUnitRequest
3722
3857
  # data as a hash:
3723
3858
  #
@@ -3811,7 +3946,7 @@ module Aws::Organizations
3811
3946
  # If provided, the new content for the policy. The text must be
3812
3947
  # correctly formatted JSON that complies with the syntax for the
3813
3948
  # policy's type. For more information, see [Service Control Policy
3814
- # Syntax][1] in the *AWS Organizations User Guide*.
3949
+ # Syntax][1] in the *AWS Organizations User Guide.*
3815
3950
  #
3816
3951
  #
3817
3952
  #