aws-sdk-organizations 1.26.0 → 1.27.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
  SHA1:
3
- metadata.gz: 605f94f28344b88b8f121a8668aa41ccbe903ebb
4
- data.tar.gz: df24a65890de22c4f19d7b0c7c4e3a9b02890cbf
3
+ metadata.gz: bcef5b01e9b656a0bf72e152f3b9f44f219b9343
4
+ data.tar.gz: 3917e43583f6ae6c4c79bd12e66f5acb1171eb66
5
5
  SHA512:
6
- metadata.gz: 93488de35655053cb324261354c6c9557904ab082c6f7b8bd83a340ac4f7de01212f42f34466aed61e9b3c128d5317bc56fb4bf4b004f8fc265927c7de6d090a
7
- data.tar.gz: 691f11676e059ae45265a4f2a7a22906bbedef794bce0ffd415a6635b47c6edf1660b03b4d8e20c4ae1ea807676a74ce38dcfa6c8143c029aa279ab12f045734
6
+ metadata.gz: 504c0418a363eaf3acbba3e194ee115c337bf2614a730de265085aa0184f834d6cb0a7945a9d0cdc1e2c5af28ffe6c6b7678984b9eea8cb13dcd5bb6117a544a
7
+ data.tar.gz: b8d606087a9be5b410bcd366e947f8b8332590ec8ce9006472f9298d9d904b2e1b0d3529720579c815abe038ca7338603e1837fe7552388ff49b0039b8e07ddd
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-organizations/customizations'
42
42
  # @service
43
43
  module Aws::Organizations
44
44
 
45
- GEM_VERSION = '1.26.0'
45
+ GEM_VERSION = '1.27.0'
46
46
 
47
47
  end
@@ -4544,7 +4544,7 @@ module Aws::Organizations
4544
4544
  params: params,
4545
4545
  config: config)
4546
4546
  context[:gem_name] = 'aws-sdk-organizations'
4547
- context[:gem_version] = '1.26.0'
4547
+ context[:gem_version] = '1.27.0'
4548
4548
  Seahorse::Client::Request.new(handlers, context)
4549
4549
  end
4550
4550
 
@@ -210,12 +210,22 @@ module Aws::Organizations
210
210
  UpdatePolicyRequest = Shapes::StructureShape.new(name: 'UpdatePolicyRequest')
211
211
  UpdatePolicyResponse = Shapes::StructureShape.new(name: 'UpdatePolicyResponse')
212
212
 
213
+ AWSOrganizationsNotInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
214
+ AWSOrganizationsNotInUseException.struct_class = Types::AWSOrganizationsNotInUseException
215
+
213
216
  AcceptHandshakeRequest.add_member(:handshake_id, Shapes::ShapeRef.new(shape: HandshakeId, required: true, location_name: "HandshakeId"))
214
217
  AcceptHandshakeRequest.struct_class = Types::AcceptHandshakeRequest
215
218
 
216
219
  AcceptHandshakeResponse.add_member(:handshake, Shapes::ShapeRef.new(shape: Handshake, location_name: "Handshake"))
217
220
  AcceptHandshakeResponse.struct_class = Types::AcceptHandshakeResponse
218
221
 
222
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
223
+ AccessDeniedException.struct_class = Types::AccessDeniedException
224
+
225
+ AccessDeniedForDependencyException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
226
+ AccessDeniedForDependencyException.add_member(:reason, Shapes::ShapeRef.new(shape: AccessDeniedForDependencyExceptionReason, location_name: "Reason"))
227
+ AccessDeniedForDependencyException.struct_class = Types::AccessDeniedForDependencyException
228
+
219
229
  Account.add_member(:id, Shapes::ShapeRef.new(shape: AccountId, location_name: "Id"))
220
230
  Account.add_member(:arn, Shapes::ShapeRef.new(shape: AccountArn, location_name: "Arn"))
221
231
  Account.add_member(:email, Shapes::ShapeRef.new(shape: Email, location_name: "Email"))
@@ -225,8 +235,17 @@ module Aws::Organizations
225
235
  Account.add_member(:joined_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "JoinedTimestamp"))
226
236
  Account.struct_class = Types::Account
227
237
 
238
+ AccountNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
239
+ AccountNotFoundException.struct_class = Types::AccountNotFoundException
240
+
241
+ AccountOwnerNotVerifiedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
242
+ AccountOwnerNotVerifiedException.struct_class = Types::AccountOwnerNotVerifiedException
243
+
228
244
  Accounts.member = Shapes::ShapeRef.new(shape: Account)
229
245
 
246
+ AlreadyInOrganizationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
247
+ AlreadyInOrganizationException.struct_class = Types::AlreadyInOrganizationException
248
+
230
249
  AttachPolicyRequest.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, required: true, location_name: "PolicyId"))
231
250
  AttachPolicyRequest.add_member(:target_id, Shapes::ShapeRef.new(shape: PolicyTargetId, required: true, location_name: "TargetId"))
232
251
  AttachPolicyRequest.struct_class = Types::AttachPolicyRequest
