aws-sdk-organizations 1.120.0 → 1.121.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eaced8fff91937c4a84031b98f5d245f4b3720c35ce3ff499a05df3354fa9d60
4
- data.tar.gz: 33099cf8c33deb9f9bb1797e7d505aa9da22527270c1431298819f38135c1545
3
+ metadata.gz: a0fd1ff2d03a9369cc89505feb194bf3020dabede4bb78e0ae4560968bc2bd5a
4
+ data.tar.gz: 237bb622c4ae05deca4bc3bf6e58a92899a645f4107e933a9c5a6cb92d165263
5
5
  SHA512:
6
- metadata.gz: f3c1ce33b7ac445fb43990d6b40f0f7b3d5faa34b79a39ad92c96c54b4176f3902df1c2fea46d3e3ecd91a54fb14c6b2f6790bca840853e3c642ef4c616deeba
7
- data.tar.gz: cf3759e027534da2891dd744770a1fbf2bb83bc895af031ffe565d95e315f5b7d1b5239231a3426f27c7b94c68dbfead6677f91eaf01411f3beebb1640a302cc
6
+ metadata.gz: dc5f7eee4e25984503987d0c52e4ebf9f31e35f23e328c2570262e79073d845010f79e7ea7a62e1fae0c5cdf68da1c41e85c24eb6c2a9aeca78a7fa0d602c01b
7
+ data.tar.gz: c9305d36640ddadedd4eef1a70ccfba988df078990b1249d918ed08724a91e89c224861f27c72db7ca8bb39b83f61c5a6764e8f0e3afe9a3fc48edfddb8c762c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.121.0 (2025-08-12)
5
+ ------------------
6
+
7
+ * Feature - This release introduces 2 new APIs in Organizations: 1. ListAccountsWithInvalidEffectivePolicy 2. ListEffectivePolicyValidationErrors
8
+
4
9
  1.120.0 (2025-08-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.120.0
1
+ 1.121.0
@@ -3783,6 +3783,137 @@ module Aws::Organizations
3783
3783
  req.send_request(options)
3784
3784
  end
3785
3785
 
3786
+ # Lists all the accounts in an organization that have invalid effective
3787
+ # policies. An *invalid effective policy* is an [effective policy][1]
3788
+ # that fails validation checks, resulting in the effective policy not
3789
+ # being fully enforced on all the intended accounts within an
3790
+ # organization.
3791
+ #
3792
+ # This operation can be called only from the organization's management
3793
+ # account or by a member account that is a delegated administrator.
3794
+ #
3795
+ #
3796
+ #
3797
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_effective.html
3798
+ #
3799
+ # @option params [required, String] :policy_type
3800
+ # The type of policy that you want information about. You can specify
3801
+ # one of the following values:
3802
+ #
3803
+ # * [DECLARATIVE\_POLICY\_EC2][1]
3804
+ #
3805
+ # * [BACKUP\_POLICY][2]
3806
+ #
3807
+ # * [TAG\_POLICY][3]
3808
+ #
3809
+ # * [CHATBOT\_POLICY][4]
3810
+ #
3811
+ # * [AISERVICES\_OPT\_OUT\_POLICY][5]
3812
+ #
3813
+ # * [SECURITYHUB\_POLICY][6]
3814
+ #
3815
+ #
3816
+ #
3817
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html
3818
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
3819
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
3820
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
3821
+ # [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
3822
+ # [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
3823
+ #
3824
+ # @option params [String] :next_token
3825
+ # The parameter for receiving additional results if you receive a
3826
+ # `NextToken` response in a previous request. A `NextToken` response
3827
+ # indicates that more output is available. Set this parameter to the
3828
+ # value of the previous call's `NextToken` response to indicate where
3829
+ # the output should continue from.
3830
+ #
3831
+ # @option params [Integer] :max_results
3832
+ # The total number of results that you want included on each page of the
3833
+ # response. If you do not include this parameter, it defaults to a value
3834
+ # that is specific to the operation. If additional items exist beyond
3835
+ # the maximum you specify, the `NextToken` response element is present
3836
+ # and has a value (is not null). Include that value as the `NextToken`
3837
+ # request parameter in the next call to the operation to get the next
3838
+ # part of the results. Note that Organizations might return fewer
3839
+ # results than the maximum even when there are more results available.
3840
+ # You should check `NextToken` after every operation to ensure that you
3841
+ # receive all of the results.
3842
+ #
3843
+ # @return [Types::ListAccountsWithInvalidEffectivePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3844
+ #
3845
+ # * {Types::ListAccountsWithInvalidEffectivePolicyResponse#accounts #accounts} => Array<Types::Account>
3846
+ # * {Types::ListAccountsWithInvalidEffectivePolicyResponse#policy_type #policy_type} => String
3847
+ # * {Types::ListAccountsWithInvalidEffectivePolicyResponse#next_token #next_token} => String
3848
+ #
3849
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3850
+ #
3851
+ #
3852
+ # @example Example: To list all accounts in an organization with invalid effective policy
3853
+ #
3854
+ # # The following example shows you how to request a list of the accounts in an organization having invalid effective policy
3855
+ # # for a policy type:
3856
+ #
3857
+ # resp = client.list_accounts_with_invalid_effective_policy({
3858
+ # policy_type: "BACKUP_POLICY",
3859
+ # })
3860
+ #
3861
+ # resp.to_h outputs the following:
3862
+ # {
3863
+ # accounts: [
3864
+ # {
3865
+ # email: "bill@example.com",
3866
+ # id: "111111111111",
3867
+ # name: "Management Account",
3868
+ # },
3869
+ # {
3870
+ # email: "alice@example.com",
3871
+ # id: "222222222222",
3872
+ # name: "Developer Account",
3873
+ # },
3874
+ # {
3875
+ # email: "juan@example.com",
3876
+ # id: "333333333333",
3877
+ # name: "Test Account",
3878
+ # },
3879
+ # {
3880
+ # email: "anika@example.com",
3881
+ # id: "444444444444",
3882
+ # name: "Production Account",
3883
+ # },
3884
+ # ],
3885
+ # }
3886
+ #
3887
+ # @example Request syntax with placeholder values
3888
+ #
3889
+ # resp = client.list_accounts_with_invalid_effective_policy({
3890
+ # policy_type: "TAG_POLICY", # required, accepts TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY
3891
+ # next_token: "NextToken",
3892
+ # max_results: 1,
3893
+ # })
3894
+ #
3895
+ # @example Response structure
3896
+ #
3897
+ # resp.accounts #=> Array
3898
+ # resp.accounts[0].id #=> String
3899
+ # resp.accounts[0].arn #=> String
3900
+ # resp.accounts[0].email #=> String
3901
+ # resp.accounts[0].name #=> String
3902
+ # resp.accounts[0].status #=> String, one of "ACTIVE", "SUSPENDED", "PENDING_CLOSURE"
3903
+ # resp.accounts[0].joined_method #=> String, one of "INVITED", "CREATED"
3904
+ # resp.accounts[0].joined_timestamp #=> Time
3905
+ # resp.policy_type #=> String, one of "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
3906
+ # resp.next_token #=> String
3907
+ #
3908
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccountsWithInvalidEffectivePolicy AWS API Documentation
3909
+ #
3910
+ # @overload list_accounts_with_invalid_effective_policy(params = {})
3911
+ # @param [Hash] params ({})
3912
+ def list_accounts_with_invalid_effective_policy(params = {}, options = {})
3913
+ req = build_request(:list_accounts_with_invalid_effective_policy, params)
3914
+ req.send_request(options)
3915
+ end
3916
+
3786
3917
  # Lists all of the organizational units (OUs) or accounts that are
3787
3918
  # contained in the specified parent OU or root. This operation, along
3788
3919
  # with ListParents enables you to traverse the tree structure that makes
@@ -4149,6 +4280,146 @@ module Aws::Organizations
4149
4280
  req.send_request(options)
4150
4281
  end
4151
4282
 
4283
+ # Lists all the validation errors on an [effective policy][1] for a
4284
+ # specified account and policy type.
4285
+ #
4286
+ # This operation can be called only from the organization's management
4287
+ # account or by a member account that is a delegated administrator.
4288
+ #
4289
+ #
4290
+ #
4291
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_effective.html
4292
+ #
4293
+ # @option params [required, String] :account_id
4294
+ # The ID of the account that you want details about. Specifying an
4295
+ # organization root or organizational unit (OU) as the target is not
4296
+ # supported.
4297
+ #
4298
+ # @option params [required, String] :policy_type
4299
+ # The type of policy that you want information about. You can specify
4300
+ # one of the following values:
4301
+ #
4302
+ # * [DECLARATIVE\_POLICY\_EC2][1]
4303
+ #
4304
+ # * [BACKUP\_POLICY][2]
4305
+ #
4306
+ # * [TAG\_POLICY][3]
4307
+ #
4308
+ # * [CHATBOT\_POLICY][4]
4309
+ #
4310
+ # * [AISERVICES\_OPT\_OUT\_POLICY][5]
4311
+ #
4312
+ # * [SECURITYHUB\_POLICY][6]
4313
+ #
4314
+ #
4315
+ #
4316
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html
4317
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
4318
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
4319
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
4320
+ # [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
4321
+ # [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
4322
+ #
4323
+ # @option params [String] :next_token
4324
+ # The parameter for receiving additional results if you receive a
4325
+ # `NextToken` response in a previous request. A `NextToken` response
4326
+ # indicates that more output is available. Set this parameter to the
4327
+ # value of the previous call's `NextToken` response to indicate where
4328
+ # the output should continue from.
4329
+ #
4330
+ # @option params [Integer] :max_results
4331
+ # The total number of results that you want included on each page of the
4332
+ # response. If you do not include this parameter, it defaults to a value
4333
+ # that is specific to the operation. If additional items exist beyond
4334
+ # the maximum you specify, the `NextToken` response element is present
4335
+ # and has a value (is not null). Include that value as the `NextToken`
4336
+ # request parameter in the next call to the operation to get the next
4337
+ # part of the results. Note that Organizations might return fewer
4338
+ # results than the maximum even when there are more results available.
4339
+ # You should check `NextToken` after every operation to ensure that you
4340
+ # receive all of the results.
4341
+ #
4342
+ # @return [Types::ListEffectivePolicyValidationErrorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4343
+ #
4344
+ # * {Types::ListEffectivePolicyValidationErrorsResponse#account_id #account_id} => String
4345
+ # * {Types::ListEffectivePolicyValidationErrorsResponse#policy_type #policy_type} => String
4346
+ # * {Types::ListEffectivePolicyValidationErrorsResponse#path #path} => String
4347
+ # * {Types::ListEffectivePolicyValidationErrorsResponse#evaluation_timestamp #evaluation_timestamp} => Time
4348
+ # * {Types::ListEffectivePolicyValidationErrorsResponse#next_token #next_token} => String
4349
+ # * {Types::ListEffectivePolicyValidationErrorsResponse#effective_policy_validation_errors #effective_policy_validation_errors} => Array<Types::EffectivePolicyValidationError>
4350
+ #
4351
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4352
+ #
4353
+ #
4354
+ # @example Example: To list all effective policy validation errors for an account policy type
4355
+ #
4356
+ # # The following example shows you how to request a list of effective policy validation errors for an account and policy
4357
+ # # type:
4358
+ #
4359
+ # resp = client.list_effective_policy_validation_errors({
4360
+ # account_id: "111111111111",
4361
+ # policy_type: "BACKUP_POLICY",
4362
+ # })
4363
+ #
4364
+ # resp.to_h outputs the following:
4365
+ # {
4366
+ # account_id: "111111111111",
4367
+ # effective_policy_validation_errors: [
4368
+ # {
4369
+ # contributing_policies: [
4370
+ # "p-examplepolicyid111",
4371
+ # ],
4372
+ # error_code: "ELEMENTS_TOO_FEW",
4373
+ # error_message: "tag_value is less than the allowed minimum limit 1",
4374
+ # path_to_error: "plans/backup_daily/selections/tags/dailydatatype/tag_value",
4375
+ # },
4376
+ # {
4377
+ # contributing_policies: [
4378
+ # "p-examplepolicyid111",
4379
+ # "p-examplepolicyid222",
4380
+ # ],
4381
+ # error_code: "ELEMENTS_TOO_MANY",
4382
+ # error_message: "rules exceeds the allowed maximum limit 10",
4383
+ # path_to_error: "plans/backup_daily/rules",
4384
+ # },
4385
+ # ],
4386
+ # evaluation_timestamp: Time.parse("2024-03-04T19:39:38.376000+00:00"),
4387
+ # path: "o-exampleorgid/r-examplerootid111/111111111111/",
4388
+ # policy_type: "BACKUP_POLICY",
4389
+ # }
4390
+ #
4391
+ # @example Request syntax with placeholder values
4392
+ #
4393
+ # resp = client.list_effective_policy_validation_errors({
4394
+ # account_id: "AccountId", # required
4395
+ # policy_type: "TAG_POLICY", # required, accepts TAG_POLICY, BACKUP_POLICY, AISERVICES_OPT_OUT_POLICY, CHATBOT_POLICY, DECLARATIVE_POLICY_EC2, SECURITYHUB_POLICY
4396
+ # next_token: "NextToken",
4397
+ # max_results: 1,
4398
+ # })
4399
+ #
4400
+ # @example Response structure
4401
+ #
4402
+ # resp.account_id #=> String
4403
+ # resp.policy_type #=> String, one of "TAG_POLICY", "BACKUP_POLICY", "AISERVICES_OPT_OUT_POLICY", "CHATBOT_POLICY", "DECLARATIVE_POLICY_EC2", "SECURITYHUB_POLICY"
4404
+ # resp.path #=> String
4405
+ # resp.evaluation_timestamp #=> Time
4406
+ # resp.next_token #=> String
4407
+ # resp.effective_policy_validation_errors #=> Array
4408
+ # resp.effective_policy_validation_errors[0].error_code #=> String
4409
+ # resp.effective_policy_validation_errors[0].error_message #=> String
4410
+ # resp.effective_policy_validation_errors[0].path_to_error #=> String
4411
+ # resp.effective_policy_validation_errors[0].contributing_policies #=> Array
4412
+ # resp.effective_policy_validation_errors[0].contributing_policies[0] #=> String
4413
+ #
4414
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListEffectivePolicyValidationErrors AWS API Documentation
4415
+ #
4416
+ # @overload list_effective_policy_validation_errors(params = {})
4417
+ # @param [Hash] params ({})
4418
+ def list_effective_policy_validation_errors(params = {}, options = {})
4419
+ req = build_request(:list_effective_policy_validation_errors, params)
4420
+ req.send_request(options)
4421
+ end
4422
+
4152
4423
  # Lists the current handshakes that are associated with the account of
4153
4424
  # the requesting user.
4154
4425
  #
@@ -5876,7 +6147,7 @@ module Aws::Organizations
5876
6147
  tracer: tracer
5877
6148
  )
