aws-sdk-organizations 1.73.0 → 1.74.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 +44 -38
- data/lib/aws-sdk-organizations/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-organizations/endpoint_provider.rb +81 -78
- data/lib/aws-sdk-organizations/types.rb +19 -15
- data/lib/aws-sdk-organizations.rb +1 -1
- 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: b1a6c924f9542c15ba6fb3dd7dc5df1ea9791d07e62686fcecca4cbdc7b96985
|
|
4
|
+
data.tar.gz: c9e6f9c1580e84b2f3ff671a72d0d6c3ff71e56b310746c7408dbc6ff2b8e7a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 880cf9a4145659cea8a3bfe07e5fd7a74ed9c2ccdac75c0d4b260b36f8876b1f4d6e77e9c140887c7bfef832a30106479edbf8c320a97faa86211e5a5aaf998c
|
|
7
|
+
data.tar.gz: d6d99136b5ce8aa9ef3a97a9bcb7d2246bb71358a2a72ba76605beaf90c32ac75fe408634958326784fbb9ab65701ec6fcbcf4c398d10f4c8f72995c816b7d35
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.74.0 (2023-03-02)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - This release introduces a new reason code, ACCOUNT_CREATION_NOT_COMPLETE, to ConstraintViolationException in CreateOrganization API.
|
|
8
|
+
|
|
4
9
|
1.73.0 (2023-01-18)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.74.0
|
|
@@ -728,7 +728,8 @@ module Aws::Organizations
|
|
|
728
728
|
end
|
|
729
729
|
|
|
730
730
|
# Closes an Amazon Web Services member account within an organization.
|
|
731
|
-
# You can
|
|
731
|
+
# You can close an account when [all features are enabled ][1]. You
|
|
732
|
+
# can't close the management account with this API. This is an
|
|
732
733
|
# asynchronous request that Amazon Web Services performs in the
|
|
733
734
|
# background. Because `CloseAccount` operates asynchronously, it can
|
|
734
735
|
# return a successful completion message even though account closure
|
|
@@ -746,12 +747,15 @@ module Aws::Organizations
|
|
|
746
747
|
# * Check the CloudTrail log for the `CloseAccountResult` event that
|
|
747
748
|
# gets published after the account closes successfully. For
|
|
748
749
|
# information on using CloudTrail with Organizations, see [Logging and
|
|
749
|
-
# monitoring in Organizations][
|
|
750
|
+
# monitoring in Organizations][2] in the *Organizations User Guide.*
|
|
751
|
+
#
|
|
752
|
+
# <note markdown="1"> * You can close only 10% of member accounts, between 10 and 200,
|
|
753
|
+
# within a rolling 30 day period. This quota is not bound by a
|
|
754
|
+
# calendar month, but starts when you close an account.
|
|
750
755
|
#
|
|
751
|
-
#
|
|
752
|
-
#
|
|
753
|
-
#
|
|
754
|
-
# closure, you can't exceed the 10% account closure limit.
|
|
756
|
+
# After you reach this limit, you can close additional accounts in the
|
|
757
|
+
# Billing console. For more information, see [Closing an account][3]
|
|
758
|
+
# in the Amazon Web Services Billing and Cost Management User Guide.
|
|
755
759
|
#
|
|
756
760
|
# * To reinstate a closed account, contact Amazon Web Services Support
|
|
757
761
|
# within the 90-day grace period while the account is in SUSPENDED
|
|
@@ -761,18 +765,20 @@ module Aws::Organizations
|
|
|
761
765
|
# an Amazon Web Services GovCloud (US) account, the `CloseAccount`
|
|
762
766
|
# request will close both accounts. To learn important pre-closure
|
|
763
767
|
# details, see [ Closing an Amazon Web Services GovCloud (US)
|
|
764
|
-
# account][
|
|
768
|
+
# account][4] in the <i> Amazon Web Services GovCloud User Guide</i>.
|
|
765
769
|
#
|
|
766
770
|
# </note>
|
|
767
771
|
#
|
|
768
772
|
# For more information about closing accounts, see [Closing an Amazon
|
|
769
|
-
# Web Services account][
|
|
773
|
+
# Web Services account][5] in the *Organizations User Guide.*
|
|
770
774
|
#
|
|
771
775
|
#
|
|
772
776
|
#
|
|
773
|
-
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/
|
|
774
|
-
# [2]: https://docs.aws.amazon.com/
|
|
775
|
-
# [3]: https://docs.aws.amazon.com/
|
|
777
|
+
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
|
|
778
|
+
# [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html#orgs_cloudtrail-integration
|
|
779
|
+
# [3]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/close-account.html
|
|
780
|
+
# [4]: https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/Closing-govcloud-account.html
|
|
781
|
+
# [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_close.html
|
|
776
782
|
#
|
|
777
783
|
# @option params [required, String] :account_id
|
|
778
784
|
# Retrieves the Amazon Web Services account Id for the current
|
|
@@ -969,9 +975,9 @@ module Aws::Organizations
|
|
|
969
975
|
# `null`. For more information about tagging, see [Tagging Organizations
|
|
970
976
|
# resources][1] in the Organizations User Guide.
|
|
971
977
|
#
|
|
972
|
-
# <note markdown="1"> If any one of the tags is
|
|
973
|
-
# number of tags for an account, then the entire request fails
|
|
974
|
-
# account is not created.
|
|
978
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the maximum
|
|
979
|
+
# allowed number of tags for an account, then the entire request fails
|
|
980
|
+
# and the account is not created.
|
|
975
981
|
#
|
|
976
982
|
# </note>
|
|
977
983
|
#
|
|
@@ -1277,9 +1283,9 @@ module Aws::Organizations
|
|
|
1277
1283
|
# `null`. For more information about tagging, see [Tagging Organizations
|
|
1278
1284
|
# resources][1] in the Organizations User Guide.
|
|
1279
1285
|
#
|
|
1280
|
-
# <note markdown="1"> If any one of the tags is
|
|
1281
|
-
# number of tags for an account, then the entire request fails
|
|
1282
|
-
# account is not created.
|
|
1286
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the maximum
|
|
1287
|
+
# allowed number of tags for an account, then the entire request fails
|
|
1288
|
+
# and the account is not created.
|
|
1283
1289
|
#
|
|
1284
1290
|
# </note>
|
|
1285
1291
|
#
|
|
@@ -1500,9 +1506,9 @@ module Aws::Organizations
|
|
|
1500
1506
|
# For more information about tagging, see [Tagging Organizations
|
|
1501
1507
|
# resources][1] in the Organizations User Guide.
|
|
1502
1508
|
#
|
|
1503
|
-
# <note markdown="1"> If any one of the tags is
|
|
1504
|
-
# of tags for an OU, then the entire request fails and the OU is
|
|
1505
|
-
# created.
|
|
1509
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the allowed
|
|
1510
|
+
# number of tags for an OU, then the entire request fails and the OU is
|
|
1511
|
+
# not created.
|
|
1506
1512
|
#
|
|
1507
1513
|
# </note>
|
|
1508
1514
|
#
|
|
@@ -1622,9 +1628,9 @@ module Aws::Organizations
|
|
|
1622
1628
|
# `null`. For more information about tagging, see [Tagging Organizations
|
|
1623
1629
|
# resources][1] in the Organizations User Guide.
|
|
1624
1630
|
#
|
|
1625
|
-
# <note markdown="1"> If any one of the tags is
|
|
1626
|
-
# of tags for a policy, then the entire request fails and the
|
|
1627
|
-
# not created.
|
|
1631
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the allowed
|
|
1632
|
+
# number of tags for a policy, then the entire request fails and the
|
|
1633
|
+
# policy is not created.
|
|
1628
1634
|
#
|
|
1629
1635
|
# </note>
|
|
1630
1636
|
#
|
|
@@ -2505,7 +2511,7 @@ module Aws::Organizations
|
|
|
2505
2511
|
#
|
|
2506
2512
|
# You can only call this operation from the organization's management
|
|
2507
2513
|
# account or by a member account that is a delegated administrator for
|
|
2508
|
-
# an
|
|
2514
|
+
# an Amazon Web Services service.
|
|
2509
2515
|
#
|
|
2510
2516
|
# @return [Types::DescribeResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2511
2517
|
#
|
|
@@ -3140,9 +3146,9 @@ module Aws::Organizations
|
|
|
3140
3146
|
# invitation and the acceptance, then that tags could potentially be
|
|
3141
3147
|
# non-compliant.
|
|
3142
3148
|
#
|
|
3143
|
-
# <note markdown="1"> If any one of the tags is
|
|
3144
|
-
# of tags for an account, then the entire request fails and
|
|
3145
|
-
# are not sent.
|
|
3149
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the allowed
|
|
3150
|
+
# number of tags for an account, then the entire request fails and
|
|
3151
|
+
# invitations are not sent.
|
|
3146
3152
|
#
|
|
3147
3153
|
# </note>
|
|
3148
3154
|
#
|
|
@@ -5207,16 +5213,16 @@ module Aws::Organizations
|
|
|
5207
5213
|
# [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html
|
|
5208
5214
|
#
|
|
5209
5215
|
# @option params [Array<Types::Tag>] :tags
|
|
5210
|
-
#
|
|
5211
|
-
#
|
|
5212
|
-
#
|
|
5213
|
-
#
|
|
5214
|
-
#
|
|
5216
|
+
# A list of tags that you want to attach to the newly created resource
|
|
5217
|
+
# policy. For each tag in the list, you must specify both a tag key and
|
|
5218
|
+
# a value. You can set the value to an empty string, but you can't set
|
|
5219
|
+
# it to `null`. For more information about tagging, see [Tagging
|
|
5220
|
+
# Organizations resources][1] in the Organizations User Guide.
|
|
5215
5221
|
#
|
|
5216
5222
|
# <note markdown="1"> Calls with tags apply to the initial creation of the resource policy,
|
|
5217
|
-
# otherwise an exception is thrown. If any one of the tags is
|
|
5218
|
-
# if you exceed the allowed number of tags for the resource policy,
|
|
5219
|
-
# the entire request fails and the resource policy is not created.
|
|
5223
|
+
# otherwise an exception is thrown. If any one of the tags is not valid
|
|
5224
|
+
# or if you exceed the allowed number of tags for the resource policy,
|
|
5225
|
+
# then the entire request fails and the resource policy is not created.
|
|
5220
5226
|
#
|
|
5221
5227
|
# </note>
|
|
5222
5228
|
#
|
|
@@ -5418,8 +5424,8 @@ module Aws::Organizations
|
|
|
5418
5424
|
# For each tag in the list, you must specify both a tag key and a value.
|
|
5419
5425
|
# The value can be an empty string, but you can't set it to `null`.
|
|
5420
5426
|
#
|
|
5421
|
-
# <note markdown="1"> If any one of the tags is
|
|
5422
|
-
# number of tags for a resource, then the entire request fails.
|
|
5427
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the maximum
|
|
5428
|
+
# allowed number of tags for a resource, then the entire request fails.
|
|
5423
5429
|
#
|
|
5424
5430
|
# </note>
|
|
5425
5431
|
#
|
|
@@ -5711,7 +5717,7 @@ module Aws::Organizations
|
|
|
5711
5717
|
params: params,
|
|
5712
5718
|
config: config)
|
|
5713
5719
|
context[:gem_name] = 'aws-sdk-organizations'
|
|
5714
|
-
context[:gem_version] = '1.
|
|
5720
|
+
context[:gem_version] = '1.74.0'
|
|
5715
5721
|
Seahorse::Client::Request.new(handlers, context)
|
|
5716
5722
|
end
|
|
5717
5723
|
|
|
@@ -50,9 +50,6 @@ module Aws::Organizations
|
|
|
50
50
|
|
|
51
51
|
def initialize(options = {})
|
|
52
52
|
self[:region] = options[:region]
|
|
53
|
-
if self[:region].nil?
|
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
|
55
|
-
end
|
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
|
58
55
|
if self[:use_dual_stack].nil?
|
|
@@ -14,114 +14,117 @@ module Aws::Organizations
|
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
|
15
15
|
use_fips = parameters.use_fips
|
|
16
16
|
endpoint = parameters.endpoint
|
|
17
|
-
if
|
|
18
|
-
if Aws::Endpoints::Matchers.
|
|
19
|
-
|
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
21
|
-
end
|
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
|
24
|
-
end
|
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
26
20
|
end
|
|
27
|
-
if Aws::Endpoints::Matchers.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
|
23
|
+
end
|
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
|
25
|
+
end
|
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
|
28
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
|
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
30
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
31
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.#{region}.api.aws", headers: {}, properties: {})
|
|
32
|
+
end
|
|
33
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
31
34
|
end
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
36
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"organizations", "signingRegion"=>"us-east-1"}]})
|
|
38
|
+
end
|
|
39
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
37
40
|
end
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
42
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
43
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.#{region}.api.aws", headers: {}, properties: {})
|
|
44
|
+
end
|
|
45
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
43
46
|
end
|
|
44
|
-
|
|
47
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"organizations", "signingRegion"=>"us-east-1"}]})
|
|
45
48
|
end
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")
|
|
50
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
51
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
52
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {})
|
|
53
|
+
end
|
|
54
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
52
55
|
end
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
57
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
|
58
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.#{region}.amazonaws.com.cn", headers: {}, properties: {})
|
|
59
|
+
end
|
|
60
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
58
61
|
end
|
|
59
|
-
|
|
62
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
63
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
64
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {})
|
|
65
|
+
end
|
|
66
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
67
|
+
end
|
|
68
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"organizations", "signingRegion"=>"cn-northwest-1"}]})
|
|
60
69
|
end
|
|
61
|
-
if Aws::Endpoints::Matchers.
|
|
62
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
|
63
|
-
|
|
70
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
|
71
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
72
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
73
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.#{region}.api.aws", headers: {}, properties: {})
|
|
74
|
+
end
|
|
75
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
64
76
|
end
|
|
65
|
-
|
|
77
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
78
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
|
79
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.us-gov-west-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"organizations", "signingRegion"=>"us-gov-west-1"}]})
|
|
80
|
+
end
|
|
81
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
82
|
+
end
|
|
83
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
84
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
85
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.#{region}.api.aws", headers: {}, properties: {})
|
|
86
|
+
end
|
|
87
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
88
|
+
end
|
|
89
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.us-gov-west-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"organizations", "signingRegion"=>"us-gov-west-1"}]})
|
|
66
90
|
end
|
|
67
|
-
return Aws::Endpoints::Endpoint.new(url: "https://organizations.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1", "signingName"=>"organizations"}]})
|
|
68
|
-
end
|
|
69
|
-
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
|
70
91
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
71
92
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
72
|
-
return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.#{region}
|
|
93
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
73
94
|
end
|
|
74
95
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
75
96
|
end
|
|
76
97
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
77
98
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
|
78
|
-
|
|
99
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
|
|
100
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"organizations", "signingRegion"=>"us-east-1"}]})
|
|
101
|
+
end
|
|
102
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "aws-us-gov-global")
|
|
103
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.us-gov-west-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"organizations", "signingRegion"=>"us-gov-west-1"}]})
|
|
104
|
+
end
|
|
105
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
79
106
|
end
|
|
80
107
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
81
108
|
end
|
|
82
109
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
83
110
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
84
|
-
return Aws::Endpoints::Endpoint.new(url: "https://organizations.#{region}
|
|
111
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
85
112
|
end
|
|
86
113
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
87
114
|
end
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
91
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
92
|
-
return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
115
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
|
|
116
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"organizations", "signingRegion"=>"us-east-1"}]})
|
|
93
117
|
end
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
97
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
|
98
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
|
|
99
|
-
return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.us-east-1.amazonaws.com", headers: {}, properties: {})
|
|
100
|
-
end
|
|
101
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "aws-us-gov-global")
|
|
102
|
-
return Aws::Endpoints::Endpoint.new(url: "https://organizations.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
|
103
|
-
end
|
|
104
|
-
return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
118
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "aws-cn-global")
|
|
119
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"organizations", "signingRegion"=>"cn-northwest-1"}]})
|
|
105
120
|
end
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
109
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
110
|
-
return Aws::Endpoints::Endpoint.new(url: "https://organizations.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
121
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "aws-us-gov-global")
|
|
122
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.us-gov-west-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"organizations", "signingRegion"=>"us-gov-west-1"}]})
|
|
111
123
|
end
|
|
112
|
-
|
|
113
|
-
end
|
|
114
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
|
|
115
|
-
return Aws::Endpoints::Endpoint.new(url: "https://organizations.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"organizations"}]})
|
|
116
|
-
end
|
|
117
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "aws-cn-global")
|
|
118
|
-
return Aws::Endpoints::Endpoint.new(url: "https://organizations.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1", "signingName"=>"organizations"}]})
|
|
119
|
-
end
|
|
120
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "aws-us-gov-global")
|
|
121
|
-
return Aws::Endpoints::Endpoint.new(url: "https://organizations.us-gov-west-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-gov-west-1", "signingName"=>"organizations"}]})
|
|
124
|
+
return Aws::Endpoints::Endpoint.new(url: "https://organizations.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
122
125
|
end
|
|
123
|
-
return Aws::Endpoints::Endpoint.new(url: "https://organizations.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
124
126
|
end
|
|
127
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
|
125
128
|
raise ArgumentError, 'No endpoint could be resolved'
|
|
126
129
|
|
|
127
130
|
end
|
|
@@ -457,6 +457,10 @@ module Aws::Organizations
|
|
|
457
457
|
# * ACCOUNT\_CREATION\_RATE\_LIMIT\_EXCEEDED: You attempted to exceed
|
|
458
458
|
# the number of accounts that you can create in one day.
|
|
459
459
|
#
|
|
460
|
+
# * ACCOUNT\_CREATION\_NOT\_COMPLETE: Your account setup isn't complete
|
|
461
|
+
# or your account isn't fully active. You must complete the account
|
|
462
|
+
# setup before you create an organization.
|
|
463
|
+
#
|
|
460
464
|
# * ACCOUNT\_NUMBER\_LIMIT\_EXCEEDED: You attempted to exceed the limit
|
|
461
465
|
# on the number of accounts in an organization. If you need more
|
|
462
466
|
# accounts, contact [Amazon Web Services Support][2] to request an
|
|
@@ -720,7 +724,7 @@ module Aws::Organizations
|
|
|
720
724
|
# it to `null`. For more information about tagging, see [Tagging
|
|
721
725
|
# Organizations resources][1] in the Organizations User Guide.
|
|
722
726
|
#
|
|
723
|
-
# <note markdown="1"> If any one of the tags is
|
|
727
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the maximum
|
|
724
728
|
# allowed number of tags for an account, then the entire request fails
|
|
725
729
|
# and the account is not created.
|
|
726
730
|
#
|
|
@@ -1018,7 +1022,7 @@ module Aws::Organizations
|
|
|
1018
1022
|
# it to `null`. For more information about tagging, see [Tagging
|
|
1019
1023
|
# Organizations resources][1] in the Organizations User Guide.
|
|
1020
1024
|
#
|
|
1021
|
-
# <note markdown="1"> If any one of the tags is
|
|
1025
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the maximum
|
|
1022
1026
|
# allowed number of tags for an account, then the entire request fails
|
|
1023
1027
|
# and the account is not created.
|
|
1024
1028
|
#
|
|
@@ -1132,7 +1136,7 @@ module Aws::Organizations
|
|
|
1132
1136
|
# `null`. For more information about tagging, see [Tagging
|
|
1133
1137
|
# Organizations resources][1] in the Organizations User Guide.
|
|
1134
1138
|
#
|
|
1135
|
-
# <note markdown="1"> If any one of the tags is
|
|
1139
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the allowed
|
|
1136
1140
|
# number of tags for an OU, then the entire request fails and the OU
|
|
1137
1141
|
# is not created.
|
|
1138
1142
|
#
|
|
@@ -1213,7 +1217,7 @@ module Aws::Organizations
|
|
|
1213
1217
|
# it to `null`. For more information about tagging, see [Tagging
|
|
1214
1218
|
# Organizations resources][1] in the Organizations User Guide.
|
|
1215
1219
|
#
|
|
1216
|
-
# <note markdown="1"> If any one of the tags is
|
|
1220
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the allowed
|
|
1217
1221
|
# number of tags for a policy, then the entire request fails and the
|
|
1218
1222
|
# policy is not created.
|
|
1219
1223
|
#
|
|
@@ -2530,7 +2534,7 @@ module Aws::Organizations
|
|
|
2530
2534
|
# changes between the invitation and the acceptance, then that tags
|
|
2531
2535
|
# could potentially be non-compliant.
|
|
2532
2536
|
#
|
|
2533
|
-
# <note markdown="1"> If any one of the tags is
|
|
2537
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the allowed
|
|
2534
2538
|
# number of tags for an account, then the entire request fails and
|
|
2535
2539
|
# invitations are not sent.
|
|
2536
2540
|
#
|
|
@@ -4227,18 +4231,18 @@ module Aws::Organizations
|
|
|
4227
4231
|
# @return [String]
|
|
4228
4232
|
#
|
|
4229
4233
|
# @!attribute [rw] tags
|
|
4230
|
-
#
|
|
4231
|
-
#
|
|
4232
|
-
#
|
|
4233
|
-
#
|
|
4234
|
-
#
|
|
4235
|
-
#
|
|
4234
|
+
# A list of tags that you want to attach to the newly created resource
|
|
4235
|
+
# policy. For each tag in the list, you must specify both a tag key
|
|
4236
|
+
# and a value. You can set the value to an empty string, but you
|
|
4237
|
+
# can't set it to `null`. For more information about tagging, see
|
|
4238
|
+
# [Tagging Organizations resources][1] in the Organizations User
|
|
4239
|
+
# Guide.
|
|
4236
4240
|
#
|
|
4237
4241
|
# <note markdown="1"> Calls with tags apply to the initial creation of the resource
|
|
4238
4242
|
# policy, otherwise an exception is thrown. If any one of the tags is
|
|
4239
|
-
#
|
|
4240
|
-
# policy, then the entire request fails and the resource
|
|
4241
|
-
# created.
|
|
4243
|
+
# not valid or if you exceed the allowed number of tags for the
|
|
4244
|
+
# resource policy, then the entire request fails and the resource
|
|
4245
|
+
# policy is not created.
|
|
4242
4246
|
#
|
|
4243
4247
|
# </note>
|
|
4244
4248
|
#
|
|
@@ -4520,7 +4524,7 @@ module Aws::Organizations
|
|
|
4520
4524
|
# value. The value can be an empty string, but you can't set it to
|
|
4521
4525
|
# `null`.
|
|
4522
4526
|
#
|
|
4523
|
-
# <note markdown="1"> If any one of the tags is
|
|
4527
|
+
# <note markdown="1"> If any one of the tags is not valid or if you exceed the maximum
|
|
4524
4528
|
# allowed number of tags for a resource, then the entire request
|
|
4525
4529
|
# fails.
|
|
4526
4530
|
#
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-organizations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.74.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|