@@ -241,8 +260,18 @@ module Aws::Organizations
241
260
  Child.add_member(:type, Shapes::ShapeRef.new(shape: ChildType, location_name: "Type"))
242
261
  Child.struct_class = Types::Child
243
262
 
263
+ ChildNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
264
+ ChildNotFoundException.struct_class = Types::ChildNotFoundException
265
+
244
266
  Children.member = Shapes::ShapeRef.new(shape: Child)
245
267
 
268
+ ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
269
+ ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
270
+
271
+ ConstraintViolationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
272
+ ConstraintViolationException.add_member(:reason, Shapes::ShapeRef.new(shape: ConstraintViolationExceptionReason, location_name: "Reason"))
273
+ ConstraintViolationException.struct_class = Types::ConstraintViolationException
274
+
246
275
  CreateAccountRequest.add_member(:email, Shapes::ShapeRef.new(shape: Email, required: true, location_name: "Email"))
247
276
  CreateAccountRequest.add_member(:account_name, Shapes::ShapeRef.new(shape: AccountName, required: true, location_name: "AccountName"))
248
277
  CreateAccountRequest.add_member(:role_name, Shapes::ShapeRef.new(shape: RoleName, location_name: "RoleName"))
@@ -264,6 +293,9 @@ module Aws::Organizations
264
293
  CreateAccountStatus.add_member(:failure_reason, Shapes::ShapeRef.new(shape: CreateAccountFailureReason, location_name: "FailureReason"))
265
294
  CreateAccountStatus.struct_class = Types::CreateAccountStatus
266
295
 
296
+ CreateAccountStatusNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
297
+ CreateAccountStatusNotFoundException.struct_class = Types::CreateAccountStatusNotFoundException
298
+
267
299
  CreateAccountStatuses.member = Shapes::ShapeRef.new(shape: CreateAccountStatus)
268
300
 
269
301
  CreateGovCloudAccountRequest.add_member(:email, Shapes::ShapeRef.new(shape: Email, required: true, location_name: "Email"))
@@ -342,6 +374,9 @@ module Aws::Organizations
342
374
  DescribePolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, location_name: "Policy"))
343
375
  DescribePolicyResponse.struct_class = Types::DescribePolicyResponse
344
376
 
377
+ DestinationParentNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
378
+ DestinationParentNotFoundException.struct_class = Types::DestinationParentNotFoundException
379
+
345
380
  DetachPolicyRequest.add_member(:policy_id, Shapes::ShapeRef.new(shape: PolicyId, required: true, location_name: "PolicyId"))
346
381
  DetachPolicyRequest.add_member(:target_id, Shapes::ShapeRef.new(shape: PolicyTargetId, required: true, location_name: "TargetId"))
347
382
  DetachPolicyRequest.struct_class = Types::DetachPolicyRequest
@@ -356,6 +391,21 @@ module Aws::Organizations
356
391
  DisablePolicyTypeResponse.add_member(:root, Shapes::ShapeRef.new(shape: Root, location_name: "Root"))
357
392
  DisablePolicyTypeResponse.struct_class = Types::DisablePolicyTypeResponse
358
393
 
394
+ DuplicateAccountException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
395
+ DuplicateAccountException.struct_class = Types::DuplicateAccountException
396
+
397
+ DuplicateHandshakeException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
398
+ DuplicateHandshakeException.struct_class = Types::DuplicateHandshakeException
399
+
400
+ DuplicateOrganizationalUnitException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
401
+ DuplicateOrganizationalUnitException.struct_class = Types::DuplicateOrganizationalUnitException
402
+
403
+ DuplicatePolicyAttachmentException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
404
+ DuplicatePolicyAttachmentException.struct_class = Types::DuplicatePolicyAttachmentException
405
+
406
+ DuplicatePolicyException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
407
+ DuplicatePolicyException.struct_class = Types::DuplicatePolicyException
408
+
359
409
  EnableAWSServiceAccessRequest.add_member(:service_principal, Shapes::ShapeRef.new(shape: ServicePrincipal, required: true, location_name: "ServicePrincipal"))
360
410
  EnableAWSServiceAccessRequest.struct_class = Types::EnableAWSServiceAccessRequest
361
411
 
@@ -377,6 +427,9 @@ module Aws::Organizations
377
427
 
378
428
  EnabledServicePrincipals.member = Shapes::ShapeRef.new(shape: EnabledServicePrincipal)
379
429
 
430
+ FinalizingOrganizationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
431
+ FinalizingOrganizationException.struct_class = Types::FinalizingOrganizationException
432
+
380
433
  Handshake.add_member(:id, Shapes::ShapeRef.new(shape: HandshakeId, location_name: "Id"))
381
434
  Handshake.add_member(:arn, Shapes::ShapeRef.new(shape: HandshakeArn, location_name: "Arn"))
382
435
  Handshake.add_member(:parties, Shapes::ShapeRef.new(shape: HandshakeParties, location_name: "Parties"))
@@ -387,10 +440,20 @@ module Aws::Organizations
387
440
  Handshake.add_member(:resources, Shapes::ShapeRef.new(shape: HandshakeResources, location_name: "Resources"))
