aws-sdk-organizations 1.73.0 → 1.75.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a45af0d35a20cc99841327a8059ed1066fe53da7f7298cd08d24c7fd293c7a2
4
- data.tar.gz: d83a94073d426846db764e0195f44ed9fbf9669ea39fb09acb72e38c80d12fdb
3
+ metadata.gz: 9a978a75711145570ed6eb257562ef7c2b0accbcaa8d2f959769892d983f9651
4
+ data.tar.gz: 4eec6d6e648c1cf91e7bf4720408069a17cd9cabd25be3829cb1f8f8de99b9b6
5
5
  SHA512:
6
- metadata.gz: c045e11601bab4953df087747a59c5f712ab4451c1ed95e6d3f79781425ceda53582e24f38085b8a031061ac037cd1b4a3e2318cb7b833adc6c7b52df62c498e
7
- data.tar.gz: 28e9587d250fe63807be448c25e492fda123edf2e5fa51022ebc866c2d9345f55a505b22acd48099bbc49539d78bd4d8ff2f4e5dd00cfe5108576273c4335e9c
6
+ metadata.gz: a8dc2bce43dd4613ae7e16fa8ceaa0e9cc264dcf7f0c64aa724a49fa3896d11f435502f64d696f1de4be03077817b6549d5faa10d275799d361da5dcf0993d7e
7
+ data.tar.gz: ab7a9e0f92e235d44195a66042334cc0a0a4c6482e189140da1d2a7f3b4363b3508e1938095cdba733800de7e57752759c8f0ec39d416f41416a656899b19978
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.75.0 (2023-05-31)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.74.0 (2023-03-02)
10
+ ------------------
11
+
12
+ * Feature - This release introduces a new reason code, ACCOUNT_CREATION_NOT_COMPLETE, to ConstraintViolationException in CreateOrganization API.
13
+
4
14
  1.73.0 (2023-01-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.73.0
1
+ 1.75.0
@@ -275,6 +275,11 @@ module Aws::Organizations
275
275
  # in the future.
276
276
  #
277
277
  #
278
+ # @option options [String] :sdk_ua_app_id
279
+ # A unique and opaque application ID that is appended to the
280
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
281
+ # maximum length of 50.
282
+ #
278
283
  # @option options [String] :secret_access_key
279
284
  #
280
285
  # @option options [String] :session_token
@@ -728,7 +733,8 @@ module Aws::Organizations
728
733
  end
729
734
 
730
735
  # Closes an Amazon Web Services member account within an organization.
731
- # You can't close the management account with this API. This is an
736
+ # You can close an account when [all features are enabled ][1]. You
737
+ # can't close the management account with this API. This is an
732
738
  # asynchronous request that Amazon Web Services performs in the
733
739
  # background. Because `CloseAccount` operates asynchronously, it can
734
740
  # return a successful completion message even though account closure
@@ -746,12 +752,15 @@ module Aws::Organizations
746
752
  # * Check the CloudTrail log for the `CloseAccountResult` event that
747
753
  # gets published after the account closes successfully. For
748
754
  # information on using CloudTrail with Organizations, see [Logging and
749
- # monitoring in Organizations][1] in the *Organizations User Guide.*
755
+ # monitoring in Organizations][2] in the *Organizations User Guide.*
750
756
  #
751
- # <note markdown="1"> * You can only close 10% of active member accounts within a rolling 30
752
- # day period. This quota is not bound by a calendar month, but starts
753
- # when you close an account. Within 30 days of that initial account
754
- # closure, you can't exceed the 10% account closure limit.
757
+ # <note markdown="1"> * You can close only 10% of member accounts, between 10 and 200,
758
+ # within a rolling 30 day period. This quota is not bound by a
759
+ # calendar month, but starts when you close an account.
760
+ #
761
+ # After you reach this limit, you can close additional accounts in the
762
+ # Billing console. For more information, see [Closing an account][3]
763
+ # in the Amazon Web Services Billing and Cost Management User Guide.
755
764
  #
756
765
  # * To reinstate a closed account, contact Amazon Web Services Support
757
766
  # within the 90-day grace period while the account is in SUSPENDED
@@ -761,18 +770,20 @@ module Aws::Organizations
761
770
  # an Amazon Web Services GovCloud (US) account, the `CloseAccount`
762
771
  # request will close both accounts. To learn important pre-closure
763
772
  # details, see [ Closing an Amazon Web Services GovCloud (US)
764
- # account][2] in the <i> Amazon Web Services GovCloud User Guide</i>.
773
+ # account][4] in the <i> Amazon Web Services GovCloud User Guide</i>.
765
774
  #
766
775
  # </note>
767
776
  #
768
777
  # For more information about closing accounts, see [Closing an Amazon
769
- # Web Services account][3] in the *Organizations User Guide.*
778
+ # Web Services account][5] in the *Organizations User Guide.*
770
779
  #
771
780
  #
772
781
  #
773
- # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html#orgs_cloudtrail-integration
774
- # [2]: https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/Closing-govcloud-account.html
775
- # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_close.html
782
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
783
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html#orgs_cloudtrail-integration
784
+ # [3]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/close-account.html
785
+ # [4]: https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/Closing-govcloud-account.html
786
+ # [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_close.html
776
787
  #
777
788
  # @option params [required, String] :account_id
778
789
  # Retrieves the Amazon Web Services account Id for the current
@@ -969,9 +980,9 @@ module Aws::Organizations
969
980
  # `null`. For more information about tagging, see [Tagging Organizations
970
981
  # resources][1] in the Organizations User Guide.
971
982
  #
972
- # <note markdown="1"> If any one of the tags is invalid or if you exceed the maximum allowed
973
- # number of tags for an account, then the entire request fails and the
974
- # account is not created.
983
+ # <note markdown="1"> If any one of the tags is not valid or if you exceed the maximum
984
+ # allowed number of tags for an account, then the entire request fails
985
+ # and the account is not created.
975
986
  #
976
987
  # </note>
977
988
  #
@@ -1277,9 +1288,9 @@ module Aws::Organizations
1277
1288
  # `null`. For more information about tagging, see [Tagging Organizations
1278
1289
  # resources][1] in the Organizations User Guide.
1279
1290
  #
1280
- # <note markdown="1"> If any one of the tags is invalid or if you exceed the maximum allowed
1281
- # number of tags for an account, then the entire request fails and the
1282
- # account is not created.
1291
+ # <note markdown="1"> If any one of the tags is not valid or if you exceed the maximum
1292
+ # allowed number of tags for an account, then the entire request fails
1293
+ # and the account is not created.
1283
1294
  #
1284
1295
  # </note>
1285
1296
  #
@@ -1350,7 +1361,7 @@ module Aws::Organizations
1350
1361
  # Specifies the feature set supported by the new organization. Each
1351
1362
  # feature set supports different levels of functionality.
1352
1363
  #
1353
- # * `CONSOLIDATED_BILLING`\: All member accounts have their bills
1364
+ # * `CONSOLIDATED_BILLING`: All member accounts have their bills
1354
1365
  # consolidated to and paid by the management account. For more
1355
1366
  # information, see [Consolidated billing][1] in the *Organizations
1356
1367
  # User Guide.*
@@ -1358,10 +1369,10 @@ module Aws::Organizations
1358
1369
  # The consolidated billing feature subset isn't available for
1359
1370
  # organizations in the Amazon Web Services GovCloud (US) Region.
1360
1371
  #
1361
- # * `ALL`\: In addition to all the features supported by the
1362
- # consolidated billing feature set, the management account can also
1363
- # apply any policy type to any member account in the organization. For
1364
- # more information, see [All features][2] in the *Organizations User
1372
+ # * `ALL`: In addition to all the features supported by the consolidated
1373
+ # billing feature set, the management account can also apply any
1374
+ # policy type to any member account in the organization. For more
1375
+ # information, see [All features][2] in the *Organizations User
1365
1376
  # Guide.*
1366
1377
  #
1367
1378
  #
@@ -1500,9 +1511,9 @@ module Aws::Organizations
1500
1511
  # For more information about tagging, see [Tagging Organizations
1501
1512
  # resources][1] in the Organizations User Guide.
1502
1513
  #
1503
- # <note markdown="1"> If any one of the tags is invalid or if you exceed the allowed number
1504
- # of tags for an OU, then the entire request fails and the OU is not
1505
- # created.
1514
+ # <note markdown="1"> If any one of the tags is not valid or if you exceed the allowed
1515
+ # number of tags for an OU, then the entire request fails and the OU is
1516
+ # not created.
1506
1517
  #
1507
1518
  # </note>
1508
1519
  #
@@ -1622,9 +1633,9 @@ module Aws::Organizations
1622
1633
  # `null`. For more information about tagging, see [Tagging Organizations
1623
1634
  # resources][1] in the Organizations User Guide.
1624
1635
  #
1625
- # <note markdown="1"> If any one of the tags is invalid or if you exceed the allowed number
1626
- # of tags for a policy, then the entire request fails and the policy is
1627
- # not created.
1636
+ # <note markdown="1"> If any one of the tags is not valid or if you exceed the allowed
1637
+ # number of tags for a policy, then the entire request fails and the
1638
+ # policy is not created.
1628
1639
  #
1629
1640
  # </note>
1630
1641
  #
@@ -2505,7 +2516,7 @@ module Aws::Organizations
2505
2516
  #
2506
2517
  # You can only call this operation from the organization's management
2507
2518
  # account or by a member account that is a delegated administrator for
2508
- # an AWS service.
2519
+ # an Amazon Web Services service.
2509
2520
  #
2510
2521
  # @return [Types::DescribeResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2511
2522
  #
@@ -3140,9 +3151,9 @@ module Aws::Organizations
3140
3151
  # invitation and the acceptance, then that tags could potentially be
3141
3152
  # non-compliant.
3142
3153
  #
3143
- # <note markdown="1"> If any one of the tags is invalid or if you exceed the allowed number
3144
- # of tags for an account, then the entire request fails and invitations
3145
- # are not sent.
3154
+ # <note markdown="1"> If any one of the tags is not valid or if you exceed the allowed
3155
+ # number of tags for an account, then the entire request fails and
3156
+ # invitations are not sent.
3146
3157
  #
3147
3158
  # </note>
3148
3159
  #
@@ -5207,16 +5218,16 @@ module Aws::Organizations
5207
5218
  # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html
5208
5219
  #
5209
5220
  # @option params [Array<Types::Tag>] :tags
5210
- # Updates the list of tags that you want to attach to the newly-created
5211
- # resource policy. For each tag in the list, you must specify both a tag
5212
- # key and a value. You can set the value to an empty string, but you
5213
- # can't set it to `null`. For more information about tagging, see
5214
- # [Tagging Organizations resources][1] in the Organizations User Guide.
5221
+ # A list of tags that you want to attach to the newly created resource
5222
+ # policy. For each tag in the list, you must specify both a tag key and
5223
+ # a value. You can set the value to an empty string, but you can't set
5224
+ # it to `null`. For more information about tagging, see [Tagging
5225
+ # Organizations resources][1] in the Organizations User Guide.
5215
5226
  #
5216
5227
  # <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 invalid or
5218
- # if you exceed the allowed number of tags for the resource policy, then
5219
- # the entire request fails and the resource policy is not created.
5228
+ # otherwise an exception is thrown. If any one of the tags is not valid
5229
+ # or if you exceed the allowed number of tags for the resource policy,
5230
+ # then the entire request fails and the resource policy is not created.
5220
5231
  #
5221
5232
  # </note>
5222
5233
  #
@@ -5418,8 +5429,8 @@ module Aws::Organizations
5418
5429
  # For each tag in the list, you must specify both a tag key and a value.
5419
5430
  # The value can be an empty string, but you can't set it to `null`.
5420
5431
  #
5421
- # <note markdown="1"> If any one of the tags is invalid or if you exceed the maximum allowed
5422
- # number of tags for a resource, then the entire request fails.
5432
+ # <note markdown="1"> If any one of the tags is not valid or if you exceed the maximum
5433
+ # allowed number of tags for a resource, then the entire request fails.
5423
5434
  #
5424
5435
  # </note>
5425
5436
  #
@@ -5711,7 +5722,7 @@ module Aws::Organizations
5711
5722
  params: params,
5712
5723
  config: config)