5878
6149
  context[:gem_name] = 'aws-sdk-organizations'
5879
- context[:gem_version] = '1.120.0'
6150
+ context[:gem_version] = '1.121.0'
5880
6151
  Seahorse::Client::Request.new(handlers, context)
5881
6152
  end
5882
6153
 
@@ -102,6 +102,8 @@ module Aws::Organizations
102
102
  EffectivePolicy = Shapes::StructureShape.new(name: 'EffectivePolicy')
103
103
  EffectivePolicyNotFoundException = Shapes::StructureShape.new(name: 'EffectivePolicyNotFoundException')
104
104
  EffectivePolicyType = Shapes::StringShape.new(name: 'EffectivePolicyType')
105
+ EffectivePolicyValidationError = Shapes::StructureShape.new(name: 'EffectivePolicyValidationError')
106
+ EffectivePolicyValidationErrors = Shapes::ListShape.new(name: 'EffectivePolicyValidationErrors')
105
107
  Email = Shapes::StringShape.new(name: 'Email')
106
108
  EnableAWSServiceAccessRequest = Shapes::StructureShape.new(name: 'EnableAWSServiceAccessRequest')
107
109
  EnableAllFeaturesRequest = Shapes::StructureShape.new(name: 'EnableAllFeaturesRequest')
