aws-sdk-organizations 1.42.1 → 1.47.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/lib/aws-sdk-organizations.rb +3 -1
- data/lib/aws-sdk-organizations/client.rb +183 -118
- data/lib/aws-sdk-organizations/client_api.rb +5 -0
- data/lib/aws-sdk-organizations/errors.rb +2 -0
- data/lib/aws-sdk-organizations/resource.rb +2 -0
- data/lib/aws-sdk-organizations/types.rb +345 -70
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d43ec5e40446e7b7f2b85785b6584e80fe3a8ad2356de8a1b3b2b86cbcc7002
|
4
|
+
data.tar.gz: 7cc5a8bb0f66a57f432ea4ec87555eba7f479b8c310c5877165df90331ce9205
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d903830cc7239c4838822fa3a40fb0b1fc30287e32cfaa3b7a2da23f55643c25fad3a6ac03bcfa077cead90993c3a0960f5b253cba2b291e43de167b28c9331
|
7
|
+
data.tar.gz: 6ae85908925bf79fb1bd5312f17cde47dba6fe81519598d7c7b29ba93d346fd9ecdceff7180c1f724d231ed8811389219b70a33c6ff88c0b9362ade4c7ccf064
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-organizations/customizations'
|
|
45
47
|
# @service
|
46
48
|
module Aws::Organizations
|
47
49
|
|
48
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.47.0'
|
49
51
|
|
50
52
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -459,53 +461,26 @@ module Aws::Organizations
|
|
459
461
|
|
460
462
|
# Attaches a policy to a root, an organizational unit (OU), or an
|
461
463
|
# individual account. How the policy affects accounts depends on the
|
462
|
-
# type of policy
|
463
|
-
#
|
464
|
-
#
|
465
|
-
#
|
466
|
-
#
|
467
|
-
#
|
468
|
-
#
|
469
|
-
#
|
470
|
-
#
|
471
|
-
#
|
472
|
-
# and in any child OUs.
|
473
|
-
#
|
474
|
-
# * If you attach the policy directly to an account, it affects only
|
475
|
-
# that account.
|
476
|
-
#
|
477
|
-
# SCPs are JSON policies that specify the maximum permissions for an
|
478
|
-
# organization or organizational unit (OU). You can attach one SCP to
|
479
|
-
# a higher level root or OU, and a different SCP to a child OU or to
|
480
|
-
# an account. The child policy can further restrict only the
|
481
|
-
# permissions that pass through the parent filter and are available to
|
482
|
-
# the child. An SCP that is attached to a child can't grant a
|
483
|
-
# permission that the parent hasn't already granted. For example,
|
484
|
-
# imagine that the parent SCP allows permissions A, B, C, D, and E.
|
485
|
-
# The child SCP allows C, D, E, F, and G. The result is that the
|
486
|
-
# accounts affected by the child SCP are allowed to use only C, D, and
|
487
|
-
# E. They can't use A or B because the child OU filtered them out.
|
488
|
-
# They also can't use F and G because the parent OU filtered them
|
489
|
-
# out. They can't be granted back by the child SCP; child SCPs can
|
490
|
-
# only filter the permissions they receive from the parent SCP.
|
491
|
-
#
|
492
|
-
# AWS Organizations attaches a default SCP named `"FullAWSAccess` to
|
493
|
-
# every root, OU, and account. This default SCP allows all services
|
494
|
-
# and actions, enabling any new child OU or account to inherit the
|
495
|
-
# permissions of the parent root or OU. If you detach the default
|
496
|
-
# policy, you must replace it with a policy that specifies the
|
497
|
-
# permissions that you want to allow in that OU or account.
|
498
|
-
#
|
499
|
-
# For more information about how AWS Organizations policies
|
500
|
-
# permissions work, see [Using Service Control Policies][1] in the
|
501
|
-
# *AWS Organizations User Guide.*
|
464
|
+
# type of policy. Refer to the *AWS Organizations User Guide* for
|
465
|
+
# information about each policy type:
|
466
|
+
#
|
467
|
+
# * [AISERVICES\_OPT\_OUT\_POLICY][1]
|
468
|
+
#
|
469
|
+
# * [BACKUP\_POLICY][2]
|
470
|
+
#
|
471
|
+
# * [SERVICE\_CONTROL\_POLICY][3]
|
472
|
+
#
|
473
|
+
# * [TAG\_POLICY][4]
|
502
474
|
#
|
503
475
|
# This operation can be called only from the organization's master
|
504
476
|
# account.
|
505
477
|
#
|
506
478
|
#
|
507
479
|
#
|
508
|
-
# [1]:
|
480
|
+
# [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
481
|
+
# [2]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
|
482
|
+
# [3]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
483
|
+
# [4]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
|
509
484
|
#
|
510
485
|
# @option params [required, String] :policy_id
|
511
486
|
# The unique identifier (ID) of the policy that you want to attach to
|
@@ -880,7 +855,7 @@ module Aws::Organizations
|
|
880
855
|
# resp.create_account_status.completed_timestamp #=> Time
|
881
856
|
# resp.create_account_status.account_id #=> String
|
882
857
|
# resp.create_account_status.gov_cloud_account_id #=> String
|
883
|
-
# resp.create_account_status.failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS"
|
858
|
+
# resp.create_account_status.failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS", "MISSING_BUSINESS_VALIDATION", "MISSING_PAYMENT_INSTRUMENT"
|
884
859
|
#
|
885
860
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateAccount AWS API Documentation
|
886
861
|
#
|
@@ -967,12 +942,13 @@ module Aws::Organizations
|
|
967
942
|
#
|
968
943
|
# * When you create an account in an organization using the AWS
|
969
944
|
# Organizations console, API, or CLI commands, the information
|
970
|
-
# required for the account to operate as a standalone account
|
971
|
-
# a payment method and signing
|
972
|
-
#
|
973
|
-
# your organization later, you can do so only after you provide
|
974
|
-
# missing information. Follow the steps at [ To leave an
|
975
|
-
# as a member account][7] in the *AWS Organizations User
|
945
|
+
# required for the account to operate as a standalone account is *not*
|
946
|
+
# automatically collected. This includes a payment method and signing
|
947
|
+
# the end user license agreement (EULA). If you must remove an account
|
948
|
+
# from your organization later, you can do so only after you provide
|
949
|
+
# the missing information. Follow the steps at [ To leave an
|
950
|
+
# organization as a member account][7] in the *AWS Organizations User
|
951
|
+
# Guide.*
|
976
952
|
#
|
977
953
|
# * If you get an exception that indicates that you exceeded your
|
978
954
|
# account limits for the organization, contact [AWS Support][8].
|
@@ -1093,7 +1069,7 @@ module Aws::Organizations
|
|
1093
1069
|
# resp.create_account_status.completed_timestamp #=> Time
|
1094
1070
|
# resp.create_account_status.account_id #=> String
|
1095
1071
|
# resp.create_account_status.gov_cloud_account_id #=> String
|
1096
|
-
# resp.create_account_status.failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS"
|
1072
|
+
# resp.create_account_status.failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS", "MISSING_BUSINESS_VALIDATION", "MISSING_PAYMENT_INSTRUMENT"
|
1097
1073
|
#
|
1098
1074
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateGovCloudAccount AWS API Documentation
|
1099
1075
|
#
|
@@ -1217,7 +1193,7 @@ module Aws::Organizations
|
|
1217
1193
|
# resp.organization.master_account_id #=> String
|
1218
1194
|
# resp.organization.master_account_email #=> String
|
1219
1195
|
# resp.organization.available_policy_types #=> Array
|
1220
|
-
# resp.organization.available_policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY"
|
1196
|
+
# resp.organization.available_policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY"
|
1221
1197
|
# resp.organization.available_policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
1222
1198
|
#
|
1223
1199
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateOrganization AWS API Documentation
|
@@ -1327,17 +1303,9 @@ module Aws::Organizations
|
|
1327
1303
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html
|
1328
1304
|
#
|
1329
1305
|
# @option params [required, String] :content
|
1330
|
-
# The policy content to add to the new policy.
|
1331
|
-
#
|
1332
|
-
#
|
1333
|
-
# can delegate to their users, groups, and roles. For more information
|
1334
|
-
# about the SCP syntax, see [Service Control Policy Syntax][2] in the
|
1335
|
-
# *AWS Organizations User Guide.*
|
1336
|
-
#
|
1337
|
-
#
|
1338
|
-
#
|
1339
|
-
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
1340
|
-
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html
|
1306
|
+
# The policy text content to add to the new policy. The text that you
|
1307
|
+
# supply must adhere to the rules of the policy type you specify in the
|
1308
|
+
# `Type` parameter.
|
1341
1309
|
#
|
1342
1310
|
# @option params [required, String] :description
|
1343
1311
|
# An optional description to assign to the policy.
|
@@ -1353,12 +1321,23 @@ module Aws::Organizations
|
|
1353
1321
|
# [1]: http://wikipedia.org/wiki/regex
|
1354
1322
|
#
|
1355
1323
|
# @option params [required, String] :type
|
1356
|
-
# The type of policy to create.
|
1324
|
+
# The type of policy to create. You can specify one of the following
|
1325
|
+
# values:
|
1326
|
+
#
|
1327
|
+
# * [AISERVICES\_OPT\_OUT\_POLICY][1]
|
1328
|
+
#
|
1329
|
+
# * [BACKUP\_POLICY][2]
|
1357
1330
|
#
|
1358
|
-
#
|
1359
|
-
# a service control policy (SCP).
|
1331
|
+
# * [SERVICE\_CONTROL\_POLICY][3]
|
1360
1332
|
#
|
1361
|
-
#
|
1333
|
+
# * [TAG\_POLICY][4]
|
1334
|
+
#
|
1335
|
+
#
|
1336
|
+
#
|
1337
|
+
# [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
1338
|
+
# [2]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
|
1339
|
+
# [3]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
1340
|
+
# [4]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
|
1362
1341
|
#
|
1363
1342
|
# @return [Types::CreatePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1364
1343
|
#
|
@@ -1398,7 +1377,7 @@ module Aws::Organizations
|
|
1398
1377
|
# content: "PolicyContent", # required
|
1399
1378
|
# description: "PolicyDescription", # required
|
1400
1379
|
# name: "PolicyName", # required
|
1401
|
-
# type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, TAG_POLICY
|
1380
|
+
# type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY
|
1402
1381
|
# })
|
1403
1382
|
#
|
1404
1383
|
# @example Response structure
|
@@ -1407,7 +1386,7 @@ module Aws::Organizations
|
|
1407
1386
|
# resp.policy.policy_summary.arn #=> String
|
1408
1387
|
# resp.policy.policy_summary.name #=> String
|
1409
1388
|
# resp.policy.policy_summary.description #=> String
|
1410
|
-
# resp.policy.policy_summary.type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY"
|
1389
|
+
# resp.policy.policy_summary.type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY"
|
1411
1390
|
# resp.policy.policy_summary.aws_managed #=> Boolean
|
1412
1391
|
# resp.policy.content #=> String
|
1413
1392
|
#
|
@@ -1646,6 +1625,11 @@ module Aws::Organizations
|
|
1646
1625
|
# Removes the specified member AWS account as a delegated administrator
|
1647
1626
|
# for the specified AWS service.
|
1648
1627
|
#
|
1628
|
+
# Deregistering a delegated administrator can have unintended impacts on
|
1629
|
+
# the functionality of the enabled AWS service. See the documentation
|
1630
|
+
# for the enabled service before you deregister a delegated
|
1631
|
+
# administrator so that you understand any potential impacts.
|
1632
|
+
#
|
1649
1633
|
# You can run this action only for AWS services that support this
|
1650
1634
|
# feature. For a current list of services that support it, see the
|
1651
1635
|
# column *Supports Delegated Administrator* in the table at [AWS
|
@@ -1816,7 +1800,7 @@ module Aws::Organizations
|
|
1816
1800
|
# resp.create_account_status.completed_timestamp #=> Time
|
1817
1801
|
# resp.create_account_status.account_id #=> String
|
1818
1802
|
# resp.create_account_status.gov_cloud_account_id #=> String
|
1819
|
-
# resp.create_account_status.failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS"
|
1803
|
+
# resp.create_account_status.failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS", "MISSING_BUSINESS_VALIDATION", "MISSING_PAYMENT_INSTRUMENT"
|
1820
1804
|
#
|
1821
1805
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeCreateAccountStatus AWS API Documentation
|
1822
1806
|
#
|
@@ -1827,14 +1811,15 @@ module Aws::Organizations
|
|
1827
1811
|
req.send_request(options)
|
1828
1812
|
end
|
1829
1813
|
|
1830
|
-
# Returns the contents of the effective
|
1831
|
-
# effective
|
1832
|
-
# account inherits, plus any policy
|
1833
|
-
# account.
|
1814
|
+
# Returns the contents of the effective policy for specified policy type
|
1815
|
+
# and account. The effective policy is the aggregation of any policies
|
1816
|
+
# of the specified type that the account inherits, plus any policy of
|
1817
|
+
# that type that is directly attached to the account.
|
1834
1818
|
#
|
1835
|
-
# This
|
1819
|
+
# This operation applies only to policy types *other* than service
|
1820
|
+
# control policies (SCPs).
|
1836
1821
|
#
|
1837
|
-
# For more information
|
1822
|
+
# For more information about policy inheritance, see [How Policy
|
1838
1823
|
# Inheritance Works][1] in the *AWS Organizations User Guide*.
|
1839
1824
|
#
|
1840
1825
|
# This operation can be called only from the organization's master
|
@@ -1846,12 +1831,25 @@ module Aws::Organizations
|
|
1846
1831
|
# [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies-inheritance.html
|
1847
1832
|
#
|
1848
1833
|
# @option params [required, String] :policy_type
|
1849
|
-
# The type of policy that you want information about.
|
1834
|
+
# The type of policy that you want information about. You can specify
|
1835
|
+
# one of the following values:
|
1836
|
+
#
|
1837
|
+
# * [AISERVICES\_OPT\_OUT\_POLICY][1]
|
1838
|
+
#
|
1839
|
+
# * [BACKUP\_POLICY][2]
|
1840
|
+
#
|
1841
|
+
# * [TAG\_POLICY][3]
|
1842
|
+
#
|
1843
|
+
#
|
1844
|
+
#
|
1845
|
+
# [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
1846
|
+
# [2]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
|
1847
|
+
# [3]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
|
1850
1848
|
#
|
1851
1849
|
# @option params [String] :target_id
|
1852
1850
|
# When you're signed in as the master account, specify the ID of the
|
1853
1851
|
# account that you want details about. Specifying an organization root
|
1854
|
-
# or OU as the target is not supported.
|
1852
|
+
# or organizational unit (OU) as the target is not supported.
|
1855
1853
|
#
|
1856
1854
|
# @return [Types::DescribeEffectivePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1857
1855
|
#
|
@@ -1860,7 +1858,7 @@ module Aws::Organizations
|
|
1860
1858
|
# @example Request syntax with placeholder values
|
1861
1859
|
#
|
1862
1860
|
# resp = client.describe_effective_policy({
|
1863
|
-
# policy_type: "TAG_POLICY", # required, accepts TAG_POLICY
|
1861
|
+
# policy_type: "TAG_POLICY", # required, accepts TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY
|
1864
1862
|
# target_id: "PolicyTargetId",
|
1865
1863
|
# })
|
1866
1864
|
#
|
@@ -1869,7 +1867,7 @@ module Aws::Organizations
|
|
1869
1867
|
# resp.effective_policy.policy_content #=> String
|
1870
1868
|
# resp.effective_policy.last_updated_timestamp #=> Time
|
1871
1869
|
# resp.effective_policy.target_id #=> String
|
1872
|
-
# resp.effective_policy.policy_type #=> String, one of "TAG_POLICY"
|
1870
|
+
# resp.effective_policy.policy_type #=> String, one of "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY"
|
1873
1871
|
#
|
1874
1872
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeEffectivePolicy AWS API Documentation
|
1875
1873
|
#
|
@@ -2040,7 +2038,7 @@ module Aws::Organizations
|
|
2040
2038
|
# resp.organization.master_account_id #=> String
|
2041
2039
|
# resp.organization.master_account_email #=> String
|
2042
2040
|
# resp.organization.available_policy_types #=> Array
|
2043
|
-
# resp.organization.available_policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY"
|
2041
|
+
# resp.organization.available_policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY"
|
2044
2042
|
# resp.organization.available_policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
2045
2043
|
#
|
2046
2044
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeOrganization AWS API Documentation
|
@@ -2174,7 +2172,7 @@ module Aws::Organizations
|
|
2174
2172
|
# resp.policy.policy_summary.arn #=> String
|
2175
2173
|
# resp.policy.policy_summary.name #=> String
|
2176
2174
|
# resp.policy.policy_summary.description #=> String
|
2177
|
-
# resp.policy.policy_summary.type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY"
|
2175
|
+
# resp.policy.policy_summary.type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY"
|
2178
2176
|
# resp.policy.policy_summary.aws_managed #=> Boolean
|
2179
2177
|
# resp.policy.content #=> String
|
2180
2178
|
#
|
@@ -2188,18 +2186,20 @@ module Aws::Organizations
|
|
2188
2186
|
end
|
2189
2187
|
|
2190
2188
|
# Detaches a policy from a target root, organizational unit (OU), or
|
2191
|
-
# account.
|
2192
|
-
#
|
2193
|
-
#
|
2194
|
-
#
|
2195
|
-
#
|
2196
|
-
#
|
2197
|
-
#
|
2198
|
-
#
|
2199
|
-
#
|
2200
|
-
#
|
2201
|
-
#
|
2202
|
-
#
|
2189
|
+
# account.
|
2190
|
+
#
|
2191
|
+
# If the policy being detached is a service control policy (SCP), the
|
2192
|
+
# changes to permissions for AWS Identity and Access Management (IAM)
|
2193
|
+
# users and roles in affected accounts are immediate.
|
2194
|
+
#
|
2195
|
+
# Every root, OU, and account must have at least one SCP attached. If
|
2196
|
+
# you want to replace the default `FullAWSAccess` policy with an SCP
|
2197
|
+
# that limits the permissions that can be delegated, you must attach the
|
2198
|
+
# replacement SCP before you can remove the default SCP. This is the
|
2199
|
+
# authorization strategy of an "[allow list][1]". If you instead
|
2200
|
+
# attach a second SCP and leave the `FullAWSAccess` SCP still attached,
|
2201
|
+
# and specify `"Effect": "Deny"` in the second SCP to override the
|
2202
|
+
# `"Effect": "Allow"` in the `FullAWSAccess` policy (or any other
|
2203
2203
|
# attached SCP), you're using the authorization strategy of a "[deny
|
2204
2204
|
# list][2]".
|
2205
2205
|
#
|
@@ -2208,8 +2208,8 @@ module Aws::Organizations
|
|
2208
2208
|
#
|
2209
2209
|
#
|
2210
2210
|
#
|
2211
|
-
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/
|
2212
|
-
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/
|
2211
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/SCP_strategies.html#orgs_policies_allowlist
|
2212
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/SCP_strategies.html#orgs_policies_denylist
|
2213
2213
|
#
|
2214
2214
|
# @option params [required, String] :policy_id
|
2215
2215
|
# The unique identifier (ID) of the policy you want to detach. You can
|
@@ -2332,18 +2332,19 @@ module Aws::Organizations
|
|
2332
2332
|
req.send_request(options)
|
2333
2333
|
end
|
2334
2334
|
|
2335
|
-
# Disables an organizational
|
2336
|
-
#
|
2335
|
+
# Disables an organizational policy type in a root. A policy of a
|
2336
|
+
# certain type can be attached to entities in a root only if that type
|
2337
2337
|
# is enabled in the root. After you perform this operation, you no
|
2338
2338
|
# longer can attach policies of the specified type to that root or to
|
2339
2339
|
# any organizational unit (OU) or account in that root. You can undo
|
2340
2340
|
# this by using the EnablePolicyType operation.
|
2341
2341
|
#
|
2342
2342
|
# This is an asynchronous request that AWS performs in the background.
|
2343
|
-
# If you disable a policy for a root, it still appears enabled for
|
2344
|
-
# organization if [all features][1] are enabled for the
|
2345
|
-
# AWS recommends that you first use ListRoots to see the
|
2346
|
-
# policy types for a specified root, and then use this
|
2343
|
+
# If you disable a policy type for a root, it still appears enabled for
|
2344
|
+
# the organization if [all features][1] are enabled for the
|
2345
|
+
# organization. AWS recommends that you first use ListRoots to see the
|
2346
|
+
# status of policy types for a specified root, and then use this
|
2347
|
+
# operation.
|
2347
2348
|
#
|
2348
2349
|
# This operation can be called only from the organization's master
|
2349
2350
|
# account.
|
@@ -2367,7 +2368,23 @@ module Aws::Organizations
|
|
2367
2368
|
# [1]: http://wikipedia.org/wiki/regex
|
2368
2369
|
#
|
2369
2370
|
# @option params [required, String] :policy_type
|
2370
|
-
# The policy type that you want to disable in this root.
|
2371
|
+
# The policy type that you want to disable in this root. You can specify
|
2372
|
+
# one of the following values:
|
2373
|
+
#
|
2374
|
+
# * [AISERVICES\_OPT\_OUT\_POLICY][1]
|
2375
|
+
#
|
2376
|
+
# * [BACKUP\_POLICY][2]
|
2377
|
+
#
|
2378
|
+
# * [SERVICE\_CONTROL\_POLICY][3]
|
2379
|
+
#
|
2380
|
+
# * [TAG\_POLICY][4]
|
2381
|
+
#
|
2382
|
+
#
|
2383
|
+
#
|
2384
|
+
# [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
2385
|
+
# [2]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
|
2386
|
+
# [3]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
2387
|
+
# [4]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
|
2371
2388
|
#
|
2372
2389
|
# @return [Types::DisablePolicyTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2373
2390
|
#
|
@@ -2399,7 +2416,7 @@ module Aws::Organizations
|
|
2399
2416
|
#
|
2400
2417
|
# resp = client.disable_policy_type({
|
2401
2418
|
# root_id: "RootId", # required
|
2402
|
-
# policy_type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, TAG_POLICY
|
2419
|
+
# policy_type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY
|
2403
2420
|
# })
|
2404
2421
|
#
|
2405
2422
|
# @example Response structure
|
@@ -2408,7 +2425,7 @@ module Aws::Organizations
|
|
2408
2425
|
# resp.root.arn #=> String
|
2409
2426
|
# resp.root.name #=> String
|
2410
2427
|
# resp.root.policy_types #=> Array
|
2411
|
-
# resp.root.policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY"
|
2428
|
+
# resp.root.policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY"
|
2412
2429
|
# resp.root.policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
2413
2430
|
#
|
2414
2431
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DisablePolicyType AWS API Documentation
|
@@ -2601,7 +2618,23 @@ module Aws::Organizations
|
|
2601
2618
|
# [1]: http://wikipedia.org/wiki/regex
|
2602
2619
|
#
|
2603
2620
|
# @option params [required, String] :policy_type
|
2604
|
-
# The policy type that you want to enable.
|
2621
|
+
# The policy type that you want to enable. You can specify one of the
|
2622
|
+
# following values:
|
2623
|
+
#
|
2624
|
+
# * [AISERVICES\_OPT\_OUT\_POLICY][1]
|
2625
|
+
#
|
2626
|
+
# * [BACKUP\_POLICY][2]
|
2627
|
+
#
|
2628
|
+
# * [SERVICE\_CONTROL\_POLICY][3]
|
2629
|
+
#
|
2630
|
+
# * [TAG\_POLICY][4]
|
2631
|
+
#
|
2632
|
+
#
|
2633
|
+
#
|
2634
|
+
# [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
2635
|
+
# [2]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
|
2636
|
+
# [3]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
2637
|
+
# [4]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
|
2605
2638
|
#
|
2606
2639
|
# @return [Types::EnablePolicyTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2607
2640
|
#
|
@@ -2637,7 +2670,7 @@ module Aws::Organizations
|
|
2637
2670
|
#
|
2638
2671
|
# resp = client.enable_policy_type({
|
2639
2672
|
# root_id: "RootId", # required
|
2640
|
-
# policy_type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, TAG_POLICY
|
2673
|
+
# policy_type: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY
|
2641
2674
|
# })
|
2642
2675
|
#
|
2643
2676
|
# @example Response structure
|
@@ -2646,7 +2679,7 @@ module Aws::Organizations
|
|
2646
2679
|
# resp.root.arn #=> String
|
2647
2680
|
# resp.root.name #=> String
|
2648
2681
|
# resp.root.policy_types #=> Array
|
2649
|
-
# resp.root.policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY"
|
2682
|
+
# resp.root.policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY"
|
2650
2683
|
# resp.root.policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
2651
2684
|
#
|
2652
2685
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnablePolicyType AWS API Documentation
|
@@ -3397,7 +3430,7 @@ module Aws::Organizations
|
|
3397
3430
|
# resp.create_account_statuses[0].completed_timestamp #=> Time
|
3398
3431
|
# resp.create_account_statuses[0].account_id #=> String
|
3399
3432
|
# resp.create_account_statuses[0].gov_cloud_account_id #=> String
|
3400
|
-
# resp.create_account_statuses[0].failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS"
|
3433
|
+
# resp.create_account_statuses[0].failure_reason #=> String, one of "ACCOUNT_LIMIT_EXCEEDED", "EMAIL_ALREADY_EXISTS", "INVALID_ADDRESS", "INVALID_EMAIL", "CONCURRENT_ACCOUNT_MODIFICATION", "INTERNAL_FAILURE", "GOVCLOUD_ACCOUNT_ALREADY_EXISTS", "MISSING_BUSINESS_VALIDATION", "MISSING_PAYMENT_INSTRUMENT"
|
3401
3434
|
# resp.next_token #=> String
|
3402
3435
|
#
|
3403
3436
|
# @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListCreateAccountStatus AWS API Documentation
|
@@ -4116,6 +4149,22 @@ module Aws::Organizations
|
|
4116
4149
|
#
|
4117
4150
|
# @option params [required, String] :filter
|
4118
4151
|
# Specifies the type of policy that you want to include in the response.
|
4152
|
+
# You must specify one of the following values:
|
4153
|
+
#
|
4154
|
+
# * [AISERVICES\_OPT\_OUT\_POLICY][1]
|
4155
|
+
#
|
4156
|
+
# * [BACKUP\_POLICY][2]
|
4157
|
+
#
|
4158
|
+
# * [SERVICE\_CONTROL\_POLICY][3]
|
4159
|
+
#
|
4160
|
+
# * [TAG\_POLICY][4]
|
4161
|
+
#
|
4162
|
+
#
|
4163
|
+
#
|
4164
|
+
# [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
4165
|
+
# [2]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
|
4166
|
+
# [3]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
4167
|
+
# [4]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
|
4119
4168
|
#
|
4120
4169
|
# @option params [String] :next_token
|
4121
4170
|
# The parameter for receiving additional results if you receive a
|
@@ -4185,7 +4234,7 @@ module Aws::Organizations
|
|
4185
4234
|
# @example Request syntax with placeholder values
|
4186
4235
|
#
|
4187
4236
|
# resp = client.list_policies({
|
4188
|
-
# filter: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, TAG_POLICY
|
4237
|
+
# filter: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY
|
4189
4238
|
# next_token: "NextToken",
|
4190
4239
|
# max_results: 1,
|
4191
4240
|
# })
|
@@ -4197,7 +4246,7 @@ module Aws::Organizations
|
|
4197
4246
|
# resp.policies[0].arn #=> String
|
4198
4247
|
# resp.policies[0].name #=> String
|
4199
4248
|
# resp.policies[0].description #=> String
|
4200
|
-
# resp.policies[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY"
|
4249
|
+
# resp.policies[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY"
|
4201
4250
|
# resp.policies[0].aws_managed #=> Boolean
|
4202
4251
|
# resp.next_token #=> String
|
4203
4252
|
#
|
@@ -4248,7 +4297,23 @@ module Aws::Organizations
|
|
4248
4297
|
# [1]: http://wikipedia.org/wiki/regex
|
4249
4298
|
#
|
4250
4299
|
# @option params [required, String] :filter
|
4251
|
-
# The type of policy that you want to include in the returned list.
|
4300
|
+
# The type of policy that you want to include in the returned list. You
|
4301
|
+
# must specify one of the following values:
|
4302
|
+
#
|
4303
|
+
# * [AISERVICES\_OPT\_OUT\_POLICY][1]
|
4304
|
+
#
|
4305
|
+
# * [BACKUP\_POLICY][2]
|
4306
|
+
#
|
4307
|
+
# * [SERVICE\_CONTROL\_POLICY][3]
|
4308
|
+
#
|
4309
|
+
# * [TAG\_POLICY][4]
|
4310
|
+
#
|
4311
|
+
#
|
4312
|
+
#
|
4313
|
+
# [1]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
|
4314
|
+
# [2]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
|
4315
|
+
# [3]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
|
4316
|
+
# [4]: http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
|
4252
4317
|
#
|
4253
4318
|
# @option params [String] :next_token
|
4254
4319
|
# The parameter for receiving additional results if you receive a
|
@@ -4306,7 +4371,7 @@ module Aws::Organizations
|
|
4306
4371
|
#
|
4307
4372
|
# resp = client.list_policies_for_target({
|
4308
4373
|
# target_id: "PolicyTargetId", # required
|
4309
|
-
# filter: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, TAG_POLICY
|
4374
|
+
# filter: "SERVICE_CONTROL_POLICY", # required, accepts SERVICE_CONTROL_POLICY, TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY
|
4310
4375
|
# next_token: "NextToken",
|
4311
4376
|
# max_results: 1,
|
4312
4377
|
# })
|
@@ -4318,7 +4383,7 @@ module Aws::Organizations
|
|
4318
4383
|
# resp.policies[0].arn #=> String
|
4319
4384
|
# resp.policies[0].name #=> String
|
4320
4385
|
# resp.policies[0].description #=> String
|
4321
|
-
# resp.policies[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY"
|
4386
|
+
# resp.policies[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY"
|
4322
4387
|
# resp.policies[0].aws_managed #=> Boolean
|
4323
4388
|
# resp.next_token #=> String
|
4324
4389
|
#
|
@@ -4419,7 +4484,7 @@ module Aws::Organizations
|
|
4419
4484
|
# resp.roots[0].arn #=> String
|
4420
4485
|
# resp.roots[0].name #=> String
|
4421
4486
|
# resp.roots[0].policy_types #=> Array
|
4422
|
-
# resp.roots[0].policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY"
|
4487
|
+
# resp.roots[0].policy_types[0].type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY"
|
4423
4488
|
# resp.roots[0].policy_types[0].status #=> String, one of "ENABLED", "PENDING_ENABLE", "PENDING_DISABLE"
|
4424
4489
|
# resp.next_token #=> String
|
4425
4490
|
#
|
@@ -4801,9 +4866,9 @@ module Aws::Organizations
|
|
4801
4866
|
# The ID of the resource to add a tag to.
|
4802
4867
|
#
|
4803
4868
|
# @option params [required, Array<Types::Tag>] :tags
|
4804
|
-
# The tag to add to the specified resource.
|
4805
|
-
#
|
4806
|
-
# can't set
|
4869
|
+
# The tag to add to the specified resource. You must specify both a tag
|
4870
|
+
# key and value. You can set the value of a tag to an empty string, but
|
4871
|
+
# you can't set it to null.
|
4807
4872
|
#
|
4808
4873
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4809
4874
|
#
|
@@ -5046,7 +5111,7 @@ module Aws::Organizations
|
|
5046
5111
|
# resp.policy.policy_summary.arn #=> String
|
5047
5112
|
# resp.policy.policy_summary.name #=> String
|
5048
5113
|
# resp.policy.policy_summary.description #=> String
|
5049
|
-
# resp.policy.policy_summary.type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY"
|
5114
|
+
# resp.policy.policy_summary.type #=> String, one of "SERVICE_CONTROL_POLICY", "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY"
|
5050
5115
|
# resp.policy.policy_summary.aws_managed #=> Boolean
|
5051
5116
|
# resp.policy.content #=> String
|
5052
5117
|
#
|
@@ -5072,7 +5137,7 @@ module Aws::Organizations
|
|
5072
5137
|
params: params,
|
5073
5138
|
config: config)
|
5074
5139
|
context[:gem_name] = 'aws-sdk-organizations'
|
5075
|
-
context[:gem_version] = '1.
|
5140
|
+
context[:gem_version] = '1.47.0'
|
5076
5141
|
Seahorse::Client::Request.new(handlers, context)
|
5077
5142
|
end
|
5078
5143
|
|