5713
5724
  context[:gem_name] = 'aws-sdk-organizations'
5714
- context[:gem_version] = '1.73.0'
5725
+ context[:gem_version] = '1.75.0'
5715
5726
  Seahorse::Client::Request.new(handlers, context)
5716
5727
  end
5717
5728
 
@@ -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 (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
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.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
28
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
- 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"))
30
- return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.#{region}.api.aws", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"organizations"}]})
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
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
- end
34
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
- return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"organizations"}]})
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
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
- end
40
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
- return Aws::Endpoints::Endpoint.new(url: "https://organizations.#{region}.api.aws", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"organizations"}]})
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
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
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
- return Aws::Endpoints::Endpoint.new(url: "https://organizations.us-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"organizations"}]})
47
- end
48
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")
49
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
50
- 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"))
51
- return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1", "signingName"=>"organizations"}]})
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
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
54
- end
55
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
56
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
57
- return Aws::Endpoints::Endpoint.new(url: "https://organizations-fips.#{region}.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1", "signingName"=>"organizations"}]})
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
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
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.boolean_equals?(use_dual_stack, true)
62
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
63
- return Aws::Endpoints::Endpoint.new(url: "https://organizations.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1", "signingName"=>"organizations"}]})
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
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
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}.api.aws", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-gov-west-1", "signingName"=>"organizations"}]})
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
- 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"}]})
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}.api.aws", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-gov-west-1", "signingName"=>"organizations"}]})
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
- 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"}]})
89
- end
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
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
95
- end
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
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
107
- end
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
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
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 invalid or if you exceed the maximum
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 invalid or if you exceed the maximum
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
  #