388
441
  Handshake.struct_class = Types::Handshake
389
442
 
443
+ HandshakeAlreadyInStateException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
444
+ HandshakeAlreadyInStateException.struct_class = Types::HandshakeAlreadyInStateException
445
+
446
+ HandshakeConstraintViolationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
447
+ HandshakeConstraintViolationException.add_member(:reason, Shapes::ShapeRef.new(shape: HandshakeConstraintViolationExceptionReason, location_name: "Reason"))
448
+ HandshakeConstraintViolationException.struct_class = Types::HandshakeConstraintViolationException
449
+
390
450
  HandshakeFilter.add_member(:action_type, Shapes::ShapeRef.new(shape: ActionType, location_name: "ActionType"))
391
451
  HandshakeFilter.add_member(:parent_handshake_id, Shapes::ShapeRef.new(shape: HandshakeId, location_name: "ParentHandshakeId"))
392
452
  HandshakeFilter.struct_class = Types::HandshakeFilter
393
453
 
454
+ HandshakeNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
455
+ HandshakeNotFoundException.struct_class = Types::HandshakeNotFoundException
456
+
394
457
  HandshakeParties.member = Shapes::ShapeRef.new(shape: HandshakeParty)
395
458
 
396
459
  HandshakeParty.add_member(:id, Shapes::ShapeRef.new(shape: HandshakePartyId, required: true, location_name: "Id"))
@@ -406,6 +469,13 @@ module Aws::Organizations
406
469
 
407
470
  Handshakes.member = Shapes::ShapeRef.new(shape: Handshake)
408
471
 
472
+ InvalidHandshakeTransitionException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
473
+ InvalidHandshakeTransitionException.struct_class = Types::InvalidHandshakeTransitionException
474
+
475
+ InvalidInputException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
476
+ InvalidInputException.add_member(:reason, Shapes::ShapeRef.new(shape: InvalidInputExceptionReason, location_name: "Reason"))
477
+ InvalidInputException.struct_class = Types::InvalidInputException
478
+
409
479
  InviteAccountToOrganizationRequest.add_member(:target, Shapes::ShapeRef.new(shape: HandshakeParty, required: true, location_name: "Target"))
410
480
  InviteAccountToOrganizationRequest.add_member(:notes, Shapes::ShapeRef.new(shape: HandshakeNotes, location_name: "Notes"))
411
481
  InviteAccountToOrganizationRequest.struct_class = Types::InviteAccountToOrganizationRequest
@@ -529,6 +599,12 @@ module Aws::Organizations
529
599
  ListTargetsForPolicyResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
530
600
  ListTargetsForPolicyResponse.struct_class = Types::ListTargetsForPolicyResponse
531
601
 
602
+ MalformedPolicyDocumentException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
603
+ MalformedPolicyDocumentException.struct_class = Types::MalformedPolicyDocumentException
604
+
605
+ MasterCannotLeaveOrganizationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
606
+ MasterCannotLeaveOrganizationException.struct_class = Types::MasterCannotLeaveOrganizationException
607
+
532
608
  MoveAccountRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location_name: "AccountId"))
533
609
  MoveAccountRequest.add_member(:source_parent_id, Shapes::ShapeRef.new(shape: ParentId, required: true, location_name: "SourceParentId"))
534
610
  MoveAccountRequest.add_member(:destination_parent_id, Shapes::ShapeRef.new(shape: ParentId, required: true, location_name: "DestinationParentId"))
@@ -543,17 +619,29 @@ module Aws::Organizations
543
619
  Organization.add_member(:available_policy_types, Shapes::ShapeRef.new(shape: PolicyTypes, location_name: "AvailablePolicyTypes"))
544
620
  Organization.struct_class = Types::Organization
545
621
 
622
+ OrganizationNotEmptyException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
623
+ OrganizationNotEmptyException.struct_class = Types::OrganizationNotEmptyException
624
+
546
625
  OrganizationalUnit.add_member(:id, Shapes::ShapeRef.new(shape: OrganizationalUnitId, location_name: "Id"))
547
626
  OrganizationalUnit.add_member(:arn, Shapes::ShapeRef.new(shape: OrganizationalUnitArn, location_name: "Arn"))
548
627
  OrganizationalUnit.add_member(:name, Shapes::ShapeRef.new(shape: OrganizationalUnitName, location_name: "Name"))
549
628
  OrganizationalUnit.struct_class = Types::OrganizationalUnit
550
629
 
630
+ OrganizationalUnitNotEmptyException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
631
+ OrganizationalUnitNotEmptyException.struct_class = Types::OrganizationalUnitNotEmptyException
632
+
633
+ OrganizationalUnitNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
634
+ OrganizationalUnitNotFoundException.struct_class = Types::OrganizationalUnitNotFoundException
635
+
551
636
  OrganizationalUnits.member = Shapes::ShapeRef.new(shape: OrganizationalUnit)
552
637
 
553
638
  Parent.add_member(:id, Shapes::ShapeRef.new(shape: ParentId, location_name: "Id"))