@@ -110,6 +112,8 @@ module Aws::Organizations
110
112
  EnablePolicyTypeResponse = Shapes::StructureShape.new(name: 'EnablePolicyTypeResponse')
111
113
  EnabledServicePrincipal = Shapes::StructureShape.new(name: 'EnabledServicePrincipal')
112
114
  EnabledServicePrincipals = Shapes::ListShape.new(name: 'EnabledServicePrincipals')
115
+ ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
116
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
113
117
  ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
114
118
  ExceptionType = Shapes::StringShape.new(name: 'ExceptionType')
115
119
  FinalizingOrganizationException = Shapes::StructureShape.new(name: 'FinalizingOrganizationException')
@@ -145,6 +149,8 @@ module Aws::Organizations
145
149
  ListAccountsForParentResponse = Shapes::StructureShape.new(name: 'ListAccountsForParentResponse')
146
150
  ListAccountsRequest = Shapes::StructureShape.new(name: 'ListAccountsRequest')
147
151
  ListAccountsResponse = Shapes::StructureShape.new(name: 'ListAccountsResponse')
152
+ ListAccountsWithInvalidEffectivePolicyRequest = Shapes::StructureShape.new(name: 'ListAccountsWithInvalidEffectivePolicyRequest')
153
+ ListAccountsWithInvalidEffectivePolicyResponse = Shapes::StructureShape.new(name: 'ListAccountsWithInvalidEffectivePolicyResponse')
148
154
  ListChildrenRequest = Shapes::StructureShape.new(name: 'ListChildrenRequest')