@@ -1059,7 +1063,7 @@ module Aws::Organizations
1059
1063
  # Specifies the feature set supported by the new organization. Each
1060
1064
  # feature set supports different levels of functionality.
1061
1065
  #
1062
- # * `CONSOLIDATED_BILLING`\: All member accounts have their bills
1066
+ # * `CONSOLIDATED_BILLING`: All member accounts have their bills
1063
1067
  # consolidated to and paid by the management account. For more
1064
1068
  # information, see [Consolidated billing][1] in the *Organizations
1065
1069
  # User Guide.*
@@ -1067,7 +1071,7 @@ module Aws::Organizations
1067
1071
  # The consolidated billing feature subset isn't available for
1068
1072
  # organizations in the Amazon Web Services GovCloud (US) Region.
1069
1073
  #
1070
- # * `ALL`\: In addition to all the features supported by the
1074
+ # * `ALL`: In addition to all the features supported by the
1071
1075
  # consolidated billing feature set, the management account can also
1072
1076
  # apply any policy type to any member account in the organization.
1073
1077
  # For more information, see [All features][2] in the *Organizations
@@ -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 invalid or if you exceed the allowed
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 invalid or if you exceed the allowed
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
  #
@@ -2102,26 +2106,26 @@ module Aws::Organizations
2102
2106
  # of the handshake through the process from its creation to its
