aws-sdk-organizations 1.127.0 → 1.128.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-organizations/client.rb +964 -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 +688 -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 +1 -1
|
@@ -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,10 @@ module Aws::Organizations
|
|
|
641
634
|
#
|
|
642
635
|
# * [SECURITYHUB\_POLICY][8]
|
|
643
636
|
#
|
|
644
|
-
#
|
|
645
|
-
#
|
|
637
|
+
# * [INSPECTOR\_POLICY][9]
|
|
638
|
+
#
|
|
639
|
+
# You can only call this operation from the management account or a
|
|
640
|
+
# member account that is a delegated administrator.
|
|
646
641
|
#
|
|
647
642
|
#
|
|
648
643
|
#
|
|
@@ -654,11 +649,11 @@ module Aws::Organizations
|
|
|
654
649
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
655
650
|
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
656
651
|
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
652
|
+
# [9]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
657
653
|
#
|
|
658
654
|
# @option params [required, String] :policy_id
|
|
659
|
-
#
|
|
660
|
-
# the
|
|
661
|
-
# ListPolicies operation.
|
|
655
|
+
# ID for the policy that you want to attach to the target. You can get
|
|
656
|
+
# the ID for the policy by calling the ListPolicies operation.
|
|
662
657
|
#
|
|
663
658
|
# The [regex pattern][1] for a policy ID string requires "p-" followed
|
|
664
659
|
# by from 8 to 128 lowercase or uppercase letters, digits, or the
|
|
@@ -669,8 +664,8 @@ module Aws::Organizations
|
|
|
669
664
|
# [1]: http://wikipedia.org/wiki/regex
|
|
670
665
|
#
|
|
671
666
|
# @option params [required, String] :target_id
|
|
672
|
-
#
|
|
673
|
-
#
|
|
667
|
+
# ID for the root, OU, or account that you want to attach the policy to.
|
|
668
|
+
# You can get the ID by calling the ListRoots,
|
|
674
669
|
# ListOrganizationalUnitsForParent, or ListAccounts operations.
|
|
675
670
|
#
|
|
676
671
|
# The [regex pattern][1] for a target ID string requires one of the
|
|
@@ -727,20 +722,19 @@ module Aws::Organizations
|
|
|
727
722
|
req.send_request(options)
|
|
728
723
|
end
|
|
729
724
|
|
|
730
|
-
# Cancels a
|
|
731
|
-
# `CANCELED`.
|
|
725
|
+
# Cancels a Handshake.
|
|
732
726
|
#
|
|
733
|
-
#
|
|
734
|
-
#
|
|
735
|
-
#
|
|
736
|
-
# recipient can no longer respond to
|
|
727
|
+
# Only the account that sent a handshake can call this operation. The
|
|
728
|
+
# recipient of the handshake can't cancel it, but can use
|
|
729
|
+
# DeclineHandshake to decline. After a handshake is canceled, the
|
|
730
|
+
# recipient can no longer respond to the handshake.
|
|
737
731
|
#
|
|
738
|
-
#
|
|
739
|
-
#
|
|
732
|
+
# You can view canceled handshakes in API responses for 30 days before
|
|
733
|
+
# they are deleted.
|
|
740
734
|
#
|
|
741
735
|
# @option params [required, String] :handshake_id
|
|
742
|
-
#
|
|
743
|
-
#
|
|
736
|
+
# ID for the handshake that you want to cancel. You can get the ID from
|
|
737
|
+
# the ListHandshakesForOrganization operation.
|
|
744
738
|
#
|
|
745
739
|
# The [regex pattern][1] for handshake ID string requires "h-"
|
|
746
740
|
# followed by from 8 to 32 lowercase letters or digits.
|
|
@@ -829,10 +823,10 @@ module Aws::Organizations
|
|
|
829
823
|
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
830
824
|
# resp.handshake.requested_timestamp #=> Time
|
|
831
825
|
# resp.handshake.expiration_timestamp #=> Time
|
|
832
|
-
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
826
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
833
827
|
# resp.handshake.resources #=> Array
|
|
834
828
|
# 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"
|
|
829
|
+
# 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
830
|
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
837
831
|
#
|
|
838
832
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CancelHandshake AWS API Documentation
|
|
@@ -948,8 +942,7 @@ module Aws::Organizations
|
|
|
948
942
|
# Organizations clones the company name and address information for the
|
|
949
943
|
# new account from the organization's management account.
|
|
950
944
|
#
|
|
951
|
-
#
|
|
952
|
-
# account.
|
|
945
|
+
# You can only call this operation from the management account.
|
|
953
946
|
#
|
|
954
947
|
# For more information about creating accounts, see [Creating a member
|
|
955
948
|
# account in your organization][3] in the *Organizations User Guide*.
|
|
@@ -1558,7 +1551,7 @@ module Aws::Organizations
|
|
|
1558
1551
|
# resp.organization.master_account_id #=> String
|
|
1559
1552
|
# resp.organization.master_account_email #=> String
|
|
1560
1553
|
# 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"
|
|
1554
|
+
# 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"
|
|
1562
1555
|
# resp.organization.available_policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
|
1563
1556
|
#
|
|
1564
1557
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateOrganization AWS API Documentation
|
|
@@ -1583,16 +1576,14 @@ module Aws::Organizations
|
|
|
1583
1576
|
# If the request includes tags, then the requester must have the
|
|
1584
1577
|
# `organizations:TagResource` permission.
|
|
1585
1578
|
#
|
|
1586
|
-
#
|
|
1587
|
-
# account.
|
|
1579
|
+
# You can only call this operation from the management account.
|
|
1588
1580
|
#
|
|
1589
1581
|
#
|
|
1590
1582
|
#
|
|
1591
1583
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_ous.html
|
|
1592
1584
|
#
|
|
1593
1585
|
# @option params [required, String] :parent_id
|
|
1594
|
-
#
|
|
1595
|
-
# create the new OU in.
|
|
1586
|
+
# ID for the parent root or OU that you want to create the new OU in.
|
|
1596
1587
|
#
|
|
1597
1588
|
# The [regex pattern][1] for a parent ID string requires one of the
|
|
1598
1589
|
# following:
|
|
@@ -1690,8 +1681,8 @@ module Aws::Organizations
|
|
|
1690
1681
|
# If the request includes tags, then the requester must have the
|
|
1691
1682
|
# `organizations:TagResource` permission.
|
|
1692
1683
|
#
|
|
1693
|
-
#
|
|
1694
|
-
#
|
|
1684
|
+
# You can only call this operation from the management account or a
|
|
1685
|
+
# member account that is a delegated administrator.
|
|
1695
1686
|
#
|
|
1696
1687
|
#
|
|
1697
1688
|
#
|
|
@@ -1743,6 +1734,8 @@ module Aws::Organizations
|
|
|
1743
1734
|
#
|
|
1744
1735
|
# * [SECURITYHUB\_POLICY][8]
|
|
1745
1736
|
#
|
|
1737
|
+
# * [INSPECTOR\_POLICY][9]
|
|
1738
|
+
#
|
|
1746
1739
|
#
|
|
1747
1740
|
#
|
|
1748
1741
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
|
@@ -1753,6 +1746,7 @@ module Aws::Organizations
|
|
|
1753
1746
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
1754
1747
|
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
1755
1748
|
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
1749
|
+
# [9]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
1756
1750
|
#
|
|
1757
1751
|
# @option params [Array<Types::Tag>] :tags
|
|
1758
1752
|
# A list of tags that you want to attach to the newly created policy.
|
|
@@ -1809,7 +1803,7 @@ module Aws::Organizations
|
|
|
1809
1803
|
# content: "PolicyContent", # required
|
|
1810
1804
|
# description: "PolicyDescription", # required
|
|
1811
1805
|
# 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
|
|
1806
|
+
# 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
|
|
1813
1807
|
# tags: [
|
|
1814
1808
|
# {
|
|
1815
1809
|
# key: "TagKey", # required
|
|
@@ -1824,7 +1818,7 @@ module Aws::Organizations
|
|
|
1824
1818
|
# resp.policy.policy_summary.arn #=> String
|
|
1825
1819
|
# resp.policy.policy_summary.name #=> String
|
|
1826
1820
|
# 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"
|
|
1821
|
+
# 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"
|
|
1828
1822
|
# resp.policy.policy_summary.aws_managed #=> Boolean
|
|
1829
1823
|
# resp.policy.content #=> String
|
|
1830
1824
|
#
|
|
@@ -1837,20 +1831,18 @@ module Aws::Organizations
|
|
|
1837
1831
|
req.send_request(options)
|
|
1838
1832
|
end
|
|
1839
1833
|
|
|
1840
|
-
# Declines a
|
|
1841
|
-
# `DECLINED` and effectively deactivates the request.
|
|
1834
|
+
# Declines a Handshake.
|
|
1842
1835
|
#
|
|
1843
|
-
#
|
|
1844
|
-
#
|
|
1845
|
-
#
|
|
1846
|
-
# reinitiate the process with a new handshake request.
|
|
1836
|
+
# Only the account that receives a handshake can call this operation.
|
|
1837
|
+
# The sender of the handshake can use CancelHandshake to cancel if the
|
|
1838
|
+
# handshake hasn't yet been responded to.
|
|
1847
1839
|
#
|
|
1848
|
-
#
|
|
1849
|
-
#
|
|
1840
|
+
# You can view canceled handshakes in API responses for 30 days before
|
|
1841
|
+
# they are deleted.
|
|
1850
1842
|
#
|
|
1851
1843
|
# @option params [required, String] :handshake_id
|
|
1852
|
-
#
|
|
1853
|
-
#
|
|
1844
|
+
# ID for the handshake that you want to decline. You can get the ID from
|
|
1845
|
+
# the ListHandshakesForAccount operation.
|
|
1854
1846
|
#
|
|
1855
1847
|
# The [regex pattern][1] for handshake ID string requires "h-"
|
|
1856
1848
|
# followed by from 8 to 32 lowercase letters or digits.
|
|
@@ -1935,10 +1927,10 @@ module Aws::Organizations
|
|
|
1935
1927
|
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
1936
1928
|
# resp.handshake.requested_timestamp #=> Time
|
|
1937
1929
|
# resp.handshake.expiration_timestamp #=> Time
|
|
1938
|
-
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
1930
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
1939
1931
|
# resp.handshake.resources #=> Array
|
|
1940
1932
|
# 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"
|
|
1933
|
+
# 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
1934
|
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
1943
1935
|
#
|
|
1944
1936
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeclineHandshake AWS API Documentation
|
|
@@ -1969,13 +1961,11 @@ module Aws::Organizations
|
|
|
1969
1961
|
# must first remove all accounts and child OUs from the OU that you want
|
|
1970
1962
|
# to delete.
|
|
1971
1963
|
#
|
|
1972
|
-
#
|
|
1973
|
-
# account.
|
|
1964
|
+
# You can only call this operation from the management account.
|
|
1974
1965
|
#
|
|
1975
1966
|
# @option params [required, String] :organizational_unit_id
|
|
1976
|
-
#
|
|
1977
|
-
#
|
|
1978
|
-
# operation.
|
|
1967
|
+
# ID for the organizational unit that you want to delete. You can get
|
|
1968
|
+
# the ID from the ListOrganizationalUnitsForParent operation.
|
|
1979
1969
|
#
|
|
1980
1970
|
# The [regex pattern][1] for an organizational unit ID string requires
|
|
1981
1971
|
# "ou-" followed by from 4 to 32 lowercase letters or digits (the ID
|
|
@@ -2017,13 +2007,12 @@ module Aws::Organizations
|
|
|
2017
2007
|
# perform this operation, you must first detach the policy from all
|
|
2018
2008
|
# organizational units (OUs), roots, and accounts.
|
|
2019
2009
|
#
|
|
2020
|
-
#
|
|
2021
|
-
#
|
|
2010
|
+
# You can only call this operation from the management account or a
|
|
2011
|
+
# member account that is a delegated administrator.
|
|
2022
2012
|
#
|
|
2023
2013
|
# @option params [required, String] :policy_id
|
|
2024
|
-
#
|
|
2025
|
-
#
|
|
2026
|
-
# operations.
|
|
2014
|
+
# ID for the policy that you want to delete. You can get the ID from the
|
|
2015
|
+
# ListPolicies or ListPoliciesForTarget operations.
|
|
2027
2016
|
#
|
|
2028
2017
|
# The [regex pattern][1] for a policy ID string requires "p-" followed
|
|
2029
2018
|
# by from 8 to 128 lowercase or uppercase letters, digits, or the
|
|
@@ -2062,8 +2051,7 @@ module Aws::Organizations
|
|
|
2062
2051
|
|
|
2063
2052
|
# Deletes the resource policy from your organization.
|
|
2064
2053
|
#
|
|
2065
|
-
#
|
|
2066
|
-
# account.
|
|
2054
|
+
# You can only call this operation from the management account.
|
|
2067
2055
|
#
|
|
2068
2056
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
2069
2057
|
#
|
|
@@ -2090,8 +2078,7 @@ module Aws::Organizations
|
|
|
2090
2078
|
# [Amazon Web Services Services that you can use with Organizations][1]
|
|
2091
2079
|
# in the *Organizations User Guide.*
|
|
2092
2080
|
#
|
|
2093
|
-
#
|
|
2094
|
-
# account.
|
|
2081
|
+
# You can only call this operation from the management account.
|
|
2095
2082
|
#
|
|
2096
2083
|
#
|
|
2097
2084
|
#
|
|
@@ -2132,8 +2119,8 @@ module Aws::Organizations
|
|
|
2132
2119
|
# Retrieves Organizations-related information about the specified
|
|
2133
2120
|
# account.
|
|
2134
2121
|
#
|
|
2135
|
-
#
|
|
2136
|
-
#
|
|
2122
|
+
# You can only call this operation from the management account or a
|
|
2123
|
+
# member account that is a delegated administrator.
|
|
2137
2124
|
#
|
|
2138
2125
|
# @option params [required, String] :account_id
|
|
2139
2126
|
# The unique identifier (ID) of the Amazon Web Services account that you
|
|
@@ -2199,8 +2186,8 @@ module Aws::Organizations
|
|
|
2199
2186
|
# Retrieves the current status of an asynchronous request to create an
|
|
2200
2187
|
# account.
|
|
2201
2188
|
#
|
|
2202
|
-
#
|
|
2203
|
-
#
|
|
2189
|
+
# You can only call this operation from the management account or a
|
|
2190
|
+
# member account that is a delegated administrator.
|
|
2204
2191
|
#
|
|
2205
2192
|
# @option params [required, String] :create_account_request_id
|
|
2206
2193
|
# Specifies the `Id` value that uniquely identifies the `CreateAccount`
|
|
@@ -2277,7 +2264,7 @@ module Aws::Organizations
|
|
|
2277
2264
|
# For more information about policy inheritance, see [Understanding
|
|
2278
2265
|
# management policy inheritance][1] in the *Organizations User Guide*.
|
|
2279
2266
|
#
|
|
2280
|
-
#
|
|
2267
|
+
# You can call this operation from any account in a organization.
|
|
2281
2268
|
#
|
|
2282
2269
|
#
|
|
2283
2270
|
#
|
|
@@ -2299,6 +2286,8 @@ module Aws::Organizations
|
|
|
2299
2286
|
#
|
|
2300
2287
|
# * [SECURITYHUB\_POLICY][6]
|
|
2301
2288
|
#
|
|
2289
|
+
# * [INSPECTOR\_POLICY][7]
|
|
2290
|
+
#
|
|
2302
2291
|
#
|
|
2303
2292
|
#
|
|
2304
2293
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html
|
|
@@ -2307,6 +2296,7 @@ module Aws::Organizations
|
|
|
2307
2296
|
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
2308
2297
|
# [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
2309
2298
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
2299
|
+
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
2310
2300
|
#
|
|
2311
2301
|
# @option params [String] :target_id
|
|
2312
2302
|
# When you're signed in as the management account, specify the ID of
|
|
@@ -2320,7 +2310,7 @@ module Aws::Organizations
|
|
|
2320
2310
|
# @example Request syntax with placeholder values
|
|
2321
2311
|
#
|
|
2322
2312
|
# 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
|
|
2313
|
+
# policy_type: "TAG_POLICY", # required, accepts TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY, INSPECTOR_POLICY
|
|
2324
2314
|
# target_id: "PolicyTargetId",
|
|
2325
2315
|
# })
|
|
2326
2316
|
#
|
|
@@ -2329,7 +2319,7 @@ module Aws::Organizations
|
|
|
2329
2319
|
# resp.effective_policy.policy_content #=> String
|
|
2330
2320
|
# resp.effective_policy.last_updated_timestamp #=> Time
|
|
2331
2321
|
# 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"
|
|
2322
|
+
# 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"
|
|
2333
2323
|
#
|
|
2334
2324
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeEffectivePolicy AWS API Documentation
|
|
2335
2325
|
#
|
|
@@ -2340,21 +2330,17 @@ module Aws::Organizations
|
|
|
2340
2330
|
req.send_request(options)
|
|
2341
2331
|
end
|
|
2342
2332
|
|
|
2343
|
-
#
|
|
2344
|
-
#
|
|
2345
|
-
#
|
|
2333
|
+
# Returns details for a handshake. A handshake is the secure exchange of
|
|
2334
|
+
# information between two Amazon Web Services accounts: a sender and a
|
|
2335
|
+
# recipient.
|
|
2346
2336
|
#
|
|
2347
|
-
# You can
|
|
2348
|
-
#
|
|
2349
|
-
# then deleted and no longer accessible.
|
|
2337
|
+
# You can view `ACCEPTED`, `DECLINED`, or `CANCELED` handshakes in API
|
|
2338
|
+
# Responses for 30 days before they are deleted.
|
|
2350
2339
|
#
|
|
2351
|
-
#
|
|
2340
|
+
# You can call this operation from any account in a organization.
|
|
2352
2341
|
#
|
|
2353
2342
|
# @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.
|
|
2343
|
+
# ID for the handshake that you want information about.
|
|
2358
2344
|
#
|
|
2359
2345
|
# The [regex pattern][1] for handshake ID string requires "h-"
|
|
2360
2346
|
# followed by from 8 to 32 lowercase letters or digits.
|
|
@@ -2436,10 +2422,10 @@ module Aws::Organizations
|
|
|
2436
2422
|
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
2437
2423
|
# resp.handshake.requested_timestamp #=> Time
|
|
2438
2424
|
# resp.handshake.expiration_timestamp #=> Time
|
|
2439
|
-
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
2425
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
2440
2426
|
# resp.handshake.resources #=> Array
|
|
2441
2427
|
# 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"
|
|
2428
|
+
# 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
2429
|
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
2444
2430
|
#
|
|
2445
2431
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeHandshake AWS API Documentation
|
|
@@ -2454,7 +2440,7 @@ module Aws::Organizations
|
|
|
2454
2440
|
# Retrieves information about the organization that the user's account
|
|
2455
2441
|
# belongs to.
|
|
2456
2442
|
#
|
|
2457
|
-
#
|
|
2443
|
+
# You can call this operation from any account in a organization.
|
|
2458
2444
|
#
|
|
2459
2445
|
# <note markdown="1"> Even if a policy type is shown as available in the organization, you
|
|
2460
2446
|
# can disable it separately at the root level with DisablePolicyType.
|
|
@@ -2500,7 +2486,7 @@ module Aws::Organizations
|
|
|
2500
2486
|
# resp.organization.master_account_id #=> String
|
|
2501
2487
|
# resp.organization.master_account_email #=> String
|
|
2502
2488
|
# 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"
|
|
2489
|
+
# 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"
|
|
2504
2490
|
# resp.organization.available_policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
|
2505
2491
|
#
|
|
2506
2492
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeOrganization AWS API Documentation
|
|
@@ -2514,13 +2500,12 @@ module Aws::Organizations
|
|
|
2514
2500
|
|
|
2515
2501
|
# Retrieves information about an organizational unit (OU).
|
|
2516
2502
|
#
|
|
2517
|
-
#
|
|
2518
|
-
#
|
|
2503
|
+
# You can only call this operation from the management account or a
|
|
2504
|
+
# member account that is a delegated administrator.
|
|
2519
2505
|
#
|
|
2520
2506
|
# @option params [required, String] :organizational_unit_id
|
|
2521
|
-
#
|
|
2522
|
-
#
|
|
2523
|
-
# ListOrganizationalUnitsForParent operation.
|
|
2507
|
+
# ID for the organizational unit that you want details about. You can
|
|
2508
|
+
# get the ID from the ListOrganizationalUnitsForParent operation.
|
|
2524
2509
|
#
|
|
2525
2510
|
# The [regex pattern][1] for an organizational unit ID string requires
|
|
2526
2511
|
# "ou-" followed by from 4 to 32 lowercase letters or digits (the ID
|
|
@@ -2576,13 +2561,12 @@ module Aws::Organizations
|
|
|
2576
2561
|
|
|
2577
2562
|
# Retrieves information about a policy.
|
|
2578
2563
|
#
|
|
2579
|
-
#
|
|
2580
|
-
#
|
|
2564
|
+
# You can only call this operation from the management account or a
|
|
2565
|
+
# member account that is a delegated administrator.
|
|
2581
2566
|
#
|
|
2582
2567
|
# @option params [required, String] :policy_id
|
|
2583
|
-
#
|
|
2584
|
-
#
|
|
2585
|
-
# operations.
|
|
2568
|
+
# ID for the policy that you want details about. You can get the ID from
|
|
2569
|
+
# the ListPolicies or ListPoliciesForTarget operations.
|
|
2586
2570
|
#
|
|
2587
2571
|
# The [regex pattern][1] for a policy ID string requires "p-" followed
|
|
2588
2572
|
# by from 8 to 128 lowercase or uppercase letters, digits, or the
|
|
@@ -2632,7 +2616,7 @@ module Aws::Organizations
|
|
|
2632
2616
|
# resp.policy.policy_summary.arn #=> String
|
|
2633
2617
|
# resp.policy.policy_summary.name #=> String
|
|
2634
2618
|
# 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"
|
|
2619
|
+
# 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"
|
|
2636
2620
|
# resp.policy.policy_summary.aws_managed #=> Boolean
|
|
2637
2621
|
# resp.policy.content #=> String
|
|
2638
2622
|
#
|
|
@@ -2647,8 +2631,8 @@ module Aws::Organizations
|
|
|
2647
2631
|
|
|
2648
2632
|
# Retrieves information about a resource policy.
|
|
2649
2633
|
#
|
|
2650
|
-
#
|
|
2651
|
-
#
|
|
2634
|
+
# You can only call this operation from the management account or a
|
|
2635
|
+
# member account that is a delegated administrator.
|
|
2652
2636
|
#
|
|
2653
2637
|
# @return [Types::DescribeResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2654
2638
|
#
|
|
@@ -2669,6 +2653,77 @@ module Aws::Organizations
|
|
|
2669
2653
|
req.send_request(options)
|
|
2670
2654
|
end
|
|
2671
2655
|
|
|
2656
|
+
# Returns details for a transfer. A *transfer* is an arrangement between
|
|
2657
|
+
# two management accounts where one account designates the other with
|
|
2658
|
+
# specified responsibilities for their organization.
|
|
2659
|
+
#
|
|
2660
|
+
# @option params [required, String] :id
|
|
2661
|
+
# ID for the transfer.
|
|
2662
|
+
#
|
|
2663
|
+
# @return [Types::DescribeResponsibilityTransferResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2664
|
+
#
|
|
2665
|
+
# * {Types::DescribeResponsibilityTransferResponse#responsibility_transfer #responsibility_transfer} => Types::ResponsibilityTransfer
|
|
2666
|
+
#
|
|
2667
|
+
#
|
|
2668
|
+
# @example Example: To get information about a transfer
|
|
2669
|
+
#
|
|
2670
|
+
# # The following example shows how to request information about a transfer:/n/n
|
|
2671
|
+
#
|
|
2672
|
+
# resp = client.describe_responsibility_transfer({
|
|
2673
|
+
# id: "rt-exampletransferid222",
|
|
2674
|
+
# })
|
|
2675
|
+
#
|
|
2676
|
+
# resp.to_h outputs the following:
|
|
2677
|
+
# {
|
|
2678
|
+
# responsibility_transfer: {
|
|
2679
|
+
# arn: "arn:aws:organizations::222222222222:transfer/o-exampleorgid222/billing/outbound/rt-exampletransferid222",
|
|
2680
|
+
# end_timestamp: Time.parse("2026-01-31T23:59:59+00:00"),
|
|
2681
|
+
# id: "rt-exampletransferid222",
|
|
2682
|
+
# name: "sample transfer",
|
|
2683
|
+
# source: {
|
|
2684
|
+
# management_account_email: "alice@example.com",
|
|
2685
|
+
# management_account_id: "222222222222",
|
|
2686
|
+
# },
|
|
2687
|
+
# start_timestamp: Time.parse("2026-01-01T00:00:00+00:00"),
|
|
2688
|
+
# status: "WITHDRAWN",
|
|
2689
|
+
# target: {
|
|
2690
|
+
# management_account_email: "juan@example.com",
|
|
2691
|
+
# management_account_id: "333333333333",
|
|
2692
|
+
# },
|
|
2693
|
+
# type: "BILLING",
|
|
2694
|
+
# },
|
|
2695
|
+
# }
|
|
2696
|
+
#
|
|
2697
|
+
# @example Request syntax with placeholder values
|
|
2698
|
+
#
|
|
2699
|
+
# resp = client.describe_responsibility_transfer({
|
|
2700
|
+
# id: "ResponsibilityTransferId", # required
|
|
2701
|
+
# })
|
|
2702
|
+
#
|
|
2703
|
+
# @example Response structure
|
|
2704
|
+
#
|
|
2705
|
+
# resp.responsibility_transfer.arn #=> String
|
|
2706
|
+
# resp.responsibility_transfer.name #=> String
|
|
2707
|
+
# resp.responsibility_transfer.id #=> String
|
|
2708
|
+
# resp.responsibility_transfer.type #=> String, one of "BILLING"
|
|
2709
|
+
# resp.responsibility_transfer.status #=> String, one of "REQUESTED", "DECLINED", "CANCELED", "EXPIRED", "ACCEPTED", "WITHDRAWN"
|
|
2710
|
+
# resp.responsibility_transfer.source.management_account_id #=> String
|
|
2711
|
+
# resp.responsibility_transfer.source.management_account_email #=> String
|
|
2712
|
+
# resp.responsibility_transfer.target.management_account_id #=> String
|
|
2713
|
+
# resp.responsibility_transfer.target.management_account_email #=> String
|
|
2714
|
+
# resp.responsibility_transfer.start_timestamp #=> Time
|
|
2715
|
+
# resp.responsibility_transfer.end_timestamp #=> Time
|
|
2716
|
+
# resp.responsibility_transfer.active_handshake_id #=> String
|
|
2717
|
+
#
|
|
2718
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeResponsibilityTransfer AWS API Documentation
|
|
2719
|
+
#
|
|
2720
|
+
# @overload describe_responsibility_transfer(params = {})
|
|
2721
|
+
# @param [Hash] params ({})
|
|
2722
|
+
def describe_responsibility_transfer(params = {}, options = {})
|
|
2723
|
+
req = build_request(:describe_responsibility_transfer, params)
|
|
2724
|
+
req.send_request(options)
|
|
2725
|
+
end
|
|
2726
|
+
|
|
2672
2727
|
# Detaches a policy from a target root, organizational unit (OU), or
|
|
2673
2728
|
# account.
|
|
2674
2729
|
#
|
|
@@ -2687,8 +2742,8 @@ module Aws::Organizations
|
|
|
2687
2742
|
# attached SCP), you're using the authorization strategy of a "[deny
|
|
2688
2743
|
# list][2]".
|
|
2689
2744
|
#
|
|
2690
|
-
#
|
|
2691
|
-
#
|
|
2745
|
+
# You can only call this operation from the management account or a
|
|
2746
|
+
# member account that is a delegated administrator.
|
|
2692
2747
|
#
|
|
2693
2748
|
#
|
|
2694
2749
|
#
|
|
@@ -2696,8 +2751,8 @@ module Aws::Organizations
|
|
|
2696
2751
|
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/SCP_strategies.html#orgs_policies_denylist
|
|
2697
2752
|
#
|
|
2698
2753
|
# @option params [required, String] :policy_id
|
|
2699
|
-
#
|
|
2700
|
-
#
|
|
2754
|
+
# ID for the policy you want to detach. You can get the ID from the
|
|
2755
|
+
# ListPolicies or ListPoliciesForTarget operations.
|
|
2701
2756
|
#
|
|
2702
2757
|
# The [regex pattern][1] for a policy ID string requires "p-" followed
|
|
2703
2758
|
# by from 8 to 128 lowercase or uppercase letters, digits, or the
|
|
@@ -2708,8 +2763,8 @@ module Aws::Organizations
|
|
|
2708
2763
|
# [1]: http://wikipedia.org/wiki/regex
|
|
2709
2764
|
#
|
|
2710
2765
|
# @option params [required, String] :target_id
|
|
2711
|
-
#
|
|
2712
|
-
#
|
|
2766
|
+
# ID for the root, OU, or account that you want to detach the policy
|
|
2767
|
+
# from. You can get the ID from the ListRoots,
|
|
2713
2768
|
# ListOrganizationalUnitsForParent, or ListAccounts operations.
|
|
2714
2769
|
#
|
|
2715
2770
|
# The [regex pattern][1] for a target ID string requires one of the
|
|
@@ -2817,8 +2872,7 @@ module Aws::Organizations
|
|
|
2817
2872
|
# Organizations, see [Using Organizations with other Amazon Web Services
|
|
2818
2873
|
# services][3] in the *Organizations User Guide*.
|
|
2819
2874
|
#
|
|
2820
|
-
#
|
|
2821
|
-
# account.
|
|
2875
|
+
# You can only call this operation from the management account.
|
|
2822
2876
|
#
|
|
2823
2877
|
#
|
|
2824
2878
|
#
|
|
@@ -2863,8 +2917,8 @@ module Aws::Organizations
|
|
|
2863
2917
|
# use ListRoots to see the status of policy types for a specified root,
|
|
2864
2918
|
# and then use this operation.
|
|
2865
2919
|
#
|
|
2866
|
-
#
|
|
2867
|
-
#
|
|
2920
|
+
# You can only call this operation from the management account or a
|
|
2921
|
+
# member account that is a delegated administrator.
|
|
2868
2922
|
#
|
|
2869
2923
|
# To view the status of available policy types in the organization, use
|
|
2870
2924
|
# ListRoots.
|
|
@@ -2874,8 +2928,8 @@ module Aws::Organizations
|
|
|
2874
2928
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
|
2875
2929
|
#
|
|
2876
2930
|
# @option params [required, String] :root_id
|
|
2877
|
-
#
|
|
2878
|
-
#
|
|
2931
|
+
# ID for the root in which you want to disable a policy type. You can
|
|
2932
|
+
# get the ID from the ListRoots operation.
|
|
2879
2933
|
#
|
|
2880
2934
|
# The [regex pattern][1] for a root ID string requires "r-" followed
|
|
2881
2935
|
# by from 4 to 32 lowercase letters or digits.
|
|
@@ -2904,6 +2958,8 @@ module Aws::Organizations
|
|
|
2904
2958
|
#
|
|
2905
2959
|
# * [SECURITYHUB\_POLICY][8]
|
|
2906
2960
|
#
|
|
2961
|
+
# * [INSPECTOR\_POLICY][9]
|
|
2962
|
+
#
|
|
2907
2963
|
#
|
|
2908
2964
|
#
|
|
2909
2965
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
|
@@ -2914,6 +2970,7 @@ module Aws::Organizations
|
|
|
2914
2970
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
2915
2971
|
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
2916
2972
|
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
2973
|
+
# [9]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
2917
2974
|
#
|
|
2918
2975
|
# @return [Types::DisablePolicyTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2919
2976
|
#
|
|
@@ -2945,7 +3002,7 @@ module Aws::Organizations
|
|
|
2945
3002
|
#
|
|
2946
3003
|
# resp = client.disable_policy_type({
|
|
2947
3004
|
# 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
|
|
3005
|
+
# 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
|
|
2949
3006
|
# })
|
|
2950
3007
|
#
|
|
2951
3008
|
# @example Response structure
|
|
@@ -2954,7 +3011,7 @@ module Aws::Organizations
|
|
|
2954
3011
|
# resp.root.arn #=> String
|
|
2955
3012
|
# resp.root.name #=> String
|
|
2956
3013
|
# 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"
|
|
3014
|
+
# 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"
|
|
2958
3015
|
# resp.root.policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
|
2959
3016
|
#
|
|
2960
3017
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DisablePolicyType AWS API Documentation
|
|
@@ -2987,8 +3044,7 @@ module Aws::Organizations
|
|
|
2987
3044
|
# Organizations, see [Using Organizations with other Amazon Web Services
|
|
2988
3045
|
# services][2] in the *Organizations User Guide*.
|
|
2989
3046
|
#
|
|
2990
|
-
#
|
|
2991
|
-
# account.
|
|
3047
|
+
# You can only call this operation from the management account.
|
|
2992
3048
|
#
|
|
2993
3049
|
#
|
|
2994
3050
|
#
|
|
@@ -3049,8 +3105,7 @@ module Aws::Organizations
|
|
|
3049
3105
|
# prevent accounts from leaving the organization. Ensure that your
|
|
3050
3106
|
# account administrators are aware of this.
|
|
3051
3107
|
#
|
|
3052
|
-
#
|
|
3053
|
-
# account.
|
|
3108
|
+
# You can only call this operation from the management account.
|
|
3054
3109
|
#
|
|
3055
3110
|
#
|
|
3056
3111
|
#
|
|
@@ -3106,10 +3161,10 @@ module Aws::Organizations
|
|
|
3106
3161
|
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
3107
3162
|
# resp.handshake.requested_timestamp #=> Time
|
|
3108
3163
|
# resp.handshake.expiration_timestamp #=> Time
|
|
3109
|
-
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
3164
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
3110
3165
|
# resp.handshake.resources #=> Array
|
|
3111
3166
|
# 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"
|
|
3167
|
+
# 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
3168
|
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
3114
3169
|
#
|
|
3115
3170
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnableAllFeatures AWS API Documentation
|
|
@@ -3131,16 +3186,16 @@ module Aws::Organizations
|
|
|
3131
3186
|
# ListRoots to see the status of policy types for a specified root, and
|
|
3132
3187
|
# then use this operation.
|
|
3133
3188
|
#
|
|
3134
|
-
#
|
|
3135
|
-
#
|
|
3189
|
+
# You can only call this operation from the management account or a
|
|
3190
|
+
# member account that is a delegated administrator.
|
|
3136
3191
|
#
|
|
3137
3192
|
# You can enable a policy type in a root only if that policy type is
|
|
3138
3193
|
# available in the organization. To view the status of available policy
|
|
3139
3194
|
# types in the organization, use ListRoots.
|
|
3140
3195
|
#
|
|
3141
3196
|
# @option params [required, String] :root_id
|
|
3142
|
-
#
|
|
3143
|
-
#
|
|
3197
|
+
# ID for the root in which you want to enable a policy type. You can get
|
|
3198
|
+
# the ID from the ListRoots operation.
|
|
3144
3199
|
#
|
|
3145
3200
|
# The [regex pattern][1] for a root ID string requires "r-" followed
|
|
3146
3201
|
# by from 4 to 32 lowercase letters or digits.
|
|
@@ -3169,6 +3224,8 @@ module Aws::Organizations
|
|
|
3169
3224
|
#
|
|
3170
3225
|
# * [SECURITYHUB\_POLICY][8]
|
|
3171
3226
|
#
|
|
3227
|
+
# * [INSPECTOR\_POLICY][9]
|
|
3228
|
+
#
|
|
3172
3229
|
#
|
|
3173
3230
|
#
|
|
3174
3231
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
|
@@ -3179,6 +3236,7 @@ module Aws::Organizations
|
|
|
3179
3236
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
3180
3237
|
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
3181
3238
|
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
3239
|
+
# [9]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
3182
3240
|
#
|
|
3183
3241
|
# @return [Types::EnablePolicyTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3184
3242
|
#
|
|
@@ -3214,7 +3272,7 @@ module Aws::Organizations
|
|
|
3214
3272
|
#
|
|
3215
3273
|
# resp = client.enable_policy_type({
|
|
3216
3274
|
# 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
|
|
3275
|
+
# 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
|
|
3218
3276
|
# })
|
|
3219
3277
|
#
|
|
3220
3278
|
# @example Response structure
|
|
@@ -3223,7 +3281,7 @@ module Aws::Organizations
|
|
|
3223
3281
|
# resp.root.arn #=> String
|
|
3224
3282
|
# resp.root.name #=> String
|
|
3225
3283
|
# 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"
|
|
3284
|
+
# 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"
|
|
3227
3285
|
# resp.root.policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
|
3228
3286
|
#
|
|
3229
3287
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnablePolicyType AWS API Documentation
|
|
@@ -3250,8 +3308,7 @@ module Aws::Organizations
|
|
|
3250
3308
|
# If the request includes tags, then the requester must have the
|
|
3251
3309
|
# `organizations:TagResource` permission.
|
|
3252
3310
|
#
|
|
3253
|
-
#
|
|
3254
|
-
# account.
|
|
3311
|
+
# You can only call this operation from the management account.
|
|
3255
3312
|
#
|
|
3256
3313
|
#
|
|
3257
3314
|
#
|
|
@@ -3397,10 +3454,10 @@ module Aws::Organizations
|
|
|
3397
3454
|
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
3398
3455
|
# resp.handshake.requested_timestamp #=> Time
|
|
3399
3456
|
# resp.handshake.expiration_timestamp #=> Time
|
|
3400
|
-
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE"
|
|
3457
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
3401
3458
|
# resp.handshake.resources #=> Array
|
|
3402
3459
|
# 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"
|
|
3460
|
+
# 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
3461
|
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
3405
3462
|
#
|
|
3406
3463
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/InviteAccountToOrganization AWS API Documentation
|
|
@@ -3412,13 +3469,188 @@ module Aws::Organizations
|
|
|
3412
3469
|
req.send_request(options)
|
|
3413
3470
|
end
|
|
3414
3471
|
|
|
3472
|
+
# Sends an invitation to another organization's management account to
|
|
3473
|
+
# designate your account with the specified responsibilities for their
|
|
3474
|
+
# organization. The invitation is implemented as a Handshake whose
|
|
3475
|
+
# details are in the response.
|
|
3476
|
+
#
|
|
3477
|
+
# You can only call this operation from the management account.
|
|
3478
|
+
#
|
|
3479
|
+
# @option params [required, String] :type
|
|
3480
|
+
# The type of responsibility you want to designate to your organization.
|
|
3481
|
+
# Currently, only `BILLING` is supported.
|
|
3482
|
+
#
|
|
3483
|
+
# @option params [required, Types::HandshakeParty] :target
|
|
3484
|
+
# A `HandshakeParty` object. Contains details for the account you want
|
|
3485
|
+
# to invite. Currently, only `ACCOUNT` and `EMAIL` are supported.
|
|
3486
|
+
#
|
|
3487
|
+
# @option params [String] :notes
|
|
3488
|
+
# Additional information that you want to include in the invitation.
|
|
3489
|
+
#
|
|
3490
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :start_timestamp
|
|
3491
|
+
# Timestamp when the recipient will begin managing the specified
|
|
3492
|
+
# responsibilities.
|
|
3493
|
+
#
|
|
3494
|
+
# @option params [required, String] :source_name
|
|
3495
|
+
# Name you want to assign to the transfer.
|
|
3496
|
+
#
|
|
3497
|
+
# @option params [Array<Types::Tag>] :tags
|
|
3498
|
+
# A list of tags that you want to attach to the transfer. For each tag
|
|
3499
|
+
# in the list, you must specify both a tag key and a value. You can set
|
|
3500
|
+
# the value to an empty string, but you can't set it to `null`. For
|
|
3501
|
+
# more information about tagging, see [Tagging Organizations
|
|
3502
|
+
# resources][1] in the Organizations User Guide.
|
|
3503
|
+
#
|
|
3504
|
+
# Any tags in the request are checked for compliance with any applicable
|
|
3505
|
+
# tag policies when the request is made. The request is rejected if the
|
|
3506
|
+
# tags in the request don't match the requirements of the policy at
|
|
3507
|
+
# that time. Tag policy compliance is <i> <b>not</b> </i> checked again
|
|
3508
|
+
# when the invitation is accepted and the tags are actually attached to
|
|
3509
|
+
# the transfer. That means that if the tag policy changes between the
|
|
3510
|
+
# invitation and the acceptance, then that tags could potentially be
|
|
3511
|
+
# non-compliant.
|
|
3512
|
+
#
|
|
3513
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the allowed
|
|
3514
|
+
# number of tags for a transfer, then the entire request fails and
|
|
3515
|
+
# invitations are not sent.
|
|
3516
|
+
#
|
|
3517
|
+
# </note>
|
|
3518
|
+
#
|
|
3519
|
+
#
|
|
3520
|
+
#
|
|
3521
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_tagging.html
|
|
3522
|
+
#
|
|
3523
|
+
# @return [Types::InviteOrganizationToTransferResponsibilityResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3524
|
+
#
|
|
3525
|
+
# * {Types::InviteOrganizationToTransferResponsibilityResponse#handshake #handshake} => Types::Handshake
|
|
3526
|
+
#
|
|
3527
|
+
#
|
|
3528
|
+
# @example Example: To invite an organization to transfer responsibility
|
|
3529
|
+
#
|
|
3530
|
+
# # The following example shows the management account owned by diego@example.com inviting the management account owned by
|
|
3531
|
+
# # juan@example.com to transfer responsibility.
|
|
3532
|
+
#
|
|
3533
|
+
# resp = client.invite_organization_to_transfer_responsibility({
|
|
3534
|
+
# notes: "transfer notes",
|
|
3535
|
+
# source_name: "transfer name",
|
|
3536
|
+
# start_timestamp: Time.parse("1767225600"),
|
|
3537
|
+
# target: {
|
|
3538
|
+
# id: "juan@example.com",
|
|
3539
|
+
# type: "EMAIL",
|
|
3540
|
+
# },
|
|
3541
|
+
# type: "BILLING",
|
|
3542
|
+
# })
|
|
3543
|
+
#
|
|
3544
|
+
# resp.to_h outputs the following:
|
|
3545
|
+
# {
|
|
3546
|
+
# handshake: {
|
|
3547
|
+
# action: "TRANSFER_RESPONSIBILITY",
|
|
3548
|
+
# arn: "arn:aws:organizations::111111111111:handshake/o-exampleorgid/transfer_responsibility/h-examplehandshakeid111",
|
|
3549
|
+
# expiration_timestamp: Time.parse("2025-12-31T00:00:00+00:00"),
|
|
3550
|
+
# id: "h-examplehandshakeid111",
|
|
3551
|
+
# parties: [
|
|
3552
|
+
# {
|
|
3553
|
+
# id: "o-exampleorgid",
|
|
3554
|
+
# type: "ORGANIZATION",
|
|
3555
|
+
# },
|
|
3556
|
+
# {
|
|
3557
|
+
# id: "juan@example.com",
|
|
3558
|
+
# type: "EMAIL",
|
|
3559
|
+
# },
|
|
3560
|
+
# ],
|
|
3561
|
+
# requested_timestamp: Time.parse("2025-10-21T04:27:19+00:00"),
|
|
3562
|
+
# resources: [
|
|
3563
|
+
# {
|
|
3564
|
+
# resources: [
|
|
3565
|
+
# {
|
|
3566
|
+
# type: "TRANSFER_START_TIMESTAMP",
|
|
3567
|
+
# value: "1767225600",
|
|
3568
|
+
# },
|
|
3569
|
+
# {
|
|
3570
|
+
# type: "TRANSFER_TYPE",
|
|
3571
|
+
# value: "BILLING",
|
|
3572
|
+
# },
|
|
3573
|
+
# ],
|
|
3574
|
+
# type: "RESPONSIBILITY_TRANSFER",
|
|
3575
|
+
# value: "rt-exampletransferid111",
|
|
3576
|
+
# },
|
|
3577
|
+
# {
|
|
3578
|
+
# resources: [
|
|
3579
|
+
# {
|
|
3580
|
+
# type: "MANAGEMENT_EMAIL",
|
|
3581
|
+
# value: "diego@example.com",
|
|
3582
|
+
# },
|
|
3583
|
+
# {
|
|
3584
|
+
# type: "MANAGEMENT_NAME",
|
|
3585
|
+
# value: "Org management account",
|
|
3586
|
+
# },
|
|
3587
|
+
# {
|
|
3588
|
+
# type: "MANAGEMENT_ACCOUNT",
|
|
3589
|
+
# value: "&ExampleAccountId3;",
|
|
3590
|
+
# },
|
|
3591
|
+
# ],
|
|
3592
|
+
# type: "ORGANIZATION",
|
|
3593
|
+
# value: "o-exampleorgid",
|
|
3594
|
+
# },
|
|
3595
|
+
# {
|
|
3596
|
+
# type: "EMAIL",
|
|
3597
|
+
# value: "juan@example.com",
|
|
3598
|
+
# },
|
|
3599
|
+
# ],
|
|
3600
|
+
# state: "REQUESTED",
|
|
3601
|
+
# },
|
|
3602
|
+
# }
|
|
3603
|
+
#
|
|
3604
|
+
# @example Request syntax with placeholder values
|
|
3605
|
+
#
|
|
3606
|
+
# resp = client.invite_organization_to_transfer_responsibility({
|
|
3607
|
+
# type: "BILLING", # required, accepts BILLING
|
|
3608
|
+
# target: { # required
|
|
3609
|
+
# id: "HandshakePartyId", # required
|
|
3610
|
+
# type: "ACCOUNT", # required, accepts ACCOUNT, ORGANIZATION, EMAIL
|
|
3611
|
+
# },
|
|
3612
|
+
# notes: "HandshakeNotes",
|
|
3613
|
+
# start_timestamp: Time.now, # required
|
|
3614
|
+
# source_name: "ResponsibilityTransferName", # required
|
|
3615
|
+
# tags: [
|
|
3616
|
+
# {
|
|
3617
|
+
# key: "TagKey", # required
|
|
3618
|
+
# value: "TagValue", # required
|
|
3619
|
+
# },
|
|
3620
|
+
# ],
|
|
3621
|
+
# })
|
|
3622
|
+
#
|
|
3623
|
+
# @example Response structure
|
|
3624
|
+
#
|
|
3625
|
+
# resp.handshake.id #=> String
|
|
3626
|
+
# resp.handshake.arn #=> String
|
|
3627
|
+
# resp.handshake.parties #=> Array
|
|
3628
|
+
# resp.handshake.parties[0].id #=> String
|
|
3629
|
+
# resp.handshake.parties[0].type #=> String, one of "ACCOUNT", "ORGANIZATION", "EMAIL"
|
|
3630
|
+
# resp.handshake.state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
3631
|
+
# resp.handshake.requested_timestamp #=> Time
|
|
3632
|
+
# resp.handshake.expiration_timestamp #=> Time
|
|
3633
|
+
# resp.handshake.action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
3634
|
+
# resp.handshake.resources #=> Array
|
|
3635
|
+
# resp.handshake.resources[0].value #=> String
|
|
3636
|
+
# 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"
|
|
3637
|
+
# resp.handshake.resources[0].resources #=> Types::HandshakeResources
|
|
3638
|
+
#
|
|
3639
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/InviteOrganizationToTransferResponsibility AWS API Documentation
|
|
3640
|
+
#
|
|
3641
|
+
# @overload invite_organization_to_transfer_responsibility(params = {})
|
|
3642
|
+
# @param [Hash] params ({})
|
|
3643
|
+
def invite_organization_to_transfer_responsibility(params = {}, options = {})
|
|
3644
|
+
req = build_request(:invite_organization_to_transfer_responsibility, params)
|
|
3645
|
+
req.send_request(options)
|
|
3646
|
+
end
|
|
3647
|
+
|
|
3415
3648
|
# Removes a member account from its parent organization. This version of
|
|
3416
3649
|
# the operation is performed by the account that wants to leave. To
|
|
3417
3650
|
# remove a member account as a user in the management account, use
|
|
3418
3651
|
# RemoveAccountFromOrganization instead.
|
|
3419
3652
|
#
|
|
3420
|
-
#
|
|
3421
|
-
# organization.
|
|
3653
|
+
# You can only call from operation from a member account.
|
|
3422
3654
|
#
|
|
3423
3655
|
# * The management account in an organization with all features enabled
|
|
3424
3656
|
# can set service control policies (SCPs) that can restrict what
|
|
@@ -3499,8 +3731,8 @@ module Aws::Organizations
|
|
|
3499
3731
|
# Organizations, see [Using Organizations with other Amazon Web Services
|
|
3500
3732
|
# services][1] in the *Organizations User Guide*.
|
|
3501
3733
|
#
|
|
3502
|
-
#
|
|
3503
|
-
#
|
|
3734
|
+
# You can only call this operation from the management account or a
|
|
3735
|
+
# member account that is a delegated administrator.
|
|
3504
3736
|
#
|
|
3505
3737
|
#
|
|
3506
3738
|
#
|
|
@@ -3514,16 +3746,9 @@ module Aws::Organizations
|
|
|
3514
3746
|
# the output should continue from.
|
|
3515
3747
|
#
|
|
3516
3748
|
# @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.
|
|
3749
|
+
# The maximum number of items to return in the response. If more results
|
|
3750
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
3751
|
+
# the response so that you can retrieve the remaining results.
|
|
3527
3752
|
#
|
|
3528
3753
|
# @return [Types::ListAWSServiceAccessForOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3529
3754
|
#
|
|
@@ -3559,16 +3784,17 @@ module Aws::Organizations
|
|
|
3559
3784
|
# accounts in a specified root or organizational unit (OU), use the
|
|
3560
3785
|
# ListAccountsForParent operation instead.
|
|
3561
3786
|
#
|
|
3562
|
-
# <note markdown="1">
|
|
3563
|
-
#
|
|
3564
|
-
# return an empty set of results even when
|
|
3565
|
-
# available.
|
|
3566
|
-
#
|
|
3787
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
3788
|
+
# parameter value, even if you receive an empty result set. These
|
|
3789
|
+
# operations can occasionally return an empty set of results even when
|
|
3790
|
+
# more results are available. Continue making requests until `NextToken`
|
|
3791
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
3792
|
+
# retrieved all available results.
|
|
3567
3793
|
#
|
|
3568
3794
|
# </note>
|
|
3569
3795
|
#
|
|
3570
|
-
#
|
|
3571
|
-
#
|
|
3796
|
+
# You can only call this operation from the management account or a
|
|
3797
|
+
# member account that is a delegated administrator.
|
|
3572
3798
|
#
|
|
3573
3799
|
# @option params [String] :next_token
|
|
3574
3800
|
# The parameter for receiving additional results if you receive a
|
|
@@ -3578,16 +3804,9 @@ module Aws::Organizations
|
|
|
3578
3804
|
# the output should continue from.
|
|
3579
3805
|
#
|
|
3580
3806
|
# @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.
|
|
3807
|
+
# The maximum number of items to return in the response. If more results
|
|
3808
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
3809
|
+
# the response so that you can retrieve the remaining results.
|
|
3591
3810
|
#
|
|
3592
3811
|
# @return [Types::ListAccountsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3593
3812
|
#
|
|
@@ -3682,16 +3901,17 @@ module Aws::Organizations
|
|
|
3682
3901
|
# and not in any child OUs. To get a list of all accounts in the
|
|
3683
3902
|
# organization, use the ListAccounts operation.
|
|
3684
3903
|
#
|
|
3685
|
-
# <note markdown="1">
|
|
3686
|
-
#
|
|
3687
|
-
# return an empty set of results even when
|
|
3688
|
-
# available.
|
|
3689
|
-
#
|
|
3904
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
3905
|
+
# parameter value, even if you receive an empty result set. These
|
|
3906
|
+
# operations can occasionally return an empty set of results even when
|
|
3907
|
+
# more results are available. Continue making requests until `NextToken`
|
|
3908
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
3909
|
+
# retrieved all available results.
|
|
3690
3910
|
#
|
|
3691
3911
|
# </note>
|
|
3692
3912
|
#
|
|
3693
|
-
#
|
|
3694
|
-
#
|
|
3913
|
+
# You can only call this operation from the management account or a
|
|
3914
|
+
# member account that is a delegated administrator.
|
|
3695
3915
|
#
|
|
3696
3916
|
# @option params [required, String] :parent_id
|
|
3697
3917
|
# The unique identifier (ID) for the parent root or organization unit
|
|
@@ -3705,16 +3925,9 @@ module Aws::Organizations
|
|
|
3705
3925
|
# the output should continue from.
|
|
3706
3926
|
#
|
|
3707
3927
|
# @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.
|
|
3928
|
+
# The maximum number of items to return in the response. If more results
|
|
3929
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
3930
|
+
# the response so that you can retrieve the remaining results.
|
|
3718
3931
|
#
|
|
3719
3932
|
# @return [Types::ListAccountsForParentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3720
3933
|
#
|
|
@@ -3792,8 +4005,8 @@ module Aws::Organizations
|
|
|
3792
4005
|
# being fully enforced on all the intended accounts within an
|
|
3793
4006
|
# organization.
|
|
3794
4007
|
#
|
|
3795
|
-
#
|
|
3796
|
-
#
|
|
4008
|
+
# You can only call this operation from the management account or a
|
|
4009
|
+
# member account that is a delegated administrator.
|
|
3797
4010
|
#
|
|
3798
4011
|
#
|
|
3799
4012
|
#
|
|
@@ -3815,6 +4028,8 @@ module Aws::Organizations
|
|
|
3815
4028
|
#
|
|
3816
4029
|
# * [SECURITYHUB\_POLICY][6]
|
|
3817
4030
|
#
|
|
4031
|
+
# * [INSPECTOR\_POLICY][7]
|
|
4032
|
+
#
|
|
3818
4033
|
#
|
|
3819
4034
|
#
|
|
3820
4035
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html
|
|
@@ -3823,6 +4038,7 @@ module Aws::Organizations
|
|
|
3823
4038
|
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
3824
4039
|
# [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
3825
4040
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
4041
|
+
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
3826
4042
|
#
|
|
3827
4043
|
# @option params [String] :next_token
|
|
3828
4044
|
# The parameter for receiving additional results if you receive a
|
|
@@ -3832,16 +4048,9 @@ module Aws::Organizations
|
|
|
3832
4048
|
# the output should continue from.
|
|
3833
4049
|
#
|
|
3834
4050
|
# @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.
|
|
4051
|
+
# The maximum number of items to return in the response. If more results
|
|
4052
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4053
|
+
# the response so that you can retrieve the remaining results.
|
|
3845
4054
|
#
|
|
3846
4055
|
# @return [Types::ListAccountsWithInvalidEffectivePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3847
4056
|
#
|
|
@@ -3890,7 +4099,7 @@ module Aws::Organizations
|
|
|
3890
4099
|
# @example Request syntax with placeholder values
|
|
3891
4100
|
#
|
|
3892
4101
|
# 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
|
|
4102
|
+
# policy_type: "TAG_POLICY", # required, accepts TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY, INSPECTOR_POLICY
|
|
3894
4103
|
# next_token: "NextToken",
|
|
3895
4104
|
# max_results: 1,
|
|
3896
4105
|
# })
|
|
@@ -3906,7 +4115,7 @@ module Aws::Organizations
|
|
|
3906
4115
|
# resp.accounts[0].state #=> String, one of "PENDING_ACTIVATION", "ACTIVE", "SUSPENDED", "PENDING_CLOSURE", "CLOSED"
|
|
3907
4116
|
# resp.accounts[0].joined_method #=> String, one of "INVITED", "CREATED"
|
|
3908
4117
|
# 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"
|
|
4118
|
+
# resp.policy_type #=> String, one of "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY"
|
|
3910
4119
|
# resp.next_token #=> String
|
|
3911
4120
|
#
|
|
3912
4121
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccountsWithInvalidEffectivePolicy AWS API Documentation
|
|
@@ -3923,16 +4132,17 @@ module Aws::Organizations
|
|
|
3923
4132
|
# with ListParents enables you to traverse the tree structure that makes
|
|
3924
4133
|
# up this root.
|
|
3925
4134
|
#
|
|
3926
|
-
# <note markdown="1">
|
|
3927
|
-
#
|
|
3928
|
-
# return an empty set of results even when
|
|
3929
|
-
# available.
|
|
3930
|
-
#
|
|
4135
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
4136
|
+
# parameter value, even if you receive an empty result set. These
|
|
4137
|
+
# operations can occasionally return an empty set of results even when
|
|
4138
|
+
# more results are available. Continue making requests until `NextToken`
|
|
4139
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
4140
|
+
# retrieved all available results.
|
|
3931
4141
|
#
|
|
3932
4142
|
# </note>
|
|
3933
4143
|
#
|
|
3934
|
-
#
|
|
3935
|
-
#
|
|
4144
|
+
# You can only call this operation from the management account or a
|
|
4145
|
+
# member account that is a delegated administrator.
|
|
3936
4146
|
#
|
|
3937
4147
|
# @option params [required, String] :parent_id
|
|
3938
4148
|
# The unique identifier (ID) for the parent root or OU whose children
|
|
@@ -3964,16 +4174,9 @@ module Aws::Organizations
|
|
|
3964
4174
|
# the output should continue from.
|
|
3965
4175
|
#
|
|
3966
4176
|
# @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.
|
|
4177
|
+
# The maximum number of items to return in the response. If more results
|
|
4178
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4179
|
+
# the response so that you can retrieve the remaining results.
|
|
3977
4180
|
#
|
|
3978
4181
|
# @return [Types::ListChildrenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3979
4182
|
#
|
|
@@ -4034,16 +4237,17 @@ module Aws::Organizations
|
|
|
4034
4237
|
# Lists the account creation requests that match the specified status
|
|
4035
4238
|
# that is currently being tracked for the organization.
|
|
4036
4239
|
#
|
|
4037
|
-
# <note markdown="1">
|
|
4038
|
-
#
|
|
4039
|
-
# return an empty set of results even when
|
|
4040
|
-
# available.
|
|
4041
|
-
#
|
|
4240
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
4241
|
+
# parameter value, even if you receive an empty result set. These
|
|
4242
|
+
# operations can occasionally return an empty set of results even when
|
|
4243
|
+
# more results are available. Continue making requests until `NextToken`
|
|
4244
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
4245
|
+
# retrieved all available results.
|
|
4042
4246
|
#
|
|
4043
4247
|
# </note>
|
|
4044
4248
|
#
|
|
4045
|
-
#
|
|
4046
|
-
#
|
|
4249
|
+
# You can only call this operation from the management account or a
|
|
4250
|
+
# member account that is a delegated administrator.
|
|
4047
4251
|
#
|
|
4048
4252
|
# @option params [Array<String>] :states
|
|
4049
4253
|
# A list of one or more states that you want included in the response.
|
|
@@ -4058,16 +4262,9 @@ module Aws::Organizations
|
|
|
4058
4262
|
# the output should continue from.
|
|
4059
4263
|
#
|
|
4060
4264
|
# @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.
|
|
4265
|
+
# The maximum number of items to return in the response. If more results
|
|
4266
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4267
|
+
# the response so that you can retrieve the remaining results.
|
|
4071
4268
|
#
|
|
4072
4269
|
# @return [Types::ListCreateAccountStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4073
4270
|
#
|
|
@@ -4158,8 +4355,8 @@ module Aws::Organizations
|
|
|
4158
4355
|
# Lists the Amazon Web Services accounts that are designated as
|
|
4159
4356
|
# delegated administrators in this organization.
|
|
4160
4357
|
#
|
|
4161
|
-
#
|
|
4162
|
-
#
|
|
4358
|
+
# You can only call this operation from the management account or a
|
|
4359
|
+
# member account that is a delegated administrator.
|
|
4163
4360
|
#
|
|
4164
4361
|
# @option params [String] :service_principal
|
|
4165
4362
|
# Specifies a service principal name. If specified, then the operation
|
|
@@ -4176,16 +4373,9 @@ module Aws::Organizations
|
|
|
4176
4373
|
# the output should continue from.
|
|
4177
4374
|
#
|
|
4178
4375
|
# @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.
|
|
4376
|
+
# The maximum number of items to return in the response. If more results
|
|
4377
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4378
|
+
# the response so that you can retrieve the remaining results.
|
|
4189
4379
|
#
|
|
4190
4380
|
# @return [Types::ListDelegatedAdministratorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4191
4381
|
#
|
|
@@ -4228,8 +4418,8 @@ module Aws::Organizations
|
|
|
4228
4418
|
# List the Amazon Web Services services for which the specified account
|
|
4229
4419
|
# is a delegated administrator.
|
|
4230
4420
|
#
|
|
4231
|
-
#
|
|
4232
|
-
#
|
|
4421
|
+
# You can only call this operation from the management account or a
|
|
4422
|
+
# member account that is a delegated administrator.
|
|
4233
4423
|
#
|
|
4234
4424
|
# @option params [required, String] :account_id
|
|
4235
4425
|
# The account ID number of a delegated administrator account in the
|
|
@@ -4243,16 +4433,9 @@ module Aws::Organizations
|
|
|
4243
4433
|
# the output should continue from.
|
|
4244
4434
|
#
|
|
4245
4435
|
# @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.
|
|
4436
|
+
# The maximum number of items to return in the response. If more results
|
|
4437
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4438
|
+
# the response so that you can retrieve the remaining results.
|
|
4256
4439
|
#
|
|
4257
4440
|
# @return [Types::ListDelegatedServicesForAccountResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4258
4441
|
#
|
|
@@ -4288,8 +4471,8 @@ module Aws::Organizations
|
|
|
4288
4471
|
# Lists all the validation errors on an [effective policy][1] for a
|
|
4289
4472
|
# specified account and policy type.
|
|
4290
4473
|
#
|
|
4291
|
-
#
|
|
4292
|
-
#
|
|
4474
|
+
# You can only call this operation from the management account or a
|
|
4475
|
+
# member account that is a delegated administrator.
|
|
4293
4476
|
#
|
|
4294
4477
|
#
|
|
4295
4478
|
#
|
|
@@ -4316,6 +4499,8 @@ module Aws::Organizations
|
|
|
4316
4499
|
#
|
|
4317
4500
|
# * [SECURITYHUB\_POLICY][6]
|
|
4318
4501
|
#
|
|
4502
|
+
# * [INSPECTOR\_POLICY][7]
|
|
4503
|
+
#
|
|
4319
4504
|
#
|
|
4320
4505
|
#
|
|
4321
4506
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html
|
|
@@ -4324,6 +4509,7 @@ module Aws::Organizations
|
|
|
4324
4509
|
# [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
4325
4510
|
# [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
4326
4511
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
4512
|
+
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
4327
4513
|
#
|
|
4328
4514
|
# @option params [String] :next_token
|
|
4329
4515
|
# The parameter for receiving additional results if you receive a
|
|
@@ -4333,16 +4519,9 @@ module Aws::Organizations
|
|
|
4333
4519
|
# the output should continue from.
|
|
4334
4520
|
#
|
|
4335
4521
|
# @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.
|
|
4522
|
+
# The maximum number of items to return in the response. If more results
|
|
4523
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4524
|
+
# the response so that you can retrieve the remaining results.
|
|
4346
4525
|
#
|
|
4347
4526
|
# @return [Types::ListEffectivePolicyValidationErrorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4348
4527
|
#
|
|
@@ -4397,7 +4576,7 @@ module Aws::Organizations
|
|
|
4397
4576
|
#
|
|
4398
4577
|
# resp = client.list_effective_policy_validation_errors({
|
|
4399
4578
|
# 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
|
|
4579
|
+
# policy_type: "TAG_POLICY", # required, accepts TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY, INSPECTOR_POLICY
|
|
4401
4580
|
# next_token: "NextToken",
|
|
4402
4581
|
# max_results: 1,
|
|
4403
4582
|
# })
|
|
@@ -4405,7 +4584,7 @@ module Aws::Organizations
|
|
|
4405
4584
|
# @example Response structure
|
|
4406
4585
|
#
|
|
4407
4586
|
# 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"
|
|
4587
|
+
# resp.policy_type #=> String, one of "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY", "INSPECTOR_POLICY"
|
|
4409
4588
|
# resp.path #=> String
|
|
4410
4589
|
# resp.evaluation_timestamp #=> Time
|
|
4411
4590
|
# resp.next_token #=> String
|
|
@@ -4425,31 +4604,25 @@ module Aws::Organizations
|
|
|
4425
4604
|
req.send_request(options)
|
|
4426
4605
|
end
|
|
4427
4606
|
|
|
4428
|
-
# Lists the
|
|
4429
|
-
# the requesting user.
|
|
4607
|
+
# Lists the recent handshakes that you have received.
|
|
4430
4608
|
#
|
|
4431
|
-
#
|
|
4432
|
-
#
|
|
4433
|
-
# that state. After that, they're deleted and no longer accessible.
|
|
4609
|
+
# You can view `CANCELED`, `ACCEPTED`, `DECLINED`, or `EXPIRED`
|
|
4610
|
+
# handshakes in API responses for 30 days before they are deleted.
|
|
4434
4611
|
#
|
|
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.
|
|
4612
|
+
# You can call this operation from any account in a organization.
|
|
4440
4613
|
#
|
|
4441
|
-
#
|
|
4614
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
4615
|
+
# parameter value, even if you receive an empty result set. These
|
|
4616
|
+
# operations can occasionally return an empty set of results even when
|
|
4617
|
+
# more results are available. Continue making requests until `NextToken`
|
|
4618
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
4619
|
+
# retrieved all available results.
|
|
4442
4620
|
#
|
|
4443
|
-
#
|
|
4621
|
+
# </note>
|
|
4444
4622
|
#
|
|
4445
4623
|
# @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.
|
|
4624
|
+
# A `HandshakeFilter` object. Contains the filer used to select the
|
|
4625
|
+
# handshakes for an operation.
|
|
4453
4626
|
#
|
|
4454
4627
|
# @option params [String] :next_token
|
|
4455
4628
|
# The parameter for receiving additional results if you receive a
|
|
@@ -4459,16 +4632,9 @@ module Aws::Organizations
|
|
|
4459
4632
|
# the output should continue from.
|
|
4460
4633
|
#
|
|
4461
4634
|
# @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.
|
|
4635
|
+
# The maximum number of items to return in the response. If more results
|
|
4636
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4637
|
+
# the response so that you can retrieve the remaining results.
|
|
4472
4638
|
#
|
|
4473
4639
|
# @return [Types::ListHandshakesForAccountResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4474
4640
|
#
|
|
@@ -4538,7 +4704,7 @@ module Aws::Organizations
|
|
|
4538
4704
|
#
|
|
4539
4705
|
# resp = client.list_handshakes_for_account({
|
|
4540
4706
|
# filter: {
|
|
4541
|
-
# action_type: "INVITE", # accepts INVITE, ENABLE_ALL_FEATURES, APPROVE_ALL_FEATURES, ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE
|
|
4707
|
+
# action_type: "INVITE", # accepts INVITE, ENABLE_ALL_FEATURES, APPROVE_ALL_FEATURES, ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE, TRANSFER_RESPONSIBILITY
|
|
4542
4708
|
# parent_handshake_id: "HandshakeId",
|
|
4543
4709
|
# },
|
|
4544
4710
|
# next_token: "NextToken",
|
|
@@ -4556,10 +4722,10 @@ module Aws::Organizations
|
|
|
4556
4722
|
# resp.handshakes[0].state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
4557
4723
|
# resp.handshakes[0].requested_timestamp #=> Time
|
|
4558
4724
|
# 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"
|
|
4725
|
+
# resp.handshakes[0].action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
4560
4726
|
# resp.handshakes[0].resources #=> Array
|
|
4561
4727
|
# 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"
|
|
4728
|
+
# 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
4729
|
# resp.handshakes[0].resources[0].resources #=> Types::HandshakeResources
|
|
4564
4730
|
# resp.next_token #=> String
|
|
4565
4731
|
#
|
|
@@ -4572,34 +4738,26 @@ module Aws::Organizations
|
|
|
4572
4738
|
req.send_request(options)
|
|
4573
4739
|
end
|
|
4574
4740
|
|
|
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.
|
|
4741
|
+
# Lists the recent handshakes that you have sent.
|
|
4579
4742
|
#
|
|
4580
|
-
#
|
|
4581
|
-
#
|
|
4582
|
-
# that state. After that, they're deleted and no longer accessible.
|
|
4743
|
+
# You can view `CANCELED`, `ACCEPTED`, `DECLINED`, or `EXPIRED`
|
|
4744
|
+
# handshakes in API responses for 30 days before they are deleted.
|
|
4583
4745
|
#
|
|
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.
|
|
4746
|
+
# You can only call this operation from the management account or a
|
|
4747
|
+
# member account that is a delegated administrator.
|
|
4589
4748
|
#
|
|
4590
|
-
#
|
|
4749
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
4750
|
+
# parameter value, even if you receive an empty result set. These
|
|
4751
|
+
# operations can occasionally return an empty set of results even when
|
|
4752
|
+
# more results are available. Continue making requests until `NextToken`
|
|
4753
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
4754
|
+
# retrieved all available results.
|
|
4591
4755
|
#
|
|
4592
|
-
#
|
|
4593
|
-
# account or by a member account that is a delegated administrator.
|
|
4756
|
+
# </note>
|
|
4594
4757
|
#
|
|
4595
4758
|
# @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.
|
|
4759
|
+
# A `HandshakeFilter` object. Contains the filer used to select the
|
|
4760
|
+
# handshakes for an operation.
|
|
4603
4761
|
#
|
|
4604
4762
|
# @option params [String] :next_token
|
|
4605
4763
|
# The parameter for receiving additional results if you receive a
|
|
@@ -4609,16 +4767,9 @@ module Aws::Organizations
|
|
|
4609
4767
|
# the output should continue from.
|
|
4610
4768
|
#
|
|
4611
4769
|
# @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.
|
|
4770
|
+
# The maximum number of items to return in the response. If more results
|
|
4771
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4772
|
+
# the response so that you can retrieve the remaining results.
|
|
4622
4773
|
#
|
|
4623
4774
|
# @return [Types::ListHandshakesForOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4624
4775
|
#
|
|
@@ -4729,7 +4880,7 @@ module Aws::Organizations
|
|
|
4729
4880
|
#
|
|
4730
4881
|
# resp = client.list_handshakes_for_organization({
|
|
4731
4882
|
# filter: {
|
|
4732
|
-
# action_type: "INVITE", # accepts INVITE, ENABLE_ALL_FEATURES, APPROVE_ALL_FEATURES, ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE
|
|
4883
|
+
# action_type: "INVITE", # accepts INVITE, ENABLE_ALL_FEATURES, APPROVE_ALL_FEATURES, ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE, TRANSFER_RESPONSIBILITY
|
|
4733
4884
|
# parent_handshake_id: "HandshakeId",
|
|
4734
4885
|
# },
|
|
4735
4886
|
# next_token: "NextToken",
|
|
@@ -4747,10 +4898,10 @@ module Aws::Organizations
|
|
|
4747
4898
|
# resp.handshakes[0].state #=> String, one of "REQUESTED", "OPEN", "CANCELED", "ACCEPTED", "DECLINED", "EXPIRED"
|
|
4748
4899
|
# resp.handshakes[0].requested_timestamp #=> Time
|
|
4749
4900
|
# 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"
|
|
4901
|
+
# resp.handshakes[0].action #=> String, one of "INVITE", "ENABLE_ALL_FEATURES", "APPROVE_ALL_FEATURES", "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE", "TRANSFER_RESPONSIBILITY"
|
|
4751
4902
|
# resp.handshakes[0].resources #=> Array
|
|
4752
4903
|
# 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"
|
|
4904
|
+
# 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
4905
|
# resp.handshakes[0].resources[0].resources #=> Types::HandshakeResources
|
|
4755
4906
|
# resp.next_token #=> String
|
|
4756
4907
|
#
|
|
@@ -4763,23 +4914,125 @@ module Aws::Organizations
|
|
|
4763
4914
|
req.send_request(options)
|
|
4764
4915
|
end
|
|
4765
4916
|
|
|
4917
|
+
# Lists transfers that allow you to manage the specified
|
|
4918
|
+
# responsibilities for another organization. This operation returns both
|
|
4919
|
+
# transfer invitations and transfers.
|
|
4920
|
+
#
|
|
4921
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
4922
|
+
# parameter value, even if you receive an empty result set. These
|
|
4923
|
+
# operations can occasionally return an empty set of results even when
|
|
4924
|
+
# more results are available. Continue making requests until `NextToken`
|
|
4925
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
4926
|
+
# retrieved all available results.
|
|
4927
|
+
#
|
|
4928
|
+
# </note>
|
|
4929
|
+
#
|
|
4930
|
+
# @option params [required, String] :type
|
|
4931
|
+
# The type of responsibility. Currently, only `BILLING` is supported.
|
|
4932
|
+
#
|
|
4933
|
+
# @option params [String] :id
|
|
4934
|
+
# ID for the transfer.
|
|
4935
|
+
#
|
|
4936
|
+
# @option params [String] :next_token
|
|
4937
|
+
# The parameter for receiving additional results if you receive a
|
|
4938
|
+
# `NextToken` response in a previous request. A `NextToken` response
|
|
4939
|
+
# indicates that more output is available. Set this parameter to the
|
|
4940
|
+
# value of the previous call's `NextToken` response to indicate where
|
|
4941
|
+
# the output should continue from.
|
|
4942
|
+
#
|
|
4943
|
+
# @option params [Integer] :max_results
|
|
4944
|
+
# The maximum number of items to return in the response. If more results
|
|
4945
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
4946
|
+
# the response so that you can retrieve the remaining results.
|
|
4947
|
+
#
|
|
4948
|
+
# @return [Types::ListInboundResponsibilityTransfersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4949
|
+
#
|
|
4950
|
+
# * {Types::ListInboundResponsibilityTransfersResponse#responsibility_transfers #responsibility_transfers} => Array<Types::ResponsibilityTransfer>
|
|
4951
|
+
# * {Types::ListInboundResponsibilityTransfersResponse#next_token #next_token} => String
|
|
4952
|
+
#
|
|
4953
|
+
#
|
|
4954
|
+
# @example Example: To get a list of all inbound responsibility transfers
|
|
4955
|
+
#
|
|
4956
|
+
# # The following example shows how to get a list of all inbound responsibility transfers that are associated with the
|
|
4957
|
+
# # account of the credentials that were used to call the operation:
|
|
4958
|
+
#
|
|
4959
|
+
# resp = client.list_inbound_responsibility_transfers({
|
|
4960
|
+
# type: "BILLING",
|
|
4961
|
+
# })
|
|
4962
|
+
#
|
|
4963
|
+
# resp.to_h outputs the following:
|
|
4964
|
+
# {
|
|
4965
|
+
# responsibility_transfers: [
|
|
4966
|
+
# {
|
|
4967
|
+
# arn: "arn:aws:organizations::222222222222:transfer/o-exampleorgid/billing/inbound/rt-exampletransferid222",
|
|
4968
|
+
# end_timestamp: Time.parse("2026-01-31T23:59:59+00:00"),
|
|
4969
|
+
# id: "rt-exampletransferid222",
|
|
4970
|
+
# name: "transfer name",
|
|
4971
|
+
# source: {
|
|
4972
|
+
# management_account_id: "222222222222",
|
|
4973
|
+
# },
|
|
4974
|
+
# start_timestamp: Time.parse("2026-01-01T00:00:00+00:00"),
|
|
4975
|
+
# status: "WITHDRAWN",
|
|
4976
|
+
# target: {
|
|
4977
|
+
# management_account_id: "333333333333",
|
|
4978
|
+
# },
|
|
4979
|
+
# type: "BILLING",
|
|
4980
|
+
# },
|
|
4981
|
+
# ],
|
|
4982
|
+
# }
|
|
4983
|
+
#
|
|
4984
|
+
# @example Request syntax with placeholder values
|
|
4985
|
+
#
|
|
4986
|
+
# resp = client.list_inbound_responsibility_transfers({
|
|
4987
|
+
# type: "BILLING", # required, accepts BILLING
|
|
4988
|
+
# id: "ResponsibilityTransferId",
|
|
4989
|
+
# next_token: "NextToken",
|
|
4990
|
+
# max_results: 1,
|
|
4991
|
+
# })
|
|
4992
|
+
#
|
|
4993
|
+
# @example Response structure
|
|
4994
|
+
#
|
|
4995
|
+
# resp.responsibility_transfers #=> Array
|
|
4996
|
+
# resp.responsibility_transfers[0].arn #=> String
|
|
4997
|
+
# resp.responsibility_transfers[0].name #=> String
|
|
4998
|
+
# resp.responsibility_transfers[0].id #=> String
|
|
4999
|
+
# resp.responsibility_transfers[0].type #=> String, one of "BILLING"
|
|
5000
|
+
# resp.responsibility_transfers[0].status #=> String, one of "REQUESTED", "DECLINED", "CANCELED", "EXPIRED", "ACCEPTED", "WITHDRAWN"
|
|
5001
|
+
# resp.responsibility_transfers[0].source.management_account_id #=> String
|
|
5002
|
+
# resp.responsibility_transfers[0].source.management_account_email #=> String
|
|
5003
|
+
# resp.responsibility_transfers[0].target.management_account_id #=> String
|
|
5004
|
+
# resp.responsibility_transfers[0].target.management_account_email #=> String
|
|
5005
|
+
# resp.responsibility_transfers[0].start_timestamp #=> Time
|
|
5006
|
+
# resp.responsibility_transfers[0].end_timestamp #=> Time
|
|
5007
|
+
# resp.responsibility_transfers[0].active_handshake_id #=> String
|
|
5008
|
+
# resp.next_token #=> String
|
|
5009
|
+
#
|
|
5010
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListInboundResponsibilityTransfers AWS API Documentation
|
|
5011
|
+
#
|
|
5012
|
+
# @overload list_inbound_responsibility_transfers(params = {})
|
|
5013
|
+
# @param [Hash] params ({})
|
|
5014
|
+
def list_inbound_responsibility_transfers(params = {}, options = {})
|
|
5015
|
+
req = build_request(:list_inbound_responsibility_transfers, params)
|
|
5016
|
+
req.send_request(options)
|
|
5017
|
+
end
|
|
5018
|
+
|
|
4766
5019
|
# Lists the organizational units (OUs) in a parent organizational unit
|
|
4767
5020
|
# or root.
|
|
4768
5021
|
#
|
|
4769
|
-
# <note markdown="1">
|
|
4770
|
-
#
|
|
4771
|
-
# return an empty set of results even when
|
|
4772
|
-
# available.
|
|
4773
|
-
#
|
|
5022
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5023
|
+
# parameter value, even if you receive an empty result set. These
|
|
5024
|
+
# operations can occasionally return an empty set of results even when
|
|
5025
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5026
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5027
|
+
# retrieved all available results.
|
|
4774
5028
|
#
|
|
4775
5029
|
# </note>
|
|
4776
5030
|
#
|
|
4777
|
-
#
|
|
4778
|
-
#
|
|
5031
|
+
# You can only call this operation from the management account or a
|
|
5032
|
+
# member account that is a delegated administrator.
|
|
4779
5033
|
#
|
|
4780
5034
|
# @option params [required, String] :parent_id
|
|
4781
|
-
#
|
|
4782
|
-
# to list.
|
|
5035
|
+
# ID for the root or OU whose child OUs you want to list.
|
|
4783
5036
|
#
|
|
4784
5037
|
# The [regex pattern][1] for a parent ID string requires one of the
|
|
4785
5038
|
# following:
|
|
@@ -4804,16 +5057,9 @@ module Aws::Organizations
|
|
|
4804
5057
|
# the output should continue from.
|
|
4805
5058
|
#
|
|
4806
5059
|
# @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.
|
|
5060
|
+
# The maximum number of items to return in the response. If more results
|
|
5061
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5062
|
+
# the response so that you can retrieve the remaining results.
|
|
4817
5063
|
#
|
|
4818
5064
|
# @return [Types::ListOrganizationalUnitsForParentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4819
5065
|
#
|
|
@@ -4872,29 +5118,128 @@ module Aws::Organizations
|
|
|
4872
5118
|
req.send_request(options)
|
|
4873
5119
|
end
|
|
4874
5120
|
|
|
5121
|
+
# Lists transfers that allow an account outside your organization to
|
|
5122
|
+
# manage the specified responsibilities for your organization. This
|
|
5123
|
+
# operation returns both transfer invitations and transfers.
|
|
5124
|
+
#
|
|
5125
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5126
|
+
# parameter value, even if you receive an empty result set. These
|
|
5127
|
+
# operations can occasionally return an empty set of results even when
|
|
5128
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5129
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5130
|
+
# retrieved all available results.
|
|
5131
|
+
#
|
|
5132
|
+
# </note>
|
|
5133
|
+
#
|
|
5134
|
+
# @option params [required, String] :type
|
|
5135
|
+
# The type of responsibility. Currently, only `BILLING` is supported.
|
|
5136
|
+
#
|
|
5137
|
+
# @option params [String] :next_token
|
|
5138
|
+
# The parameter for receiving additional results if you receive a
|
|
5139
|
+
# `NextToken` response in a previous request. A `NextToken` response
|
|
5140
|
+
# indicates that more output is available. Set this parameter to the
|
|
5141
|
+
# value of the previous call's `NextToken` response to indicate where
|
|
5142
|
+
# the output should continue from.
|
|
5143
|
+
#
|
|
5144
|
+
# @option params [Integer] :max_results
|
|
5145
|
+
# The maximum number of items to return in the response. If more results
|
|
5146
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5147
|
+
# the response so that you can retrieve the remaining results.
|
|
5148
|
+
#
|
|
5149
|
+
# @return [Types::ListOutboundResponsibilityTransfersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5150
|
+
#
|
|
5151
|
+
# * {Types::ListOutboundResponsibilityTransfersResponse#responsibility_transfers #responsibility_transfers} => Array<Types::ResponsibilityTransfer>
|
|
5152
|
+
# * {Types::ListOutboundResponsibilityTransfersResponse#next_token #next_token} => String
|
|
5153
|
+
#
|
|
5154
|
+
#
|
|
5155
|
+
# @example Example: To get a list of all outbound responsibility transfers
|
|
5156
|
+
#
|
|
5157
|
+
# # The following example shows how to get a list of all outbound responsibility transfers that are associated with the
|
|
5158
|
+
# # account of the credentials that were used to call the operation:
|
|
5159
|
+
#
|
|
5160
|
+
# resp = client.list_outbound_responsibility_transfers({
|
|
5161
|
+
# type: "BILLING",
|
|
5162
|
+
# })
|
|
5163
|
+
#
|
|
5164
|
+
# resp.to_h outputs the following:
|
|
5165
|
+
# {
|
|
5166
|
+
# responsibility_transfers: [
|
|
5167
|
+
# {
|
|
5168
|
+
# arn: "arn:aws:organizations::222222222222:transfer/o-exampleorgid222/billing/outbound/rt-exampletransferid222",
|
|
5169
|
+
# end_timestamp: Time.parse("2026-01-31T23:59:59+00:00"),
|
|
5170
|
+
# id: "rt-exampletransferid222",
|
|
5171
|
+
# name: "transfer name",
|
|
5172
|
+
# source: {
|
|
5173
|
+
# management_account_id: "222222222222",
|
|
5174
|
+
# },
|
|
5175
|
+
# start_timestamp: Time.parse("2026-01-01T00:00:00+00:00"),
|
|
5176
|
+
# status: "WITHDRAWN",
|
|
5177
|
+
# target: {
|
|
5178
|
+
# management_account_id: "333333333333",
|
|
5179
|
+
# },
|
|
5180
|
+
# type: "BILLING",
|
|
5181
|
+
# },
|
|
5182
|
+
# ],
|
|
5183
|
+
# }
|
|
5184
|
+
#
|
|
5185
|
+
# @example Request syntax with placeholder values
|
|
5186
|
+
#
|
|
5187
|
+
# resp = client.list_outbound_responsibility_transfers({
|
|
5188
|
+
# type: "BILLING", # required, accepts BILLING
|
|
5189
|
+
# next_token: "NextToken",
|
|
5190
|
+
# max_results: 1,
|
|
5191
|
+
# })
|
|
5192
|
+
#
|
|
5193
|
+
# @example Response structure
|
|
5194
|
+
#
|
|
5195
|
+
# resp.responsibility_transfers #=> Array
|
|
5196
|
+
# resp.responsibility_transfers[0].arn #=> String
|
|
5197
|
+
# resp.responsibility_transfers[0].name #=> String
|
|
5198
|
+
# resp.responsibility_transfers[0].id #=> String
|
|
5199
|
+
# resp.responsibility_transfers[0].type #=> String, one of "BILLING"
|
|
5200
|
+
# resp.responsibility_transfers[0].status #=> String, one of "REQUESTED", "DECLINED", "CANCELED", "EXPIRED", "ACCEPTED", "WITHDRAWN"
|
|
5201
|
+
# resp.responsibility_transfers[0].source.management_account_id #=> String
|
|
5202
|
+
# resp.responsibility_transfers[0].source.management_account_email #=> String
|
|
5203
|
+
# resp.responsibility_transfers[0].target.management_account_id #=> String
|
|
5204
|
+
# resp.responsibility_transfers[0].target.management_account_email #=> String
|
|
5205
|
+
# resp.responsibility_transfers[0].start_timestamp #=> Time
|
|
5206
|
+
# resp.responsibility_transfers[0].end_timestamp #=> Time
|
|
5207
|
+
# resp.responsibility_transfers[0].active_handshake_id #=> String
|
|
5208
|
+
# resp.next_token #=> String
|
|
5209
|
+
#
|
|
5210
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListOutboundResponsibilityTransfers AWS API Documentation
|
|
5211
|
+
#
|
|
5212
|
+
# @overload list_outbound_responsibility_transfers(params = {})
|
|
5213
|
+
# @param [Hash] params ({})
|
|
5214
|
+
def list_outbound_responsibility_transfers(params = {}, options = {})
|
|
5215
|
+
req = build_request(:list_outbound_responsibility_transfers, params)
|
|
5216
|
+
req.send_request(options)
|
|
5217
|
+
end
|
|
5218
|
+
|
|
4875
5219
|
# Lists the root or organizational units (OUs) that serve as the
|
|
4876
5220
|
# immediate parent of the specified child OU or account. This operation,
|
|
4877
5221
|
# along with ListChildren enables you to traverse the tree structure
|
|
4878
5222
|
# that makes up this root.
|
|
4879
5223
|
#
|
|
4880
|
-
# <note markdown="1">
|
|
4881
|
-
#
|
|
4882
|
-
# return an empty set of results even when
|
|
4883
|
-
# available.
|
|
4884
|
-
#
|
|
5224
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5225
|
+
# parameter value, even if you receive an empty result set. These
|
|
5226
|
+
# operations can occasionally return an empty set of results even when
|
|
5227
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5228
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5229
|
+
# retrieved all available results.
|
|
4885
5230
|
#
|
|
4886
5231
|
# </note>
|
|
4887
5232
|
#
|
|
4888
|
-
#
|
|
4889
|
-
#
|
|
5233
|
+
# You can only call this operation from the management account or a
|
|
5234
|
+
# member account that is a delegated administrator.
|
|
4890
5235
|
#
|
|
4891
5236
|
# <note markdown="1"> In the current release, a child can have only a single parent.
|
|
4892
5237
|
#
|
|
4893
5238
|
# </note>
|
|
4894
5239
|
#
|
|
4895
5240
|
# @option params [required, String] :child_id
|
|
4896
|
-
#
|
|
4897
|
-
#
|
|
5241
|
+
# ID for the OU or account whose parent containers you want to list.
|
|
5242
|
+
# Don't specify a root.
|
|
4898
5243
|
#
|
|
4899
5244
|
# The [regex pattern][1] for a child ID string requires one of the
|
|
4900
5245
|
# following:
|
|
@@ -4918,16 +5263,9 @@ module Aws::Organizations
|
|
|
4918
5263
|
# the output should continue from.
|
|
4919
5264
|
#
|
|
4920
5265
|
# @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.
|
|
5266
|
+
# The maximum number of items to return in the response. If more results
|
|
5267
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5268
|
+
# the response so that you can retrieve the remaining results.
|
|
4931
5269
|
#
|
|
4932
5270
|
# @return [Types::ListParentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4933
5271
|
#
|
|
@@ -4982,16 +5320,17 @@ module Aws::Organizations
|
|
|
4982
5320
|
# Retrieves the list of all policies in an organization of a specified
|
|
4983
5321
|
# type.
|
|
4984
5322
|
#
|
|
4985
|
-
# <note markdown="1">
|
|
4986
|
-
#
|
|
4987
|
-
# return an empty set of results even when
|
|
4988
|
-
# available.
|
|
4989
|
-
#
|
|
5323
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5324
|
+
# parameter value, even if you receive an empty result set. These
|
|
5325
|
+
# operations can occasionally return an empty set of results even when
|
|
5326
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5327
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5328
|
+
# retrieved all available results.
|
|
4990
5329
|
#
|
|
4991
5330
|
# </note>
|
|
4992
5331
|
#
|
|
4993
|
-
#
|
|
4994
|
-
#
|
|
5332
|
+
# You can only call this operation from the management account or a
|
|
5333
|
+
# member account that is a delegated administrator.
|
|
4995
5334
|
#
|
|
4996
5335
|
# @option params [required, String] :filter
|
|
4997
5336
|
# Specifies the type of policy that you want to include in the response.
|
|
@@ -5013,6 +5352,8 @@ module Aws::Organizations
|
|
|
5013
5352
|
#
|
|
5014
5353
|
# * [SECURITYHUB\_POLICY][8]
|
|
5015
5354
|
#
|
|
5355
|
+
# * [INSPECTOR\_POLICY][9]
|
|
5356
|
+
#
|
|
5016
5357
|
#
|
|
5017
5358
|
#
|
|
5018
5359
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
|
@@ -5023,6 +5364,7 @@ module Aws::Organizations
|
|
|
5023
5364
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
5024
5365
|
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
5025
5366
|
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
5367
|
+
# [9]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
5026
5368
|
#
|
|
5027
5369
|
# @option params [String] :next_token
|
|
5028
5370
|
# The parameter for receiving additional results if you receive a
|
|
@@ -5032,16 +5374,9 @@ module Aws::Organizations
|
|
|
5032
5374
|
# the output should continue from.
|
|
5033
5375
|
#
|
|
5034
5376
|
# @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.
|
|
5377
|
+
# The maximum number of items to return in the response. If more results
|
|
5378
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5379
|
+
# the response so that you can retrieve the remaining results.
|
|
5045
5380
|
#
|
|
5046
5381
|
# @return [Types::ListPoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5047
5382
|
#
|
|
@@ -5092,7 +5427,7 @@ module Aws::Organizations
|
|
|
5092
5427
|
# @example Request syntax with placeholder values
|
|
5093
5428
|
#
|
|
5094
5429
|
# 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
|
|
5430
|
+
# 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
|
|
5096
5431
|
# next_token: "NextToken",
|
|
5097
5432
|
# max_results: 1,
|
|
5098
5433
|
# })
|
|
@@ -5104,7 +5439,7 @@ module Aws::Organizations
|
|
|
5104
5439
|
# resp.policies[0].arn #=> String
|
|
5105
5440
|
# resp.policies[0].name #=> String
|
|
5106
5441
|
# 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"
|
|
5442
|
+
# 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"
|
|
5108
5443
|
# resp.policies[0].aws_managed #=> Boolean
|
|
5109
5444
|
# resp.next_token #=> String
|
|
5110
5445
|
#
|
|
@@ -5121,20 +5456,21 @@ module Aws::Organizations
|
|
|
5121
5456
|
# root, organizational unit (OU), or account. You must specify the
|
|
5122
5457
|
# policy type that you want included in the returned list.
|
|
5123
5458
|
#
|
|
5124
|
-
# <note markdown="1">
|
|
5125
|
-
#
|
|
5126
|
-
# return an empty set of results even when
|
|
5127
|
-
# available.
|
|
5128
|
-
#
|
|
5459
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5460
|
+
# parameter value, even if you receive an empty result set. These
|
|
5461
|
+
# operations can occasionally return an empty set of results even when
|
|
5462
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5463
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5464
|
+
# retrieved all available results.
|
|
5129
5465
|
#
|
|
5130
5466
|
# </note>
|
|
5131
5467
|
#
|
|
5132
|
-
#
|
|
5133
|
-
#
|
|
5468
|
+
# You can only call this operation from the management account or a
|
|
5469
|
+
# member account that is a delegated administrator.
|
|
5134
5470
|
#
|
|
5135
5471
|
# @option params [required, String] :target_id
|
|
5136
|
-
#
|
|
5137
|
-
#
|
|
5472
|
+
# ID for the root, organizational unit, or account whose policies you
|
|
5473
|
+
# want to list.
|
|
5138
5474
|
#
|
|
5139
5475
|
# The [regex pattern][1] for a target ID string requires one of the
|
|
5140
5476
|
# following:
|
|
@@ -5173,6 +5509,8 @@ module Aws::Organizations
|
|
|
5173
5509
|
#
|
|
5174
5510
|
# * [SECURITYHUB\_POLICY][8]
|
|
5175
5511
|
#
|
|
5512
|
+
# * [INSPECTOR\_POLICY][9]
|
|
5513
|
+
#
|
|
5176
5514
|
#
|
|
5177
5515
|
#
|
|
5178
5516
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
|
@@ -5183,6 +5521,7 @@ module Aws::Organizations
|
|
|
5183
5521
|
# [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
|
|
5184
5522
|
# [7]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
|
5185
5523
|
# [8]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
|
|
5524
|
+
# [9]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html
|
|
5186
5525
|
#
|
|
5187
5526
|
# @option params [String] :next_token
|
|
5188
5527
|
# The parameter for receiving additional results if you receive a
|
|
@@ -5192,16 +5531,9 @@ module Aws::Organizations
|
|
|
5192
5531
|
# the output should continue from.
|
|
5193
5532
|
#
|
|
5194
5533
|
# @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.
|
|
5534
|
+
# The maximum number of items to return in the response. If more results
|
|
5535
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5536
|
+
# the response so that you can retrieve the remaining results.
|
|
5205
5537
|
#
|
|
5206
5538
|
# @return [Types::ListPoliciesForTargetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5207
5539
|
#
|
|
@@ -5240,7 +5572,7 @@ module Aws::Organizations
|
|
|
5240
5572
|
#
|
|
5241
5573
|
# resp = client.list_policies_for_target({
|
|
5242
5574
|
# 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
|
|
5575
|
+
# 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
|
|
5244
5576
|
# next_token: "NextToken",
|
|
5245
5577
|
# max_results: 1,
|
|
5246
5578
|
# })
|
|
@@ -5252,7 +5584,7 @@ module Aws::Organizations
|
|
|
5252
5584
|
# resp.policies[0].arn #=> String
|
|
5253
5585
|
# resp.policies[0].name #=> String
|
|
5254
5586
|
# 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"
|
|
5587
|
+
# 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"
|
|
5256
5588
|
# resp.policies[0].aws_managed #=> Boolean
|
|
5257
5589
|
# resp.next_token #=> String
|
|
5258
5590
|
#
|
|
@@ -5267,16 +5599,17 @@ module Aws::Organizations
|
|
|
5267
5599
|
|
|
5268
5600
|
# Lists the roots that are defined in the current organization.
|
|
5269
5601
|
#
|
|
5270
|
-
# <note markdown="1">
|
|
5271
|
-
#
|
|
5272
|
-
# return an empty set of results even when
|
|
5273
|
-
# available.
|
|
5274
|
-
#
|
|
5602
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5603
|
+
# parameter value, even if you receive an empty result set. These
|
|
5604
|
+
# operations can occasionally return an empty set of results even when
|
|
5605
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5606
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5607
|
+
# retrieved all available results.
|
|
5275
5608
|
#
|
|
5276
5609
|
# </note>
|
|
5277
5610
|
#
|
|
5278
|
-
#
|
|
5279
|
-
#
|
|
5611
|
+
# You can only call this operation from the management account or a
|
|
5612
|
+
# member account that is a delegated administrator.
|
|
5280
5613
|
#
|
|
5281
5614
|
# <note markdown="1"> Policy types can be enabled and disabled in roots. This is distinct
|
|
5282
5615
|
# from whether they're available in the organization. When you enable
|
|
@@ -5295,16 +5628,9 @@ module Aws::Organizations
|
|
|
5295
5628
|
# the output should continue from.
|
|
5296
5629
|
#
|
|
5297
5630
|
# @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.
|
|
5631
|
+
# The maximum number of items to return in the response. If more results
|
|
5632
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5633
|
+
# the response so that you can retrieve the remaining results.
|
|
5308
5634
|
#
|
|
5309
5635
|
# @return [Types::ListRootsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5310
5636
|
#
|
|
@@ -5352,7 +5678,7 @@ module Aws::Organizations
|
|
|
5352
5678
|
# resp.roots[0].arn #=> String
|
|
5353
5679
|
# resp.roots[0].name #=> String
|
|
5354
5680
|
# 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"
|
|
5681
|
+
# 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"
|
|
5356
5682
|
# resp.roots[0].policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
|
5357
5683
|
# resp.next_token #=> String
|
|
5358
5684
|
#
|
|
@@ -5377,8 +5703,8 @@ module Aws::Organizations
|
|
|
5377
5703
|
#
|
|
5378
5704
|
# * Policy (any type)
|
|
5379
5705
|
#
|
|
5380
|
-
#
|
|
5381
|
-
#
|
|
5706
|
+
# You can only call this operation from the management account or a
|
|
5707
|
+
# member account that is a delegated administrator.
|
|
5382
5708
|
#
|
|
5383
5709
|
# @option params [required, String] :resource_id
|
|
5384
5710
|
# The ID of the resource with the tags to list.
|
|
@@ -5436,20 +5762,20 @@ module Aws::Organizations
|
|
|
5436
5762
|
# Lists all the roots, organizational units (OUs), and accounts that the
|
|
5437
5763
|
# specified policy is attached to.
|
|
5438
5764
|
#
|
|
5439
|
-
# <note markdown="1">
|
|
5440
|
-
#
|
|
5441
|
-
# return an empty set of results even when
|
|
5442
|
-
# available.
|
|
5443
|
-
#
|
|
5765
|
+
# <note markdown="1"> When calling List* operations, always check the `NextToken` response
|
|
5766
|
+
# parameter value, even if you receive an empty result set. These
|
|
5767
|
+
# operations can occasionally return an empty set of results even when
|
|
5768
|
+
# more results are available. Continue making requests until `NextToken`
|
|
5769
|
+
# returns null. A null `NextToken` value indicates that you have
|
|
5770
|
+
# retrieved all available results.
|
|
5444
5771
|
#
|
|
5445
5772
|
# </note>
|
|
5446
5773
|
#
|
|
5447
|
-
#
|
|
5448
|
-
#
|
|
5774
|
+
# You can only call this operation from the management account or a
|
|
5775
|
+
# member account that is a delegated administrator.
|
|
5449
5776
|
#
|
|
5450
5777
|
# @option params [required, String] :policy_id
|
|
5451
|
-
#
|
|
5452
|
-
# know.
|
|
5778
|
+
# ID for the policy whose attachments you want to know.
|
|
5453
5779
|
#
|
|
5454
5780
|
# The [regex pattern][1] for a policy ID string requires "p-" followed
|
|
5455
5781
|
# by from 8 to 128 lowercase or uppercase letters, digits, or the
|
|
@@ -5467,16 +5793,9 @@ module Aws::Organizations
|
|
|
5467
5793
|
# the output should continue from.
|
|
5468
5794
|
#
|
|
5469
5795
|
# @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.
|
|
5796
|
+
# The maximum number of items to return in the response. If more results
|
|
5797
|
+
# exist than the specified `MaxResults` value, a token is included in
|
|
5798
|
+
# the response so that you can retrieve the remaining results.
|
|
5480
5799
|
#
|
|
5481
5800
|
# @return [Types::ListTargetsForPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5482
5801
|
#
|
|
@@ -5548,11 +5867,10 @@ module Aws::Organizations
|
|
|
5548
5867
|
# Moves an account from its current source parent root or organizational
|
|
5549
5868
|
# unit (OU) to the specified destination parent root or OU.
|
|
5550
5869
|
#
|
|
5551
|
-
#
|
|
5552
|
-
# account.
|
|
5870
|
+
# You can only call this operation from the management account.
|
|
5553
5871
|
#
|
|
5554
5872
|
# @option params [required, String] :account_id
|
|
5555
|
-
#
|
|
5873
|
+
# ID for the account that you want to move.
|
|
5556
5874
|
#
|
|
5557
5875
|
# The [regex pattern][1] for an account ID string requires exactly 12
|
|
5558
5876
|
# digits.
|
|
@@ -5562,8 +5880,8 @@ module Aws::Organizations
|
|
|
5562
5880
|
# [1]: http://wikipedia.org/wiki/regex
|
|
5563
5881
|
#
|
|
5564
5882
|
# @option params [required, String] :source_parent_id
|
|
5565
|
-
#
|
|
5566
|
-
#
|
|
5883
|
+
# ID for the root or organizational unit that you want to move the
|
|
5884
|
+
# account from.
|
|
5567
5885
|
#
|
|
5568
5886
|
# The [regex pattern][1] for a parent ID string requires one of the
|
|
5569
5887
|
# following:
|
|
@@ -5581,8 +5899,8 @@ module Aws::Organizations
|
|
|
5581
5899
|
# [1]: http://wikipedia.org/wiki/regex
|
|
5582
5900
|
#
|
|
5583
5901
|
# @option params [required, String] :destination_parent_id
|
|
5584
|
-
#
|
|
5585
|
-
#
|
|
5902
|
+
# ID for the root or organizational unit that you want to move the
|
|
5903
|
+
# account to.
|
|
5586
5904
|
#
|
|
5587
5905
|
# The [regex pattern][1] for a parent ID string requires one of the
|
|
5588
5906
|
# following:
|
|
@@ -5631,8 +5949,7 @@ module Aws::Organizations
|
|
|
5631
5949
|
|
|
5632
5950
|
# Creates or updates a resource policy.
|
|
5633
5951
|
#
|
|
5634
|
-
#
|
|
5635
|
-
# account..
|
|
5952
|
+
# You can only call this operation from the management account..
|
|
5636
5953
|
#
|
|
5637
5954
|
# @option params [required, String] :content
|
|
5638
5955
|
# If provided, the new content for the resource policy. The text must be
|
|
@@ -5705,8 +6022,7 @@ module Aws::Organizations
|
|
|
5705
6022
|
# [Amazon Web Services Services that you can use with Organizations][1]
|
|
5706
6023
|
# in the *Organizations User Guide.*
|
|
5707
6024
|
#
|
|
5708
|
-
#
|
|
5709
|
-
# account.
|
|
6025
|
+
# You can only call this operation from the management account.
|
|
5710
6026
|
#
|
|
5711
6027
|
#
|
|
5712
6028
|
#
|
|
@@ -5746,9 +6062,8 @@ module Aws::Organizations
|
|
|
5746
6062
|
# account is no longer charged for any expenses accrued by the member
|
|
5747
6063
|
# account after it's removed from the organization.
|
|
5748
6064
|
#
|
|
5749
|
-
#
|
|
5750
|
-
#
|
|
5751
|
-
# instead.
|
|
6065
|
+
# You can only call this operation from the management account. Member
|
|
6066
|
+
# accounts can remove themselves with LeaveOrganization instead.
|
|
5752
6067
|
#
|
|
5753
6068
|
# * You can remove an account from your organization only if the account
|
|
5754
6069
|
# is configured with the information required to operate as a
|
|
@@ -5775,8 +6090,8 @@ module Aws::Organizations
|
|
|
5775
6090
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_account-before-remove.html
|
|
5776
6091
|
#
|
|
5777
6092
|
# @option params [required, String] :account_id
|
|
5778
|
-
#
|
|
5779
|
-
#
|
|
6093
|
+
# ID for the member account that you want to remove from the
|
|
6094
|
+
# organization.
|
|
5780
6095
|
#
|
|
5781
6096
|
# The [regex pattern][1] for an account ID string requires exactly 12
|
|
5782
6097
|
# digits.
|
|
@@ -5824,8 +6139,8 @@ module Aws::Organizations
|
|
|
5824
6139
|
#
|
|
5825
6140
|
# * Policy (any type)
|
|
5826
6141
|
#
|
|
5827
|
-
#
|
|
5828
|
-
#
|
|
6142
|
+
# You can only call this operation from the management account or a
|
|
6143
|
+
# member account that is a delegated administrator.
|
|
5829
6144
|
#
|
|
5830
6145
|
# @option params [required, String] :resource_id
|
|
5831
6146
|
# The ID of the resource to add a tag to.
|
|
@@ -5877,6 +6192,80 @@ module Aws::Organizations
|
|
|
5877
6192
|
req.send_request(options)
|
|
5878
6193
|
end
|
|
5879
6194
|
|
|
6195
|
+
# Ends a transfer. A *transfer* is an arrangement between two management
|
|
6196
|
+
# accounts where one account designates the other with specified
|
|
6197
|
+
# responsibilities for their organization.
|
|
6198
|
+
#
|
|
6199
|
+
# @option params [required, String] :id
|
|
6200
|
+
# ID for the transfer.
|
|
6201
|
+
#
|
|
6202
|
+
# @option params [Time,DateTime,Date,Integer,String] :end_timestamp
|
|
6203
|
+
# Timestamp when the responsibility transfer is to end.
|
|
6204
|
+
#
|
|
6205
|
+
# @return [Types::TerminateResponsibilityTransferResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6206
|
+
#
|
|
6207
|
+
# * {Types::TerminateResponsibilityTransferResponse#responsibility_transfer #responsibility_transfer} => Types::ResponsibilityTransfer
|
|
6208
|
+
#
|
|
6209
|
+
#
|
|
6210
|
+
# @example Example: To terminate a transfer
|
|
6211
|
+
#
|
|
6212
|
+
# # The following example shows how to terminate a transfer:/n/n
|
|
6213
|
+
#
|
|
6214
|
+
# resp = client.terminate_responsibility_transfer({
|
|
6215
|
+
# end_timestamp: Time.parse("1769903999"),
|
|
6216
|
+
# id: "rt-exampletransferid222",
|
|
6217
|
+
# })
|
|
6218
|
+
#
|
|
6219
|
+
# resp.to_h outputs the following:
|
|
6220
|
+
# {
|
|
6221
|
+
# responsibility_transfer: {
|
|
6222
|
+
# arn: "arn:aws:organizations::222222222222:transfer/o-exampleorgid222/billing/outbound/rt-exampletransferid222",
|
|
6223
|
+
# end_timestamp: Time.parse("2026-01-31T23:59:59+00:00"),
|
|
6224
|
+
# id: "rt-exampletransferid222",
|
|
6225
|
+
# name: "transfer name",
|
|
6226
|
+
# source: {
|
|
6227
|
+
# management_account_id: "222222222222",
|
|
6228
|
+
# },
|
|
6229
|
+
# start_timestamp: Time.parse("2026-01-01T00:00:00+00:00"),
|
|
6230
|
+
# status: "WITHDRAWN",
|
|
6231
|
+
# target: {
|
|
6232
|
+
# management_account_id: "333333333333",
|
|
6233
|
+
# },
|
|
6234
|
+
# type: "BILLING",
|
|
6235
|
+
# },
|
|
6236
|
+
# }
|
|
6237
|
+
#
|
|
6238
|
+
# @example Request syntax with placeholder values
|
|
6239
|
+
#
|
|
6240
|
+
# resp = client.terminate_responsibility_transfer({
|
|
6241
|
+
# id: "ResponsibilityTransferId", # required
|
|
6242
|
+
# end_timestamp: Time.now,
|
|
6243
|
+
# })
|
|
6244
|
+
#
|
|
6245
|
+
# @example Response structure
|
|
6246
|
+
#
|
|
6247
|
+
# resp.responsibility_transfer.arn #=> String
|
|
6248
|
+
# resp.responsibility_transfer.name #=> String
|
|
6249
|
+
# resp.responsibility_transfer.id #=> String
|
|
6250
|
+
# resp.responsibility_transfer.type #=> String, one of "BILLING"
|
|
6251
|
+
# resp.responsibility_transfer.status #=> String, one of "REQUESTED", "DECLINED", "CANCELED", "EXPIRED", "ACCEPTED", "WITHDRAWN"
|
|
6252
|
+
# resp.responsibility_transfer.source.management_account_id #=> String
|
|
6253
|
+
# resp.responsibility_transfer.source.management_account_email #=> String
|
|
6254
|
+
# resp.responsibility_transfer.target.management_account_id #=> String
|
|
6255
|
+
# resp.responsibility_transfer.target.management_account_email #=> String
|
|
6256
|
+
# resp.responsibility_transfer.start_timestamp #=> Time
|
|
6257
|
+
# resp.responsibility_transfer.end_timestamp #=> Time
|
|
6258
|
+
# resp.responsibility_transfer.active_handshake_id #=> String
|
|
6259
|
+
#
|
|
6260
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/TerminateResponsibilityTransfer AWS API Documentation
|
|
6261
|
+
#
|
|
6262
|
+
# @overload terminate_responsibility_transfer(params = {})
|
|
6263
|
+
# @param [Hash] params ({})
|
|
6264
|
+
def terminate_responsibility_transfer(params = {}, options = {})
|
|
6265
|
+
req = build_request(:terminate_responsibility_transfer, params)
|
|
6266
|
+
req.send_request(options)
|
|
6267
|
+
end
|
|
6268
|
+
|
|
5880
6269
|
# Removes any tags with the specified keys from the specified resource.
|
|
5881
6270
|
#
|
|
5882
6271
|
# You can attach tags to the following resources in Organizations.
|
|
@@ -5889,8 +6278,8 @@ module Aws::Organizations
|
|
|
5889
6278
|
#
|
|
5890
6279
|
# * Policy (any type)
|
|
5891
6280
|
#
|
|
5892
|
-
#
|
|
5893
|
-
#
|
|
6281
|
+
# You can only call this operation from the management account or a
|
|
6282
|
+
# member account that is a delegated administrator.
|
|
5894
6283
|
#
|
|
5895
6284
|
# @option params [required, String] :resource_id
|
|
5896
6285
|
# The ID of the resource to remove a tag from.
|
|
@@ -5933,12 +6322,11 @@ module Aws::Organizations
|
|
|
5933
6322
|
# change. The child OUs and accounts remain in place, and any attached
|
|
5934
6323
|
# policies of the OU remain attached.
|
|
5935
6324
|
#
|
|
5936
|
-
#
|
|
5937
|
-
# account.
|
|
6325
|
+
# You can only call this operation from the management account.
|
|
5938
6326
|
#
|
|
5939
6327
|
# @option params [required, String] :organizational_unit_id
|
|
5940
|
-
#
|
|
5941
|
-
#
|
|
6328
|
+
# ID for the OU that you want to rename. You can get the ID from the
|
|
6329
|
+
# ListOrganizationalUnitsForParent operation.
|
|
5942
6330
|
#
|
|
5943
6331
|
# The [regex pattern][1] for an organizational unit ID string requires
|
|
5944
6332
|
# "ou-" followed by from 4 to 32 lowercase letters or digits (the ID
|
|
@@ -6008,11 +6396,11 @@ module Aws::Organizations
|
|
|
6008
6396
|
# If you don't supply any parameter, that value remains unchanged. You
|
|
6009
6397
|
# can't change a policy's type.
|
|
6010
6398
|
#
|
|
6011
|
-
#
|
|
6012
|
-
#
|
|
6399
|
+
# You can only call this operation from the management account or a
|
|
6400
|
+
# member account that is a delegated administrator.
|
|
6013
6401
|
#
|
|
6014
6402
|
# @option params [required, String] :policy_id
|
|
6015
|
-
#
|
|
6403
|
+
# ID for the policy that you want to update.
|
|
6016
6404
|
#
|
|
6017
6405
|
# The [regex pattern][1] for a policy ID string requires "p-" followed
|
|
6018
6406
|
# by from 8 to 128 lowercase or uppercase letters, digits, or the
|
|
@@ -6121,7 +6509,7 @@ module Aws::Organizations
|
|
|
6121
6509
|
# resp.policy.policy_summary.arn #=> String
|
|
6122
6510
|
# resp.policy.policy_summary.name #=> String
|
|
6123
6511
|
# 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"
|
|
6512
|
+
# 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"
|
|
6125
6513
|
# resp.policy.policy_summary.aws_managed #=> Boolean
|
|
6126
6514
|
# resp.policy.content #=> String
|
|
6127
6515
|
#
|
|
@@ -6134,6 +6522,82 @@ module Aws::Organizations
|
|
|
6134
6522
|
req.send_request(options)
|
|
6135
6523
|
end
|
|
6136
6524
|
|
|
6525
|
+
# Updates a transfer. A *transfer* is the arrangement between two
|
|
6526
|
+
# management accounts where one account designates the other with
|
|
6527
|
+
# specified responsibilities for their organization.
|
|
6528
|
+
#
|
|
6529
|
+
# You can update the name assigned to a transfer.
|
|
6530
|
+
#
|
|
6531
|
+
# @option params [required, String] :id
|
|
6532
|
+
# ID for the transfer.
|
|
6533
|
+
#
|
|
6534
|
+
# @option params [required, String] :name
|
|
6535
|
+
# New name you want to assign to the transfer.
|
|
6536
|
+
#
|
|
6537
|
+
# @return [Types::UpdateResponsibilityTransferResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6538
|
+
#
|
|
6539
|
+
# * {Types::UpdateResponsibilityTransferResponse#responsibility_transfer #responsibility_transfer} => Types::ResponsibilityTransfer
|
|
6540
|
+
#
|
|
6541
|
+
#
|
|
6542
|
+
# @example Example: To rename a transfer
|
|
6543
|
+
#
|
|
6544
|
+
# # The following example shows how to rename a transfer. The output confirms the new name:/n/n
|
|
6545
|
+
#
|
|
6546
|
+
# resp = client.update_responsibility_transfer({
|
|
6547
|
+
# id: "rt-exampletransferid222",
|
|
6548
|
+
# name: "new name",
|
|
6549
|
+
# })
|
|
6550
|
+
#
|
|
6551
|
+
# resp.to_h outputs the following:
|
|
6552
|
+
# {
|
|
6553
|
+
# responsibility_transfer: {
|
|
6554
|
+
# arn: "arn:aws:organizations::222222222222:transfer/o-exampleorgid222/billing/outbound/rt-exampletransferid222",
|
|
6555
|
+
# end_timestamp: Time.parse("2026-01-31T23:59:59+00:00"),
|
|
6556
|
+
# id: "rt-exampletransferid222",
|
|
6557
|
+
# name: "new name",
|
|
6558
|
+
# source: {
|
|
6559
|
+
# management_account_id: "222222222222",
|
|
6560
|
+
# },
|
|
6561
|
+
# start_timestamp: Time.parse("2026-01-01T00:00:00+00:00"),
|
|
6562
|
+
# status: "WITHDRAWN",
|
|
6563
|
+
# target: {
|
|
6564
|
+
# management_account_id: "333333333333",
|
|
6565
|
+
# },
|
|
6566
|
+
# type: "BILLING",
|
|
6567
|
+
# },
|
|
6568
|
+
# }
|
|
6569
|
+
#
|
|
6570
|
+
# @example Request syntax with placeholder values
|
|
6571
|
+
#
|
|
6572
|
+
# resp = client.update_responsibility_transfer({
|
|
6573
|
+
# id: "ResponsibilityTransferId", # required
|
|
6574
|
+
# name: "ResponsibilityTransferName", # required
|
|
6575
|
+
# })
|
|
6576
|
+
#
|
|
6577
|
+
# @example Response structure
|
|
6578
|
+
#
|
|
6579
|
+
# resp.responsibility_transfer.arn #=> String
|
|
6580
|
+
# resp.responsibility_transfer.name #=> String
|
|
6581
|
+
# resp.responsibility_transfer.id #=> String
|
|
6582
|
+
# resp.responsibility_transfer.type #=> String, one of "BILLING"
|
|
6583
|
+
# resp.responsibility_transfer.status #=> String, one of "REQUESTED", "DECLINED", "CANCELED", "EXPIRED", "ACCEPTED", "WITHDRAWN"
|
|
6584
|
+
# resp.responsibility_transfer.source.management_account_id #=> String
|
|
6585
|
+
# resp.responsibility_transfer.source.management_account_email #=> String
|
|
6586
|
+
# resp.responsibility_transfer.target.management_account_id #=> String
|
|
6587
|
+
# resp.responsibility_transfer.target.management_account_email #=> String
|
|
6588
|
+
# resp.responsibility_transfer.start_timestamp #=> Time
|
|
6589
|
+
# resp.responsibility_transfer.end_timestamp #=> Time
|
|
6590
|
+
# resp.responsibility_transfer.active_handshake_id #=> String
|
|
6591
|
+
#
|
|
6592
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/UpdateResponsibilityTransfer AWS API Documentation
|
|
6593
|
+
#
|
|
6594
|
+
# @overload update_responsibility_transfer(params = {})
|
|
6595
|
+
# @param [Hash] params ({})
|
|
6596
|
+
def update_responsibility_transfer(params = {}, options = {})
|
|
6597
|
+
req = build_request(:update_responsibility_transfer, params)
|
|
6598
|
+
req.send_request(options)
|
|
6599
|
+
end
|
|
6600
|
+
|
|
6137
6601
|
# @!endgroup
|
|
6138
6602
|
|
|
6139
6603
|
# @param params ({})
|
|
@@ -6152,7 +6616,7 @@ module Aws::Organizations
|
|
|
6152
6616
|
tracer: tracer
|
|
6153
6617
|
)
|
|
6154
6618
|
context[:gem_name] = 'aws-sdk-organizations'
|
|
6155
|
-
context[:gem_version] = '1.
|
|
6619
|
+
context[:gem_version] = '1.128.0'
|
|
6156
6620
|
Seahorse::Client::Request.new(handlers, context)
|
|
6157
6621
|
end
|
|
6158
6622
|
|