149
155
  ListChildrenResponse = Shapes::StructureShape.new(name: 'ListChildrenResponse')
150
156
  ListCreateAccountStatusRequest = Shapes::StructureShape.new(name: 'ListCreateAccountStatusRequest')
@@ -153,6 +159,8 @@ module Aws::Organizations
153
159
  ListDelegatedAdministratorsResponse = Shapes::StructureShape.new(name: 'ListDelegatedAdministratorsResponse')
154
160
  ListDelegatedServicesForAccountRequest = Shapes::StructureShape.new(name: 'ListDelegatedServicesForAccountRequest')
155
161
  ListDelegatedServicesForAccountResponse = Shapes::StructureShape.new(name: 'ListDelegatedServicesForAccountResponse')
162
+ ListEffectivePolicyValidationErrorsRequest = Shapes::StructureShape.new(name: 'ListEffectivePolicyValidationErrorsRequest')
163
+ ListEffectivePolicyValidationErrorsResponse = Shapes::StructureShape.new(name: 'ListEffectivePolicyValidationErrorsResponse')
156
164
  ListHandshakesForAccountRequest = Shapes::StructureShape.new(name: 'ListHandshakesForAccountRequest')
157
165
  ListHandshakesForAccountResponse = Shapes::StructureShape.new(name: 'ListHandshakesForAccountResponse')
158
166
  ListHandshakesForOrganizationRequest = Shapes::StructureShape.new(name: 'ListHandshakesForOrganizationRequest')
@@ -193,6 +201,8 @@ module Aws::Organizations
193
201
  ParentNotFoundException = Shapes::StructureShape.new(name: 'ParentNotFoundException')
194
202
  ParentType = Shapes::StringShape.new(name: 'ParentType')
195
203
  Parents = Shapes::ListShape.new(name: 'Parents')
204
+ Path = Shapes::StringShape.new(name: 'Path')
205
+ PathToError = Shapes::StringShape.new(name: 'PathToError')
196
206
  Policies = Shapes::ListShape.new(name: 'Policies')
197
207
  Policy = Shapes::StructureShape.new(name: 'Policy')
198
208
  PolicyArn = Shapes::StringShape.new(name: 'PolicyArn')
@@ -200,6 +210,7 @@ module Aws::Organizations
200
210
  PolicyContent = Shapes::StringShape.new(name: 'PolicyContent')
201
211
  PolicyDescription = Shapes::StringShape.new(name: 'PolicyDescription')
202
212
  PolicyId = Shapes::StringShape.new(name: 'PolicyId')
213
+ PolicyIds = Shapes::ListShape.new(name: 'PolicyIds')
203
214
  PolicyInUseException = Shapes::StructureShape.new(name: 'PolicyInUseException')
204
215
  PolicyName = Shapes::StringShape.new(name: 'PolicyName')
205
216
  PolicyNotAttachedException = Shapes::StructureShape.new(name: 'PolicyNotAttachedException')
@@ -510,6 +521,14 @@ module Aws::Organizations
510
521
  EffectivePolicyNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
511
522
  EffectivePolicyNotFoundException.struct_class = Types::EffectivePolicyNotFoundException
512
523
 
524
+ EffectivePolicyValidationError.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
525
+ EffectivePolicyValidationError.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
526
+ EffectivePolicyValidationError.add_member(:path_to_error, Shapes::ShapeRef.new(shape: PathToError, location_name: "PathToError"))
527
+ EffectivePolicyValidationError.add_member(:contributing_policies, Shapes::ShapeRef.new(shape: PolicyIds, location_name: "ContributingPolicies"))
528
+ EffectivePolicyValidationError.struct_class = Types::EffectivePolicyValidationError
529
+
530
+ EffectivePolicyValidationErrors.member = Shapes::ShapeRef.new(shape: EffectivePolicyValidationError)
531
+
513
532
  EnableAWSServiceAccessRequest.add_member(:service_principal, Shapes::ShapeRef.new(shape: ServicePrincipal, required: true, location_name: "ServicePrincipal"))
514
533
  EnableAWSServiceAccessRequest.struct_class = Types::EnableAWSServiceAccessRequest
515
534
 
@@ -613,6 +632,16 @@ module Aws::Organizations
613
632
  ListAccountsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
614
633
  ListAccountsResponse.struct_class = Types::ListAccountsResponse
615
634
 
635
+ ListAccountsWithInvalidEffectivePolicyRequest.add_member(:policy_type, Shapes::ShapeRef.new(shape: EffectivePolicyType, required: true, location_name: "PolicyType"))
636
+ ListAccountsWithInvalidEffectivePolicyRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
637
+ ListAccountsWithInvalidEffectivePolicyRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
638
+ ListAccountsWithInvalidEffectivePolicyRequest.struct_class = Types::ListAccountsWithInvalidEffectivePolicyRequest
639
+
640
+ ListAccountsWithInvalidEffectivePolicyResponse.add_member(:accounts, Shapes::ShapeRef.new(shape: Accounts, location_name: "Accounts"))
641
+ ListAccountsWithInvalidEffectivePolicyResponse.add_member(:policy_type, Shapes::ShapeRef.new(shape: EffectivePolicyType, location_name: "PolicyType"))
642
+ ListAccountsWithInvalidEffectivePolicyResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
643
+ ListAccountsWithInvalidEffectivePolicyResponse.struct_class = Types::ListAccountsWithInvalidEffectivePolicyResponse
644
+
616
645
  ListChildrenRequest.add_member(:parent_id, Shapes::ShapeRef.new(shape: ParentId, required: true, location_name: "ParentId"))
617
646
  ListChildrenRequest.add_member(:child_type, Shapes::ShapeRef.new(shape: ChildType, required: true, location_name: "ChildType"))
618
647
  ListChildrenRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
@@ -650,6 +679,20 @@ module Aws::Organizations
650
679
  ListDelegatedServicesForAccountResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
651
680
  ListDelegatedServicesForAccountResponse.struct_class = Types::ListDelegatedServicesForAccountResponse
