aws-sdk-organizations 1.127.0 → 1.129.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-organizations/client.rb +991 -500
- data/lib/aws-sdk-organizations/client_api.rb +202 -0
- data/lib/aws-sdk-organizations/errors.rb +48 -0
- data/lib/aws-sdk-organizations/types.rb +718 -338
- data/lib/aws-sdk-organizations.rb +1 -1
- data/sig/client.rbs +94 -12
- data/sig/errors.rbs +9 -0
- data/sig/types.rbs +128 -19
- metadata +3 -3
|
@@ -483,44 +483,37 @@ module Aws::Organizations
|
|
|
483
483
|
|
|
484
484
|
# @!group API Operations
|
|
485
485
|
|
|
486
|
-
#
|
|
487
|
-
#
|
|
488
|
-
#
|
|
489
|
-
#
|
|
490
|
-
#
|
|
491
|
-
#
|
|
492
|
-
# *
|
|
493
|
-
#
|
|
494
|
-
#
|
|
495
|
-
#
|
|
496
|
-
#
|
|
497
|
-
#
|
|
498
|
-
#
|
|
499
|
-
# create the required service-linked role named
|
|
500
|
-
# `AWSServiceRoleForOrganizations`. For more information, see
|
|
501
|
-
# [Organizations and service-linked roles][1] in the *Organizations
|
|
502
|
-
# User Guide*.
|
|
486
|
+
# Accepts a handshake by sending an `ACCEPTED` response to the sender.
|
|
487
|
+
# You can view accepted handshakes in API responses for 30 days before
|
|
488
|
+
# they are deleted.
|
|
489
|
+
#
|
|
490
|
+
# **Only the management account can accept the following handshakes**:
|
|
491
|
+
#
|
|
492
|
+
# * Enable all features final confirmation (`APPROVE_ALL_FEATURES`)
|
|
493
|
+
#
|
|
494
|
+
# * Billing transfer (`TRANSFER_RESPONSIBILITY`)
|
|
495
|
+
#
|
|
496
|
+
# For more information, see [Enabling all features][1] and [Responding
|
|
497
|
+
# to a billing transfer invitation][2] in the *Organizations User
|
|
498
|
+
# Guide*.
|
|
503
499
|
#
|
|
504
|
-
#
|
|
505
|
-
# principal from the management account.
|
|
500
|
+
# **Only a member account can accept the following handshakes**:
|
|
506
501
|
#
|
|
507
|
-
#
|
|
508
|
-
# Services account to join your organization][2] in the *Organizations
|
|
509
|
-
# User Guide*. For more information about requests to enable all
|
|
510
|
-
# features in the organization, see [Enabling all features in your
|
|
511
|
-
# organization][3] in the *Organizations User Guide*.
|
|
502
|
+
# * Invitation to join (`INVITE`)
|
|
512
503
|
#
|
|
513
|
-
#
|
|
514
|
-
# relevant APIs for only 30 days. After that, it's deleted.
|
|
504
|
+
# * Approve all features request (`ENABLE_ALL_FEATURES`)
|
|
515
505
|
#
|
|
506
|
+
# For more information, see [Responding to invitations][3] and [Enabling
|
|
507
|
+
# all features][1] in the *Organizations User Guide*.
|
|
516
508
|
#
|
|
517
509
|
#
|
|
518
|
-
#
|
|
519
|
-
# [
|
|
520
|
-
# [
|
|
510
|
+
#
|
|
511
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/manage-begin-all-features-standard-migration.html#manage-approve-all-features-invite
|
|
512
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_transfer_billing-respond-invitation.html
|
|
513
|
+
# [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_accept-decline-invite.html
|
|
521
514
|
#
|
|
522
515
|
# @option params [required, String] :handshake_id
|
|
523
|
-
#
|
|
516
|
+
# ID for the handshake that you want to accept.
|
|
524
517
|
#
|
|
525
518
|
# The [regex pattern][1] for handshake ID string requires "h-"
|
|
526
519
|
# followed by from 8 to 32 lowercase letters or digits.
|
|
@@ -605,10 +598,10 @@ module Aws::Organizations
|
|
|
605
598
|
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
606
599
|
# resp.handshake.requested_timestamp #=> Time
|
|
607
600
|
# resp.handshake.expiration_timestamp #=> Time
|
|
608
|
-
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
601
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
609
602
|
# resp.handshake.resources #=> Array
|
|
610
603
|
# resp.handshake.resources[0].value #=> String
|
|
611
|
-
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE"
|
|
604
|
+
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE", "RESPONSIBILITY_TRANSFER", "TRANSFER_START_TIMESTAMP", "TRANSFER_TYPE", "MANAGEMENT_ACCOUNT", "MANAGEMENT_EMAIL", "MANAGEMENT_NAME"
|
|
612
605
|
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
613
606
|
#
|
|
614
607
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AcceptHandshake AWS API Documentation
|
|
@@ -641,8 +634,12 @@ module Aws::Organizations
|
|
|
641
634
|
#
|
|
642
635
|
# * [SECURITYHUB\_POLICY][8]
|
|
643
636
|
#
|
|
644
|
-
#
|
|
645
|
-
#
|
|
637
|
+
# * [UPGRADE\_ROLLOUT\_POLICY][9]
|
|
638
|
+
#
|
|
639
|
+
# * [INSPECTOR\_POLICY][10]
|
|
640
|
+
#
|
|
641
|
+
# You can only call this operation from the management account or a
|
|
642
|
+
# member account that is a delegated administrator.
|
|
646
643
|
#
|
|
647
644
|
#
|
|
648
645
|
#
|
|
@@ -654,11 +651,12 @@ module Aws::Organizations
|
|
|
654
651
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
655
652
|
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
656
653
|
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
654
|
+
# [9]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_upgrade_rollout.html
|
|
655
|
+
# [10]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
657
656
|
#
|
|
658
657
|
# @option params [required, String] :policy_id
|
|
659
|
-
#
|
|
660
|
-
# the
|
|
661
|
-
# ListPolicies operation.
|
|
658
|
+
# ID for the policy that you want to attach to the target. You can get
|
|
659
|
+
# the ID for the policy by calling the ListPolicies operation.
|
|
662
660
|
#
|
|
663
661
|
# The [regex pattern][1] for a policy ID string requires "p-" followed
|
|
664
662
|
# by from 8 to 128 lowercase or uppercase letters, digits, or the
|
|
@@ -669,8 +667,8 @@ module Aws::Organizations
|
|
|
669
667
|
# [1]: http://wikipedia.org/wiki/regex
|
|
670
668
|
#
|
|
671
669
|
# @option params [required, String] :target_id
|
|
672
|
-
#
|
|
673
|
-
#
|
|
670
|
+
# ID for the root, OU, or account that you want to attach the policy to.
|
|
671
|
+
# You can get the ID by calling the ListRoots,
|
|
674
672
|
# ListOrganizationalUnitsForParent, or ListAccounts operations.
|
|
675
673
|
#
|
|
676
674
|
# The [regex pattern][1] for a target ID string requires one of the
|
|
@@ -727,20 +725,19 @@ module Aws::Organizations
|
|
|
727
725
|
req.send_request(options)
|
|
728
726
|
end
|
|
729
727
|
|
|
730
|
-
# Cancels a
|
|
731
|
-
# `CANCELED`.
|
|
728
|
+
# Cancels a Handshake.
|
|
732
729
|
#
|
|
733
|
-
#
|
|
734
|
-
#
|
|
735
|
-
#
|
|
736
|
-
# recipient can no longer respond to
|
|
730
|
+
# Only the account that sent a handshake can call this operation. The
|
|
731
|
+
# recipient of the handshake can't cancel it, but can use
|
|
732
|
+
# DeclineHandshake to decline. After a handshake is canceled, the
|
|
733
|
+
# recipient can no longer respond to the handshake.
|
|
737
734
|
#
|
|
738
|
-
#
|
|
739
|
-
#
|
|
735
|
+
# You can view canceled handshakes in API responses for 30 days before
|
|
736
|
+
# they are deleted.
|
|
740
737
|
#
|
|
741
738
|
# @option params [required, String] :handshake_id
|
|
742
|
-
#
|
|
743
|
-
#
|
|
739
|
+
# ID for the handshake that you want to cancel. You can get the ID from
|
|
740
|
+
# the ListHandshakesForOrganization operation.
|
|
744
741
|
#
|
|
745
742
|
# The [regex pattern][1] for handshake ID string requires "h-"
|
|
746
743
|
# followed by from 8 to 32 lowercase letters or digits.
|
|
@@ -829,10 +826,10 @@ module Aws::Organizations
|
|
|
829
826
|
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
830
827
|
# resp.handshake.requested_timestamp #=> Time
|
|
831
828
|
# resp.handshake.expiration_timestamp #=> Time
|
|
832
|
-
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
829
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
833
830
|
# resp.handshake.resources #=> Array
|
|
834
831
|
# resp.handshake.resources[0].value #=> String
|
|
835
|
-
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE"
|
|
832
|
+
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE", "RESPONSIBILITY_TRANSFER", "TRANSFER_START_TIMESTAMP", "TRANSFER_TYPE", "MANAGEMENT_ACCOUNT", "MANAGEMENT_EMAIL", "MANAGEMENT_NAME"
|
|
836
833
|
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
837
834
|
#
|
|
838
835
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CancelHandshake AWS API Documentation
|
|
@@ -948,8 +945,7 @@ module Aws::Organizations
|
|
|
948
945
|
# Organizations clones the company name and address information for the
|
|
949
946
|
# new account from the organization's management account.
|
|
950
947
|
#
|
|
951
|
-
#
|
|
952
|
-
# account.
|
|
948
|
+
# You can only call this operation from the management account.
|
|
953
949
|
#
|
|
954
950
|
# For more information about creating accounts, see [Creating a member
|
|
955
951
|
# account in your organization][3] in the *Organizations User Guide*.
|
|
@@ -1558,7 +1554,7 @@ module Aws::Organizations
|
|
|
1558
1554
|
# resp.organization.master_account_id #=> String
|
|
1559
1555
|
# resp.organization.master_account_email #=> String
|
|
1560
1556
|
# resp.organization.available_policy_types #=> Array
|
|
1561
|
-
# resp.organization.available_policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
1557
|
+
# resp.organization.available_policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
1562
1558
|
# resp.organization.available_policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
|
1563
1559
|
#
|
|
1564
1560
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateOrganization AWS API Documentation
|
|
@@ -1583,16 +1579,14 @@ module Aws::Organizations
|
|
|
1583
1579
|
# If the request includes tags, then the requester must have the
|
|
1584
1580
|
# `organizations:TagResource` permission.
|
|
1585
1581
|
#
|
|
1586
|
-
#
|
|
1587
|
-
# account.
|
|
1582
|
+
# You can only call this operation from the management account.
|
|
1588
1583
|
#
|
|
1589
1584
|
#
|
|
1590
1585
|
#
|
|
1591
1586
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_ous.html
|
|
1592
1587
|
#
|
|
1593
1588
|
# @option params [required, String] :parent_id
|
|
1594
|
-
#
|
|
1595
|
-
# create the new OU in.
|
|
1589
|
+
# ID for the parent root or OU that you want to create the new OU in.
|
|
1596
1590
|
#
|
|
1597
1591
|
# The [regex pattern][1] for a parent ID string requires one of the
|
|
1598
1592
|
# following:
|
|
@@ -1690,8 +1684,8 @@ module Aws::Organizations
|
|
|
1690
1684
|
# If the request includes tags, then the requester must have the
|
|
1691
1685
|
# `organizations:TagResource` permission.
|
|
1692
1686
|
#
|
|
1693
|
-
#
|
|
1694
|
-
#
|
|
1687
|
+
# You can only call this operation from the management account or a
|
|
1688
|
+
# member account that is a delegated administrator.
|
|
1695
1689
|
#
|
|
1696
1690
|
#
|
|
1697
1691
|
#
|
|
@@ -1743,6 +1737,10 @@ module Aws::Organizations
|
|
|
1743
1737
|
#
|
|
1744
1738
|
# * [SECURITYHUB\_POLICY][8]
|
|
1745
1739
|
#
|
|
1740
|
+
# * [UPGRADE\_ROLLOUT\_POLICY][9]
|
|
1741
|
+
#
|
|
1742
|
+
# * [INSPECTOR\_POLICY][10]
|
|
1743
|
+
#
|
|
1746
1744
|
#
|
|
1747
1745
|
#
|
|
1748
1746
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
|
@@ -1753,6 +1751,8 @@ module Aws::Organizations
|
|
|
1753
1751
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
1754
1752
|
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
1755
1753
|
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
1754
|
+
# [9]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_upgrade_rollout.html
|
|
1755
|
+
# [10]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
1756
1756
|
#
|
|
1757
1757
|
# @option params [Array<Types::Tag>] :tags
|
|
1758
1758
|
# A list of tags that you want to attach to the newly created policy.
|
|
@@ -1809,7 +1809,7 @@ module Aws::Organizations
|
|
|
1809
1809
|
# content: "PolicyContent", # required
|
|
1810
1810
|
# description: "PolicyDescription", # required
|
|
1811
1811
|
# name: "PolicyName", # required
|
|
1812
|
-
# type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, RESOURCE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY
|
|
1812
|
+
# type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, RESOURCE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY, INSPECTOR_POLICY, UPGRADE_ROLLOUT_POLICY
|
|
1813
1813
|
# tags: [
|
|
1814
1814
|
# {
|
|
1815
1815
|
# key: "TagKey", # required
|
|
@@ -1824,7 +1824,7 @@ module Aws::Organizations
|
|
|
1824
1824
|
# resp.policy.policy_summary.arn #=> String
|
|
1825
1825
|
# resp.policy.policy_summary.name #=> String
|
|
1826
1826
|
# resp.policy.policy_summary.description #=> String
|
|
1827
|
-
# resp.policy.policy_summary.type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
1827
|
+
# resp.policy.policy_summary.type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
1828
1828
|
# resp.policy.policy_summary.aws_managed #=> Boolean
|
|
1829
1829
|
# resp.policy.content #=> String
|
|
1830
1830
|
#
|
|
@@ -1837,20 +1837,18 @@ module Aws::Organizations
|
|
|
1837
1837
|
req.send_request(options)
|
|
1838
1838
|
end
|
|
1839
1839
|
|
|
1840
|
-
# Declines a
|
|
1841
|
-
# `DECLINED` and effectively deactivates the request.
|
|
1840
|
+
# Declines a Handshake.
|
|
1842
1841
|
#
|
|
1843
|
-
#
|
|
1844
|
-
#
|
|
1845
|
-
#
|
|
1846
|
-
# reinitiate the process with a new handshake request.
|
|
1842
|
+
# Only the account that receives a handshake can call this operation.
|
|
1843
|
+
# The sender of the handshake can use CancelHandshake to cancel if the
|
|
1844
|
+
# handshake hasn't yet been responded to.
|
|
1847
1845
|
#
|
|
1848
|
-
#
|
|
1849
|
-
#
|
|
1846
|
+
# You can view canceled handshakes in API responses for 30 days before
|
|
1847
|
+
# they are deleted.
|
|
1850
1848
|
#
|
|
1851
1849
|
# @option params [required, String] :handshake_id
|
|
1852
|
-
#
|
|
1853
|
-
#
|
|
1850
|
+
# ID for the handshake that you want to decline. You can get the ID from
|
|
1851
|
+
# the ListHandshakesForAccount operation.
|
|
1854
1852
|
#
|
|
1855
1853
|
# The [regex pattern][1] for handshake ID string requires "h-"
|
|
1856
1854
|
# followed by from 8 to 32 lowercase letters or digits.
|
|
@@ -1935,10 +1933,10 @@ module Aws::Organizations
|
|
|
1935
1933
|
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
1936
1934
|
# resp.handshake.requested_timestamp #=> Time
|
|
1937
1935
|
# resp.handshake.expiration_timestamp #=> Time
|
|
1938
|
-
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
1936
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
1939
1937
|
# resp.handshake.resources #=> Array
|
|
1940
1938
|
# resp.handshake.resources[0].value #=> String
|
|
1941
|
-
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE"
|
|
1939
|
+
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE", "RESPONSIBILITY_TRANSFER", "TRANSFER_START_TIMESTAMP", "TRANSFER_TYPE", "MANAGEMENT_ACCOUNT", "MANAGEMENT_EMAIL", "MANAGEMENT_NAME"
|
|
1942
1940
|
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
1943
1941
|
#
|
|
1944
1942
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeclineHandshake AWS API Documentation
|
|
@@ -1969,13 +1967,11 @@ module Aws::Organizations
|
|
|
1969
1967
|
# must first remove all accounts and child OUs from the OU that you want
|
|
1970
1968
|
# to delete.
|
|
1971
1969
|
#
|
|
1972
|
-
#
|
|
1973
|
-
# account.
|
|
1970
|
+
# You can only call this operation from the management account.
|
|
1974
1971
|
#
|
|
1975
1972
|
# @option params [required, String] :organizational_unit_id
|
|
1976
|
-
#
|
|
1977
|
-
#
|
|
1978
|
-
# operation.
|
|
1973
|
+
# ID for the organizational unit that you want to delete. You can get
|
|
1974
|
+
# the ID from the ListOrganizationalUnitsForParent operation.
|
|
1979
1975
|
#
|
|
1980
1976
|
# The [regex pattern][1] for an organizational unit ID string requires
|
|
1981
1977
|
# "ou-" followed by from 4 to 32 lowercase letters or digits (the ID
|
|
@@ -2017,13 +2013,12 @@ module Aws::Organizations
|
|
|
2017
2013
|
# perform this operation, you must first detach the policy from all
|
|
2018
2014
|
# organizational units (OUs), roots, and accounts.
|
|
2019
2015
|
#
|
|
2020
|
-
#
|
|
2021
|
-
#
|
|
2016
|
+
# You can only call this operation from the management account or a
|
|
2017
|
+
# member account that is a delegated administrator.
|
|
2022
2018
|
#
|
|
2023
2019
|
# @option params [required, String] :policy_id
|
|
2024
|
-
#
|
|
2025
|
-
#
|
|
2026
|
-
# operations.
|
|
2020
|
+
# ID for the policy that you want to delete. You can get the ID from the
|
|
2021
|
+
# ListPolicies or ListPoliciesForTarget operations.
|
|
2027
2022
|
#
|
|
2028
2023
|
# The [regex pattern][1] for a policy ID string requires "p-" followed
|
|
2029
2024
|
# by from 8 to 128 lowercase or uppercase letters, digits, or the
|
|
@@ -2062,8 +2057,7 @@ module Aws::Organizations
|
|
|
2062
2057
|
|
|
2063
2058
|
# Deletes the resource policy from your organization.
|
|
2064
2059
|
#
|
|
2065
|
-
#
|
|
2066
|
-
# account.
|
|
2060
|
+
# You can only call this operation from the management account.
|
|
2067
2061
|
#
|
|
2068
2062
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
2069
2063
|
#
|
|
@@ -2090,8 +2084,7 @@ module Aws::Organizations
|
|
|
2090
2084
|
# [Amazon Web Services Services that you can use with Organizations][1]
|
|
2091
2085
|
# in the *Organizations User Guide.*
|
|
2092
2086
|
#
|
|
2093
|
-
#
|
|
2094
|
-
# account.
|
|
2087
|
+
# You can only call this operation from the management account.
|
|
2095
2088
|
#
|
|
2096
2089
|
#
|
|
2097
2090
|
#
|
|
@@ -2132,8 +2125,8 @@ module Aws::Organizations
|
|
|
2132
2125
|
# Retrieves Organizations-related information about the specified
|
|
2133
2126
|
# account.
|
|
2134
2127
|
#
|
|
2135
|
-
#
|
|
2136
|
-
#
|
|
2128
|
+
# You can only call this operation from the management account or a
|
|
2129
|
+
# member account that is a delegated administrator.
|
|
2137
2130
|
#
|
|
2138
2131
|
# @option params [required, String] :account_id
|
|
2139
2132
|
# The unique identifier (ID) of the Amazon Web Services account that you
|
|
@@ -2199,8 +2192,8 @@ module Aws::Organizations
|
|
|
2199
2192
|
# Retrieves the current status of an asynchronous request to create an
|
|
2200
2193
|
# account.
|
|
2201
2194
|
#
|
|
2202
|
-
#
|
|
2203
|
-
#
|
|
2195
|
+
# You can only call this operation from the management account or a
|
|
2196
|
+
# member account that is a delegated administrator.
|
|
2204
2197
|
#
|
|
2205
2198
|
# @option params [required, String] :create_account_request_id
|
|
2206
2199
|
# Specifies the `Id` value that uniquely identifies the `CreateAccount`
|
|
@@ -2277,7 +2270,7 @@ module Aws::Organizations
|
|
|
2277
2270
|
# For more information about policy inheritance, see [Understanding
|
|
2278
2271
|
# management policy inheritance][1] in the *Organizations User Guide*.
|
|
2279
2272
|
#
|
|
2280
|
-
#
|
|
2273
|
+
# You can call this operation from any account in a organization.
|
|
2281
2274
|
#
|
|
2282
2275
|
#
|
|
2283
2276
|
#
|
|
@@ -2299,6 +2292,10 @@ module Aws::Organizations
|
|
|
2299
2292
|
#
|
|
2300
2293
|
# * [SECURITYHUB\_POLICY][6]
|
|
2301
2294
|
#
|
|
2295
|
+
# * [UPGRADE\_ROLLOUT\_POLICY][7]
|
|
2296
|
+
#
|
|
2297
|
+
# * [INSPECTOR\_POLICY][8]
|
|
2298
|
+
#
|
|
2302
2299
|
#
|
|
2303
2300
|
#
|
|
2304
2301
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html
|
|
@@ -2307,6 +2304,8 @@ module Aws::Organizations
|
|
|
2307
2304
|
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
2308
2305
|
# [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
2309
2306
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
2307
|
+
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_upgrade_rollout.html
|
|
2308
|
+
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
2310
2309
|
#
|
|
2311
2310
|
# @option params [String] :target_id
|
|
2312
2311
|
# When you're signed in as the management account, specify the ID of
|
|
@@ -2320,7 +2319,7 @@ module Aws::Organizations
|
|
|
2320
2319
|
# @example Request syntax with placeholder values
|
|
2321
2320
|
#
|
|
2322
2321
|
# resp = client.describe_effective_policy({
|
|
2323
|
-
# policy_type: "TAG_POLICY", # required, accepts TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY
|
|
2322
|
+
# policy_type: "TAG_POLICY", # required, accepts TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY, INSPECTOR_POLICY, UPGRADE_ROLLOUT_POLICY
|
|
2324
2323
|
# target_id: "PolicyTargetId",
|
|
2325
2324
|
# })
|
|
2326
2325
|
#
|
|
@@ -2329,7 +2328,7 @@ module Aws::Organizations
|
|
|
2329
2328
|
# resp.effective_policy.policy_content #=> String
|
|
2330
2329
|
# resp.effective_policy.last_updated_timestamp #=> Time
|
|
2331
2330
|
# resp.effective_policy.target_id #=> String
|
|
2332
|
-
# resp.effective_policy.policy_type #=> String, one of "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
2331
|
+
# resp.effective_policy.policy_type #=> String, one of "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
2333
2332
|
#
|
|
2334
2333
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeEffectivePolicy AWS API Documentation
|
|
2335
2334
|
#
|
|
@@ -2340,21 +2339,17 @@ module Aws::Organizations
|
|
|
2340
2339
|
req.send_request(options)
|
|
2341
2340
|
end
|
|
2342
2341
|
|
|
2343
|
-
#
|
|
2344
|
-
#
|
|
2345
|
-
#
|
|
2342
|
+
# Returns details for a handshake. A handshake is the secure exchange of
|
|
2343
|
+
# information between two Amazon Web Services accounts: a sender and a
|
|
2344
|
+
# recipient.
|
|
2346
2345
|
#
|
|
2347
|
-
# You can
|
|
2348
|
-
#
|
|
2349
|
-
# then deleted and no longer accessible.
|
|
2346
|
+
# You can view `ACCEPTED`, `DECLINED`, or `CANCELED` handshakes in API
|
|
2347
|
+
# Responses for 30 days before they are deleted.
|
|
2350
2348
|
#
|
|
2351
|
-
#
|
|
2349
|
+
# You can call this operation from any account in a organization.
|
|
2352
2350
|
#
|
|
2353
2351
|
# @option params [required, String] :handshake_id
|
|
2354
|
-
#
|
|
2355
|
-
# about. You can get the ID from the original call to
|
|
2356
|
-
# InviteAccountToOrganization, or from a call to
|
|
2357
|
-
# ListHandshakesForAccount or ListHandshakesForOrganization.
|
|
2352
|
+
# ID for the handshake that you want information about.
|
|
2358
2353
|
#
|
|
2359
2354
|
# The [regex pattern][1] for handshake ID string requires "h-"
|
|
2360
2355
|
# followed by from 8 to 32 lowercase letters or digits.
|
|
@@ -2436,10 +2431,10 @@ module Aws::Organizations
|
|
|
2436
2431
|
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
2437
2432
|
# resp.handshake.requested_timestamp #=> Time
|
|
2438
2433
|
# resp.handshake.expiration_timestamp #=> Time
|
|
2439
|
-
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
2434
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
2440
2435
|
# resp.handshake.resources #=> Array
|
|
2441
2436
|
# resp.handshake.resources[0].value #=> String
|
|
2442
|
-
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE"
|
|
2437
|
+
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE", "RESPONSIBILITY_TRANSFER", "TRANSFER_START_TIMESTAMP", "TRANSFER_TYPE", "MANAGEMENT_ACCOUNT", "MANAGEMENT_EMAIL", "MANAGEMENT_NAME"
|
|
2443
2438
|
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
2444
2439
|
#
|
|
2445
2440
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeHandshake AWS API Documentation
|
|
@@ -2454,7 +2449,7 @@ module Aws::Organizations
|
|
|
2454
2449
|
# Retrieves information about the organization that the user's account
|
|
2455
2450
|
# belongs to.
|
|
2456
2451
|
#
|
|
2457
|
-
#
|
|
2452
|
+
# You can call this operation from any account in a organization.
|
|
2458
2453
|
#
|
|
2459
2454
|
# <note markdown="1"> Even if a policy type is shown as available in the organization, you
|
|
2460
2455
|
# can disable it separately at the root level with DisablePolicyType.
|
|
@@ -2500,7 +2495,7 @@ module Aws::Organizations
|
|
|
2500
2495
|
# resp.organization.master_account_id #=> String
|
|
2501
2496
|
# resp.organization.master_account_email #=> String
|
|
2502
2497
|
# resp.organization.available_policy_types #=> Array
|
|
2503
|
-
# resp.organization.available_policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
2498
|
+
# resp.organization.available_policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
2504
2499
|
# resp.organization.available_policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
|
2505
2500
|
#
|
|
2506
2501
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeOrganization AWS API Documentation
|
|
@@ -2514,13 +2509,12 @@ module Aws::Organizations
|
|
|
2514
2509
|
|
|
2515
2510
|
# Retrieves information about an organizational unit (OU).
|
|
2516
2511
|
#
|
|
2517
|
-
#
|
|
2518
|
-
#
|
|
2512
|
+
# You can only call this operation from the management account or a
|
|
2513
|
+
# member account that is a delegated administrator.
|
|
2519
2514
|
#
|
|
2520
2515
|
# @option params [required, String] :organizational_unit_id
|
|
2521
|
-
#
|
|
2522
|
-
#
|
|
2523
|
-
# ListOrganizationalUnitsForParent operation.
|
|
2516
|
+
# ID for the organizational unit that you want details about. You can
|
|
2517
|
+
# get the ID from the ListOrganizationalUnitsForParent operation.
|
|
2524
2518
|
#
|
|
2525
2519
|
# The [regex pattern][1] for an organizational unit ID string requires
|
|
2526
2520
|
# "ou-" followed by from 4 to 32 lowercase letters or digits (the ID
|
|
@@ -2576,13 +2570,12 @@ module Aws::Organizations
|
|
|
2576
2570
|
|
|
2577
2571
|
# Retrieves information about a policy.
|
|
2578
2572
|
#
|
|
2579
|
-
#
|
|
2580
|
-
#
|
|
2573
|
+
# You can only call this operation from the management account or a
|
|
2574
|
+
# member account that is a delegated administrator.
|
|
2581
2575
|
#
|
|
2582
2576
|
# @option params [required, String] :policy_id
|
|
2583
|
-
#
|
|
2584
|
-
#
|
|
2585
|
-
# operations.
|
|
2577
|
+
# ID for the policy that you want details about. You can get the ID from
|
|
2578
|
+
# the ListPolicies or ListPoliciesForTarget operations.
|
|
2586
2579
|
#
|
|
2587
2580
|
# The [regex pattern][1] for a policy ID string requires "p-" followed
|
|
2588
2581
|
# by from 8 to 128 lowercase or uppercase letters, digits, or the
|
|
@@ -2632,7 +2625,7 @@ module Aws::Organizations
|
|
|
2632
2625
|
# resp.policy.policy_summary.arn #=> String
|
|
2633
2626
|
# resp.policy.policy_summary.name #=> String
|
|
2634
2627
|
# resp.policy.policy_summary.description #=> String
|
|
2635
|
-
# resp.policy.policy_summary.type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
2628
|
+
# resp.policy.policy_summary.type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
2636
2629
|
# resp.policy.policy_summary.aws_managed #=> Boolean
|
|
2637
2630
|
# resp.policy.content #=> String
|
|
2638
2631
|
#
|
|
@@ -2647,8 +2640,8 @@ module Aws::Organizations
|
|
|
2647
2640
|
|
|
2648
2641
|
# Retrieves information about a resource policy.
|
|
2649
2642
|
#
|
|
2650
|
-
#
|
|
2651
|
-
#
|
|
2643
|
+
# You can only call this operation from the management account or a
|
|
2644
|
+
# member account that is a delegated administrator.
|
|
2652
2645
|
#
|
|
2653
2646
|
# @return [Types::DescribeResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2654
2647
|
#
|
|
@@ -2669,6 +2662,77 @@ module Aws::Organizations
|
|
|
2669
2662
|
req.send_request(options)
|
|
2670
2663
|
end
|
|
2671
2664
|
|
|
2665
|
+
# Returns details for a transfer. A *transfer* is an arrangement between
|
|
2666
|
+
# two management accounts where one account designates the other with
|
|
2667
|
+
# specified responsibilities for their organization.
|
|
2668
|
+
#
|
|
2669
|
+
# @option params [required, String] :id
|
|
2670
|
+
# ID for the transfer.
|
|
2671
|
+
#
|
|
2672
|
+
# @return [Types::DescribeResponsibilityTransferResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2673
|
+
#
|
|
2674
|
+
# * {Types::DescribeResponsibilityTransferResponse#responsibility_transfer #responsibility_transfer} => Types::ResponsibilityTransfer
|
|
2675
|
+
#
|
|
2676
|
+
#
|
|
2677
|
+
# @example Example: To get information about a transfer
|
|
2678
|
+
#
|
|
2679
|
+
# # The following example shows how to request information about a transfer:/n/n
|
|
2680
|
+
#
|
|
2681
|
+
# resp = client.describe_responsibility_transfer({
|
|
2682
|
+
# id: "rt-exampletransferid222",
|
|
2683
|
+
# })
|
|
2684
|
+
#
|
|
2685
|
+
# resp.to_h outputs the following:
|
|
2686
|
+
# {
|
|
2687
|
+
# responsibility_transfer: {
|
|
2688
|
+
# arn: "arn:aws:organizations::222222222222:transfer/o-exampleorgid222/billing/outbound/rt-exampletransferid222",
|
|
2689
|
+
# end_timestamp: Time.parse("2026-01-31T23:59:59+00:00"),
|
|
2690
|
+
# id: "rt-exampletransferid222",
|
|
2691
|
+
# name: "sample transfer",
|
|
2692
|
+
# source: {
|
|
2693
|
+
# management_account_email: "alice@example.com",
|
|
2694
|
+
# management_account_id: "222222222222",
|
|
2695
|
+
# },
|
|
2696
|
+
# start_timestamp: Time.parse("2026-01-01T00:00:00+00:00"),
|
|
2697
|
+
# status: "WITHDRAWN",
|
|
2698
|
+
# target: {
|
|
2699
|
+
# management_account_email: "juan@example.com",
|
|
2700
|
+
# management_account_id: "333333333333",
|
|
2701
|
+
# },
|
|
2702
|
+
# type: "BILLING",
|
|
2703
|
+
# },
|
|
2704
|
+
# }
|
|
2705
|
+
#
|
|
2706
|
+
# @example Request syntax with placeholder values
|
|
2707
|
+
#
|
|
2708
|
+
# resp = client.describe_responsibility_transfer({
|
|
2709
|
+
# id: "ResponsibilityTransferId", # required
|
|
2710
|
+
# })
|
|
2711
|
+
#
|
|
2712
|
+
# @example Response structure
|
|
2713
|
+
#
|
|
2714
|
+
# resp.responsibility_transfer.arn #=> String
|
|
2715
|
+
# resp.responsibility_transfer.name #=> String
|
|
2716
|
+
# resp.responsibility_transfer.id #=> String
|
|
2717
|
+
# resp.responsibility_transfer.type #=> String, one of "BILLING"
|
|
2718
|
+
# resp.responsibility_transfer.status #=> String, one of "REQUESTED", "DECLINED", "CANCELED", "EXPIRED", "ACCEPTED", "WITHDRAWN"
|
|
2719
|
+
# resp.responsibility_transfer.source.management_account_id #=> String
|
|
2720
|
+
# resp.responsibility_transfer.source.management_account_email #=> String
|
|
2721
|
+
# resp.responsibility_transfer.target.management_account_id #=> String
|
|
2722
|
+
# resp.responsibility_transfer.target.management_account_email #=> String
|
|
2723
|
+
# resp.responsibility_transfer.start_timestamp #=> Time
|
|
2724
|
+
# resp.responsibility_transfer.end_timestamp #=> Time
|
|
2725
|
+
# resp.responsibility_transfer.active_handshake_id #=> String
|
|
2726
|
+
#
|
|
2727
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeResponsibilityTransfer AWS API Documentation
|
|
2728
|
+
#
|
|
2729
|
+
# @overload describe_responsibility_transfer(params = {})
|
|
2730
|
+
# @param [Hash] params ({})
|
|
2731
|
+
def describe_responsibility_transfer(params = {}, options = {})
|
|
2732
|
+
req = build_request(:describe_responsibility_transfer, params)
|
|
2733
|
+
req.send_request(options)
|
|
2734
|
+
end
|
|
2735
|
+
|
|
2672
2736
|
# Detaches a policy from a target root, organizational unit (OU), or
|
|
2673
2737
|
# account.
|
|
2674
2738
|
#
|
|
@@ -2687,8 +2751,8 @@ module Aws::Organizations
|
|
|
2687
2751
|
# attached SCP), you're using the authorization strategy of a "[deny
|
|
2688
2752
|
# list][2]".
|
|
2689
2753
|
#
|
|
2690
|
-
#
|
|
2691
|
-
#
|
|
2754
|
+
# You can only call this operation from the management account or a
|
|
2755
|
+
# member account that is a delegated administrator.
|
|
2692
2756
|
#
|
|
2693
2757
|
#
|
|
2694
2758
|
#
|
|
@@ -2696,8 +2760,8 @@ module Aws::Organizations
|
|
|
2696
2760
|
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/SCP_strategies.html#orgs_policies_denylist
|
|
2697
2761
|
#
|
|
2698
2762
|
# @option params [required, String] :policy_id
|
|
2699
|
-
#
|
|
2700
|
-
#
|
|
2763
|
+
# ID for the policy you want to detach. You can get the ID from the
|
|
2764
|
+
# ListPolicies or ListPoliciesForTarget operations.
|
|
2701
2765
|
#
|
|
2702
2766
|
# The [regex pattern][1] for a policy ID string requires "p-" followed
|
|
2703
2767
|
# by from 8 to 128 lowercase or uppercase letters, digits, or the
|
|
@@ -2708,8 +2772,8 @@ module Aws::Organizations
|
|
|
2708
2772
|
# [1]: http://wikipedia.org/wiki/regex
|
|
2709
2773
|
#
|
|
2710
2774
|
# @option params [required, String] :target_id
|
|
2711
|
-
#
|
|
2712
|
-
#
|
|
2775
|
+
# ID for the root, OU, or account that you want to detach the policy
|
|
2776
|
+
# from. You can get the ID from the ListRoots,
|
|
2713
2777
|
# ListOrganizationalUnitsForParent, or ListAccounts operations.
|
|
2714
2778
|
#
|
|
2715
2779
|
# The [regex pattern][1] for a target ID string requires one of the
|
|
@@ -2817,8 +2881,7 @@ module Aws::Organizations
|
|
|
2817
2881
|
# Organizations, see [Using Organizations with other Amazon Web Services
|
|
2818
2882
|
# services][3] in the *Organizations User Guide*.
|
|
2819
2883
|
#
|
|
2820
|
-
#
|
|
2821
|
-
# account.
|
|
2884
|
+
# You can only call this operation from the management account.
|
|
2822
2885
|
#
|
|
2823
2886
|
#
|
|
2824
2887
|
#
|
|
@@ -2863,8 +2926,8 @@ module Aws::Organizations
|
|
|
2863
2926
|
# use ListRoots to see the status of policy types for a specified root,
|
|
2864
2927
|
# and then use this operation.
|
|
2865
2928
|
#
|
|
2866
|
-
#
|
|
2867
|
-
#
|
|
2929
|
+
# You can only call this operation from the management account or a
|
|
2930
|
+
# member account that is a delegated administrator.
|
|
2868
2931
|
#
|
|
2869
2932
|
# To view the status of available policy types in the organization, use
|
|
2870
2933
|
# ListRoots.
|
|
@@ -2874,8 +2937,8 @@ module Aws::Organizations
|
|
|
2874
2937
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
|
2875
2938
|
#
|
|
2876
2939
|
# @option params [required, String] :root_id
|
|
2877
|
-
#
|
|
2878
|
-
#
|
|
2940
|
+
# ID for the root in which you want to disable a policy type. You can
|
|
2941
|
+
# get the ID from the ListRoots operation.
|
|
2879
2942
|
#
|
|
2880
2943
|
# The [regex pattern][1] for a root ID string requires "r-" followed
|
|
2881
2944
|
# by from 4 to 32 lowercase letters or digits.
|
|
@@ -2904,6 +2967,10 @@ module Aws::Organizations
|
|
|
2904
2967
|
#
|
|
2905
2968
|
# * [SECURITYHUB\_POLICY][8]
|
|
2906
2969
|
#
|
|
2970
|
+
# * [UPGRADE\_ROLLOUT\_POLICY][9]
|
|
2971
|
+
#
|
|
2972
|
+
# * [INSPECTOR\_POLICY][10]
|
|
2973
|
+
#
|
|
2907
2974
|
#
|
|
2908
2975
|
#
|
|
2909
2976
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
|
@@ -2914,6 +2981,8 @@ module Aws::Organizations
|
|
|
2914
2981
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
2915
2982
|
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
2916
2983
|
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
2984
|
+
# [9]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_upgrade_rollout.html
|
|
2985
|
+
# [10]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
2917
2986
|
#
|
|
2918
2987
|
# @return [Types::DisablePolicyTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2919
2988
|
#
|
|
@@ -2945,7 +3014,7 @@ module Aws::Organizations
|
|
|
2945
3014
|
#
|
|
2946
3015
|
# resp = client.disable_policy_type({
|
|
2947
3016
|
# root_id: "RootId", # required
|
|
2948
|
-
# policy_type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, RESOURCE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY
|
|
3017
|
+
# policy_type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, RESOURCE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY, INSPECTOR_POLICY, UPGRADE_ROLLOUT_POLICY
|
|
2949
3018
|
# })
|
|
2950
3019
|
#
|
|
2951
3020
|
# @example Response structure
|
|
@@ -2954,7 +3023,7 @@ module Aws::Organizations
|
|
|
2954
3023
|
# resp.root.arn #=> String
|
|
2955
3024
|
# resp.root.name #=> String
|
|
2956
3025
|
# resp.root.policy_types #=> Array
|
|
2957
|
-
# resp.root.policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
3026
|
+
# resp.root.policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
2958
3027
|
# resp.root.policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
|
2959
3028
|
#
|
|
2960
3029
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DisablePolicyType AWS API Documentation
|
|
@@ -2987,8 +3056,7 @@ module Aws::Organizations
|
|
|
2987
3056
|
# Organizations, see [Using Organizations with other Amazon Web Services
|
|
2988
3057
|
# services][2] in the *Organizations User Guide*.
|
|
2989
3058
|
#
|
|
2990
|
-
#
|
|
2991
|
-
# account.
|
|
3059
|
+
# You can only call this operation from the management account.
|
|
2992
3060
|
#
|
|
2993
3061
|
#
|
|
2994
3062
|
#
|
|
@@ -3049,8 +3117,7 @@ module Aws::Organizations
|
|
|
3049
3117
|
# prevent accounts from leaving the organization. Ensure that your
|
|
3050
3118
|
# account administrators are aware of this.
|
|
3051
3119
|
#
|
|
3052
|
-
#
|
|
3053
|
-
# account.
|
|
3120
|
+
# You can only call this operation from the management account.
|
|
3054
3121
|
#
|
|
3055
3122
|
#
|
|
3056
3123
|
#
|
|
@@ -3106,10 +3173,10 @@ module Aws::Organizations
|
|
|
3106
3173
|
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
3107
3174
|
# resp.handshake.requested_timestamp #=> Time
|
|
3108
3175
|
# resp.handshake.expiration_timestamp #=> Time
|
|
3109
|
-
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
3176
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
3110
3177
|
# resp.handshake.resources #=> Array
|
|
3111
3178
|
# resp.handshake.resources[0].value #=> String
|
|
3112
|
-
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE"
|
|
3179
|
+
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE", "RESPONSIBILITY_TRANSFER", "TRANSFER_START_TIMESTAMP", "TRANSFER_TYPE", "MANAGEMENT_ACCOUNT", "MANAGEMENT_EMAIL", "MANAGEMENT_NAME"
|
|
3113
3180
|
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
3114
3181
|
#
|
|
3115
3182
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnableAllFeatures AWS API Documentation
|
|
@@ -3131,16 +3198,16 @@ module Aws::Organizations
|
|
|
3131
3198
|
# ListRoots to see the status of policy types for a specified root, and
|
|
3132
3199
|
# then use this operation.
|
|
3133
3200
|
#
|
|
3134
|
-
#
|
|
3135
|
-
#
|
|
3201
|
+
# You can only call this operation from the management account or a
|
|
3202
|
+
# member account that is a delegated administrator.
|
|
3136
3203
|
#
|
|
3137
3204
|
# You can enable a policy type in a root only if that policy type is
|
|
3138
3205
|
# available in the organization. To view the status of available policy
|
|
3139
3206
|
# types in the organization, use ListRoots.
|
|
3140
3207
|
#
|
|
3141
3208
|
# @option params [required, String] :root_id
|
|
3142
|
-
#
|
|
3143
|
-
#
|
|
3209
|
+
# ID for the root in which you want to enable a policy type. You can get
|
|
3210
|
+
# the ID from the ListRoots operation.
|
|
3144
3211
|
#
|
|
3145
3212
|
# The [regex pattern][1] for a root ID string requires "r-" followed
|
|
3146
3213
|
# by from 4 to 32 lowercase letters or digits.
|
|
@@ -3169,6 +3236,10 @@ module Aws::Organizations
|
|
|
3169
3236
|
#
|
|
3170
3237
|
# * [SECURITYHUB\_POLICY][8]
|
|
3171
3238
|
#
|
|
3239
|
+
# * [UPGRADE\_ROLLOUT\_POLICY][9]
|
|
3240
|
+
#
|
|
3241
|
+
# * [INSPECTOR\_POLICY][10]
|
|
3242
|
+
#
|
|
3172
3243
|
#
|
|
3173
3244
|
#
|
|
3174
3245
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
|
@@ -3179,6 +3250,8 @@ module Aws::Organizations
|
|
|
3179
3250
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
3180
3251
|
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
3181
3252
|
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
3253
|
+
# [9]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_upgrade_rollout.html
|
|
3254
|
+
# [10]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
3182
3255
|
#
|
|
3183
3256
|
# @return [Types::EnablePolicyTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3184
3257
|
#
|
|
@@ -3214,7 +3287,7 @@ module Aws::Organizations
|
|
|
3214
3287
|
#
|
|
3215
3288
|
# resp = client.enable_policy_type({
|
|
3216
3289
|
# root_id: "RootId", # required
|
|
3217
|
-
# policy_type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, RESOURCE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY
|
|
3290
|
+
# policy_type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, RESOURCE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY, INSPECTOR_POLICY, UPGRADE_ROLLOUT_POLICY
|
|
3218
3291
|
# })
|
|
3219
3292
|
#
|
|
3220
3293
|
# @example Response structure
|
|
@@ -3223,7 +3296,7 @@ module Aws::Organizations
|
|
|
3223
3296
|
# resp.root.arn #=> String
|
|
3224
3297
|
# resp.root.name #=> String
|
|
3225
3298
|
# resp.root.policy_types #=> Array
|
|
3226
|
-
# resp.root.policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
3299
|
+
# resp.root.policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
3227
3300
|
# resp.root.policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
|
3228
3301
|
#
|
|
3229
3302
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnablePolicyType AWS API Documentation
|
|
@@ -3250,8 +3323,7 @@ module Aws::Organizations
|
|
|
3250
3323
|
# If the request includes tags, then the requester must have the
|
|
3251
3324
|
# `organizations:TagResource` permission.
|
|
3252
3325
|
#
|
|
3253
|
-
#
|
|
3254
|
-
# account.
|
|
3326
|
+
# You can only call this operation from the management account.
|
|
3255
3327
|
#
|
|
3256
3328
|
#
|
|
3257
3329
|
#
|
|
@@ -3397,10 +3469,10 @@ module Aws::Organizations
|
|
|
3397
3469
|
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
3398
3470
|
# resp.handshake.requested_timestamp #=> Time
|
|
3399
3471
|
# resp.handshake.expiration_timestamp #=> Time
|
|
3400
|
-
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
3472
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
3401
3473
|
# resp.handshake.resources #=> Array
|
|
3402
3474
|
# resp.handshake.resources[0].value #=> String
|
|
3403
|
-
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE"
|
|
3475
|
+
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE", "RESPONSIBILITY_TRANSFER", "TRANSFER_START_TIMESTAMP", "TRANSFER_TYPE", "MANAGEMENT_ACCOUNT", "MANAGEMENT_EMAIL", "MANAGEMENT_NAME"
|
|
3404
3476
|
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
3405
3477
|
#
|
|
3406
3478
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/InviteAccountToOrganization AWS API Documentation
|
|
@@ -3412,13 +3484,188 @@ module Aws::Organizations
|
|
|
3412
3484
|
req.send_request(options)
|
|
3413
3485
|
end
|
|
3414
3486
|
|
|
3487
|
+
# Sends an invitation to another organization's management account to
|
|
3488
|
+
# designate your account with the specified responsibilities for their
|
|
3489
|
+
# organization. The invitation is implemented as a Handshake whose
|
|
3490
|
+
# details are in the response.
|
|
3491
|
+
#
|
|
3492
|
+
# You can only call this operation from the management account.
|
|
3493
|
+
#
|
|
3494
|
+
# @option params [required, String] :type
|
|
3495
|
+
# The type of responsibility you want to designate to your organization.
|
|
3496
|
+
# Currently, only `BILLING` is supported.
|
|
3497
|
+
#
|
|
3498
|
+
# @option params [required, Types::HandshakeParty] :target
|
|
3499
|
+
# A `HandshakeParty` object. Contains details for the account you want
|
|
3500
|
+
# to invite. Currently, only `ACCOUNT` and `EMAIL` are supported.
|
|
3501
|
+
#
|
|
3502
|
+
# @option params [String] :notes
|
|
3503
|
+
# Additional information that you want to include in the invitation.
|
|
3504
|
+
#
|
|
3505
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :start_timestamp
|
|
3506
|
+
# Timestamp when the recipient will begin managing the specified
|
|
3507
|
+
# responsibilities.
|
|
3508
|
+
#
|
|
3509
|
+
# @option params [required, String] :source_name
|
|
3510
|
+
# Name you want to assign to the transfer.
|
|
3511
|
+
#
|
|
3512
|
+
# @option params [Array<Types::Tag>] :tags
|
|
3513
|
+
# A list of tags that you want to attach to the transfer. For each tag
|
|
3514
|
+
# in the list, you must specify both a tag key and a value. You can set
|
|
3515
|
+
# the value to an empty string, but you can't set it to `null`. For
|
|
3516
|
+
# more information about tagging, see [Tagging Organizations
|
|
3517
|
+
# resources][1] in the Organizations User Guide.
|
|
3518
|
+
#
|
|
3519
|
+
# Any tags in the request are checked for compliance with any applicable
|
|
3520
|
+
# tag policies when the request is made. The request is rejected if the
|
|
3521
|
+
# tags in the request don't match the requirements of the policy at
|
|
3522
|
+
# that time. Tag policy compliance is <i> <b>not</b> </i> checked again
|
|
3523
|
+
# when the invitation is accepted and the tags are actually attached to
|
|
3524
|
+
# the transfer. That means that if the tag policy changes between the
|
|
3525
|
+
# invitation and the acceptance, then that tags could potentially be
|
|
3526
|
+
# non-compliant.
|
|
3527
|
+
#
|
|
3528
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the allowed
|
|
3529
|
+
# number of tags for a transfer, then the entire request fails and
|
|
3530
|
+
# invitations are not sent.
|
|
3531
|
+
#
|
|
3532
|
+
# </note>
|
|
3533
|
+
#
|
|
3534
|
+
#
|
|
3535
|
+
#
|
|
3536
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_tagging.html
|
|
3537
|
+
#
|
|
3538
|
+
# @return [Types::InviteOrganizationToTransferResponsibilityResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3539
|
+
#
|
|
3540
|
+
# * {Types::InviteOrganizationToTransferResponsibilityResponse#handshake #handshake} => Types::Handshake
|
|
3541
|
+
#
|
|
3542
|
+
#
|
|
3543
|
+
# @example Example: To invite an organization to transfer responsibility
|
|
3544
|
+
#
|
|
3545
|
+
# # The following example shows the management account owned by diego@example.com inviting the management account owned by
|
|
3546
|
+
# # juan@example.com to transfer responsibility.
|
|
3547
|
+
#
|
|
3548
|
+
# resp = client.invite_organization_to_transfer_responsibility({
|
|
3549
|
+
# notes: "transfer notes",
|
|
3550
|
+
# source_name: "transfer name",
|
|
3551
|
+
# start_timestamp: Time.parse("1767225600"),
|
|
3552
|
+
# target: {
|
|
3553
|
+
# id: "juan@example.com",
|
|
3554
|
+
# type: "EMAIL",
|
|
3555
|
+
# },
|
|
3556
|
+
# type: "BILLING",
|
|
3557
|
+
# })
|
|
3558
|
+
#
|
|
3559
|
+
# resp.to_h outputs the following:
|
|
3560
|
+
# {
|
|
3561
|
+
# handshake: {
|
|
3562
|
+
# action: "TRANSFER_RESPONSIBILITY",
|
|
3563
|
+
# arn: "arn:aws:organizations::111111111111:handshake/o-exampleorgid/transfer_responsibility/h-examplehandshakeid111",
|
|
3564
|
+
# expiration_timestamp: Time.parse("2025-12-31T00:00:00+00:00"),
|
|
3565
|
+
# id: "h-examplehandshakeid111",
|
|
3566
|
+
# parties: [
|
|
3567
|
+
# {
|
|
3568
|
+
# id: "o-exampleorgid",
|
|
3569
|
+
# type: "ORGANIZATION",
|
|
3570
|
+
# },
|
|
3571
|
+
# {
|
|
3572
|
+
# id: "juan@example.com",
|
|
3573
|
+
# type: "EMAIL",
|
|
3574
|
+
# },
|
|
3575
|
+
# ],
|
|
3576
|
+
# requested_timestamp: Time.parse("2025-10-21T04:27:19+00:00"),
|
|
3577
|
+
# resources: [
|
|
3578
|
+
# {
|
|
3579
|
+
# resources: [
|
|
3580
|
+
# {
|
|
3581
|
+
# type: "TRANSFER_START_TIMESTAMP",
|
|
3582
|
+
# value: "1767225600",
|
|
3583
|
+
# },
|
|
3584
|
+
# {
|
|
3585
|
+
# type: "TRANSFER_TYPE",
|
|
3586
|
+
# value: "BILLING",
|
|
3587
|
+
# },
|
|
3588
|
+
# ],
|
|
3589
|
+
# type: "RESPONSIBILITY_TRANSFER",
|
|
3590
|
+
# value: "rt-exampletransferid111",
|
|
3591
|
+
# },
|
|
3592
|
+
# {
|
|
3593
|
+
# resources: [
|
|
3594
|
+
# {
|
|
3595
|
+
# type: "MANAGEMENT_EMAIL",
|
|
3596
|
+
# value: "diego@example.com",
|
|
3597
|
+
# },
|
|
3598
|
+
# {
|
|
3599
|
+
# type: "MANAGEMENT_NAME",
|
|
3600
|
+
# value: "Org management account",
|
|
3601
|
+
# },
|
|
3602
|
+
# {
|
|
3603
|
+
# type: "MANAGEMENT_ACCOUNT",
|
|
3604
|
+
# value: "&ExampleAccountId3;",
|
|
3605
|
+
# },
|
|
3606
|
+
# ],
|
|
3607
|
+
# type: "ORGANIZATION",
|
|
3608
|
+
# value: "o-exampleorgid",
|
|
3609
|
+
# },
|
|
3610
|
+
# {
|
|
3611
|
+
# type: "EMAIL",
|
|
3612
|
+
# value: "juan@example.com",
|
|
3613
|
+
# },
|
|
3614
|
+
# ],
|
|
3615
|
+
# state: "REQUESTED",
|
|
3616
|
+
# },
|
|
3617
|
+
# }
|
|
3618
|
+
#
|
|
3619
|
+
# @example Request syntax with placeholder values
|
|
3620
|
+
#
|
|
3621
|
+
# resp = client.invite_organization_to_transfer_responsibility({
|
|
3622
|
+
# type: "BILLING", # required, accepts BILLING
|
|
3623
|
+
# target: { # required
|
|
3624
|
+
# id: "HandshakePartyId", # required
|
|
3625
|
+
# type: "ACCOUNT", # required, accepts ACCOUNT, ORGANIZATION, EMAIL
|
|
3626
|
+
# },
|
|
3627
|
+
# notes: "HandshakeNotes",
|
|
3628
|
+
# start_timestamp: Time.now, # required
|
|
3629
|
+
# source_name: "ResponsibilityTransferName", # required
|
|
3630
|
+
# tags: [
|
|
3631
|
+
# {
|
|
3632
|
+
# key: "TagKey", # required
|
|
3633
|
+
# value: "TagValue", # required
|
|
3634
|
+
# },
|
|
3635
|
+
# ],
|
|
3636
|
+
# })
|
|
3637
|
+
#
|
|
3638
|
+
# @example Response structure
|
|
3639
|
+
#
|
|
3640
|
+
# resp.handshake.id #=> String
|
|
3641
|
+
# resp.handshake.arn #=> String
|
|
3642
|
+
# resp.handshake.parties #=> Array
|
|
3643
|
+
# resp.handshake.parties[0].id #=> String
|
|
3644
|
+
# resp.handshake.parties[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "EMAIL"
|
|
3645
|
+
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
3646
|
+
# resp.handshake.requested_timestamp #=> Time
|
|
3647
|
+
# resp.handshake.expiration_timestamp #=> Time
|
|
3648
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
3649
|
+
# resp.handshake.resources #=> Array
|
|
3650
|
+
# resp.handshake.resources[0].value #=> String
|
|
3651
|
+
# resp.handshake.resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE", "RESPONSIBILITY_TRANSFER", "TRANSFER_START_TIMESTAMP", "TRANSFER_TYPE", "MANAGEMENT_ACCOUNT", "MANAGEMENT_EMAIL", "MANAGEMENT_NAME"
|
|
3652
|
+
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
3653
|
+
#
|
|
3654
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/InviteOrganizationToTransferResponsibility AWS API Documentation
|
|
3655
|
+
#
|
|
3656
|
+
# @overload invite_organization_to_transfer_responsibility(params = {})
|
|
3657
|
+
# @param [Hash] params ({})
|
|
3658
|
+
def invite_organization_to_transfer_responsibility(params = {}, options = {})
|
|
3659
|
+
req = build_request(:invite_organization_to_transfer_responsibility, params)
|
|
3660
|
+
req.send_request(options)
|
|
3661
|
+
end
|
|
3662
|
+
|
|
3415
3663
|
# Removes a member account from its parent organization. This version of
|
|
3416
3664
|
# the operation is performed by the account that wants to leave. To
|
|
3417
3665
|
# remove a member account as a user in the management account, use
|
|
3418
3666
|
# RemoveAccountFromOrganization instead.
|
|
3419
3667
|
#
|
|
3420
|
-
#
|
|
3421
|
-
# organization.
|
|
3668
|
+
# You can only call from operation from a member account.
|
|
3422
3669
|
#
|
|
3423
3670
|
# * The management account in an organization with all features enabled
|
|
3424
3671
|
# can set service control policies (SCPs) that can restrict what
|
|
@@ -3499,8 +3746,8 @@ module Aws::Organizations
|
|
|
3499
3746
|
# Organizations, see [Using Organizations with other Amazon Web Services
|
|
3500
3747
|
# services][1] in the *Organizations User Guide*.
|
|
3501
3748
|
#
|
|
3502
|
-
#
|
|
3503
|
-
#
|
|
3749
|
+
# You can only call this operation from the management account or a
|
|
3750
|
+
# member account that is a delegated administrator.
|
|
3504
3751
|
#
|
|
3505
3752
|
#
|
|
3506
3753
|
#
|
|
@@ -3514,16 +3761,9 @@ module Aws::Organizations
|
|
|
3514
3761
|
# the output should continue from.
|
|
3515
3762
|
#
|
|
3516
3763
|
# @option params [Integer] :max_results
|
|
3517
|
-
# The
|
|
3518
|
-
#
|
|
3519
|
-
#
|
|
3520
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
3521
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
3522
|
-
# request parameter in the next call to the operation to get the next
|
|
3523
|
-
# part of the results. Note that Organizations might return fewer
|
|
3524
|
-
# results than the maximum even when there are more results available.
|
|
3525
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
3526
|
-
# receive all of the results.
|
|
3764
|
+
# The maximum number of items to return in the response. If more results
|
|
3765
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
3766
|
+
# the response so that you can retrieve the remaining results.
|
|
3527
3767
|
#
|
|
3528
3768
|
# @return [Types::ListAWSServiceAccessForOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3529
3769
|
#
|
|
@@ -3559,16 +3799,17 @@ module Aws::Organizations
|
|
|
3559
3799
|
# accounts in a specified root or organizational unit (OU), use the
|
|
3560
3800
|
# ListAccountsForParent operation instead.
|
|
3561
3801
|
#
|
|
3562
|
-
# <note markdown="1">
|
|
3563
|
-
#
|
|
3564
|
-
# return an empty set of results even when
|
|
3565
|
-
# available.
|
|
3566
|
-
#
|
|
3802
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
3803
|
+
# parameter value, even if you receive an empty result set. These
|
|
3804
|
+
# operations can occasionally return an empty set of results even when
|
|
3805
|
+
# more results are available. Continue making requests until `NextToken`
|
|
3806
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
3807
|
+
# retrieved all available results.
|
|
3567
3808
|
#
|
|
3568
3809
|
# </note>
|
|
3569
3810
|
#
|
|
3570
|
-
#
|
|
3571
|
-
#
|
|
3811
|
+
# You can only call this operation from the management account or a
|
|
3812
|
+
# member account that is a delegated administrator.
|
|
3572
3813
|
#
|
|
3573
3814
|
# @option params [String] :next_token
|
|
3574
3815
|
# The parameter for receiving additional results if you receive a
|
|
@@ -3578,16 +3819,9 @@ module Aws::Organizations
|
|
|
3578
3819
|
# the output should continue from.
|
|
3579
3820
|
#
|
|
3580
3821
|
# @option params [Integer] :max_results
|
|
3581
|
-
# The
|
|
3582
|
-
#
|
|
3583
|
-
#
|
|
3584
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
3585
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
3586
|
-
# request parameter in the next call to the operation to get the next
|
|
3587
|
-
# part of the results. Note that Organizations might return fewer
|
|
3588
|
-
# results than the maximum even when there are more results available.
|
|
3589
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
3590
|
-
# receive all of the results.
|
|
3822
|
+
# The maximum number of items to return in the response. If more results
|
|
3823
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
3824
|
+
# the response so that you can retrieve the remaining results.
|
|
3591
3825
|
#
|
|
3592
3826
|
# @return [Types::ListAccountsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3593
3827
|
#
|
|
@@ -3682,16 +3916,17 @@ module Aws::Organizations
|
|
|
3682
3916
|
# and not in any child OUs. To get a list of all accounts in the
|
|
3683
3917
|
# organization, use the ListAccounts operation.
|
|
3684
3918
|
#
|
|
3685
|
-
# <note markdown="1">
|
|
3686
|
-
#
|
|
3687
|
-
# return an empty set of results even when
|
|
3688
|
-
# available.
|
|
3689
|
-
#
|
|
3919
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
3920
|
+
# parameter value, even if you receive an empty result set. These
|
|
3921
|
+
# operations can occasionally return an empty set of results even when
|
|
3922
|
+
# more results are available. Continue making requests until `NextToken`
|
|
3923
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
3924
|
+
# retrieved all available results.
|
|
3690
3925
|
#
|
|
3691
3926
|
# </note>
|
|
3692
3927
|
#
|
|
3693
|
-
#
|
|
3694
|
-
#
|
|
3928
|
+
# You can only call this operation from the management account or a
|
|
3929
|
+
# member account that is a delegated administrator.
|
|
3695
3930
|
#
|
|
3696
3931
|
# @option params [required, String] :parent_id
|
|
3697
3932
|
# The unique identifier (ID) for the parent root or organization unit
|
|
@@ -3705,16 +3940,9 @@ module Aws::Organizations
|
|
|
3705
3940
|
# the output should continue from.
|
|
3706
3941
|
#
|
|
3707
3942
|
# @option params [Integer] :max_results
|
|
3708
|
-
# The
|
|
3709
|
-
#
|
|
3710
|
-
#
|
|
3711
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
3712
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
3713
|
-
# request parameter in the next call to the operation to get the next
|
|
3714
|
-
# part of the results. Note that Organizations might return fewer
|
|
3715
|
-
# results than the maximum even when there are more results available.
|
|
3716
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
3717
|
-
# receive all of the results.
|
|
3943
|
+
# The maximum number of items to return in the response. If more results
|
|
3944
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
3945
|
+
# the response so that you can retrieve the remaining results.
|
|
3718
3946
|
#
|
|
3719
3947
|
# @return [Types::ListAccountsForParentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3720
3948
|
#
|
|
@@ -3792,8 +4020,8 @@ module Aws::Organizations
|
|
|
3792
4020
|
# being fully enforced on all the intended accounts within an
|
|
3793
4021
|
# organization.
|
|
3794
4022
|
#
|
|
3795
|
-
#
|
|
3796
|
-
#
|
|
4023
|
+
# You can only call this operation from the management account or a
|
|
4024
|
+
# member account that is a delegated administrator.
|
|
3797
4025
|
#
|
|
3798
4026
|
#
|
|
3799
4027
|
#
|
|
@@ -3815,6 +4043,10 @@ module Aws::Organizations
|
|
|
3815
4043
|
#
|
|
3816
4044
|
# * [SECURITYHUB\_POLICY][6]
|
|
3817
4045
|
#
|
|
4046
|
+
# * [UPGRADE\_ROLLOUT\_POLICY][7]
|
|
4047
|
+
#
|
|
4048
|
+
# * [INSPECTOR\_POLICY][8]
|
|
4049
|
+
#
|
|
3818
4050
|
#
|
|
3819
4051
|
#
|
|
3820
4052
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html
|
|
@@ -3823,6 +4055,8 @@ module Aws::Organizations
|
|
|
3823
4055
|
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
3824
4056
|
# [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
3825
4057
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
4058
|
+
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_upgrade_rollout.html
|
|
4059
|
+
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
3826
4060
|
#
|
|
3827
4061
|
# @option params [String] :next_token
|
|
3828
4062
|
# The parameter for receiving additional results if you receive a
|
|
@@ -3832,16 +4066,9 @@ module Aws::Organizations
|
|
|
3832
4066
|
# the output should continue from.
|
|
3833
4067
|
#
|
|
3834
4068
|
# @option params [Integer] :max_results
|
|
3835
|
-
# The
|
|
3836
|
-
#
|
|
3837
|
-
#
|
|
3838
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
3839
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
3840
|
-
# request parameter in the next call to the operation to get the next
|
|
3841
|
-
# part of the results. Note that Organizations might return fewer
|
|
3842
|
-
# results than the maximum even when there are more results available.
|
|
3843
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
3844
|
-
# receive all of the results.
|
|
4069
|
+
# The maximum number of items to return in the response. If more results
|
|
4070
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4071
|
+
# the response so that you can retrieve the remaining results.
|
|
3845
4072
|
#
|
|
3846
4073
|
# @return [Types::ListAccountsWithInvalidEffectivePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3847
4074
|
#
|
|
@@ -3890,7 +4117,7 @@ module Aws::Organizations
|
|
|
3890
4117
|
# @example Request syntax with placeholder values
|
|
3891
4118
|
#
|
|
3892
4119
|
# resp = client.list_accounts_with_invalid_effective_policy({
|
|
3893
|
-
# policy_type: "TAG_POLICY", # required, accepts TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY
|
|
4120
|
+
# policy_type: "TAG_POLICY", # required, accepts TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY, INSPECTOR_POLICY, UPGRADE_ROLLOUT_POLICY
|
|
3894
4121
|
# next_token: "NextToken",
|
|
3895
4122
|
# max_results: 1,
|
|
3896
4123
|
# })
|
|
@@ -3906,7 +4133,7 @@ module Aws::Organizations
|
|
|
3906
4133
|
# resp.accounts[0].state #=> String, one of "PENDING_ACTIVATION", "ACTIVE", "SUSPENDED", "PENDING_CLOSURE", "CLOSED"
|
|
3907
4134
|
# resp.accounts[0].joined_method #=> String, one of "INVITED", "CREATED"
|
|
3908
4135
|
# resp.accounts[0].joined_timestamp #=> Time
|
|
3909
|
-
# resp.policy_type #=> String, one of "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
4136
|
+
# resp.policy_type #=> String, one of "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
3910
4137
|
# resp.next_token #=> String
|
|
3911
4138
|
#
|
|
3912
4139
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccountsWithInvalidEffectivePolicy AWS API Documentation
|
|
@@ -3923,16 +4150,17 @@ module Aws::Organizations
|
|
|
3923
4150
|
# with ListParents enables you to traverse the tree structure that makes
|
|
3924
4151
|
# up this root.
|
|
3925
4152
|
#
|
|
3926
|
-
# <note markdown="1">
|
|
3927
|
-
#
|
|
3928
|
-
# return an empty set of results even when
|
|
3929
|
-
# available.
|
|
3930
|
-
#
|
|
4153
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
4154
|
+
# parameter value, even if you receive an empty result set. These
|
|
4155
|
+
# operations can occasionally return an empty set of results even when
|
|
4156
|
+
# more results are available. Continue making requests until `NextToken`
|
|
4157
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
4158
|
+
# retrieved all available results.
|
|
3931
4159
|
#
|
|
3932
4160
|
# </note>
|
|
3933
4161
|
#
|
|
3934
|
-
#
|
|
3935
|
-
#
|
|
4162
|
+
# You can only call this operation from the management account or a
|
|
4163
|
+
# member account that is a delegated administrator.
|
|
3936
4164
|
#
|
|
3937
4165
|
# @option params [required, String] :parent_id
|
|
3938
4166
|
# The unique identifier (ID) for the parent root or OU whose children
|
|
@@ -3964,16 +4192,9 @@ module Aws::Organizations
|
|
|
3964
4192
|
# the output should continue from.
|
|
3965
4193
|
#
|
|
3966
4194
|
# @option params [Integer] :max_results
|
|
3967
|
-
# The
|
|
3968
|
-
#
|
|
3969
|
-
#
|
|
3970
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
3971
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
3972
|
-
# request parameter in the next call to the operation to get the next
|
|
3973
|
-
# part of the results. Note that Organizations might return fewer
|
|
3974
|
-
# results than the maximum even when there are more results available.
|
|
3975
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
3976
|
-
# receive all of the results.
|
|
4195
|
+
# The maximum number of items to return in the response. If more results
|
|
4196
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4197
|
+
# the response so that you can retrieve the remaining results.
|
|
3977
4198
|
#
|
|
3978
4199
|
# @return [Types::ListChildrenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3979
4200
|
#
|
|
@@ -4034,16 +4255,17 @@ module Aws::Organizations
|
|
|
4034
4255
|
# Lists the account creation requests that match the specified status
|
|
4035
4256
|
# that is currently being tracked for the organization.
|
|
4036
4257
|
#
|
|
4037
|
-
# <note markdown="1">
|
|
4038
|
-
#
|
|
4039
|
-
# return an empty set of results even when
|
|
4040
|
-
# available.
|
|
4041
|
-
#
|
|
4258
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
4259
|
+
# parameter value, even if you receive an empty result set. These
|
|
4260
|
+
# operations can occasionally return an empty set of results even when
|
|
4261
|
+
# more results are available. Continue making requests until `NextToken`
|
|
4262
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
4263
|
+
# retrieved all available results.
|
|
4042
4264
|
#
|
|
4043
4265
|
# </note>
|
|
4044
4266
|
#
|
|
4045
|
-
#
|
|
4046
|
-
#
|
|
4267
|
+
# You can only call this operation from the management account or a
|
|
4268
|
+
# member account that is a delegated administrator.
|
|
4047
4269
|
#
|
|
4048
4270
|
# @option params [Array<String>] :states
|
|
4049
4271
|
# A list of one or more states that you want included in the response.
|
|
@@ -4058,16 +4280,9 @@ module Aws::Organizations
|
|
|
4058
4280
|
# the output should continue from.
|
|
4059
4281
|
#
|
|
4060
4282
|
# @option params [Integer] :max_results
|
|
4061
|
-
# The
|
|
4062
|
-
#
|
|
4063
|
-
#
|
|
4064
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
4065
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
4066
|
-
# request parameter in the next call to the operation to get the next
|
|
4067
|
-
# part of the results. Note that Organizations might return fewer
|
|
4068
|
-
# results than the maximum even when there are more results available.
|
|
4069
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
4070
|
-
# receive all of the results.
|
|
4283
|
+
# The maximum number of items to return in the response. If more results
|
|
4284
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4285
|
+
# the response so that you can retrieve the remaining results.
|
|
4071
4286
|
#
|
|
4072
4287
|
# @return [Types::ListCreateAccountStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4073
4288
|
#
|
|
@@ -4158,8 +4373,8 @@ module Aws::Organizations
|
|
|
4158
4373
|
# Lists the Amazon Web Services accounts that are designated as
|
|
4159
4374
|
# delegated administrators in this organization.
|
|
4160
4375
|
#
|
|
4161
|
-
#
|
|
4162
|
-
#
|
|
4376
|
+
# You can only call this operation from the management account or a
|
|
4377
|
+
# member account that is a delegated administrator.
|
|
4163
4378
|
#
|
|
4164
4379
|
# @option params [String] :service_principal
|
|
4165
4380
|
# Specifies a service principal name. If specified, then the operation
|
|
@@ -4176,16 +4391,9 @@ module Aws::Organizations
|
|
|
4176
4391
|
# the output should continue from.
|
|
4177
4392
|
#
|
|
4178
4393
|
# @option params [Integer] :max_results
|
|
4179
|
-
# The
|
|
4180
|
-
#
|
|
4181
|
-
#
|
|
4182
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
4183
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
4184
|
-
# request parameter in the next call to the operation to get the next
|
|
4185
|
-
# part of the results. Note that Organizations might return fewer
|
|
4186
|
-
# results than the maximum even when there are more results available.
|
|
4187
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
4188
|
-
# receive all of the results.
|
|
4394
|
+
# The maximum number of items to return in the response. If more results
|
|
4395
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4396
|
+
# the response so that you can retrieve the remaining results.
|
|
4189
4397
|
#
|
|
4190
4398
|
# @return [Types::ListDelegatedAdministratorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4191
4399
|
#
|
|
@@ -4228,8 +4436,8 @@ module Aws::Organizations
|
|
|
4228
4436
|
# List the Amazon Web Services services for which the specified account
|
|
4229
4437
|
# is a delegated administrator.
|
|
4230
4438
|
#
|
|
4231
|
-
#
|
|
4232
|
-
#
|
|
4439
|
+
# You can only call this operation from the management account or a
|
|
4440
|
+
# member account that is a delegated administrator.
|
|
4233
4441
|
#
|
|
4234
4442
|
# @option params [required, String] :account_id
|
|
4235
4443
|
# The account ID number of a delegated administrator account in the
|
|
@@ -4243,16 +4451,9 @@ module Aws::Organizations
|
|
|
4243
4451
|
# the output should continue from.
|
|
4244
4452
|
#
|
|
4245
4453
|
# @option params [Integer] :max_results
|
|
4246
|
-
# The
|
|
4247
|
-
#
|
|
4248
|
-
#
|
|
4249
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
4250
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
4251
|
-
# request parameter in the next call to the operation to get the next
|
|
4252
|
-
# part of the results. Note that Organizations might return fewer
|
|
4253
|
-
# results than the maximum even when there are more results available.
|
|
4254
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
4255
|
-
# receive all of the results.
|
|
4454
|
+
# The maximum number of items to return in the response. If more results
|
|
4455
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4456
|
+
# the response so that you can retrieve the remaining results.
|
|
4256
4457
|
#
|
|
4257
4458
|
# @return [Types::ListDelegatedServicesForAccountResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4258
4459
|
#
|
|
@@ -4288,8 +4489,8 @@ module Aws::Organizations
|
|
|
4288
4489
|
# Lists all the validation errors on an [effective policy][1] for a
|
|
4289
4490
|
# specified account and policy type.
|
|
4290
4491
|
#
|
|
4291
|
-
#
|
|
4292
|
-
#
|
|
4492
|
+
# You can only call this operation from the management account or a
|
|
4493
|
+
# member account that is a delegated administrator.
|
|
4293
4494
|
#
|
|
4294
4495
|
#
|
|
4295
4496
|
#
|
|
@@ -4316,6 +4517,10 @@ module Aws::Organizations
|
|
|
4316
4517
|
#
|
|
4317
4518
|
# * [SECURITYHUB\_POLICY][6]
|
|
4318
4519
|
#
|
|
4520
|
+
# * [UPGRADE\_ROLLOUT\_POLICY][7]
|
|
4521
|
+
#
|
|
4522
|
+
# * [INSPECTOR\_POLICY][8]
|
|
4523
|
+
#
|
|
4319
4524
|
#
|
|
4320
4525
|
#
|
|
4321
4526
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html
|
|
@@ -4324,6 +4529,8 @@ module Aws::Organizations
|
|
|
4324
4529
|
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
4325
4530
|
# [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
4326
4531
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
4532
|
+
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_upgrade_rollout.html
|
|
4533
|
+
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
4327
4534
|
#
|
|
4328
4535
|
# @option params [String] :next_token
|
|
4329
4536
|
# The parameter for receiving additional results if you receive a
|
|
@@ -4333,16 +4540,9 @@ module Aws::Organizations
|
|
|
4333
4540
|
# the output should continue from.
|
|
4334
4541
|
#
|
|
4335
4542
|
# @option params [Integer] :max_results
|
|
4336
|
-
# The
|
|
4337
|
-
#
|
|
4338
|
-
#
|
|
4339
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
4340
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
4341
|
-
# request parameter in the next call to the operation to get the next
|
|
4342
|
-
# part of the results. Note that Organizations might return fewer
|
|
4343
|
-
# results than the maximum even when there are more results available.
|
|
4344
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
4345
|
-
# receive all of the results.
|
|
4543
|
+
# The maximum number of items to return in the response. If more results
|
|
4544
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4545
|
+
# the response so that you can retrieve the remaining results.
|
|
4346
4546
|
#
|
|
4347
4547
|
# @return [Types::ListEffectivePolicyValidationErrorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4348
4548
|
#
|
|
@@ -4397,7 +4597,7 @@ module Aws::Organizations
|
|
|
4397
4597
|
#
|
|
4398
4598
|
# resp = client.list_effective_policy_validation_errors({
|
|
4399
4599
|
# account_id: "AccountId", # required
|
|
4400
|
-
# policy_type: "TAG_POLICY", # required, accepts TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY
|
|
4600
|
+
# policy_type: "TAG_POLICY", # required, accepts TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY, INSPECTOR_POLICY, UPGRADE_ROLLOUT_POLICY
|
|
4401
4601
|
# next_token: "NextToken",
|
|
4402
4602
|
# max_results: 1,
|
|
4403
4603
|
# })
|
|
@@ -4405,7 +4605,7 @@ module Aws::Organizations
|
|
|
4405
4605
|
# @example Response structure
|
|
4406
4606
|
#
|
|
4407
4607
|
# resp.account_id #=> String
|
|
4408
|
-
# resp.policy_type #=> String, one of "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
4608
|
+
# resp.policy_type #=> String, one of "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
4409
4609
|
# resp.path #=> String
|
|
4410
4610
|
# resp.evaluation_timestamp #=> Time
|
|
4411
4611
|
# resp.next_token #=> String
|
|
@@ -4425,31 +4625,25 @@ module Aws::Organizations
|
|
|
4425
4625
|
req.send_request(options)
|
|
4426
4626
|
end
|
|
4427
4627
|
|
|
4428
|
-
# Lists the
|
|
4429
|
-
# the requesting user.
|
|
4628
|
+
# Lists the recent handshakes that you have received.
|
|
4430
4629
|
#
|
|
4431
|
-
#
|
|
4432
|
-
#
|
|
4433
|
-
# that state. After that, they're deleted and no longer accessible.
|
|
4630
|
+
# You can view `CANCELED`, `ACCEPTED`, `DECLINED`, or `EXPIRED`
|
|
4631
|
+
# handshakes in API responses for 30 days before they are deleted.
|
|
4434
4632
|
#
|
|
4435
|
-
#
|
|
4436
|
-
# when calling a `List*` operation. These operations can occasionally
|
|
4437
|
-
# return an empty set of results even when there are more results
|
|
4438
|
-
# available. The `NextToken` response parameter value is `null` *only*
|
|
4439
|
-
# when there are no more results to display.
|
|
4633
|
+
# You can call this operation from any account in a organization.
|
|
4440
4634
|
#
|
|
4441
|
-
#
|
|
4635
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
4636
|
+
# parameter value, even if you receive an empty result set. These
|
|
4637
|
+
# operations can occasionally return an empty set of results even when
|
|
4638
|
+
# more results are available. Continue making requests until `NextToken`
|
|
4639
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
4640
|
+
# retrieved all available results.
|
|
4442
4641
|
#
|
|
4443
|
-
#
|
|
4642
|
+
# </note>
|
|
4444
4643
|
#
|
|
4445
4644
|
# @option params [Types::HandshakeFilter] :filter
|
|
4446
|
-
#
|
|
4447
|
-
#
|
|
4448
|
-
# to only a specified type, such as `INVITE`, `ENABLE_ALL_FEATURES`, or
|
|
4449
|
-
# `APPROVE_ALL_FEATURES`. Alternatively, for the `ENABLE_ALL_FEATURES`
|
|
4450
|
-
# handshake that generates a separate child handshake for each member
|
|
4451
|
-
# account, you can specify `ParentHandshakeId` to see only the
|
|
4452
|
-
# handshakes that were generated by that parent request.
|
|
4645
|
+
# A `HandshakeFilter` object. Contains the filer used to select the
|
|
4646
|
+
# handshakes for an operation.
|
|
4453
4647
|
#
|
|
4454
4648
|
# @option params [String] :next_token
|
|
4455
4649
|
# The parameter for receiving additional results if you receive a
|
|
@@ -4459,16 +4653,9 @@ module Aws::Organizations
|
|
|
4459
4653
|
# the output should continue from.
|
|
4460
4654
|
#
|
|
4461
4655
|
# @option params [Integer] :max_results
|
|
4462
|
-
# The
|
|
4463
|
-
#
|
|
4464
|
-
#
|
|
4465
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
4466
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
4467
|
-
# request parameter in the next call to the operation to get the next
|
|
4468
|
-
# part of the results. Note that Organizations might return fewer
|
|
4469
|
-
# results than the maximum even when there are more results available.
|
|
4470
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
4471
|
-
# receive all of the results.
|
|
4656
|
+
# The maximum number of items to return in the response. If more results
|
|
4657
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4658
|
+
# the response so that you can retrieve the remaining results.
|
|
4472
4659
|
#
|
|
4473
4660
|
# @return [Types::ListHandshakesForAccountResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4474
4661
|
#
|
|
@@ -4538,7 +4725,7 @@ module Aws::Organizations
|
|
|
4538
4725
|
#
|
|
4539
4726
|
# resp = client.list_handshakes_for_account({
|
|
4540
4727
|
# filter: {
|
|
4541
|
-
# action_type: "INVITE", # accepts INVITE, ENABLE_ALL_FEATURES, APPROVE_ALL_FEATURES, ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE
|
|
4728
|
+
# action_type: "INVITE", # accepts INVITE, ENABLE_ALL_FEATURES, APPROVE_ALL_FEATURES, ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE, TRANSFER_RESPONSIBILITY
|
|
4542
4729
|
# parent_handshake_id: "HandshakeId",
|
|
4543
4730
|
# },
|
|
4544
4731
|
# next_token: "NextToken",
|
|
@@ -4556,10 +4743,10 @@ module Aws::Organizations
|
|
|
4556
4743
|
# resp.handshakes[0].state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
4557
4744
|
# resp.handshakes[0].requested_timestamp #=> Time
|
|
4558
4745
|
# resp.handshakes[0].expiration_timestamp #=> Time
|
|
4559
|
-
# resp.handshakes[0].action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
4746
|
+
# resp.handshakes[0].action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
4560
4747
|
# resp.handshakes[0].resources #=> Array
|
|
4561
4748
|
# resp.handshakes[0].resources[0].value #=> String
|
|
4562
|
-
# resp.handshakes[0].resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE"
|
|
4749
|
+
# resp.handshakes[0].resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE", "RESPONSIBILITY_TRANSFER", "TRANSFER_START_TIMESTAMP", "TRANSFER_TYPE", "MANAGEMENT_ACCOUNT", "MANAGEMENT_EMAIL", "MANAGEMENT_NAME"
|
|
4563
4750
|
# resp.handshakes[0].resources[0].resources #=> Types::HandshakeResources
|
|
4564
4751
|
# resp.next_token #=> String
|
|
4565
4752
|
#
|
|
@@ -4572,34 +4759,26 @@ module Aws::Organizations
|
|
|
4572
4759
|
req.send_request(options)
|
|
4573
4760
|
end
|
|
4574
4761
|
|
|
4575
|
-
# Lists the handshakes that
|
|
4576
|
-
# the requesting user is part of. The `ListHandshakesForOrganization`
|
|
4577
|
-
# operation returns a list of handshake structures. Each structure
|
|
4578
|
-
# contains details and status about a handshake.
|
|
4762
|
+
# Lists the recent handshakes that you have sent.
|
|
4579
4763
|
#
|
|
4580
|
-
#
|
|
4581
|
-
#
|
|
4582
|
-
# that state. After that, they're deleted and no longer accessible.
|
|
4764
|
+
# You can view `CANCELED`, `ACCEPTED`, `DECLINED`, or `EXPIRED`
|
|
4765
|
+
# handshakes in API responses for 30 days before they are deleted.
|
|
4583
4766
|
#
|
|
4584
|
-
#
|
|
4585
|
-
#
|
|
4586
|
-
# return an empty set of results even when there are more results
|
|
4587
|
-
# available. The `NextToken` response parameter value is `null` *only*
|
|
4588
|
-
# when there are no more results to display.
|
|
4767
|
+
# You can only call this operation from the management account or a
|
|
4768
|
+
# member account that is a delegated administrator.
|
|
4589
4769
|
#
|
|
4590
|
-
#
|
|
4770
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
4771
|
+
# parameter value, even if you receive an empty result set. These
|
|
4772
|
+
# operations can occasionally return an empty set of results even when
|
|
4773
|
+
# more results are available. Continue making requests until `NextToken`
|
|
4774
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
4775
|
+
# retrieved all available results.
|
|
4591
4776
|
#
|
|
4592
|
-
#
|
|
4593
|
-
# account or by a member account that is a delegated administrator.
|
|
4777
|
+
# </note>
|
|
4594
4778
|
#
|
|
4595
4779
|
# @option params [Types::HandshakeFilter] :filter
|
|
4596
|
-
# A
|
|
4597
|
-
#
|
|
4598
|
-
# to only a specified type, such as `INVITE`, `ENABLE-ALL-FEATURES`, or
|
|
4599
|
-
# `APPROVE-ALL-FEATURES`. Alternatively, for the `ENABLE-ALL-FEATURES`
|
|
4600
|
-
# handshake that generates a separate child handshake for each member
|
|
4601
|
-
# account, you can specify the `ParentHandshakeId` to see only the
|
|
4602
|
-
# handshakes that were generated by that parent request.
|
|
4780
|
+
# A `HandshakeFilter` object. Contains the filer used to select the
|
|
4781
|
+
# handshakes for an operation.
|
|
4603
4782
|
#
|
|
4604
4783
|
# @option params [String] :next_token
|
|
4605
4784
|
# The parameter for receiving additional results if you receive a
|
|
@@ -4609,16 +4788,9 @@ module Aws::Organizations
|
|
|
4609
4788
|
# the output should continue from.
|
|
4610
4789
|
#
|
|
4611
4790
|
# @option params [Integer] :max_results
|
|
4612
|
-
# The
|
|
4613
|
-
#
|
|
4614
|
-
#
|
|
4615
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
4616
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
4617
|
-
# request parameter in the next call to the operation to get the next
|
|
4618
|
-
# part of the results. Note that Organizations might return fewer
|
|
4619
|
-
# results than the maximum even when there are more results available.
|
|
4620
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
4621
|
-
# receive all of the results.
|
|
4791
|
+
# The maximum number of items to return in the response. If more results
|
|
4792
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4793
|
+
# the response so that you can retrieve the remaining results.
|
|
4622
4794
|
#
|
|
4623
4795
|
# @return [Types::ListHandshakesForOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4624
4796
|
#
|
|
@@ -4729,7 +4901,7 @@ module Aws::Organizations
|
|
|
4729
4901
|
#
|
|
4730
4902
|
# resp = client.list_handshakes_for_organization({
|
|
4731
4903
|
# filter: {
|
|
4732
|
-
# action_type: "INVITE", # accepts INVITE, ENABLE_ALL_FEATURES, APPROVE_ALL_FEATURES, ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE
|
|
4904
|
+
# action_type: "INVITE", # accepts INVITE, ENABLE_ALL_FEATURES, APPROVE_ALL_FEATURES, ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE, TRANSFER_RESPONSIBILITY
|
|
4733
4905
|
# parent_handshake_id: "HandshakeId",
|
|
4734
4906
|
# },
|
|
4735
4907
|
# next_token: "NextToken",
|
|
@@ -4747,10 +4919,10 @@ module Aws::Organizations
|
|
|
4747
4919
|
# resp.handshakes[0].state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
4748
4920
|
# resp.handshakes[0].requested_timestamp #=> Time
|
|
4749
4921
|
# resp.handshakes[0].expiration_timestamp #=> Time
|
|
4750
|
-
# resp.handshakes[0].action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
4922
|
+
# resp.handshakes[0].action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
4751
4923
|
# resp.handshakes[0].resources #=> Array
|
|
4752
4924
|
# resp.handshakes[0].resources[0].value #=> String
|
|
4753
|
-
# resp.handshakes[0].resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE"
|
|
4925
|
+
# resp.handshakes[0].resources[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "ORGANIZATION_FEATURE_SET", "EMAIL", "MASTER_EMAIL", "MASTER_NAME", "NOTES", "PARENT_HANDSHAKE", "RESPONSIBILITY_TRANSFER", "TRANSFER_START_TIMESTAMP", "TRANSFER_TYPE", "MANAGEMENT_ACCOUNT", "MANAGEMENT_EMAIL", "MANAGEMENT_NAME"
|
|
4754
4926
|
# resp.handshakes[0].resources[0].resources #=> Types::HandshakeResources
|
|
4755
4927
|
# resp.next_token #=> String
|
|
4756
4928
|
#
|
|
@@ -4763,23 +4935,125 @@ module Aws::Organizations
|
|
|
4763
4935
|
req.send_request(options)
|
|
4764
4936
|
end
|
|
4765
4937
|
|
|
4938
|
+
# Lists transfers that allow you to manage the specified
|
|
4939
|
+
# responsibilities for another organization. This operation returns both
|
|
4940
|
+
# transfer invitations and transfers.
|
|
4941
|
+
#
|
|
4942
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
4943
|
+
# parameter value, even if you receive an empty result set. These
|
|
4944
|
+
# operations can occasionally return an empty set of results even when
|
|
4945
|
+
# more results are available. Continue making requests until `NextToken`
|
|
4946
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
4947
|
+
# retrieved all available results.
|
|
4948
|
+
#
|
|
4949
|
+
# </note>
|
|
4950
|
+
#
|
|
4951
|
+
# @option params [required, String] :type
|
|
4952
|
+
# The type of responsibility. Currently, only `BILLING` is supported.
|
|
4953
|
+
#
|
|
4954
|
+
# @option params [String] :id
|
|
4955
|
+
# ID for the transfer.
|
|
4956
|
+
#
|
|
4957
|
+
# @option params [String] :next_token
|
|
4958
|
+
# The parameter for receiving additional results if you receive a
|
|
4959
|
+
# `NextToken` response in a previous request. A `NextToken` response
|
|
4960
|
+
# indicates that more output is available. Set this parameter to the
|
|
4961
|
+
# value of the previous call's `NextToken` response to indicate where
|
|
4962
|
+
# the output should continue from.
|
|
4963
|
+
#
|
|
4964
|
+
# @option params [Integer] :max_results
|
|
4965
|
+
# The maximum number of items to return in the response. If more results
|
|
4966
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4967
|
+
# the response so that you can retrieve the remaining results.
|
|
4968
|
+
#
|
|
4969
|
+
# @return [Types::ListInboundResponsibilityTransfersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4970
|
+
#
|
|
4971
|
+
# * {Types::ListInboundResponsibilityTransfersResponse#responsibility_transfers #responsibility_transfers} => Array<Types::ResponsibilityTransfer>
|
|
4972
|
+
# * {Types::ListInboundResponsibilityTransfersResponse#next_token #next_token} => String
|
|
4973
|
+
#
|
|
4974
|
+
#
|
|
4975
|
+
# @example Example: To get a list of all inbound responsibility transfers
|
|
4976
|
+
#
|
|
4977
|
+
# # The following example shows how to get a list of all inbound responsibility transfers that are associated with the
|
|
4978
|
+
# # account of the credentials that were used to call the operation:
|
|
4979
|
+
#
|
|
4980
|
+
# resp = client.list_inbound_responsibility_transfers({
|
|
4981
|
+
# type: "BILLING",
|
|
4982
|
+
# })
|
|
4983
|
+
#
|
|
4984
|
+
# resp.to_h outputs the following:
|
|
4985
|
+
# {
|
|
4986
|
+
# responsibility_transfers: [
|
|
4987
|
+
# {
|
|
4988
|
+
# arn: "arn:aws:organizations::222222222222:transfer/o-exampleorgid/billing/inbound/rt-exampletransferid222",
|
|
4989
|
+
# end_timestamp: Time.parse("2026-01-31T23:59:59+00:00"),
|
|
4990
|
+
# id: "rt-exampletransferid222",
|
|
4991
|
+
# name: "transfer name",
|
|
4992
|
+
# source: {
|
|
4993
|
+
# management_account_id: "222222222222",
|
|
4994
|
+
# },
|
|
4995
|
+
# start_timestamp: Time.parse("2026-01-01T00:00:00+00:00"),
|
|
4996
|
+
# status: "WITHDRAWN",
|
|
4997
|
+
# target: {
|
|
4998
|
+
# management_account_id: "333333333333",
|
|
4999
|
+
# },
|
|
5000
|
+
# type: "BILLING",
|
|
5001
|
+
# },
|
|
5002
|
+
# ],
|
|
5003
|
+
# }
|
|
5004
|
+
#
|
|
5005
|
+
# @example Request syntax with placeholder values
|
|
5006
|
+
#
|
|
5007
|
+
# resp = client.list_inbound_responsibility_transfers({
|
|
5008
|
+
# type: "BILLING", # required, accepts BILLING
|
|
5009
|
+
# id: "ResponsibilityTransferId",
|
|
5010
|
+
# next_token: "NextToken",
|
|
5011
|
+
# max_results: 1,
|
|
5012
|
+
# })
|
|
5013
|
+
#
|
|
5014
|
+
# @example Response structure
|
|
5015
|
+
#
|
|
5016
|
+
# resp.responsibility_transfers #=> Array
|
|
5017
|
+
# resp.responsibility_transfers[0].arn #=> String
|
|
5018
|
+
# resp.responsibility_transfers[0].name #=> String
|
|
5019
|
+
# resp.responsibility_transfers[0].id #=> String
|
|
5020
|
+
# resp.responsibility_transfers[0].type #=> String, one of "BILLING"
|
|
5021
|
+
# resp.responsibility_transfers[0].status #=> String, one of "REQUESTED", "DECLINED", "CANCELED", "EXPIRED", "ACCEPTED", "WITHDRAWN"
|
|
5022
|
+
# resp.responsibility_transfers[0].source.management_account_id #=> String
|
|
5023
|
+
# resp.responsibility_transfers[0].source.management_account_email #=> String
|
|
5024
|
+
# resp.responsibility_transfers[0].target.management_account_id #=> String
|
|
5025
|
+
# resp.responsibility_transfers[0].target.management_account_email #=> String
|
|
5026
|
+
# resp.responsibility_transfers[0].start_timestamp #=> Time
|
|
5027
|
+
# resp.responsibility_transfers[0].end_timestamp #=> Time
|
|
5028
|
+
# resp.responsibility_transfers[0].active_handshake_id #=> String
|
|
5029
|
+
# resp.next_token #=> String
|
|
5030
|
+
#
|
|
5031
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListInboundResponsibilityTransfers AWS API Documentation
|
|
5032
|
+
#
|
|
5033
|
+
# @overload list_inbound_responsibility_transfers(params = {})
|
|
5034
|
+
# @param [Hash] params ({})
|
|
5035
|
+
def list_inbound_responsibility_transfers(params = {}, options = {})
|
|
5036
|
+
req = build_request(:list_inbound_responsibility_transfers, params)
|
|
5037
|
+
req.send_request(options)
|
|
5038
|
+
end
|
|
5039
|
+
|
|
4766
5040
|
# Lists the organizational units (OUs) in a parent organizational unit
|
|
4767
5041
|
# or root.
|
|
4768
5042
|
#
|
|
4769
|
-
# <note markdown="1">
|
|
4770
|
-
#
|
|
4771
|
-
# return an empty set of results even when
|
|
4772
|
-
# available.
|
|
4773
|
-
#
|
|
5043
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5044
|
+
# parameter value, even if you receive an empty result set. These
|
|
5045
|
+
# operations can occasionally return an empty set of results even when
|
|
5046
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5047
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5048
|
+
# retrieved all available results.
|
|
4774
5049
|
#
|
|
4775
5050
|
# </note>
|
|
4776
5051
|
#
|
|
4777
|
-
#
|
|
4778
|
-
#
|
|
5052
|
+
# You can only call this operation from the management account or a
|
|
5053
|
+
# member account that is a delegated administrator.
|
|
4779
5054
|
#
|
|
4780
5055
|
# @option params [required, String] :parent_id
|
|
4781
|
-
#
|
|
4782
|
-
# to list.
|
|
5056
|
+
# ID for the root or OU whose child OUs you want to list.
|
|
4783
5057
|
#
|
|
4784
5058
|
# The [regex pattern][1] for a parent ID string requires one of the
|
|
4785
5059
|
# following:
|
|
@@ -4804,16 +5078,9 @@ module Aws::Organizations
|
|
|
4804
5078
|
# the output should continue from.
|
|
4805
5079
|
#
|
|
4806
5080
|
# @option params [Integer] :max_results
|
|
4807
|
-
# The
|
|
4808
|
-
#
|
|
4809
|
-
#
|
|
4810
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
4811
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
4812
|
-
# request parameter in the next call to the operation to get the next
|
|
4813
|
-
# part of the results. Note that Organizations might return fewer
|
|
4814
|
-
# results than the maximum even when there are more results available.
|
|
4815
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
4816
|
-
# receive all of the results.
|
|
5081
|
+
# The maximum number of items to return in the response. If more results
|
|
5082
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5083
|
+
# the response so that you can retrieve the remaining results.
|
|
4817
5084
|
#
|
|
4818
5085
|
# @return [Types::ListOrganizationalUnitsForParentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4819
5086
|
#
|
|
@@ -4872,29 +5139,128 @@ module Aws::Organizations
|
|
|
4872
5139
|
req.send_request(options)
|
|
4873
5140
|
end
|
|
4874
5141
|
|
|
5142
|
+
# Lists transfers that allow an account outside your organization to
|
|
5143
|
+
# manage the specified responsibilities for your organization. This
|
|
5144
|
+
# operation returns both transfer invitations and transfers.
|
|
5145
|
+
#
|
|
5146
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5147
|
+
# parameter value, even if you receive an empty result set. These
|
|
5148
|
+
# operations can occasionally return an empty set of results even when
|
|
5149
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5150
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5151
|
+
# retrieved all available results.
|
|
5152
|
+
#
|
|
5153
|
+
# </note>
|
|
5154
|
+
#
|
|
5155
|
+
# @option params [required, String] :type
|
|
5156
|
+
# The type of responsibility. Currently, only `BILLING` is supported.
|
|
5157
|
+
#
|
|
5158
|
+
# @option params [String] :next_token
|
|
5159
|
+
# The parameter for receiving additional results if you receive a
|
|
5160
|
+
# `NextToken` response in a previous request. A `NextToken` response
|
|
5161
|
+
# indicates that more output is available. Set this parameter to the
|
|
5162
|
+
# value of the previous call's `NextToken` response to indicate where
|
|
5163
|
+
# the output should continue from.
|
|
5164
|
+
#
|
|
5165
|
+
# @option params [Integer] :max_results
|
|
5166
|
+
# The maximum number of items to return in the response. If more results
|
|
5167
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5168
|
+
# the response so that you can retrieve the remaining results.
|
|
5169
|
+
#
|
|
5170
|
+
# @return [Types::ListOutboundResponsibilityTransfersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5171
|
+
#
|
|
5172
|
+
# * {Types::ListOutboundResponsibilityTransfersResponse#responsibility_transfers #responsibility_transfers} => Array<Types::ResponsibilityTransfer>
|
|
5173
|
+
# * {Types::ListOutboundResponsibilityTransfersResponse#next_token #next_token} => String
|
|
5174
|
+
#
|
|
5175
|
+
#
|
|
5176
|
+
# @example Example: To get a list of all outbound responsibility transfers
|
|
5177
|
+
#
|
|
5178
|
+
# # The following example shows how to get a list of all outbound responsibility transfers that are associated with the
|
|
5179
|
+
# # account of the credentials that were used to call the operation:
|
|
5180
|
+
#
|
|
5181
|
+
# resp = client.list_outbound_responsibility_transfers({
|
|
5182
|
+
# type: "BILLING",
|
|
5183
|
+
# })
|
|
5184
|
+
#
|
|
5185
|
+
# resp.to_h outputs the following:
|
|
5186
|
+
# {
|
|
5187
|
+
# responsibility_transfers: [
|
|
5188
|
+
# {
|
|
5189
|
+
# arn: "arn:aws:organizations::222222222222:transfer/o-exampleorgid222/billing/outbound/rt-exampletransferid222",
|
|
5190
|
+
# end_timestamp: Time.parse("2026-01-31T23:59:59+00:00"),
|
|
5191
|
+
# id: "rt-exampletransferid222",
|
|
5192
|
+
# name: "transfer name",
|
|
5193
|
+
# source: {
|
|
5194
|
+
# management_account_id: "222222222222",
|
|
5195
|
+
# },
|
|
5196
|
+
# start_timestamp: Time.parse("2026-01-01T00:00:00+00:00"),
|
|
5197
|
+
# status: "WITHDRAWN",
|
|
5198
|
+
# target: {
|
|
5199
|
+
# management_account_id: "333333333333",
|
|
5200
|
+
# },
|
|
5201
|
+
# type: "BILLING",
|
|
5202
|
+
# },
|
|
5203
|
+
# ],
|
|
5204
|
+
# }
|
|
5205
|
+
#
|
|
5206
|
+
# @example Request syntax with placeholder values
|
|
5207
|
+
#
|
|
5208
|
+
# resp = client.list_outbound_responsibility_transfers({
|
|
5209
|
+
# type: "BILLING", # required, accepts BILLING
|
|
5210
|
+
# next_token: "NextToken",
|
|
5211
|
+
# max_results: 1,
|
|
5212
|
+
# })
|
|
5213
|
+
#
|
|
5214
|
+
# @example Response structure
|
|
5215
|
+
#
|
|
5216
|
+
# resp.responsibility_transfers #=> Array
|
|
5217
|
+
# resp.responsibility_transfers[0].arn #=> String
|
|
5218
|
+
# resp.responsibility_transfers[0].name #=> String
|
|
5219
|
+
# resp.responsibility_transfers[0].id #=> String
|
|
5220
|
+
# resp.responsibility_transfers[0].type #=> String, one of "BILLING"
|
|
5221
|
+
# resp.responsibility_transfers[0].status #=> String, one of "REQUESTED", "DECLINED", "CANCELED", "EXPIRED", "ACCEPTED", "WITHDRAWN"
|
|
5222
|
+
# resp.responsibility_transfers[0].source.management_account_id #=> String
|
|
5223
|
+
# resp.responsibility_transfers[0].source.management_account_email #=> String
|
|
5224
|
+
# resp.responsibility_transfers[0].target.management_account_id #=> String
|
|
5225
|
+
# resp.responsibility_transfers[0].target.management_account_email #=> String
|
|
5226
|
+
# resp.responsibility_transfers[0].start_timestamp #=> Time
|
|
5227
|
+
# resp.responsibility_transfers[0].end_timestamp #=> Time
|
|
5228
|
+
# resp.responsibility_transfers[0].active_handshake_id #=> String
|
|
5229
|
+
# resp.next_token #=> String
|
|
5230
|
+
#
|
|
5231
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListOutboundResponsibilityTransfers AWS API Documentation
|
|
5232
|
+
#
|
|
5233
|
+
# @overload list_outbound_responsibility_transfers(params = {})
|
|
5234
|
+
# @param [Hash] params ({})
|
|
5235
|
+
def list_outbound_responsibility_transfers(params = {}, options = {})
|
|
5236
|
+
req = build_request(:list_outbound_responsibility_transfers, params)
|
|
5237
|
+
req.send_request(options)
|
|
5238
|
+
end
|
|
5239
|
+
|
|
4875
5240
|
# Lists the root or organizational units (OUs) that serve as the
|
|
4876
5241
|
# immediate parent of the specified child OU or account. This operation,
|
|
4877
5242
|
# along with ListChildren enables you to traverse the tree structure
|
|
4878
5243
|
# that makes up this root.
|
|
4879
5244
|
#
|
|
4880
|
-
# <note markdown="1">
|
|
4881
|
-
#
|
|
4882
|
-
# return an empty set of results even when
|
|
4883
|
-
# available.
|
|
4884
|
-
#
|
|
5245
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5246
|
+
# parameter value, even if you receive an empty result set. These
|
|
5247
|
+
# operations can occasionally return an empty set of results even when
|
|
5248
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5249
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5250
|
+
# retrieved all available results.
|
|
4885
5251
|
#
|
|
4886
5252
|
# </note>
|
|
4887
5253
|
#
|
|
4888
|
-
#
|
|
4889
|
-
#
|
|
5254
|
+
# You can only call this operation from the management account or a
|
|
5255
|
+
# member account that is a delegated administrator.
|
|
4890
5256
|
#
|
|
4891
5257
|
# <note markdown="1"> In the current release, a child can have only a single parent.
|
|
4892
5258
|
#
|
|
4893
5259
|
# </note>
|
|
4894
5260
|
#
|
|
4895
5261
|
# @option params [required, String] :child_id
|
|
4896
|
-
#
|
|
4897
|
-
#
|
|
5262
|
+
# ID for the OU or account whose parent containers you want to list.
|
|
5263
|
+
# Don't specify a root.
|
|
4898
5264
|
#
|
|
4899
5265
|
# The [regex pattern][1] for a child ID string requires one of the
|
|
4900
5266
|
# following:
|
|
@@ -4918,16 +5284,9 @@ module Aws::Organizations
|
|
|
4918
5284
|
# the output should continue from.
|
|
4919
5285
|
#
|
|
4920
5286
|
# @option params [Integer] :max_results
|
|
4921
|
-
# The
|
|
4922
|
-
#
|
|
4923
|
-
#
|
|
4924
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
4925
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
4926
|
-
# request parameter in the next call to the operation to get the next
|
|
4927
|
-
# part of the results. Note that Organizations might return fewer
|
|
4928
|
-
# results than the maximum even when there are more results available.
|
|
4929
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
4930
|
-
# receive all of the results.
|
|
5287
|
+
# The maximum number of items to return in the response. If more results
|
|
5288
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5289
|
+
# the response so that you can retrieve the remaining results.
|
|
4931
5290
|
#
|
|
4932
5291
|
# @return [Types::ListParentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4933
5292
|
#
|
|
@@ -4982,16 +5341,17 @@ module Aws::Organizations
|
|
|
4982
5341
|
# Retrieves the list of all policies in an organization of a specified
|
|
4983
5342
|
# type.
|
|
4984
5343
|
#
|
|
4985
|
-
# <note markdown="1">
|
|
4986
|
-
#
|
|
4987
|
-
# return an empty set of results even when
|
|
4988
|
-
# available.
|
|
4989
|
-
#
|
|
5344
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5345
|
+
# parameter value, even if you receive an empty result set. These
|
|
5346
|
+
# operations can occasionally return an empty set of results even when
|
|
5347
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5348
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5349
|
+
# retrieved all available results.
|
|
4990
5350
|
#
|
|
4991
5351
|
# </note>
|
|
4992
5352
|
#
|
|
4993
|
-
#
|
|
4994
|
-
#
|
|
5353
|
+
# You can only call this operation from the management account or a
|
|
5354
|
+
# member account that is a delegated administrator.
|
|
4995
5355
|
#
|
|
4996
5356
|
# @option params [required, String] :filter
|
|
4997
5357
|
# Specifies the type of policy that you want to include in the response.
|
|
@@ -5013,6 +5373,10 @@ module Aws::Organizations
|
|
|
5013
5373
|
#
|
|
5014
5374
|
# * [SECURITYHUB\_POLICY][8]
|
|
5015
5375
|
#
|
|
5376
|
+
# * [UPGRADE\_ROLLOUT\_POLICY][9]
|
|
5377
|
+
#
|
|
5378
|
+
# * [INSPECTOR\_POLICY][10]
|
|
5379
|
+
#
|
|
5016
5380
|
#
|
|
5017
5381
|
#
|
|
5018
5382
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
|
@@ -5023,6 +5387,8 @@ module Aws::Organizations
|
|
|
5023
5387
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
5024
5388
|
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
5025
5389
|
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
5390
|
+
# [9]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_upgrade_rollout.html
|
|
5391
|
+
# [10]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
5026
5392
|
#
|
|
5027
5393
|
# @option params [String] :next_token
|
|
5028
5394
|
# The parameter for receiving additional results if you receive a
|
|
@@ -5032,16 +5398,9 @@ module Aws::Organizations
|
|
|
5032
5398
|
# the output should continue from.
|
|
5033
5399
|
#
|
|
5034
5400
|
# @option params [Integer] :max_results
|
|
5035
|
-
# The
|
|
5036
|
-
#
|
|
5037
|
-
#
|
|
5038
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
5039
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
5040
|
-
# request parameter in the next call to the operation to get the next
|
|
5041
|
-
# part of the results. Note that Organizations might return fewer
|
|
5042
|
-
# results than the maximum even when there are more results available.
|
|
5043
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
5044
|
-
# receive all of the results.
|
|
5401
|
+
# The maximum number of items to return in the response. If more results
|
|
5402
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5403
|
+
# the response so that you can retrieve the remaining results.
|
|
5045
5404
|
#
|
|
5046
5405
|
# @return [Types::ListPoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5047
5406
|
#
|
|
@@ -5092,7 +5451,7 @@ module Aws::Organizations
|
|
|
5092
5451
|
# @example Request syntax with placeholder values
|
|
5093
5452
|
#
|
|
5094
5453
|
# resp = client.list_policies({
|
|
5095
|
-
# filter: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, RESOURCE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY
|
|
5454
|
+
# filter: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, RESOURCE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY, INSPECTOR_POLICY, UPGRADE_ROLLOUT_POLICY
|
|
5096
5455
|
# next_token: "NextToken",
|
|
5097
5456
|
# max_results: 1,
|
|
5098
5457
|
# })
|
|
@@ -5104,7 +5463,7 @@ module Aws::Organizations
|
|
|
5104
5463
|
# resp.policies[0].arn #=> String
|
|
5105
5464
|
# resp.policies[0].name #=> String
|
|
5106
5465
|
# resp.policies[0].description #=> String
|
|
5107
|
-
# resp.policies[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
5466
|
+
# resp.policies[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
5108
5467
|
# resp.policies[0].aws_managed #=> Boolean
|
|
5109
5468
|
# resp.next_token #=> String
|
|
5110
5469
|
#
|
|
@@ -5121,20 +5480,21 @@ module Aws::Organizations
|
|
|
5121
5480
|
# root, organizational unit (OU), or account. You must specify the
|
|
5122
5481
|
# policy type that you want included in the returned list.
|
|
5123
5482
|
#
|
|
5124
|
-
# <note markdown="1">
|
|
5125
|
-
#
|
|
5126
|
-
# return an empty set of results even when
|
|
5127
|
-
# available.
|
|
5128
|
-
#
|
|
5483
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5484
|
+
# parameter value, even if you receive an empty result set. These
|
|
5485
|
+
# operations can occasionally return an empty set of results even when
|
|
5486
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5487
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5488
|
+
# retrieved all available results.
|
|
5129
5489
|
#
|
|
5130
5490
|
# </note>
|
|
5131
5491
|
#
|
|
5132
|
-
#
|
|
5133
|
-
#
|
|
5492
|
+
# You can only call this operation from the management account or a
|
|
5493
|
+
# member account that is a delegated administrator.
|
|
5134
5494
|
#
|
|
5135
5495
|
# @option params [required, String] :target_id
|
|
5136
|
-
#
|
|
5137
|
-
#
|
|
5496
|
+
# ID for the root, organizational unit, or account whose policies you
|
|
5497
|
+
# want to list.
|
|
5138
5498
|
#
|
|
5139
5499
|
# The [regex pattern][1] for a target ID string requires one of the
|
|
5140
5500
|
# following:
|
|
@@ -5173,6 +5533,10 @@ module Aws::Organizations
|
|
|
5173
5533
|
#
|
|
5174
5534
|
# * [SECURITYHUB\_POLICY][8]
|
|
5175
5535
|
#
|
|
5536
|
+
# * [UPGRADE\_ROLLOUT\_POLICY][9]
|
|
5537
|
+
#
|
|
5538
|
+
# * [INSPECTOR\_POLICY][10]
|
|
5539
|
+
#
|
|
5176
5540
|
#
|
|
5177
5541
|
#
|
|
5178
5542
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
|
@@ -5183,6 +5547,8 @@ module Aws::Organizations
|
|
|
5183
5547
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
5184
5548
|
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
5185
5549
|
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
5550
|
+
# [9]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_upgrade_rollout.html
|
|
5551
|
+
# [10]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
5186
5552
|
#
|
|
5187
5553
|
# @option params [String] :next_token
|
|
5188
5554
|
# The parameter for receiving additional results if you receive a
|
|
@@ -5192,16 +5558,9 @@ module Aws::Organizations
|
|
|
5192
5558
|
# the output should continue from.
|
|
5193
5559
|
#
|
|
5194
5560
|
# @option params [Integer] :max_results
|
|
5195
|
-
# The
|
|
5196
|
-
#
|
|
5197
|
-
#
|
|
5198
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
5199
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
5200
|
-
# request parameter in the next call to the operation to get the next
|
|
5201
|
-
# part of the results. Note that Organizations might return fewer
|
|
5202
|
-
# results than the maximum even when there are more results available.
|
|
5203
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
5204
|
-
# receive all of the results.
|
|
5561
|
+
# The maximum number of items to return in the response. If more results
|
|
5562
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5563
|
+
# the response so that you can retrieve the remaining results.
|
|
5205
5564
|
#
|
|
5206
5565
|
# @return [Types::ListPoliciesForTargetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5207
5566
|
#
|
|
@@ -5240,7 +5599,7 @@ module Aws::Organizations
|
|
|
5240
5599
|
#
|
|
5241
5600
|
# resp = client.list_policies_for_target({
|
|
5242
5601
|
# target_id: "PolicyTargetId", # required
|
|
5243
|
-
# filter: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, RESOURCE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY
|
|
5602
|
+
# filter: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, RESOURCE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY, INSPECTOR_POLICY, UPGRADE_ROLLOUT_POLICY
|
|
5244
5603
|
# next_token: "NextToken",
|
|
5245
5604
|
# max_results: 1,
|
|
5246
5605
|
# })
|
|
@@ -5252,7 +5611,7 @@ module Aws::Organizations
|
|
|
5252
5611
|
# resp.policies[0].arn #=> String
|
|
5253
5612
|
# resp.policies[0].name #=> String
|
|
5254
5613
|
# resp.policies[0].description #=> String
|
|
5255
|
-
# resp.policies[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
5614
|
+
# resp.policies[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
5256
5615
|
# resp.policies[0].aws_managed #=> Boolean
|
|
5257
5616
|
# resp.next_token #=> String
|
|
5258
5617
|
#
|
|
@@ -5267,16 +5626,17 @@ module Aws::Organizations
|
|
|
5267
5626
|
|
|
5268
5627
|
# Lists the roots that are defined in the current organization.
|
|
5269
5628
|
#
|
|
5270
|
-
# <note markdown="1">
|
|
5271
|
-
#
|
|
5272
|
-
# return an empty set of results even when
|
|
5273
|
-
# available.
|
|
5274
|
-
#
|
|
5629
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5630
|
+
# parameter value, even if you receive an empty result set. These
|
|
5631
|
+
# operations can occasionally return an empty set of results even when
|
|
5632
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5633
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5634
|
+
# retrieved all available results.
|
|
5275
5635
|
#
|
|
5276
5636
|
# </note>
|
|
5277
5637
|
#
|
|
5278
|
-
#
|
|
5279
|
-
#
|
|
5638
|
+
# You can only call this operation from the management account or a
|
|
5639
|
+
# member account that is a delegated administrator.
|
|
5280
5640
|
#
|
|
5281
5641
|
# <note markdown="1"> Policy types can be enabled and disabled in roots. This is distinct
|
|
5282
5642
|
# from whether they're available in the organization. When you enable
|
|
@@ -5295,16 +5655,9 @@ module Aws::Organizations
|
|
|
5295
5655
|
# the output should continue from.
|
|
5296
5656
|
#
|
|
5297
5657
|
# @option params [Integer] :max_results
|
|
5298
|
-
# The
|
|
5299
|
-
#
|
|
5300
|
-
#
|
|
5301
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
5302
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
5303
|
-
# request parameter in the next call to the operation to get the next
|
|
5304
|
-
# part of the results. Note that Organizations might return fewer
|
|
5305
|
-
# results than the maximum even when there are more results available.
|
|
5306
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
5307
|
-
# receive all of the results.
|
|
5658
|
+
# The maximum number of items to return in the response. If more results
|
|
5659
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5660
|
+
# the response so that you can retrieve the remaining results.
|
|
5308
5661
|
#
|
|
5309
5662
|
# @return [Types::ListRootsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5310
5663
|
#
|
|
@@ -5352,7 +5705,7 @@ module Aws::Organizations
|
|
|
5352
5705
|
# resp.roots[0].arn #=> String
|
|
5353
5706
|
# resp.roots[0].name #=> String
|
|
5354
5707
|
# resp.roots[0].policy_types #=> Array
|
|
5355
|
-
# resp.roots[0].policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
5708
|
+
# resp.roots[0].policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
5356
5709
|
# resp.roots[0].policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
|
5357
5710
|
# resp.next_token #=> String
|
|
5358
5711
|
#
|
|
@@ -5377,8 +5730,8 @@ module Aws::Organizations
|
|
|
5377
5730
|
#
|
|
5378
5731
|
# * Policy (any type)
|
|
5379
5732
|
#
|
|
5380
|
-
#
|
|
5381
|
-
#
|
|
5733
|
+
# You can only call this operation from the management account or a
|
|
5734
|
+
# member account that is a delegated administrator.
|
|
5382
5735
|
#
|
|
5383
5736
|
# @option params [required, String] :resource_id
|
|
5384
5737
|
# The ID of the resource with the tags to list.
|
|
@@ -5436,20 +5789,20 @@ module Aws::Organizations
|
|
|
5436
5789
|
# Lists all the roots, organizational units (OUs), and accounts that the
|
|
5437
5790
|
# specified policy is attached to.
|
|
5438
5791
|
#
|
|
5439
|
-
# <note markdown="1">
|
|
5440
|
-
#
|
|
5441
|
-
# return an empty set of results even when
|
|
5442
|
-
# available.
|
|
5443
|
-
#
|
|
5792
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5793
|
+
# parameter value, even if you receive an empty result set. These
|
|
5794
|
+
# operations can occasionally return an empty set of results even when
|
|
5795
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5796
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5797
|
+
# retrieved all available results.
|
|
5444
5798
|
#
|
|
5445
5799
|
# </note>
|
|
5446
5800
|
#
|
|
5447
|
-
#
|
|
5448
|
-
#
|
|
5801
|
+
# You can only call this operation from the management account or a
|
|
5802
|
+
# member account that is a delegated administrator.
|
|
5449
5803
|
#
|
|
5450
5804
|
# @option params [required, String] :policy_id
|
|
5451
|
-
#
|
|
5452
|
-
# know.
|
|
5805
|
+
# ID for the policy whose attachments you want to know.
|
|
5453
5806
|
#
|
|
5454
5807
|
# The [regex pattern][1] for a policy ID string requires "p-" followed
|
|
5455
5808
|
# by from 8 to 128 lowercase or uppercase letters, digits, or the
|
|
@@ -5467,16 +5820,9 @@ module Aws::Organizations
|
|
|
5467
5820
|
# the output should continue from.
|
|
5468
5821
|
#
|
|
5469
5822
|
# @option params [Integer] :max_results
|
|
5470
|
-
# The
|
|
5471
|
-
#
|
|
5472
|
-
#
|
|
5473
|
-
# the maximum you specify, the `NextToken` response element is present
|
|
5474
|
-
# and has a value (is not null). Include that value as the `NextToken`
|
|
5475
|
-
# request parameter in the next call to the operation to get the next
|
|
5476
|
-
# part of the results. Note that Organizations might return fewer
|
|
5477
|
-
# results than the maximum even when there are more results available.
|
|
5478
|
-
# You should check `NextToken` after every operation to ensure that you
|
|
5479
|
-
# receive all of the results.
|
|
5823
|
+
# The maximum number of items to return in the response. If more results
|
|
5824
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5825
|
+
# the response so that you can retrieve the remaining results.
|
|
5480
5826
|
#
|
|
5481
5827
|
# @return [Types::ListTargetsForPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5482
5828
|
#
|
|
@@ -5548,11 +5894,10 @@ module Aws::Organizations
|
|
|
5548
5894
|
# Moves an account from its current source parent root or organizational
|
|
5549
5895
|
# unit (OU) to the specified destination parent root or OU.
|
|
5550
5896
|
#
|
|
5551
|
-
#
|
|
5552
|
-
# account.
|
|
5897
|
+
# You can only call this operation from the management account.
|
|
5553
5898
|
#
|
|
5554
5899
|
# @option params [required, String] :account_id
|
|
5555
|
-
#
|
|
5900
|
+
# ID for the account that you want to move.
|
|
5556
5901
|
#
|
|
5557
5902
|
# The [regex pattern][1] for an account ID string requires exactly 12
|
|
5558
5903
|
# digits.
|
|
@@ -5562,8 +5907,8 @@ module Aws::Organizations
|
|
|
5562
5907
|
# [1]: http://wikipedia.org/wiki/regex
|
|
5563
5908
|
#
|
|
5564
5909
|
# @option params [required, String] :source_parent_id
|
|
5565
|
-
#
|
|
5566
|
-
#
|
|
5910
|
+
# ID for the root or organizational unit that you want to move the
|
|
5911
|
+
# account from.
|
|
5567
5912
|
#
|
|
5568
5913
|
# The [regex pattern][1] for a parent ID string requires one of the
|
|
5569
5914
|
# following:
|
|
@@ -5581,8 +5926,8 @@ module Aws::Organizations
|
|
|
5581
5926
|
# [1]: http://wikipedia.org/wiki/regex
|
|
5582
5927
|
#
|
|
5583
5928
|
# @option params [required, String] :destination_parent_id
|
|
5584
|
-
#
|
|
5585
|
-
#
|
|
5929
|
+
# ID for the root or organizational unit that you want to move the
|
|
5930
|
+
# account to.
|
|
5586
5931
|
#
|
|
5587
5932
|
# The [regex pattern][1] for a parent ID string requires one of the
|
|
5588
5933
|
# following:
|
|
@@ -5631,8 +5976,7 @@ module Aws::Organizations
|
|
|
5631
5976
|
|
|
5632
5977
|
# Creates or updates a resource policy.
|
|
5633
5978
|
#
|
|
5634
|
-
#
|
|
5635
|
-
# account..
|
|
5979
|
+
# You can only call this operation from the management account..
|
|
5636
5980
|
#
|
|
5637
5981
|
# @option params [required, String] :content
|
|
5638
5982
|
# If provided, the new content for the resource policy. The text must be
|
|
@@ -5705,8 +6049,7 @@ module Aws::Organizations
|
|
|
5705
6049
|
# [Amazon Web Services Services that you can use with Organizations][1]
|
|
5706
6050
|
# in the *Organizations User Guide.*
|
|
5707
6051
|
#
|
|
5708
|
-
#
|
|
5709
|
-
# account.
|
|
6052
|
+
# You can only call this operation from the management account.
|
|
5710
6053
|
#
|
|
5711
6054
|
#
|
|
5712
6055
|
#
|
|
@@ -5746,9 +6089,8 @@ module Aws::Organizations
|
|
|
5746
6089
|
# account is no longer charged for any expenses accrued by the member
|
|
5747
6090
|
# account after it's removed from the organization.
|
|
5748
6091
|
#
|
|
5749
|
-
#
|
|
5750
|
-
#
|
|
5751
|
-
# instead.
|
|
6092
|
+
# You can only call this operation from the management account. Member
|
|
6093
|
+
# accounts can remove themselves with LeaveOrganization instead.
|
|
5752
6094
|
#
|
|
5753
6095
|
# * You can remove an account from your organization only if the account
|
|
5754
6096
|
# is configured with the information required to operate as a
|
|
@@ -5775,8 +6117,8 @@ module Aws::Organizations
|
|
|
5775
6117
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_account-before-remove.html
|
|
5776
6118
|
#
|
|
5777
6119
|
# @option params [required, String] :account_id
|
|
5778
|
-
#
|
|
5779
|
-
#
|
|
6120
|
+
# ID for the member account that you want to remove from the
|
|
6121
|
+
# organization.
|
|
5780
6122
|
#
|
|
5781
6123
|
# The [regex pattern][1] for an account ID string requires exactly 12
|
|
5782
6124
|
# digits.
|
|
@@ -5824,8 +6166,8 @@ module Aws::Organizations
|
|
|
5824
6166
|
#
|
|
5825
6167
|
# * Policy (any type)
|
|
5826
6168
|
#
|
|
5827
|
-
#
|
|
5828
|
-
#
|
|
6169
|
+
# You can only call this operation from the management account or a
|
|
6170
|
+
# member account that is a delegated administrator.
|
|
5829
6171
|
#
|
|
5830
6172
|
# @option params [required, String] :resource_id
|
|
5831
6173
|
# The ID of the resource to add a tag to.
|
|
@@ -5877,6 +6219,80 @@ module Aws::Organizations
|
|
|
5877
6219
|
req.send_request(options)
|
|
5878
6220
|
end
|
|
5879
6221
|
|
|
6222
|
+
# Ends a transfer. A *transfer* is an arrangement between two management
|
|
6223
|
+
# accounts where one account designates the other with specified
|
|
6224
|
+
# responsibilities for their organization.
|
|
6225
|
+
#
|
|
6226
|
+
# @option params [required, String] :id
|
|
6227
|
+
# ID for the transfer.
|
|
6228
|
+
#
|
|
6229
|
+
# @option params [Time,DateTime,Date,Integer,String] :end_timestamp
|
|
6230
|
+
# Timestamp when the responsibility transfer is to end.
|
|
6231
|
+
#
|
|
6232
|
+
# @return [Types::TerminateResponsibilityTransferResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6233
|
+
#
|
|
6234
|
+
# * {Types::TerminateResponsibilityTransferResponse#responsibility_transfer #responsibility_transfer} => Types::ResponsibilityTransfer
|
|
6235
|
+
#
|
|
6236
|
+
#
|
|
6237
|
+
# @example Example: To terminate a transfer
|
|
6238
|
+
#
|
|
6239
|
+
# # The following example shows how to terminate a transfer:/n/n
|
|
6240
|
+
#
|
|
6241
|
+
# resp = client.terminate_responsibility_transfer({
|
|
6242
|
+
# end_timestamp: Time.parse("1769903999"),
|
|
6243
|
+
# id: "rt-exampletransferid222",
|
|
6244
|
+
# })
|
|
6245
|
+
#
|
|
6246
|
+
# resp.to_h outputs the following:
|
|
6247
|
+
# {
|
|
6248
|
+
# responsibility_transfer: {
|
|
6249
|
+
# arn: "arn:aws:organizations::222222222222:transfer/o-exampleorgid222/billing/outbound/rt-exampletransferid222",
|
|
6250
|
+
# end_timestamp: Time.parse("2026-01-31T23:59:59+00:00"),
|
|
6251
|
+
# id: "rt-exampletransferid222",
|
|
6252
|
+
# name: "transfer name",
|
|
6253
|
+
# source: {
|
|
6254
|
+
# management_account_id: "222222222222",
|
|
6255
|
+
# },
|
|
6256
|
+
# start_timestamp: Time.parse("2026-01-01T00:00:00+00:00"),
|
|
6257
|
+
# status: "WITHDRAWN",
|
|
6258
|
+
# target: {
|
|
6259
|
+
# management_account_id: "333333333333",
|
|
6260
|
+
# },
|
|
6261
|
+
# type: "BILLING",
|
|
6262
|
+
# },
|
|
6263
|
+
# }
|
|
6264
|
+
#
|
|
6265
|
+
# @example Request syntax with placeholder values
|
|
6266
|
+
#
|
|
6267
|
+
# resp = client.terminate_responsibility_transfer({
|
|
6268
|
+
# id: "ResponsibilityTransferId", # required
|
|
6269
|
+
# end_timestamp: Time.now,
|
|
6270
|
+
# })
|
|
6271
|
+
#
|
|
6272
|
+
# @example Response structure
|
|
6273
|
+
#
|
|
6274
|
+
# resp.responsibility_transfer.arn #=> String
|
|
6275
|
+
# resp.responsibility_transfer.name #=> String
|
|
6276
|
+
# resp.responsibility_transfer.id #=> String
|
|
6277
|
+
# resp.responsibility_transfer.type #=> String, one of "BILLING"
|
|
6278
|
+
# resp.responsibility_transfer.status #=> String, one of "REQUESTED", "DECLINED", "CANCELED", "EXPIRED", "ACCEPTED", "WITHDRAWN"
|
|
6279
|
+
# resp.responsibility_transfer.source.management_account_id #=> String
|
|
6280
|
+
# resp.responsibility_transfer.source.management_account_email #=> String
|
|
6281
|
+
# resp.responsibility_transfer.target.management_account_id #=> String
|
|
6282
|
+
# resp.responsibility_transfer.target.management_account_email #=> String
|
|
6283
|
+
# resp.responsibility_transfer.start_timestamp #=> Time
|
|
6284
|
+
# resp.responsibility_transfer.end_timestamp #=> Time
|
|
6285
|
+
# resp.responsibility_transfer.active_handshake_id #=> String
|
|
6286
|
+
#
|
|
6287
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/TerminateResponsibilityTransfer AWS API Documentation
|
|
6288
|
+
#
|
|
6289
|
+
# @overload terminate_responsibility_transfer(params = {})
|
|
6290
|
+
# @param [Hash] params ({})
|
|
6291
|
+
def terminate_responsibility_transfer(params = {}, options = {})
|
|
6292
|
+
req = build_request(:terminate_responsibility_transfer, params)
|
|
6293
|
+
req.send_request(options)
|
|
6294
|
+
end
|
|
6295
|
+
|
|
5880
6296
|
# Removes any tags with the specified keys from the specified resource.
|
|
5881
6297
|
#
|
|
5882
6298
|
# You can attach tags to the following resources in Organizations.
|
|
@@ -5889,8 +6305,8 @@ module Aws::Organizations
|
|
|
5889
6305
|
#
|
|
5890
6306
|
# * Policy (any type)
|
|
5891
6307
|
#
|
|
5892
|
-
#
|
|
5893
|
-
#
|
|
6308
|
+
# You can only call this operation from the management account or a
|
|
6309
|
+
# member account that is a delegated administrator.
|
|
5894
6310
|
#
|
|
5895
6311
|
# @option params [required, String] :resource_id
|
|
5896
6312
|
# The ID of the resource to remove a tag from.
|
|
@@ -5933,12 +6349,11 @@ module Aws::Organizations
|
|
|
5933
6349
|
# change. The child OUs and accounts remain in place, and any attached
|
|
5934
6350
|
# policies of the OU remain attached.
|
|
5935
6351
|
#
|
|
5936
|
-
#
|
|
5937
|
-
# account.
|
|
6352
|
+
# You can only call this operation from the management account.
|
|
5938
6353
|
#
|
|
5939
6354
|
# @option params [required, String] :organizational_unit_id
|
|
5940
|
-
#
|
|
5941
|
-
#
|
|
6355
|
+
# ID for the OU that you want to rename. You can get the ID from the
|
|
6356
|
+
# ListOrganizationalUnitsForParent operation.
|
|
5942
6357
|
#
|
|
5943
6358
|
# The [regex pattern][1] for an organizational unit ID string requires
|
|
5944
6359
|
# "ou-" followed by from 4 to 32 lowercase letters or digits (the ID
|
|
@@ -6008,11 +6423,11 @@ module Aws::Organizations
|
|
|
6008
6423
|
# If you don't supply any parameter, that value remains unchanged. You
|
|
6009
6424
|
# can't change a policy's type.
|
|
6010
6425
|
#
|
|
6011
|
-
#
|
|
6012
|
-
#
|
|
6426
|
+
# You can only call this operation from the management account or a
|
|
6427
|
+
# member account that is a delegated administrator.
|
|
6013
6428
|
#
|
|
6014
6429
|
# @option params [required, String] :policy_id
|
|
6015
|
-
#
|
|
6430
|
+
# ID for the policy that you want to update.
|
|
6016
6431
|
#
|
|
6017
6432
|
# The [regex pattern][1] for a policy ID string requires "p-" followed
|
|
6018
6433
|
# by from 8 to 128 lowercase or uppercase letters, digits, or the
|
|
@@ -6121,7 +6536,7 @@ module Aws::Organizations
|
|
|
6121
6536
|
# resp.policy.policy_summary.arn #=> String
|
|
6122
6537
|
# resp.policy.policy_summary.name #=> String
|
|
6123
6538
|
# resp.policy.policy_summary.description #=> String
|
|
6124
|
-
# resp.policy.policy_summary.type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
|
|
6539
|
+
# resp.policy.policy_summary.type #=> String, one of "SERVICE_CONTROL_POLICY", "RESOURCE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY", "UPGRADE_ROLLOUT_POLICY"
|
|
6125
6540
|
# resp.policy.policy_summary.aws_managed #=> Boolean
|
|
6126
6541
|
# resp.policy.content #=> String
|
|
6127
6542
|
#
|
|
@@ -6134,6 +6549,82 @@ module Aws::Organizations
|
|
|
6134
6549
|
req.send_request(options)
|
|
6135
6550
|
end
|
|
6136
6551
|
|
|
6552
|
+
# Updates a transfer. A *transfer* is the arrangement between two
|
|
6553
|
+
# management accounts where one account designates the other with
|
|
6554
|
+
# specified responsibilities for their organization.
|
|
6555
|
+
#
|
|
6556
|
+
# You can update the name assigned to a transfer.
|
|
6557
|
+
#
|
|
6558
|
+
# @option params [required, String] :id
|
|
6559
|
+
# ID for the transfer.
|
|
6560
|
+
#
|
|
6561
|
+
# @option params [required, String] :name
|
|
6562
|
+
# New name you want to assign to the transfer.
|
|
6563
|
+
#
|
|
6564
|
+
# @return [Types::UpdateResponsibilityTransferResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6565
|
+
#
|
|
6566
|
+
# * {Types::UpdateResponsibilityTransferResponse#responsibility_transfer #responsibility_transfer} => Types::ResponsibilityTransfer
|
|
6567
|
+
#
|
|
6568
|
+
#
|
|
6569
|
+
# @example Example: To rename a transfer
|
|
6570
|
+
#
|
|
6571
|
+
# # The following example shows how to rename a transfer. The output confirms the new name:/n/n
|
|
6572
|
+
#
|
|
6573
|
+
# resp = client.update_responsibility_transfer({
|
|
6574
|
+
# id: "rt-exampletransferid222",
|
|
6575
|
+
# name: "new name",
|
|
6576
|
+
# })
|
|
6577
|
+
#
|
|
6578
|
+
# resp.to_h outputs the following:
|
|
6579
|
+
# {
|
|
6580
|
+
# responsibility_transfer: {
|
|
6581
|
+
# arn: "arn:aws:organizations::222222222222:transfer/o-exampleorgid222/billing/outbound/rt-exampletransferid222",
|
|
6582
|
+
# end_timestamp: Time.parse("2026-01-31T23:59:59+00:00"),
|
|
6583
|
+
# id: "rt-exampletransferid222",
|
|
6584
|
+
# name: "new name",
|
|
6585
|
+
# source: {
|
|
6586
|
+
# management_account_id: "222222222222",
|
|
6587
|
+
# },
|
|
6588
|
+
# start_timestamp: Time.parse("2026-01-01T00:00:00+00:00"),
|
|
6589
|
+
# status: "WITHDRAWN",
|
|
6590
|
+
# target: {
|
|
6591
|
+
# management_account_id: "333333333333",
|
|
6592
|
+
# },
|
|
6593
|
+
# type: "BILLING",
|
|
6594
|
+
# },
|
|
6595
|
+
# }
|
|
6596
|
+
#
|
|
6597
|
+
# @example Request syntax with placeholder values
|
|
6598
|
+
#
|
|
6599
|
+
# resp = client.update_responsibility_transfer({
|
|
6600
|
+
# id: "ResponsibilityTransferId", # required
|
|
6601
|
+
# name: "ResponsibilityTransferName", # required
|
|
6602
|
+
# })
|
|
6603
|
+
#
|
|
6604
|
+
# @example Response structure
|
|
6605
|
+
#
|
|
6606
|
+
# resp.responsibility_transfer.arn #=> String
|
|
6607
|
+
# resp.responsibility_transfer.name #=> String
|
|
6608
|
+
# resp.responsibility_transfer.id #=> String
|
|
6609
|
+
# resp.responsibility_transfer.type #=> String, one of "BILLING"
|
|
6610
|
+
# resp.responsibility_transfer.status #=> String, one of "REQUESTED", "DECLINED", "CANCELED", "EXPIRED", "ACCEPTED", "WITHDRAWN"
|
|
6611
|
+
# resp.responsibility_transfer.source.management_account_id #=> String
|
|
6612
|
+
# resp.responsibility_transfer.source.management_account_email #=> String
|
|
6613
|
+
# resp.responsibility_transfer.target.management_account_id #=> String
|
|
6614
|
+
# resp.responsibility_transfer.target.management_account_email #=> String
|
|
6615
|
+
# resp.responsibility_transfer.start_timestamp #=> Time
|
|
6616
|
+
# resp.responsibility_transfer.end_timestamp #=> Time
|
|
6617
|
+
# resp.responsibility_transfer.active_handshake_id #=> String
|
|
6618
|
+
#
|
|
6619
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UpdateResponsibilityTransfer AWS API Documentation
|
|
6620
|
+
#
|
|
6621
|
+
# @overload update_responsibility_transfer(params = {})
|
|
6622
|
+
# @param [Hash] params ({})
|
|
6623
|
+
def update_responsibility_transfer(params = {}, options = {})
|
|
6624
|
+
req = build_request(:update_responsibility_transfer, params)
|
|
6625
|
+
req.send_request(options)
|
|
6626
|
+
end
|
|
6627
|
+
|
|
6137
6628
|
# @!endgroup
|
|
6138
6629
|
|
|
6139
6630
|
# @param params ({})
|
|
@@ -6152,7 +6643,7 @@ module Aws::Organizations
|
|
|
6152
6643
|
tracer: tracer
|
|
6153
6644
|
)
|
|
6154
6645
|
context[:gem_name] = 'aws-sdk-organizations'
|
|
6155
|
-
context[:gem_version] = '1.
|
|
6646
|
+
context[:gem_version] = '1.129.0'
|
|
6156
6647
|
Seahorse::Client::Request.new(handlers, context)
|
|
6157
6648
|
end
|
|
6158
6649
|
|