554
639
  Parent.add_member(:type, Shapes::ShapeRef.new(shape: ParentType, location_name: "Type"))
555
640
  Parent.struct_class = Types::Parent
556
641
 
642
+ ParentNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
643
+ ParentNotFoundException.struct_class = Types::ParentNotFoundException
644
+
557
645
  Parents.member = Shapes::ShapeRef.new(shape: Parent)
558
646
 
559
647
  Policies.member = Shapes::ShapeRef.new(shape: PolicySummary)
@@ -562,6 +650,15 @@ module Aws::Organizations
562
650
  Policy.add_member(:content, Shapes::ShapeRef.new(shape: PolicyContent, location_name: "Content"))
563
651
  Policy.struct_class = Types::Policy
564
652
 
653
+ PolicyInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
654
+ PolicyInUseException.struct_class = Types::PolicyInUseException
655
+
656
+ PolicyNotAttachedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
657
+ PolicyNotAttachedException.struct_class = Types::PolicyNotAttachedException
658
+
659
+ PolicyNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
660
+ PolicyNotFoundException.struct_class = Types::PolicyNotFoundException
661
+
565
662
  PolicySummary.add_member(:id, Shapes::ShapeRef.new(shape: PolicyId, location_name: "Id"))
566
663
  PolicySummary.add_member(:arn, Shapes::ShapeRef.new(shape: PolicyArn, location_name: "Arn"))
567
664
  PolicySummary.add_member(:name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "Name"))
@@ -578,6 +675,15 @@ module Aws::Organizations
578
675
 
579
676
  PolicyTargets.member = Shapes::ShapeRef.new(shape: PolicyTargetSummary)
580
677
 
678
+ PolicyTypeAlreadyEnabledException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
679
+ PolicyTypeAlreadyEnabledException.struct_class = Types::PolicyTypeAlreadyEnabledException
680
+
681
+ PolicyTypeNotAvailableForOrganizationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
682
+ PolicyTypeNotAvailableForOrganizationException.struct_class = Types::PolicyTypeNotAvailableForOrganizationException
683
+
684
+ PolicyTypeNotEnabledException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
685
+ PolicyTypeNotEnabledException.struct_class = Types::PolicyTypeNotEnabledException
686
+
581
687
  PolicyTypeSummary.add_member(:type, Shapes::ShapeRef.new(shape: PolicyType, location_name: "Type"))
582
688
  PolicyTypeSummary.add_member(:status, Shapes::ShapeRef.new(shape: PolicyTypeStatus, location_name: "Status"))
583
689
  PolicyTypeSummary.struct_class = Types::PolicyTypeSummary
@@ -593,8 +699,27 @@ module Aws::Organizations
593
699
  Root.add_member(:policy_types, Shapes::ShapeRef.new(shape: PolicyTypes, location_name: "PolicyTypes"))
594
700
  Root.struct_class = Types::Root
595
701
 
702
+ RootNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
703
+ RootNotFoundException.struct_class = Types::RootNotFoundException
704
+
596
705
  Roots.member = Shapes::ShapeRef.new(shape: Root)
597
706
 
707
+ ServiceException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
708
+ ServiceException.struct_class = Types::ServiceException
709
+
710
+ SourceParentNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
711
+ SourceParentNotFoundException.struct_class = Types::SourceParentNotFoundException
712
+
713
+ TargetNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
714
+ TargetNotFoundException.struct_class = Types::TargetNotFoundException
715
+
716
+ TooManyRequestsException.add_member(:type, Shapes::ShapeRef.new(shape: ExceptionType, location_name: "Type"))
717
+ TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
718
+ TooManyRequestsException.struct_class = Types::TooManyRequestsException
719
+
720
+ UnsupportedAPIEndpointException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
721
+ UnsupportedAPIEndpointException.struct_class = Types::UnsupportedAPIEndpointException
722
+
598
723
  UpdateOrganizationalUnitRequest.add_member(:organizational_unit_id, Shapes::ShapeRef.new(shape: OrganizationalUnitId, required: true, location_name: "OrganizationalUnitId"))
599
724
  UpdateOrganizationalUnitRequest.add_member(:name, Shapes::ShapeRef.new(shape: OrganizationalUnitName, location_name: "Name"))
600
725
  UpdateOrganizationalUnitRequest.struct_class = Types::UpdateOrganizationalUnitRequest
@@ -10,5 +10,670 @@ module Aws::Organizations
10
10
 
11
11
  extend Aws::Errors::DynamicErrors
12
12
 