652
681
 
682
+ ListEffectivePolicyValidationErrorsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
683
+ ListEffectivePolicyValidationErrorsRequest.add_member(:policy_type, Shapes::ShapeRef.new(shape: EffectivePolicyType, required: true, location_name: "PolicyType"))
684
+ ListEffectivePolicyValidationErrorsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
685
+ ListEffectivePolicyValidationErrorsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
686
+ ListEffectivePolicyValidationErrorsRequest.struct_class = Types::ListEffectivePolicyValidationErrorsRequest
687
+
688
+ ListEffectivePolicyValidationErrorsResponse.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
689
+ ListEffectivePolicyValidationErrorsResponse.add_member(:policy_type, Shapes::ShapeRef.new(shape: EffectivePolicyType, location_name: "PolicyType"))
690
+ ListEffectivePolicyValidationErrorsResponse.add_member(:path, Shapes::ShapeRef.new(shape: Path, location_name: "Path"))
691
+ ListEffectivePolicyValidationErrorsResponse.add_member(:evaluation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EvaluationTimestamp"))
692
+ ListEffectivePolicyValidationErrorsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
693
+ ListEffectivePolicyValidationErrorsResponse.add_member(:effective_policy_validation_errors, Shapes::ShapeRef.new(shape: EffectivePolicyValidationErrors, location_name: "EffectivePolicyValidationErrors"))
694
+ ListEffectivePolicyValidationErrorsResponse.struct_class = Types::ListEffectivePolicyValidationErrorsResponse
695
+
653
696
  ListHandshakesForAccountRequest.add_member(:filter, Shapes::ShapeRef.new(shape: HandshakeFilter, location_name: "Filter"))
654
697
  ListHandshakesForAccountRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
655
698
  ListHandshakesForAccountRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
@@ -784,6 +827,8 @@ module Aws::Organizations
784
827
  PolicyChangesInProgressException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
785
828
  PolicyChangesInProgressException.struct_class = Types::PolicyChangesInProgressException
786
829
 
830
+ PolicyIds.member = Shapes::ShapeRef.new(shape: PolicyId)
831
+
787
832
  PolicyInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
788
833
  PolicyInUseException.struct_class = Types::PolicyInUseException
789
834
 
@@ -1508,6 +1553,28 @@ module Aws::Organizations
1508
1553
  )
1509
1554
  end)
1510
1555
 
1556
+ api.add_operation(:list_accounts_with_invalid_effective_policy, Seahorse::Model::Operation.new.tap do |o|
1557
+ o.name = "ListAccountsWithInvalidEffectivePolicy"
1558
+ o.http_method = "POST"
1559
+ o.http_request_uri = "/"
1560
+ o.input = Shapes::ShapeRef.new(shape: ListAccountsWithInvalidEffectivePolicyRequest)
1561
+ o.output = Shapes::ShapeRef.new(shape: ListAccountsWithInvalidEffectivePolicyResponse)
1562
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1563
+ o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
1564
+ o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
1565
+ o.errors << Shapes::ShapeRef.new(shape: EffectivePolicyNotFoundException)
1566
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
1567
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1568
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1569
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
1570
+ o[:pager] = Aws::Pager.new(
1571
+ limit_key: "max_results",
1572
+ tokens: {
1573
+ "next_token" => "next_token"
1574
+ }
1575
+ )
1576
+ end)
1577
+
1511
1578
  api.add_operation(:list_children, Seahorse::Model::Operation.new.tap do |o|
1512
1579
  o.name = "ListChildren"
1513
1580
  o.http_method = "POST"
@@ -1592,6 +1659,29 @@ module Aws::Organizations
1592
1659
  )
1593
1660
  end)
1594
1661
 
