aws-sdk-organizations 1.36.0 → 1.41.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 +5 -5
- data/lib/aws-sdk-organizations.rb +7 -4
- data/lib/aws-sdk-organizations/client.rb +720 -339
- data/lib/aws-sdk-organizations/client_api.rb +142 -0
- data/lib/aws-sdk-organizations/errors.rb +94 -40
- data/lib/aws-sdk-organizations/resource.rb +1 -0
- data/lib/aws-sdk-organizations/types.rb +641 -319
- metadata +3 -3
@@ -18,11 +18,13 @@ module Aws::Organizations
|
|
18
18
|
AccessDeniedForDependencyException = Shapes::StructureShape.new(name: 'AccessDeniedForDependencyException')
|
19
19
|
AccessDeniedForDependencyExceptionReason = Shapes::StringShape.new(name: 'AccessDeniedForDependencyExceptionReason')
|
20
20
|
Account = Shapes::StructureShape.new(name: 'Account')
|
21
|
+
AccountAlreadyRegisteredException = Shapes::StructureShape.new(name: 'AccountAlreadyRegisteredException')
|
21
22
|
AccountArn = Shapes::StringShape.new(name: 'AccountArn')
|
22
23
|
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
23
24
|
AccountJoinedMethod = Shapes::StringShape.new(name: 'AccountJoinedMethod')
|
24
25
|
AccountName = Shapes::StringShape.new(name: 'AccountName')
|
25
26
|
AccountNotFoundException = Shapes::StructureShape.new(name: 'AccountNotFoundException')
|
27
|
+
AccountNotRegisteredException = Shapes::StructureShape.new(name: 'AccountNotRegisteredException')
|
26
28
|
AccountOwnerNotVerifiedException = Shapes::StructureShape.new(name: 'AccountOwnerNotVerifiedException')
|
27
29
|
AccountStatus = Shapes::StringShape.new(name: 'AccountStatus')
|
28
30
|
Accounts = Shapes::ListShape.new(name: 'Accounts')
|
@@ -59,8 +61,13 @@ module Aws::Organizations
|
|
59
61
|
CreatePolicyResponse = Shapes::StructureShape.new(name: 'CreatePolicyResponse')
|
60
62
|
DeclineHandshakeRequest = Shapes::StructureShape.new(name: 'DeclineHandshakeRequest')
|
61
63
|
DeclineHandshakeResponse = Shapes::StructureShape.new(name: 'DeclineHandshakeResponse')
|
64
|
+
DelegatedAdministrator = Shapes::StructureShape.new(name: 'DelegatedAdministrator')
|
65
|
+
DelegatedAdministrators = Shapes::ListShape.new(name: 'DelegatedAdministrators')
|
66
|
+
DelegatedService = Shapes::StructureShape.new(name: 'DelegatedService')
|
67
|
+
DelegatedServices = Shapes::ListShape.new(name: 'DelegatedServices')
|
62
68
|
DeleteOrganizationalUnitRequest = Shapes::StructureShape.new(name: 'DeleteOrganizationalUnitRequest')
|
63
69
|
DeletePolicyRequest = Shapes::StructureShape.new(name: 'DeletePolicyRequest')
|
70
|
+
DeregisterDelegatedAdministratorRequest = Shapes::StructureShape.new(name: 'DeregisterDelegatedAdministratorRequest')
|
64
71
|
DescribeAccountRequest = Shapes::StructureShape.new(name: 'DescribeAccountRequest')
|
65
72
|
DescribeAccountResponse = Shapes::StructureShape.new(name: 'DescribeAccountResponse')
|
66
73
|
DescribeCreateAccountStatusRequest = Shapes::StructureShape.new(name: 'DescribeCreateAccountStatusRequest')
|
@@ -134,6 +141,10 @@ module Aws::Organizations
|
|
134
141
|
ListChildrenResponse = Shapes::StructureShape.new(name: 'ListChildrenResponse')
|
135
142
|
ListCreateAccountStatusRequest = Shapes::StructureShape.new(name: 'ListCreateAccountStatusRequest')
|
136
143
|
ListCreateAccountStatusResponse = Shapes::StructureShape.new(name: 'ListCreateAccountStatusResponse')
|
144
|
+
ListDelegatedAdministratorsRequest = Shapes::StructureShape.new(name: 'ListDelegatedAdministratorsRequest')
|
145
|
+
ListDelegatedAdministratorsResponse = Shapes::StructureShape.new(name: 'ListDelegatedAdministratorsResponse')
|
146
|
+
ListDelegatedServicesForAccountRequest = Shapes::StructureShape.new(name: 'ListDelegatedServicesForAccountRequest')
|
147
|
+
ListDelegatedServicesForAccountResponse = Shapes::StructureShape.new(name: 'ListDelegatedServicesForAccountResponse')
|
137
148
|
ListHandshakesForAccountRequest = Shapes::StructureShape.new(name: 'ListHandshakesForAccountRequest')
|
138
149
|
ListHandshakesForAccountResponse = Shapes::StructureShape.new(name: 'ListHandshakesForAccountResponse')
|
139
150
|
ListHandshakesForOrganizationRequest = Shapes::StructureShape.new(name: 'ListHandshakesForOrganizationRequest')
|
@@ -196,6 +207,7 @@ module Aws::Organizations
|
|
196
207
|
PolicyTypeStatus = Shapes::StringShape.new(name: 'PolicyTypeStatus')
|
197
208
|
PolicyTypeSummary = Shapes::StructureShape.new(name: 'PolicyTypeSummary')
|
198
209
|
PolicyTypes = Shapes::ListShape.new(name: 'PolicyTypes')
|
210
|
+
RegisterDelegatedAdministratorRequest = Shapes::StructureShape.new(name: 'RegisterDelegatedAdministratorRequest')
|
199
211
|
RemoveAccountFromOrganizationRequest = Shapes::StructureShape.new(name: 'RemoveAccountFromOrganizationRequest')
|
200
212
|
RoleName = Shapes::StringShape.new(name: 'RoleName')
|
201
213
|
Root = Shapes::StructureShape.new(name: 'Root')
|
@@ -251,9 +263,15 @@ module Aws::Organizations
|
|
251
263
|
Account.add_member(:joined_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "JoinedTimestamp"))
|
252
264
|
Account.struct_class = Types::Account
|
253
265
|
|
266
|
+
AccountAlreadyRegisteredException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
|
267
|
+
AccountAlreadyRegisteredException.struct_class = Types::AccountAlreadyRegisteredException
|
268
|
+
|
254
269
|
AccountNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
|
255
270
|
AccountNotFoundException.struct_class = Types::AccountNotFoundException
|
256
271
|
|
272
|
+
AccountNotRegisteredException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
|
273
|
+
AccountNotRegisteredException.struct_class = Types::AccountNotRegisteredException
|
274
|
+
|
257
275
|
AccountOwnerNotVerifiedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
|
258
276
|
AccountOwnerNotVerifiedException.struct_class = Types::AccountOwnerNotVerifiedException
|
259
277
|
|
@@ -351,12 +369,34 @@ module Aws::Organizations
|
|
351
369
|
DeclineHandshakeResponse.add_member(:handshake, Shapes::ShapeRef.new(shape: Handshake, location_name: "Handshake"))
|
352
370
|
DeclineHandshakeResponse.struct_class = Types::DeclineHandshakeResponse
|
353
371
|
|
372
|
+
DelegatedAdministrator.add_member(:id, Shapes::ShapeRef.new(shape: AccountId, location_name: "Id"))
|
373
|
+
DelegatedAdministrator.add_member(:arn, Shapes::ShapeRef.new(shape: AccountArn, location_name: "Arn"))
|
374
|
+
DelegatedAdministrator.add_member(:email, Shapes::ShapeRef.new(shape: Email, location_name: "Email"))
|
375
|
+
DelegatedAdministrator.add_member(:name, Shapes::ShapeRef.new(shape: AccountName, location_name: "Name"))
|
376
|
+
DelegatedAdministrator.add_member(:status, Shapes::ShapeRef.new(shape: AccountStatus, location_name: "Status"))
|
377
|
+
DelegatedAdministrator.add_member(:joined_method, Shapes::ShapeRef.new(shape: AccountJoinedMethod, location_name: "JoinedMethod"))
|
378
|
+
DelegatedAdministrator.add_member(:joined_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "JoinedTimestamp"))
|
379
|
+
DelegatedAdministrator.add_member(:delegation_enabled_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DelegationEnabledDate"))
|
380
|
+
DelegatedAdministrator.struct_class = Types::DelegatedAdministrator
|
381
|
+
|
382
|
+
DelegatedAdministrators.member = Shapes::ShapeRef.new(shape: DelegatedAdministrator)
|
383
|
+
|
384
|
+
DelegatedService.add_member(:service_principal, Shapes::ShapeRef.new(shape: ServicePrincipal, location_name: "ServicePrincipal"))
|
385
|
+
DelegatedService.add_member(:delegation_enabled_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DelegationEnabledDate"))
|
386
|
+
DelegatedService.struct_class = Types::DelegatedService
|
387
|
+
|
388
|
+
DelegatedServices.member = Shapes::ShapeRef.new(shape: DelegatedService)
|
389
|
+
|
354
390
|
DeleteOrganizationalUnitRequest.add_member(:organizational_unit_id, Shapes::ShapeRef.new(shape: OrganizationalUnitId, required: true, location_name: "OrganizationalUnitId"))
|
355
391
|
DeleteOrganizationalUnitRequest.struct_class = Types::DeleteOrganizationalUnitRequest
|
356
392
|
|
357
393
|
DeletePolicyRequest.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, required: true, location_name: "PolicyId"))
|
358
394
|
DeletePolicyRequest.struct_class = Types::DeletePolicyRequest
|
359
395
|
|
396
|
+
DeregisterDelegatedAdministratorRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
397
|
+
DeregisterDelegatedAdministratorRequest.add_member(:service_principal, Shapes::ShapeRef.new(shape: ServicePrincipal, required: true, location_name: "ServicePrincipal"))
|
398
|
+
DeregisterDelegatedAdministratorRequest.struct_class = Types::DeregisterDelegatedAdministratorRequest
|
399
|
+
|
360
400
|
DescribeAccountRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
361
401
|
DescribeAccountRequest.struct_class = Types::DescribeAccountRequest
|
362
402
|
|
@@ -559,6 +599,24 @@ module Aws::Organizations
|
|
559
599
|
ListCreateAccountStatusResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
560
600
|
ListCreateAccountStatusResponse.struct_class = Types::ListCreateAccountStatusResponse
|
561
601
|
|
602
|
+
ListDelegatedAdministratorsRequest.add_member(:service_principal, Shapes::ShapeRef.new(shape: ServicePrincipal, location_name: "ServicePrincipal"))
|
603
|
+
ListDelegatedAdministratorsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
604
|
+
ListDelegatedAdministratorsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
605
|
+
ListDelegatedAdministratorsRequest.struct_class = Types::ListDelegatedAdministratorsRequest
|
606
|
+
|
607
|
+
ListDelegatedAdministratorsResponse.add_member(:delegated_administrators, Shapes::ShapeRef.new(shape: DelegatedAdministrators, location_name: "DelegatedAdministrators"))
|
608
|
+
ListDelegatedAdministratorsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
609
|
+
ListDelegatedAdministratorsResponse.struct_class = Types::ListDelegatedAdministratorsResponse
|
610
|
+
|
611
|
+
ListDelegatedServicesForAccountRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
612
|
+
ListDelegatedServicesForAccountRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
613
|
+
ListDelegatedServicesForAccountRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
614
|
+
ListDelegatedServicesForAccountRequest.struct_class = Types::ListDelegatedServicesForAccountRequest
|
615
|
+
|
616
|
+
ListDelegatedServicesForAccountResponse.add_member(:delegated_services, Shapes::ShapeRef.new(shape: DelegatedServices, location_name: "DelegatedServices"))
|
617
|
+
ListDelegatedServicesForAccountResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
618
|
+
ListDelegatedServicesForAccountResponse.struct_class = Types::ListDelegatedServicesForAccountResponse
|
619
|
+
|
562
620
|
ListHandshakesForAccountRequest.add_member(:filter, Shapes::ShapeRef.new(shape: HandshakeFilter, location_name: "Filter"))
|
563
621
|
ListHandshakesForAccountRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
564
622
|
ListHandshakesForAccountRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
@@ -733,6 +791,10 @@ module Aws::Organizations
|
|
733
791
|
|
734
792
|
PolicyTypes.member = Shapes::ShapeRef.new(shape: PolicyTypeSummary)
|
735
793
|
|
794
|
+
RegisterDelegatedAdministratorRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
795
|
+
RegisterDelegatedAdministratorRequest.add_member(:service_principal, Shapes::ShapeRef.new(shape: ServicePrincipal, required: true, location_name: "ServicePrincipal"))
|
796
|
+
RegisterDelegatedAdministratorRequest.struct_class = Types::RegisterDelegatedAdministratorRequest
|
797
|
+
|
736
798
|
RemoveAccountFromOrganizationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
|
737
799
|
RemoveAccountFromOrganizationRequest.struct_class = Types::RemoveAccountFromOrganizationRequest
|
738
800
|
|
@@ -1020,6 +1082,24 @@ module Aws::Organizations
|
|
1020
1082
|
o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
|
1021
1083
|
end)
|
1022
1084
|
|
1085
|
+
api.add_operation(:deregister_delegated_administrator, Seahorse::Model::Operation.new.tap do |o|
|
1086
|
+
o.name = "DeregisterDelegatedAdministrator"
|
1087
|
+
o.http_method = "POST"
|
1088
|
+
o.http_request_uri = "/"
|
1089
|
+
o.input = Shapes::ShapeRef.new(shape: DeregisterDelegatedAdministratorRequest)
|
1090
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1091
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1092
|
+
o.errors << Shapes::ShapeRef.new(shape: AccountNotFoundException)
|
1093
|
+
o.errors << Shapes::ShapeRef.new(shape: AccountNotRegisteredException)
|
1094
|
+
o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
|
1095
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
1096
|
+
o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
|
1097
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1098
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1099
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1100
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
|
1101
|
+
end)
|
1102
|
+
|
1023
1103
|
api.add_operation(:describe_account, Seahorse::Model::Operation.new.tap do |o|
|
1024
1104
|
o.name = "DescribeAccount"
|
1025
1105
|
o.http_method = "POST"
|
@@ -1360,6 +1440,50 @@ module Aws::Organizations
|
|
1360
1440
|
)
|
1361
1441
|
end)
|
1362
1442
|
|
1443
|
+
api.add_operation(:list_delegated_administrators, Seahorse::Model::Operation.new.tap do |o|
|
1444
|
+
o.name = "ListDelegatedAdministrators"
|
1445
|
+
o.http_method = "POST"
|
1446
|
+
o.http_request_uri = "/"
|
1447
|
+
o.input = Shapes::ShapeRef.new(shape: ListDelegatedAdministratorsRequest)
|
1448
|
+
o.output = Shapes::ShapeRef.new(shape: ListDelegatedAdministratorsResponse)
|
1449
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1450
|
+
o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
|
1451
|
+
o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
|
1452
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1453
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1454
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1455
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
|
1456
|
+
o[:pager] = Aws::Pager.new(
|
1457
|
+
limit_key: "max_results",
|
1458
|
+
tokens: {
|
1459
|
+
"next_token" => "next_token"
|
1460
|
+
}
|
1461
|
+
)
|
1462
|
+
end)
|
1463
|
+
|
1464
|
+
api.add_operation(:list_delegated_services_for_account, Seahorse::Model::Operation.new.tap do |o|
|
1465
|
+
o.name = "ListDelegatedServicesForAccount"
|
1466
|
+
o.http_method = "POST"
|
1467
|
+
o.http_request_uri = "/"
|
1468
|
+
o.input = Shapes::ShapeRef.new(shape: ListDelegatedServicesForAccountRequest)
|
1469
|
+
o.output = Shapes::ShapeRef.new(shape: ListDelegatedServicesForAccountResponse)
|
1470
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1471
|
+
o.errors << Shapes::ShapeRef.new(shape: AccountNotFoundException)
|
1472
|
+
o.errors << Shapes::ShapeRef.new(shape: AccountNotRegisteredException)
|
1473
|
+
o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
|
1474
|
+
o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
|
1475
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1476
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1477
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1478
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
|
1479
|
+
o[:pager] = Aws::Pager.new(
|
1480
|
+
limit_key: "max_results",
|
1481
|
+
tokens: {
|
1482
|
+
"next_token" => "next_token"
|
1483
|
+
}
|
1484
|
+
)
|
1485
|
+
end)
|
1486
|
+
|
1363
1487
|
api.add_operation(:list_handshakes_for_account, Seahorse::Model::Operation.new.tap do |o|
|
1364
1488
|
o.name = "ListHandshakesForAccount"
|
1365
1489
|
o.http_method = "POST"
|
@@ -1557,6 +1681,24 @@ module Aws::Organizations
|
|
1557
1681
|
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1558
1682
|
end)
|
1559
1683
|
|
1684
|
+
api.add_operation(:register_delegated_administrator, Seahorse::Model::Operation.new.tap do |o|
|
1685
|
+
o.name = "RegisterDelegatedAdministrator"
|
1686
|
+
o.http_method = "POST"
|
1687
|
+
o.http_request_uri = "/"
|
1688
|
+
o.input = Shapes::ShapeRef.new(shape: RegisterDelegatedAdministratorRequest)
|
1689
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1690
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1691
|
+
o.errors << Shapes::ShapeRef.new(shape: AccountAlreadyRegisteredException)
|
1692
|
+
o.errors << Shapes::ShapeRef.new(shape: AccountNotFoundException)
|
1693
|
+
o.errors << Shapes::ShapeRef.new(shape: AWSOrganizationsNotInUseException)
|
1694
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
1695
|
+
o.errors << Shapes::ShapeRef.new(shape: ConstraintViolationException)
|
1696
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1697
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1698
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1699
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedAPIEndpointException)
|
1700
|
+
end)
|
1701
|
+
|
1560
1702
|
api.add_operation(:remove_account_from_organization, Seahorse::Model::Operation.new.tap do |o|
|
1561
1703
|
o.name = "RemoveAccountFromOrganization"
|
1562
1704
|
o.http_method = "POST"
|
@@ -6,6 +6,72 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Organizations
|
9
|
+
|
10
|
+
# When Organizations returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::Organizations::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all Organizations errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::Organizations::Errors::ServiceError
|
18
|
+
# # rescues all Organizations API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {AWSOrganizationsNotInUseException}
|
29
|
+
# * {AccessDeniedException}
|
30
|
+
# * {AccessDeniedForDependencyException}
|
31
|
+
# * {AccountAlreadyRegisteredException}
|
32
|
+
# * {AccountNotFoundException}
|
33
|
+
# * {AccountNotRegisteredException}
|
34
|
+
# * {AccountOwnerNotVerifiedException}
|
35
|
+
# * {AlreadyInOrganizationException}
|
36
|
+
# * {ChildNotFoundException}
|
37
|
+
# * {ConcurrentModificationException}
|
38
|
+
# * {ConstraintViolationException}
|
39
|
+
# * {CreateAccountStatusNotFoundException}
|
40
|
+
# * {DestinationParentNotFoundException}
|
41
|
+
# * {DuplicateAccountException}
|
42
|
+
# * {DuplicateHandshakeException}
|
43
|
+
# * {DuplicateOrganizationalUnitException}
|
44
|
+
# * {DuplicatePolicyAttachmentException}
|
45
|
+
# * {DuplicatePolicyException}
|
46
|
+
# * {EffectivePolicyNotFoundException}
|
47
|
+
# * {FinalizingOrganizationException}
|
48
|
+
# * {HandshakeAlreadyInStateException}
|
49
|
+
# * {HandshakeConstraintViolationException}
|
50
|
+
# * {HandshakeNotFoundException}
|
51
|
+
# * {InvalidHandshakeTransitionException}
|
52
|
+
# * {InvalidInputException}
|
53
|
+
# * {MalformedPolicyDocumentException}
|
54
|
+
# * {MasterCannotLeaveOrganizationException}
|
55
|
+
# * {OrganizationNotEmptyException}
|
56
|
+
# * {OrganizationalUnitNotEmptyException}
|
57
|
+
# * {OrganizationalUnitNotFoundException}
|
58
|
+
# * {ParentNotFoundException}
|
59
|
+
# * {PolicyChangesInProgressException}
|
60
|
+
# * {PolicyInUseException}
|
61
|
+
# * {PolicyNotAttachedException}
|
62
|
+
# * {PolicyNotFoundException}
|
63
|
+
# * {PolicyTypeAlreadyEnabledException}
|
64
|
+
# * {PolicyTypeNotAvailableForOrganizationException}
|
65
|
+
# * {PolicyTypeNotEnabledException}
|
66
|
+
# * {RootNotFoundException}
|
67
|
+
# * {ServiceException}
|
68
|
+
# * {SourceParentNotFoundException}
|
69
|
+
# * {TargetNotFoundException}
|
70
|
+
# * {TooManyRequestsException}
|
71
|
+
# * {UnsupportedAPIEndpointException}
|
72
|
+
#
|
73
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
74
|
+
# if they are not defined above.
|
9
75
|
module Errors
|
10
76
|
|
11
77
|
extend Aws::Errors::DynamicErrors
|
@@ -23,7 +89,6 @@ module Aws::Organizations
|
|
23
89
|
def message
|
24
90
|
@message || @data[:message]
|
25
91
|
end
|
26
|
-
|
27
92
|
end
|
28
93
|
|
29
94
|
class AccessDeniedException < ServiceError
|
@@ -39,7 +104,6 @@ module Aws::Organizations
|
|
39
104
|
def message
|
40
105
|
@message || @data[:message]
|
41
106
|
end
|
42
|
-
|
43
107
|
end
|
44
108
|
|
45
109
|
class AccessDeniedForDependencyException < ServiceError
|
@@ -60,7 +124,21 @@ module Aws::Organizations
|
|
60
124
|
def reason
|
61
125
|
@data[:reason]
|
62
126
|
end
|
127
|
+
end
|
128
|
+
|
129
|
+
class AccountAlreadyRegisteredException < ServiceError
|
63
130
|
|
131
|
+
# @param [Seahorse::Client::RequestContext] context
|
132
|
+
# @param [String] message
|
133
|
+
# @param [Aws::Organizations::Types::AccountAlreadyRegisteredException] data
|
134
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
135
|
+
super(context, message, data)
|
136
|
+
end
|
137
|
+
|
138
|
+
# @return [String]
|
139
|
+
def message
|
140
|
+
@message || @data[:message]
|
141
|
+
end
|
64
142
|
end
|
65
143
|
|
66
144
|
class AccountNotFoundException < ServiceError
|
@@ -76,7 +154,21 @@ module Aws::Organizations
|
|
76
154
|
def message
|
77
155
|
@message || @data[:message]
|
78
156
|
end
|
157
|
+
end
|
158
|
+
|
159
|
+
class AccountNotRegisteredException < ServiceError
|
79
160
|
|
161
|
+
# @param [Seahorse::Client::RequestContext] context
|
162
|
+
# @param [String] message
|
163
|
+
# @param [Aws::Organizations::Types::AccountNotRegisteredException] data
|
164
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
165
|
+
super(context, message, data)
|
166
|
+
end
|
167
|
+
|
168
|
+
# @return [String]
|
169
|
+
def message
|
170
|
+
@message || @data[:message]
|
171
|
+
end
|
80
172
|
end
|
81
173
|
|
82
174
|
class AccountOwnerNotVerifiedException < ServiceError
|
@@ -92,7 +184,6 @@ module Aws::Organizations
|
|
92
184
|
def message
|
93
185
|
@message || @data[:message]
|
94
186
|
end
|
95
|
-
|
96
187
|
end
|
97
188
|
|
98
189
|
class AlreadyInOrganizationException < ServiceError
|
@@ -108,7 +199,6 @@ module Aws::Organizations
|
|
108
199
|
def message
|
109
200
|
@message || @data[:message]
|
110
201
|
end
|
111
|
-
|
112
202
|
end
|
113
203
|
|
114
204
|
class ChildNotFoundException < ServiceError
|
@@ -124,7 +214,6 @@ module Aws::Organizations
|
|
124
214
|
def message
|
125
215
|
@message || @data[:message]
|
126
216
|
end
|
127
|
-
|
128
217
|
end
|
129
218
|
|
130
219
|
class ConcurrentModificationException < ServiceError
|
@@ -140,7 +229,6 @@ module Aws::Organizations
|
|
140
229
|
def message
|
141
230
|
@message || @data[:message]
|
142
231
|
end
|
143
|
-
|
144
232
|
end
|
145
233
|
|
146
234
|
class ConstraintViolationException < ServiceError
|
@@ -161,7 +249,6 @@ module Aws::Organizations
|
|
161
249
|
def reason
|
162
250
|
@data[:reason]
|
163
251
|
end
|
164
|
-
|
165
252
|
end
|
166
253
|
|
167
254
|
class CreateAccountStatusNotFoundException < ServiceError
|
@@ -177,7 +264,6 @@ module Aws::Organizations
|
|
177
264
|
def message
|
178
265
|
@message || @data[:message]
|
179
266
|
end
|
180
|
-
|
181
267
|
end
|
182
268
|
|
183
269
|
class DestinationParentNotFoundException < ServiceError
|
@@ -193,7 +279,6 @@ module Aws::Organizations
|
|
193
279
|
def message
|
194
280
|
@message || @data[:message]
|
195
281
|
end
|
196
|
-
|
197
282
|
end
|
198
283
|
|
199
284
|
class DuplicateAccountException < ServiceError
|
@@ -209,7 +294,6 @@ module Aws::Organizations
|
|
209
294
|
def message
|
210
295
|
@message || @data[:message]
|
211
296
|
end
|
212
|
-
|
213
297
|
end
|
214
298
|
|
215
299
|
class DuplicateHandshakeException < ServiceError
|
@@ -225,7 +309,6 @@ module Aws::Organizations
|
|
225
309
|
def message
|
226
310
|
@message || @data[:message]
|
227
311
|
end
|
228
|
-
|
229
312
|
end
|
230
313
|
|
231
314
|
class DuplicateOrganizationalUnitException < ServiceError
|
@@ -241,7 +324,6 @@ module Aws::Organizations
|
|
241
324
|
def message
|
242
325
|
@message || @data[:message]
|
243
326
|
end
|
244
|
-
|
245
327
|
end
|
246
328
|
|
247
329
|
class DuplicatePolicyAttachmentException < ServiceError
|
@@ -257,7 +339,6 @@ module Aws::Organizations
|
|
257
339
|
def message
|
258
340
|
@message || @data[:message]
|
259
341
|
end
|
260
|
-
|
261
342
|
end
|
262
343
|
|
263
344
|
class DuplicatePolicyException < ServiceError
|
@@ -273,7 +354,6 @@ module Aws::Organizations
|
|
273
354
|
def message
|
274
355
|
@message || @data[:message]
|
275
356
|
end
|
276
|
-
|
277
357
|
end
|
278
358
|
|
279
359
|
class EffectivePolicyNotFoundException < ServiceError
|
@@ -289,7 +369,6 @@ module Aws::Organizations
|
|
289
369
|
def message
|
290
370
|
@message || @data[:message]
|
291
371
|
end
|
292
|
-
|
293
372
|
end
|
294
373
|
|
295
374
|
class FinalizingOrganizationException < ServiceError
|
@@ -305,7 +384,6 @@ module Aws::Organizations
|
|
305
384
|
def message
|
306
385
|
@message || @data[:message]
|
307
386
|
end
|
308
|
-
|
309
387
|
end
|
310
388
|
|
311
389
|
class HandshakeAlreadyInStateException < ServiceError
|
@@ -321,7 +399,6 @@ module Aws::Organizations
|
|
321
399
|
def message
|
322
400
|
@message || @data[:message]
|
323
401
|
end
|
324
|
-
|
325
402
|
end
|
326
403
|
|
327
404
|
class HandshakeConstraintViolationException < ServiceError
|
@@ -342,7 +419,6 @@ module Aws::Organizations
|
|
342
419
|
def reason
|
343
420
|
@data[:reason]
|
344
421
|
end
|
345
|
-
|
346
422
|
end
|
347
423
|
|
348
424
|
class HandshakeNotFoundException < ServiceError
|
@@ -358,7 +434,6 @@ module Aws::Organizations
|
|
358
434
|
def message
|
359
435
|
@message || @data[:message]
|
360
436
|
end
|
361
|
-
|
362
437
|
end
|
363
438
|
|
364
439
|
class InvalidHandshakeTransitionException < ServiceError
|
@@ -374,7 +449,6 @@ module Aws::Organizations
|
|
374
449
|
def message
|
375
450
|
@message || @data[:message]
|
376
451
|
end
|
377
|
-
|
378
452
|
end
|
379
453
|
|
380
454
|
class InvalidInputException < ServiceError
|
@@ -395,7 +469,6 @@ module Aws::Organizations
|
|
395
469
|
def reason
|
396
470
|
@data[:reason]
|
397
471
|
end
|
398
|
-
|
399
472
|
end
|
400
473
|
|
401
474
|
class MalformedPolicyDocumentException < ServiceError
|
@@ -411,7 +484,6 @@ module Aws::Organizations
|
|
411
484
|
def message
|
412
485
|
@message || @data[:message]
|
413
486
|
end
|
414
|
-
|
415
487
|
end
|
416
488
|
|
417
489
|
class MasterCannotLeaveOrganizationException < ServiceError
|
@@ -427,7 +499,6 @@ module Aws::Organizations
|
|
427
499
|
def message
|
428
500
|
@message || @data[:message]
|
429
501
|
end
|
430
|
-
|
431
502
|
end
|
432
503
|
|
433
504
|
class OrganizationNotEmptyException < ServiceError
|
@@ -443,7 +514,6 @@ module Aws::Organizations
|
|
443
514
|
def message
|
444
515
|
@message || @data[:message]
|
445
516
|
end
|
446
|
-
|
447
517
|
end
|
448
518
|
|
449
519
|
class OrganizationalUnitNotEmptyException < ServiceError
|
@@ -459,7 +529,6 @@ module Aws::Organizations
|
|
459
529
|
def message
|
460
530
|
@message || @data[:message]
|
461
531
|
end
|
462
|
-
|
463
532
|
end
|
464
533
|
|
465
534
|
class OrganizationalUnitNotFoundException < ServiceError
|
@@ -475,7 +544,6 @@ module Aws::Organizations
|
|
475
544
|
def message
|
476
545
|
@message || @data[:message]
|
477
546
|
end
|
478
|
-
|
479
547
|
end
|
480
548
|
|
481
549
|
class ParentNotFoundException < ServiceError
|
@@ -491,7 +559,6 @@ module Aws::Organizations
|
|
491
559
|
def message
|
492
560
|
@message || @data[:message]
|
493
561
|
end
|
494
|
-
|
495
562
|
end
|
496
563
|
|
497
564
|
class PolicyChangesInProgressException < ServiceError
|
@@ -507,7 +574,6 @@ module Aws::Organizations
|
|
507
574
|
def message
|
508
575
|
@message || @data[:message]
|
509
576
|
end
|
510
|
-
|
511
577
|
end
|
512
578
|
|
513
579
|
class PolicyInUseException < ServiceError
|
@@ -523,7 +589,6 @@ module Aws::Organizations
|
|
523
589
|
def message
|
524
590
|
@message || @data[:message]
|
525
591
|
end
|
526
|
-
|
527
592
|
end
|
528
593
|
|
529
594
|
class PolicyNotAttachedException < ServiceError
|
@@ -539,7 +604,6 @@ module Aws::Organizations
|
|
539
604
|
def message
|
540
605
|
@message || @data[:message]
|
541
606
|
end
|
542
|
-
|
543
607
|
end
|
544
608
|
|
545
609
|
class PolicyNotFoundException < ServiceError
|
@@ -555,7 +619,6 @@ module Aws::Organizations
|
|
555
619
|
def message
|
556
620
|
@message || @data[:message]
|
557
621
|
end
|
558
|
-
|
559
622
|
end
|
560
623
|
|
561
624
|
class PolicyTypeAlreadyEnabledException < ServiceError
|
@@ -571,7 +634,6 @@ module Aws::Organizations
|
|
571
634
|
def message
|
572
635
|
@message || @data[:message]
|
573
636
|
end
|
574
|
-
|
575
637
|
end
|
576
638
|
|
577
639
|
class PolicyTypeNotAvailableForOrganizationException < ServiceError
|
@@ -587,7 +649,6 @@ module Aws::Organizations
|
|
587
649
|
def message
|
588
650
|
@message || @data[:message]
|
589
651
|
end
|
590
|
-
|
591
652
|
end
|
592
653
|
|
593
654
|
class PolicyTypeNotEnabledException < ServiceError
|
@@ -603,7 +664,6 @@ module Aws::Organizations
|
|
603
664
|
def message
|
604
665
|
@message || @data[:message]
|
605
666
|
end
|
606
|
-
|
607
667
|
end
|
608
668
|
|
609
669
|
class RootNotFoundException < ServiceError
|
@@ -619,7 +679,6 @@ module Aws::Organizations
|
|
619
679
|
def message
|
620
680
|
@message || @data[:message]
|
621
681
|
end
|
622
|
-
|
623
682
|
end
|
624
683
|
|
625
684
|
class ServiceException < ServiceError
|
@@ -635,7 +694,6 @@ module Aws::Organizations
|
|
635
694
|
def message
|
636
695
|
@message || @data[:message]
|
637
696
|
end
|
638
|
-
|
639
697
|
end
|
640
698
|
|
641
699
|
class SourceParentNotFoundException < ServiceError
|
@@ -651,7 +709,6 @@ module Aws::Organizations
|
|
651
709
|
def message
|
652
710
|
@message || @data[:message]
|
653
711
|
end
|
654
|
-
|
655
712
|
end
|
656
713
|
|
657
714
|
class TargetNotFoundException < ServiceError
|
@@ -667,7 +724,6 @@ module Aws::Organizations
|
|
667
724
|
def message
|
668
725
|
@message || @data[:message]
|
669
726
|
end
|
670
|
-
|
671
727
|
end
|
672
728
|
|
673
729
|
class TooManyRequestsException < ServiceError
|
@@ -688,7 +744,6 @@ module Aws::Organizations
|
|
688
744
|
def message
|
689
745
|
@message || @data[:message]
|
690
746
|
end
|
691
|
-
|
692
747
|
end
|
693
748
|
|
694
749
|
class UnsupportedAPIEndpointException < ServiceError
|
@@ -704,7 +759,6 @@ module Aws::Organizations
|
|
704
759
|
def message
|
705
760
|
@message || @data[:message]
|
706
761
|
end
|
707
|
-
|
708
762
|
end
|
709
763
|
|
710
764
|
end
|