13
+ class AWSOrganizationsNotInUseException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::Organizations::Types::AWSOrganizationsNotInUseException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ end
28
+
29
+ class AccessDeniedException < ServiceError
30
+
31
+ # @param [Seahorse::Client::RequestContext] context
32
+ # @param [String] message
33
+ # @param [Aws::Organizations::Types::AccessDeniedException] data
34
+ def initialize(context, message, data = Aws::EmptyStructure.new)
35
+ super(context, message, data)
36
+ end
37
+
38
+ # @return [String]
39
+ def message
40
+ @message || @data[:message]
41
+ end
42
+
43
+ end
44
+
45
+ class AccessDeniedForDependencyException < ServiceError
46
+
47
+ # @param [Seahorse::Client::RequestContext] context
48
+ # @param [String] message
49
+ # @param [Aws::Organizations::Types::AccessDeniedForDependencyException] data
50
+ def initialize(context, message, data = Aws::EmptyStructure.new)
51
+ super(context, message, data)
52
+ end
53
+
54
+ # @return [String]
55
+ def message
56
+ @message || @data[:message]
57
+ end
58
+
59
+ # @return [String]
60
+ def reason
61
+ @data[:reason]
62
+ end
63
+
64
+ end
65
+
66
+ class AccountNotFoundException < ServiceError
67
+
68
+ # @param [Seahorse::Client::RequestContext] context
69
+ # @param [String] message
70
+ # @param [Aws::Organizations::Types::AccountNotFoundException] data
71
+ def initialize(context, message, data = Aws::EmptyStructure.new)
72
+ super(context, message, data)
73
+ end
74
+
75
+ # @return [String]
76
+ def message
77
+ @message || @data[:message]
78
+ end
79
+
80
+ end
81
+
82
+ class AccountOwnerNotVerifiedException < ServiceError
83
+
84
+ # @param [Seahorse::Client::RequestContext] context
85
+ # @param [String] message
86
+ # @param [Aws::Organizations::Types::AccountOwnerNotVerifiedException] data
87
+ def initialize(context, message, data = Aws::EmptyStructure.new)
88
+ super(context, message, data)
89
+ end
90
+
91
+ # @return [String]
92
+ def message
93
+ @message || @data[:message]
94
+ end
95
+
96
+ end
97
+
98
+ class AlreadyInOrganizationException < ServiceError
99
+
100
+ # @param [Seahorse::Client::RequestContext] context
101
+ # @param [String] message
102
+ # @param [Aws::Organizations::Types::AlreadyInOrganizationException] data
103
+ def initialize(context, message, data = Aws::EmptyStructure.new)
104
+ super(context, message, data)
105
+ end
106
+
107
+ # @return [String]
108
+ def message
109
+ @message || @data[:message]
110
+ end
111
+
112
+ end
113
+
114
+ class ChildNotFoundException < ServiceError
115
+
116
+ # @param [Seahorse::Client::RequestContext] context
117
+ # @param [String] message
118
+ # @param [Aws::Organizations::Types::ChildNotFoundException] data
119
+ def initialize(context, message, data = Aws::EmptyStructure.new)
120
+ super(context, message, data)
121
+ end
122
+
123
+ # @return [String]
124
+ def message
125
+ @message || @data[:message]
126
+ end
127
+
128
+ end
129
+
130
+ class ConcurrentModificationException < ServiceError
131
+
132
+ # @param [Seahorse::Client::RequestContext] context
133
+ # @param [String] message
134
+ # @param [Aws::Organizations::Types::ConcurrentModificationException] data
135
+ def initialize(context, message, data = Aws::EmptyStructure.new)
136
+ super(context, message, data)
137
+ end
138
+
139
+ # @return [String]
140
+ def message
141
+ @message || @data[:message]
142
+ end
143
+
144
+ end
145
+
146
+ class ConstraintViolationException < ServiceError
147
+
148
+ # @param [Seahorse::Client::RequestContext] context
149
+ # @param [String] message
150
+ # @param [Aws::Organizations::Types::ConstraintViolationException] data
151
+ def initialize(context, message, data = Aws::EmptyStructure.new)
152
+ super(context, message, data)
153
+ end
154
+
155
+ # @return [String]
156
+ def message
157
+ @message || @data[:message]
158
+ end
159
+
160
+ # @return [String]
161
+ def reason
162
+ @data[:reason]
163
+ end
164
+
165
+ end
166
+
167
+ class CreateAccountStatusNotFoundException < ServiceError
168
+
169
+ # @param [Seahorse::Client::RequestContext] context
170
+ # @param [String] message
171
+ # @param [Aws::Organizations::Types::CreateAccountStatusNotFoundException] data
172
+ def initialize(context, message, data = Aws::EmptyStructure.new)
173
+ super(context, message, data)
174
+ end
175
+
176
+ # @return [String]
177
+ def message
178
+ @message || @data[:message]
179
+ end
180
+
181
+ end
182
+
183
+ class DestinationParentNotFoundException < ServiceError
184
+
185
+ # @param [Seahorse::Client::RequestContext] context
186
+ # @param [String] message
187
+ # @param [Aws::Organizations::Types::DestinationParentNotFoundException] data
188
+ def initialize(context, message, data = Aws::EmptyStructure.new)
189
+ super(context, message, data)
190
+ end
191
+
192
+ # @return [String]
193
+ def message
194
+ @message || @data[:message]
195
+ end
196
+
197
+ end
198
+
199
+ class DuplicateAccountException < ServiceError
200
+
201
+ # @param [Seahorse::Client::RequestContext] context
202
+ # @param [String] message
203
+ # @param [Aws::Organizations::Types::DuplicateAccountException] data
204
+ def initialize(context, message, data = Aws::EmptyStructure.new)
205
+ super(context, message, data)
206
+ end
207
+
208
+ # @return [String]
209
+ def message
210
+ @message || @data[:message]
211
+ end
212
+
213
+ end
214
+
215
+ class DuplicateHandshakeException < ServiceError
216
+
217
+ # @param [Seahorse::Client::RequestContext] context
218
+ # @param [String] message
219
+ # @param [Aws::Organizations::Types::DuplicateHandshakeException] data
220
+ def initialize(context, message, data = Aws::EmptyStructure.new)
221
+ super(context, message, data)
222
+ end
223
+
224
+ # @return [String]
225
+ def message
226
+ @message || @data[:message]
227
+ end
228
+
229
+ end
230
+
231
+ class DuplicateOrganizationalUnitException < ServiceError
232
+
233
+ # @param [Seahorse::Client::RequestContext] context
234
+ # @param [String] message
235
+ # @param [Aws::Organizations::Types::DuplicateOrganizationalUnitException] data
236
+ def initialize(context, message, data = Aws::EmptyStructure.new)
237
+ super(context, message, data)
238
+ end
239
+
240
+ # @return [String]
241
+ def message
242
+ @message || @data[:message]
243
+ end
244
+
245
+ end
246
+
247
+ class DuplicatePolicyAttachmentException < ServiceError
248
+
249
+ # @param [Seahorse::Client::RequestContext] context
250
+ # @param [String] message
251
+ # @param [Aws::Organizations::Types::DuplicatePolicyAttachmentException] data
252
+ def initialize(context, message, data = Aws::EmptyStructure.new)
253
+ super(context, message, data)
254
+ end
255
+
256
+ # @return [String]
257
+ def message
258
+ @message || @data[:message]
259
+ end
260
+
261
+ end
262
+
263
+ class DuplicatePolicyException < ServiceError
264
+
265
+ # @param [Seahorse::Client::RequestContext] context
266
+ # @param [String] message
267
+ # @param [Aws::Organizations::Types::DuplicatePolicyException] data
268
+ def initialize(context, message, data = Aws::EmptyStructure.new)
269
+ super(context, message, data)
270
+ end
271
+
272
+ # @return [String]
273
+ def message
274
+ @message || @data[:message]
275
+ end
276
+
277
+ end
278
+
279
+ class FinalizingOrganizationException < ServiceError
280
+
281
+ # @param [Seahorse::Client::RequestContext] context
282
+ # @param [String] message
283
+ # @param [Aws::Organizations::Types::FinalizingOrganizationException] data
284
+ def initialize(context, message, data = Aws::EmptyStructure.new)
285
+ super(context, message, data)
286
+ end
287
+
288
+ # @return [String]
289
+ def message
290
+ @message || @data[:message]
291
+ end
292
+
293
+ end
294
+
295
+ class HandshakeAlreadyInStateException < ServiceError
296
+
297
+ # @param [Seahorse::Client::RequestContext] context
298
+ # @param [String] message
299
+ # @param [Aws::Organizations::Types::HandshakeAlreadyInStateException] data
300
+ def initialize(context, message, data = Aws::EmptyStructure.new)
301
+ super(context, message, data)
302
+ end
303
+
304
+ # @return [String]
305
+ def message
306
+ @message || @data[:message]
307
+ end
308
+
309
+ end
310
+
311
+ class HandshakeConstraintViolationException < ServiceError
312
+
313
+ # @param [Seahorse::Client::RequestContext] context
314
+ # @param [String] message
315
+ # @param [Aws::Organizations::Types::HandshakeConstraintViolationException] data
316
+ def initialize(context, message, data = Aws::EmptyStructure.new)
317
+ super(context, message, data)
318
+ end
319
+
320
+ # @return [String]
321
+ def message
322
+ @message || @data[:message]
323
+ end
324
+
325
+ # @return [String]
326
+ def reason
327
+ @data[:reason]
328
+ end
329
+
330
+ end
331
+
332
+ class HandshakeNotFoundException < ServiceError
333
+
334
+ # @param [Seahorse::Client::RequestContext] context
335
+ # @param [String] message
336
+ # @param [Aws::Organizations::Types::HandshakeNotFoundException] data
337
+ def initialize(context, message, data = Aws::EmptyStructure.new)
338
+ super(context, message, data)
339
+ end
340
+
341
+ # @return [String]
342
+ def message
343
+ @message || @data[:message]
344
+ end
345
+
346
+ end
347
+
348
+ class InvalidHandshakeTransitionException < ServiceError
349
+
350
+ # @param [Seahorse::Client::RequestContext] context
351
+ # @param [String] message
352
+ # @param [Aws::Organizations::Types::InvalidHandshakeTransitionException] data
353
+ def initialize(context, message, data = Aws::EmptyStructure.new)
354
+ super(context, message, data)
355
+ end
356
+
357
+ # @return [String]
358
+ def message
359
+ @message || @data[:message]
360
+ end
361
+
362
+ end
363
+
364
+ class InvalidInputException < ServiceError
365
+
366
+ # @param [Seahorse::Client::RequestContext] context
367
+ # @param [String] message
368
+ # @param [Aws::Organizations::Types::InvalidInputException] data
369
+ def initialize(context, message, data = Aws::EmptyStructure.new)
370
+ super(context, message, data)
371
+ end
372
+
373
+ # @return [String]
374
+ def message
375
+ @message || @data[:message]
376
+ end
377
+
378
+ # @return [String]
379
+ def reason
380
+ @data[:reason]
381
+ end
382
+
383
+ end
384
+
385
+ class MalformedPolicyDocumentException < ServiceError
386
+
387
+ # @param [Seahorse::Client::RequestContext] context
388
+ # @param [String] message
389
+ # @param [Aws::Organizations::Types::MalformedPolicyDocumentException] data
390
+ def initialize(context, message, data = Aws::EmptyStructure.new)
391
+ super(context, message, data)
392
+ end
393
+
394
+ # @return [String]
395
+ def message
396
+ @message || @data[:message]
397
+ end
398
+
399
+ end
400
+
401
+ class MasterCannotLeaveOrganizationException < ServiceError
402
+
403
+ # @param [Seahorse::Client::RequestContext] context
404
+ # @param [String] message
405
+ # @param [Aws::Organizations::Types::MasterCannotLeaveOrganizationException] data
406
+ def initialize(context, message, data = Aws::EmptyStructure.new)
407
+ super(context, message, data)
408
+ end
409
+
410
+ # @return [String]
411
+ def message
412
+ @message || @data[:message]
413
+ end
414
+
415
+ end
416
+
417
+ class OrganizationNotEmptyException < ServiceError
418
+
419
+ # @param [Seahorse::Client::RequestContext] context
420
+ # @param [String] message
421
+ # @param [Aws::Organizations::Types::OrganizationNotEmptyException] data
422
+ def initialize(context, message, data = Aws::EmptyStructure.new)
423
+ super(context, message, data)
424
+ end
425
+
426
+ # @return [String]
427
+ def message
428
+ @message || @data[:message]
429
+ end
430
+
431
+ end
432
+
433
+ class OrganizationalUnitNotEmptyException < ServiceError
434
+
435
+ # @param [Seahorse::Client::RequestContext] context
436
+ # @param [String] message
437
+ # @param [Aws::Organizations::Types::OrganizationalUnitNotEmptyException] data
438
+ def initialize(context, message, data = Aws::EmptyStructure.new)
439
+ super(context, message, data)
440
+ end
441
+
442
+ # @return [String]
443
+ def message
444
+ @message || @data[:message]
445
+ end
446
+
447
+ end
448
+
449
+ class OrganizationalUnitNotFoundException < ServiceError
450
+
451
+ # @param [Seahorse::Client::RequestContext] context
452
+ # @param [String] message
453
+ # @param [Aws::Organizations::Types::OrganizationalUnitNotFoundException] data
454
+ def initialize(context, message, data = Aws::EmptyStructure.new)
455
+ super(context, message, data)
456
+ end
457
+
458
+ # @return [String]
459
+ def message
460
+ @message || @data[:message]
461
+ end
462
+
463
+ end
464
+
465
+ class ParentNotFoundException < ServiceError
466
+
467
+ # @param [Seahorse::Client::RequestContext] context
468
+ # @param [String] message
469
+ # @param [Aws::Organizations::Types::ParentNotFoundException] data
470
+ def initialize(context, message, data = Aws::EmptyStructure.new)
471
+ super(context, message, data)
472
+ end
473
+
474
+ # @return [String]
475
+ def message
476
+ @message || @data[:message]
477
+ end
478
+
479
+ end
480
+
481
+ class PolicyInUseException < ServiceError
482
+
483
+ # @param [Seahorse::Client::RequestContext] context
484
+ # @param [String] message
485
+ # @param [Aws::Organizations::Types::PolicyInUseException] data
486
+ def initialize(context, message, data = Aws::EmptyStructure.new)
487
+ super(context, message, data)
488
+ end
489
+
490
+ # @return [String]
491
+ def message
492
+ @message || @data[:message]
493
+ end
494
+
495
+ end
496
+
497
+ class PolicyNotAttachedException < ServiceError
498
+
499
+ # @param [Seahorse::Client::RequestContext] context
500
+ # @param [String] message
501
+ # @param [Aws::Organizations::Types::PolicyNotAttachedException] data
502
+ def initialize(context, message, data = Aws::EmptyStructure.new)
503
+ super(context, message, data)
504
+ end
505
+
506
+ # @return [String]
507
+ def message
508
+ @message || @data[:message]
509
+ end
510
+
511
+ end
512
+
513
+ class PolicyNotFoundException < ServiceError
514
+
515
+ # @param [Seahorse::Client::RequestContext] context
516
+ # @param [String] message
517
+ # @param [Aws::Organizations::Types::PolicyNotFoundException] data
518
+ def initialize(context, message, data = Aws::EmptyStructure.new)
519
+ super(context, message, data)
520
+ end
521
+
522
+ # @return [String]
523
+ def message
524
+ @message || @data[:message]
525
+ end
526
+
527
+ end
528
+
529
+ class PolicyTypeAlreadyEnabledException < ServiceError
530
+
531
+ # @param [Seahorse::Client::RequestContext] context
532
+ # @param [String] message
533
+ # @param [Aws::Organizations::Types::PolicyTypeAlreadyEnabledException] data
534
+ def initialize(context, message, data = Aws::EmptyStructure.new)
535
+ super(context, message, data)
536
+ end
537
+
538
+ # @return [String]
539
+ def message
540
+ @message || @data[:message]
541
+ end
542
+
543
+ end
544
+
545
+ class PolicyTypeNotAvailableForOrganizationException < ServiceError
546
+
547
+ # @param [Seahorse::Client::RequestContext] context
548
+ # @param [String] message
549
+ # @param [Aws::Organizations::Types::PolicyTypeNotAvailableForOrganizationException] data
550
+ def initialize(context, message, data = Aws::EmptyStructure.new)
551
+ super(context, message, data)
552
+ end
553
+
554
+ # @return [String]
555
+ def message
556
+ @message || @data[:message]
557
+ end
558
+
559
+ end
560
+
561
+ class PolicyTypeNotEnabledException < ServiceError
562
+
563
+ # @param [Seahorse::Client::RequestContext] context
564
+ # @param [String] message
565
+ # @param [Aws::Organizations::Types::PolicyTypeNotEnabledException] data
566
+ def initialize(context, message, data = Aws::EmptyStructure.new)
567
+ super(context, message, data)
568
+ end
569
+
570
+ # @return [String]
571
+ def message
572
+ @message || @data[:message]
573
+ end
574
+
575
+ end
576
+
577
+ class RootNotFoundException < ServiceError
578
+
579
+ # @param [Seahorse::Client::RequestContext] context
580
+ # @param [String] message
581
+ # @param [Aws::Organizations::Types::RootNotFoundException] data
582
+ def initialize(context, message, data = Aws::EmptyStructure.new)
583
+ super(context, message, data)
584
+ end
585
+
586
+ # @return [String]
587
+ def message
588
+ @message || @data[:message]
589
+ end
590
+
591
+ end
592
+
593
+ class ServiceException < ServiceError
594
+
595
+ # @param [Seahorse::Client::RequestContext] context
596
+ # @param [String] message
597
+ # @param [Aws::Organizations::Types::ServiceException] data
598
+ def initialize(context, message, data = Aws::EmptyStructure.new)
599
+ super(context, message, data)
600
+ end
601
+
602
+ # @return [String]
603
+ def message
604
+ @message || @data[:message]
605
+ end
606
+
607
+ end
608
+
609
+ class SourceParentNotFoundException < ServiceError
610
+
611
+ # @param [Seahorse::Client::RequestContext] context
612
+ # @param [String] message
613
+ # @param [Aws::Organizations::Types::SourceParentNotFoundException] data
614
+ def initialize(context, message, data = Aws::EmptyStructure.new)
615
+ super(context, message, data)
616
+ end
617
+
618
+ # @return [String]
619
+ def message
620
+ @message || @data[:message]
621
+ end
622
+
623
+ end
624
+
625
+ class TargetNotFoundException < ServiceError
626
+
627
+ # @param [Seahorse::Client::RequestContext] context
628
+ # @param [String] message
629
+ # @param [Aws::Organizations::Types::TargetNotFoundException] data
630
+ def initialize(context, message, data = Aws::EmptyStructure.new)
631
+ super(context, message, data)
632
+ end
633
+
634
+ # @return [String]
635
+ def message
636
+ @message || @data[:message]
637
+ end
638
+
639
+ end
640
+
641
+ class TooManyRequestsException < ServiceError
642
+
643
+ # @param [Seahorse::Client::RequestContext] context
644
+ # @param [String] message
645
+ # @param [Aws::Organizations::Types::TooManyRequestsException] data
646
+ def initialize(context, message, data = Aws::EmptyStructure.new)
647
+ super(context, message, data)
648
+ end
649
+
650
+ # @return [String]
651
+ def type
652
+ @data[:type]
653
+ end
654
+
655
+ # @return [String]
656
+ def message
657
+ @message || @data[:message]
658
+ end
659
+
660
+ end
661
+
662
+ class UnsupportedAPIEndpointException < ServiceError
663
+
664
+ # @param [Seahorse::Client::RequestContext] context
665
+ # @param [String] message
666
+ # @param [Aws::Organizations::Types::UnsupportedAPIEndpointException] data
667
+ def initialize(context, message, data = Aws::EmptyStructure.new)
668
+ super(context, message, data)
669
+ end
670
+
671
+ # @return [String]
672
+ def message
673
+ @message || @data[:message]
674
+ end
675
+
676
+ end
677
+
13
678
  end
14
679
  end