2103
2107
  # acceptance. The meaning of each of the valid values is as follows:
2104
2108
  #
2105
- # * **REQUESTED**\: This handshake was sent to multiple recipients
2109
+ # * **REQUESTED**: This handshake was sent to multiple recipients
2106
2110
  # (applicable to only some handshake types) and not all recipients
2107
2111
  # have responded yet. The request stays in this state until all
2108
2112
  # recipients respond.
2109
2113
  #
2110
- # * **OPEN**\: This handshake was sent to multiple recipients
2114
+ # * **OPEN**: This handshake was sent to multiple recipients
2111
2115
  # (applicable to only some policy types) and all recipients have
2112
2116
  # responded, allowing the originator to complete the handshake
2113
2117
  # action.
2114
2118
  #
2115
- # * **CANCELED**\: This handshake is no longer active because it was
2119
+ # * **CANCELED**: This handshake is no longer active because it was
2116
2120
  # canceled by the originating account.
2117
2121
  #
2118
- # * **ACCEPTED**\: This handshake is complete because it has been
2122
+ # * **ACCEPTED**: This handshake is complete because it has been
2119
2123
  # accepted by the recipient.
2120
2124
  #
2121
- # * **DECLINED**\: This handshake is no longer active because it was
2125
+ # * **DECLINED**: This handshake is no longer active because it was
2122
2126
  # declined by the recipient account.