1662
+ api.add_operation(:list_effective_policy_validation_errors, Seahorse::Model::Operation.new.tap do |o|
1663
+ o.name = "ListEffectivePolicyValidationErrors"
1664
+ o.http_method = "POST"
1665
+ o.http_request_uri = "/"
1666
+ o.input = Shapes::ShapeRef.new(shape: ListEffectivePolicyValidationErrorsRequest)
1667
+ o.output = Shapes::ShapeRef.new(shape: ListEffectivePolicyValidationErrorsResponse)
1668
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1669
+ o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
1670
+ o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
1671
+ o.errors << Shapes::ShapeRef.new(shape: EffectivePolicyNotFoundException)
1672
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
1673
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1674
+ o.errors << Shapes::ShapeRef.new(shape: AccountNotFoundException)
1675
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
1676
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
1677
+ o[:pager] = Aws::Pager.new(
1678
+ limit_key: "max_results",
1679
+ tokens: {
1680
+ "next_token" => "next_token"
1681
+ }
1682
+ )
1683
+ end)
1684
+
1595
1685
  api.add_operation(:list_handshakes_for_account, Seahorse::Model::Operation.new.tap do |o|
1596
1686
  o.name = "ListHandshakesForAccount"
1597
1687
  o.http_method = "POST"
@@ -1991,6 +1991,49 @@ module Aws::Organizations
1991
1991
  include Aws::Structure
1992
1992
  end
1993
1993
 
1994
+ # Contains details about the validation errors that occurred when
1995
+ # generating or enforcing an [effective policy][1], such as which
1996
+ # policies contributed to the error and location of the error.
1997
+ #
1998
+ #
1999
+ #
2000
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_effective.html
2001
+ #
2002
+ # @!attribute [rw] error_code
2003
+ # The error code for the validation error. For example,
2004
+ # `ELEMENTS_TOO_MANY`.
2005
+ # @return [String]
2006
+ #
2007
+ # @!attribute [rw] error_message
2008
+ # The error message for the validation error.
2009
+ # @return [String]
2010
+ #
2011
+ # @!attribute [rw] path_to_error
2012
+ # The path within the effective policy where the validation error
2013
+ # occurred.
2014
+ # @return [String]
2015
+ #
2016
+ # @!attribute [rw] contributing_policies
2017
+ # The individual policies [inherited][1] and [attached][2] to the
2018
+ # account which contributed to the validation error.
2019
+ #
2020
+ #
2021
+ #
2022
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inheritance_mgmt.html
2023
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_policies_attach.html
2024
+ # @return [Array<String>]
2025
+ #
2026
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EffectivePolicyValidationError AWS API Documentation
2027
+ #
2028
+ class EffectivePolicyValidationError < Struct.new(
2029
+ :error_code,
2030
+ :error_message,
2031
+ :path_to_error,
2032
+ :contributing_policies)
2033
+ SENSITIVE = []
2034
+ include Aws::Structure
2035
+ end
2036
+
1994
2037
  # @!attribute [rw] service_principal
1995
2038
  # The service principal name of the Amazon Web Services service for
1996
2039
  # which you want to enable integration with your organization. This is
@@ -2807,6 +2850,111 @@ module Aws::Organizations
2807
2850
  include Aws::Structure
2808
2851
  end
2809
2852
 
2853
+ # @!attribute [rw] policy_type
2854
+ # The type of policy that you want information about. You can specify
2855
+ # one of the following values:
2856
+ #
2857
+ # * [DECLARATIVE\_POLICY\_EC2][1]
2858
+ #
2859
+ # * [BACKUP\_POLICY][2]
2860
+ #
2861
+ # * [TAG\_POLICY][3]
2862
+ #
2863
+ # * [CHATBOT\_POLICY][4]
2864
+ #
2865
+ # * [AISERVICES\_OPT\_OUT\_POLICY][5]
2866
+ #
2867
+ # * [SECURITYHUB\_POLICY][6]
2868
+ #
2869
+ #
2870
+ #
2871
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html
2872
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
2873
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
2874
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
2875
+ # [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
2876
+ # [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
2877
+ # @return [String]
2878
+ #
2879
+ # @!attribute [rw] next_token
2880
+ # The parameter for receiving additional results if you receive a
2881
+ # `NextToken` response in a previous request. A `NextToken` response
2882
+ # indicates that more output is available. Set this parameter to the
2883
+ # value of the previous call's `NextToken` response to indicate where
2884
+ # the output should continue from.
2885
+ # @return [String]
2886
+ #
2887
+ # @!attribute [rw] max_results
2888
+ # The total number of results that you want included on each page of
2889
+ # the response. If you do not include this parameter, it defaults to a
2890
+ # value that is specific to the operation. If additional items exist
2891
+ # beyond the maximum you specify, the `NextToken` response element is
2892
+ # present and has a value (is not null). Include that value as the
2893
+ # `NextToken` request parameter in the next call to the operation to
2894
+ # get the next part of the results. Note that Organizations might
2895
+ # return fewer results than the maximum even when there are more
2896
+ # results available. You should check `NextToken` after every
2897
+ # operation to ensure that you receive all of the results.
2898
+ # @return [Integer]
2899
+ #
2900
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccountsWithInvalidEffectivePolicyRequest AWS API Documentation
2901
+ #
2902
+ class ListAccountsWithInvalidEffectivePolicyRequest < Struct.new(
2903
+ :policy_type,
2904
+ :next_token,
2905
+ :max_results)
2906
+ SENSITIVE = []
2907
+ include Aws::Structure
2908
+ end
2909
+
2910
+ # @!attribute [rw] accounts
2911
+ # The accounts in the organization which have an invalid effective
2912
+ # policy for the specified policy type.
2913
+ # @return [Array<Types::Account>]
2914
+ #
2915
+ # @!attribute [rw] policy_type
2916
+ # The specified policy type. One of the following values:
2917
+ #
2918
+ # * [DECLARATIVE\_POLICY\_EC2][1]
2919
+ #
2920
+ # * [BACKUP\_POLICY][2]
2921
+ #
2922
+ # * [TAG\_POLICY][3]
2923
+ #
2924
+ # * [CHATBOT\_POLICY][4]
2925
+ #
2926
+ # * [AISERVICES\_OPT\_OUT\_POLICY][5]
2927
+ #
2928
+ # * [SECURITYHUB\_POLICY][6]
2929
+ #
2930
+ #
2931
+ #
2932
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html
2933
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
2934
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
2935
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
2936
+ # [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
2937
+ # [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
2938
+ # @return [String]
2939
+ #
2940
+ # @!attribute [rw] next_token
2941
+ # If present, indicates that more output is available than is included
2942
+ # in the current response. Use this value in the `NextToken` request
2943
+ # parameter in a subsequent call to the operation to get the next part
2944
+ # of the output. You should repeat this until the `NextToken` response
2945
+ # element comes back as `null`.
2946
+ # @return [String]
2947
+ #
2948
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListAccountsWithInvalidEffectivePolicyResponse AWS API Documentation
2949
+ #
2950
+ class ListAccountsWithInvalidEffectivePolicyResponse < Struct.new(
2951
+ :accounts,
2952
+ :policy_type,
2953
+ :next_token)
2954
+ SENSITIVE = []
2955
+ include Aws::Structure
2956
+ end
2957
+
2810
2958
  # @!attribute [rw] parent_id
2811
2959
  # The unique identifier (ID) for the parent root or OU whose children
2812
2960
  # you want to list.
@@ -3062,6 +3210,136 @@ module Aws::Organizations
3062
3210
  include Aws::Structure
3063
3211
  end
3064
3212
 
3213
+ # @!attribute [rw] account_id
3214
+ # The ID of the account that you want details about. Specifying an
3215
+ # organization root or organizational unit (OU) as the target is not
3216
+ # supported.
3217
+ # @return [String]
3218
+ #
3219
+ # @!attribute [rw] policy_type
3220
+ # The type of policy that you want information about. You can specify
3221
+ # one of the following values:
3222
+ #
3223
+ # * [DECLARATIVE\_POLICY\_EC2][1]
3224
+ #
3225
+ # * [BACKUP\_POLICY][2]
3226
+ #
3227
+ # * [TAG\_POLICY][3]
3228
+ #
3229
+ # * [CHATBOT\_POLICY][4]
3230
+ #
3231
+ # * [AISERVICES\_OPT\_OUT\_POLICY][5]
3232
+ #
3233
+ # * [SECURITYHUB\_POLICY][6]
3234
+ #
3235
+ #
3236
+ #
3237
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html
3238
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
3239
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
3240
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
3241
+ # [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
3242
+ # [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
3243
+ # @return [String]
3244
+ #
3245
+ # @!attribute [rw] next_token
3246
+ # The parameter for receiving additional results if you receive a
3247
+ # `NextToken` response in a previous request. A `NextToken` response
3248
+ # indicates that more output is available. Set this parameter to the
3249
+ # value of the previous call's `NextToken` response to indicate where
3250
+ # the output should continue from.
3251
+ # @return [String]
3252
+ #
3253
+ # @!attribute [rw] max_results
3254
+ # The total number of results that you want included on each page of
3255
+ # the response. If you do not include this parameter, it defaults to a
3256
+ # value that is specific to the operation. If additional items exist
3257
+ # beyond the maximum you specify, the `NextToken` response element is
3258
+ # present and has a value (is not null). Include that value as the
3259
+ # `NextToken` request parameter in the next call to the operation to
3260
+ # get the next part of the results. Note that Organizations might
3261
+ # return fewer results than the maximum even when there are more
3262
+ # results available. You should check `NextToken` after every
3263
+ # operation to ensure that you receive all of the results.
3264
+ # @return [Integer]
3265
+ #
3266
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListEffectivePolicyValidationErrorsRequest AWS API Documentation
3267
+ #
3268
+ class ListEffectivePolicyValidationErrorsRequest < Struct.new(
3269
+ :account_id,
3270
+ :policy_type,
3271
+ :next_token,
3272
+ :max_results)
3273
+ SENSITIVE = []
3274
+ include Aws::Structure
3275
+ end
3276
+
3277
+ # @!attribute [rw] account_id
3278
+ # The ID of the specified account.
3279
+ # @return [String]
3280
+ #
3281
+ # @!attribute [rw] policy_type
3282
+ # The specified policy type. One of the following values:
3283
+ #
3284
+ # * [DECLARATIVE\_POLICY\_EC2][1]
3285
+ #
3286
+ # * [BACKUP\_POLICY][2]
3287
+ #
3288
+ # * [TAG\_POLICY][3]
3289
+ #
3290
+ # * [CHATBOT\_POLICY][4]
3291
+ #
3292
+ # * [AISERVICES\_OPT\_OUT\_POLICY][5]
3293
+ #
3294
+ # * [SECURITYHUB\_POLICY][6]
3295
+ #
3296
+ #
3297
+ #
3298
+ # [1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html
3299
+ # [2]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
3300
+ # [3]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
3301
+ # [4]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
3302
+ # [5]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
3303
+ # [6]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
3304
+ # @return [String]
3305
+ #
3306
+ # @!attribute [rw] path
3307
+ # The path in the organization where the specified account exists.
3308
+ # @return [String]
3309
+ #
3310
+ # @!attribute [rw] evaluation_timestamp
3311
+ # The time when the latest effective policy was generated for the
3312
+ # specified account.
3313
+ # @return [Time]
3314
+ #
3315
+ # @!attribute [rw] next_token
3316
+ # If present, indicates that more output is available than is included
3317
+ # in the current response. Use this value in the `NextToken` request
3318
+ # parameter in a subsequent call to the operation to get the next part
3319
+ # of the output. You should repeat this until the `NextToken` response
3320
+ # element comes back as `null`.
3321
+ # @return [String]
3322
+ #
3323
+ # @!attribute [rw] effective_policy_validation_errors
3324
+ # The `EffectivePolicyValidationError` object contains details about
3325
+ # the validation errors that occurred when generating or enforcing an
3326
+ # effective policy, such as which policies contributed to the error
3327
+ # and location of the error.
3328
+ # @return [Array<Types::EffectivePolicyValidationError>]
3329
+ #
3330
+ # @see http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListEffectivePolicyValidationErrorsResponse AWS API Documentation
3331
+ #
3332
+ class ListEffectivePolicyValidationErrorsResponse < Struct.new(
3333
+ :account_id,
3334
+ :policy_type,
3335
+ :path,
3336
+ :evaluation_timestamp,
3337
+ :next_token,
3338
+ :effective_policy_validation_errors)
3339
+ SENSITIVE = []
3340
+ include Aws::Structure
3341
+ end
3342
+
3065
3343
  # @!attribute [rw] filter
3066
3344
  # Filters the handshakes that you want included in the response. The
3067
3345
  # default is all types. Use the `ActionType` element to limit the
@@ -54,7 +54,7 @@ module Aws::Organizations
54
54
  autoload :EndpointProvider, 'aws-sdk-organizations/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-organizations/endpoints'
56
56
 
57
- GEM_VERSION = '1.120.0'
57
+ GEM_VERSION = '1.121.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -421,6 +421,20 @@ module Aws
421
421
  ) -> _ListAccountsForParentResponseSuccess
422
422
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAccountsForParentResponseSuccess
423
423
 
424
+ interface _ListAccountsWithInvalidEffectivePolicyResponseSuccess
425
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAccountsWithInvalidEffectivePolicyResponse]
426
+ def accounts: () -> ::Array[Types::Account]
427
+ def policy_type: () -> ("TAG_POLICY" | "BACKUP_POLICY" | "AISERVICES_OPT_OUT_POLICY" | "CHATBOT_POLICY" | "DECLARATIVE_POLICY_EC2" | "SECURITYHUB_POLICY")
428
+ def next_token: () -> ::String
429
+ end
430
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Organizations/Client.html#list_accounts_with_invalid_effective_policy-instance_method
431
+ def list_accounts_with_invalid_effective_policy: (
432
+ policy_type: ("TAG_POLICY" | "BACKUP_POLICY" | "AISERVICES_OPT_OUT_POLICY" | "CHATBOT_POLICY" | "DECLARATIVE_POLICY_EC2" | "SECURITYHUB_POLICY"),
433
+ ?next_token: ::String,
434
+ ?max_results: ::Integer
435
+ ) -> _ListAccountsWithInvalidEffectivePolicyResponseSuccess
436
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAccountsWithInvalidEffectivePolicyResponseSuccess
437
+
424
438
  interface _ListChildrenResponseSuccess
425
439
  include ::Seahorse::Client::_ResponseSuccess[Types::ListChildrenResponse]
426
440
  def children: () -> ::Array[Types::Child]
@@ -474,6 +488,24 @@ module Aws
474
488
  ) -> _ListDelegatedServicesForAccountResponseSuccess
475
489
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListDelegatedServicesForAccountResponseSuccess
476
490
 
491
+ interface _ListEffectivePolicyValidationErrorsResponseSuccess
492
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListEffectivePolicyValidationErrorsResponse]
493
+ def account_id: () -> ::String
494
+ def policy_type: () -> ("TAG_POLICY" | "BACKUP_POLICY" | "AISERVICES_OPT_OUT_POLICY" | "CHATBOT_POLICY" | "DECLARATIVE_POLICY_EC2" | "SECURITYHUB_POLICY")
495
+ def path: () -> ::String
496
+ def evaluation_timestamp: () -> ::Time
497
+ def next_token: () -> ::String
498
+ def effective_policy_validation_errors: () -> ::Array[Types::EffectivePolicyValidationError]
499
+ end
500
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Organizations/Client.html#list_effective_policy_validation_errors-instance_method
501
+ def list_effective_policy_validation_errors: (
502
+ account_id: ::String,
503
+ policy_type: ("TAG_POLICY" | "BACKUP_POLICY" | "AISERVICES_OPT_OUT_POLICY" | "CHATBOT_POLICY" | "DECLARATIVE_POLICY_EC2" | "SECURITYHUB_POLICY"),
504
+ ?next_token: ::String,
505
+ ?max_results: ::Integer
506
+ ) -> _ListEffectivePolicyValidationErrorsResponseSuccess
507
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEffectivePolicyValidationErrorsResponseSuccess
508
+
477
509
  interface _ListHandshakesForAccountResponseSuccess
478
510
  include ::Seahorse::Client::_ResponseSuccess[Types::ListHandshakesForAccountResponse]
479
511
  def handshakes: () -> ::Array[Types::Handshake]
data/sig/types.rbs CHANGED
@@ -384,6 +384,14 @@ module Aws::Organizations
384
384
  SENSITIVE: []
385
385
  end
386
386
 
387
+ class EffectivePolicyValidationError
388
+ attr_accessor error_code: ::String
389
+ attr_accessor error_message: ::String
390
+ attr_accessor path_to_error: ::String
391
+ attr_accessor contributing_policies: ::Array[::String]
392
+ SENSITIVE: []
393
+ end
394
+
387
395
  class EnableAWSServiceAccessRequest
388
396
  attr_accessor service_principal: ::String
389
397
  SENSITIVE: []
@@ -526,6 +534,20 @@ module Aws::Organizations
526
534
  SENSITIVE: []
527
535
  end
528
536
 
537
+ class ListAccountsWithInvalidEffectivePolicyRequest
538
+ attr_accessor policy_type: ("TAG_POLICY" | "BACKUP_POLICY" | "AISERVICES_OPT_OUT_POLICY" | "CHATBOT_POLICY" | "DECLARATIVE_POLICY_EC2" | "SECURITYHUB_POLICY")
539
+ attr_accessor next_token: ::String
540
+ attr_accessor max_results: ::Integer
541
+ SENSITIVE: []
542
+ end
543
+
544
+ class ListAccountsWithInvalidEffectivePolicyResponse
545
+ attr_accessor accounts: ::Array[Types::Account]
546
+ attr_accessor policy_type: ("TAG_POLICY" | "BACKUP_POLICY" | "AISERVICES_OPT_OUT_POLICY" | "CHATBOT_POLICY" | "DECLARATIVE_POLICY_EC2" | "SECURITYHUB_POLICY")
547
+ attr_accessor next_token: ::String
548
+ SENSITIVE: []
549
+ end
550
+
529
551
  class ListChildrenRequest
530
552
  attr_accessor parent_id: ::String
531
553
  attr_accessor child_type: ("ACCOUNT" | "ORGANIZATIONAL_UNIT")
@@ -579,6 +601,24 @@ module Aws::Organizations
579
601
  SENSITIVE: []
580
602
  end
581
603
 
604
+ class ListEffectivePolicyValidationErrorsRequest
605
+ attr_accessor account_id: ::String
606
+ attr_accessor policy_type: ("TAG_POLICY" | "BACKUP_POLICY" | "AISERVICES_OPT_OUT_POLICY" | "CHATBOT_POLICY" | "DECLARATIVE_POLICY_EC2" | "SECURITYHUB_POLICY")
607
+ attr_accessor next_token: ::String
608
+ attr_accessor max_results: ::Integer
609
+ SENSITIVE: []
610
+ end
611
+
612
+ class ListEffectivePolicyValidationErrorsResponse
613
+ attr_accessor account_id: ::String
614
+ attr_accessor policy_type: ("TAG_POLICY" | "BACKUP_POLICY" | "AISERVICES_OPT_OUT_POLICY" | "CHATBOT_POLICY" | "DECLARATIVE_POLICY_EC2" | "SECURITYHUB_POLICY")
615
+ attr_accessor path: ::String
616
+ attr_accessor evaluation_timestamp: ::Time
617
+ attr_accessor next_token: ::String
618
+ attr_accessor effective_policy_validation_errors: ::Array[Types::EffectivePolicyValidationError]
619
+ SENSITIVE: []
620
+ end
621
+
582
622
  class ListHandshakesForAccountRequest
583
623
  attr_accessor filter: Types::HandshakeFilter
584
624
  attr_accessor next_token: ::String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-organizations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.120.0
4
+ version: 1.121.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services