2123
2127
  #
2124
- # * **EXPIRED**\: This handshake is no longer active because the
2128
+ # * **EXPIRED**: This handshake is no longer active because the
2125
2129
  # originator did not receive a response of any kind from the
2126
2130
  # recipient before the expiration time (15 days).
2127
2131
  # @return [String]
@@ -2141,18 +2145,18 @@ module Aws::Organizations
2141
2145
  # recipient accepts the handshake. The following handshake types are
2142
2146
  # supported:
2143
2147
  #
2144
- # * **INVITE**\: This type of handshake represents a request to join
2145
- # an organization. It is always sent from the management account to
2148
+ # * **INVITE**: This type of handshake represents a request to join an
2149
+ # organization. It is always sent from the management account to
2146
2150
  # only non-member accounts.
2147
2151
  #
2148
- # * **ENABLE\_ALL\_FEATURES**\: This type of handshake represents a
2152
+ # * **ENABLE\_ALL\_FEATURES**: This type of handshake represents a
2149
2153
  # request to enable all features in an organization. It is always
2150
2154
  # sent from the management account to only *invited* member
2151
2155
  # accounts. Created accounts do not receive this because those
2152
2156
  # accounts were created by the organization's management account
2153
2157
  # and approval is inferred.
2154
2158
  #
2155
- # * **APPROVE\_ALL\_FEATURES**\: This type of handshake is sent from
2159
+ # * **APPROVE\_ALL\_FEATURES**: This type of handshake is sent from
2156
2160
  # the Organizations service when all member accounts have approved
2157
2161
  # the `ENABLE_ALL_FEATURES` invitation. It is sent only to the
2158
2162
  # management account and signals the master that it can finalize the
@@ -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 invalid or if you exceed the allowed
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
- # Updates the list of tags that you want to attach to the
4231
- # newly-created resource policy. For each tag in the list, you must
4232
- # specify both a tag key and a value. You can set the value to an
4233
- # empty string, but you can't set it to `null`. For more information
4234
- # about tagging, see [Tagging Organizations resources][1] in the
4235
- # Organizations User Guide.
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
- # invalid or if you exceed the allowed number of tags for the resource
4240
- # policy, then the entire request fails and the resource policy is not
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 invalid or if you exceed the maximum
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
  #
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-organizations/customizations'
52
52
  # @!group service
53
53
  module Aws::Organizations
54
54
 
55
- GEM_VERSION = '1.73.0'
55
+ GEM_VERSION = '1.75.0'
56
56
 
57
57
  end
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.73.0
4
+ version: 1.75.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-01-18 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.165.0
22
+ version: 3.174.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.165.0
32
+ version: 3.174.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement