-
Notifications
You must be signed in to change notification settings - Fork 573
/
models_0.ts
5230 lines (4863 loc) · 198 KB
/
models_0.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// smithy-typescript generated code
import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@aws-sdk/smithy-client";
import { OrganizationsServiceException as __BaseException } from "./OrganizationsServiceException";
/**
* @public
*/
export interface AcceptHandshakeRequest {
/**
* <p>The unique identifier (ID) of the handshake that you want to accept.</p>
* <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for handshake ID string requires "h-"
* followed by from 8 to 32 lowercase letters or digits.</p>
*/
HandshakeId: string | undefined;
}
/**
* @public
* @enum
*/
export const ActionType = {
ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE: "ADD_ORGANIZATIONS_SERVICE_LINKED_ROLE",
APPROVE_ALL_FEATURES: "APPROVE_ALL_FEATURES",
ENABLE_ALL_FEATURES: "ENABLE_ALL_FEATURES",
INVITE_ACCOUNT_TO_ORGANIZATION: "INVITE",
} as const;
/**
* @public
*/
export type ActionType = (typeof ActionType)[keyof typeof ActionType];
/**
* @public
* @enum
*/
export const HandshakePartyType = {
ACCOUNT: "ACCOUNT",
EMAIL: "EMAIL",
ORGANIZATION: "ORGANIZATION",
} as const;
/**
* @public
*/
export type HandshakePartyType = (typeof HandshakePartyType)[keyof typeof HandshakePartyType];
/**
* @public
* <p>Identifies a participant in a handshake.</p>
*/
export interface HandshakeParty {
/**
* <p>The unique identifier (ID) for the party.</p>
* <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for handshake ID string requires "h-"
* followed by from 8 to 32 lowercase letters or digits.</p>
*/
Id: string | undefined;
/**
* <p>The type of party.</p>
*/
Type: HandshakePartyType | string | undefined;
}
/**
* @public
* @enum
*/
export const HandshakeResourceType = {
ACCOUNT: "ACCOUNT",
EMAIL: "EMAIL",
MASTER_EMAIL: "MASTER_EMAIL",
MASTER_NAME: "MASTER_NAME",
NOTES: "NOTES",
ORGANIZATION: "ORGANIZATION",
ORGANIZATION_FEATURE_SET: "ORGANIZATION_FEATURE_SET",
PARENT_HANDSHAKE: "PARENT_HANDSHAKE",
} as const;
/**
* @public
*/
export type HandshakeResourceType = (typeof HandshakeResourceType)[keyof typeof HandshakeResourceType];
/**
* @public
* @enum
*/
export const HandshakeState = {
ACCEPTED: "ACCEPTED",
CANCELED: "CANCELED",
DECLINED: "DECLINED",
EXPIRED: "EXPIRED",
OPEN: "OPEN",
REQUESTED: "REQUESTED",
} as const;
/**
* @public
*/
export type HandshakeState = (typeof HandshakeState)[keyof typeof HandshakeState];
/**
* @public
* <p>You don't have permissions to perform the requested operation. The user or role that
* is making the request must have at least one IAM permissions policy attached that
* grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access Management</a> in the
* <i>IAM User Guide.</i>
* </p>
*/
export class AccessDeniedException extends __BaseException {
readonly name: "AccessDeniedException" = "AccessDeniedException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>) {
super({
name: "AccessDeniedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AccessDeniedException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* @enum
*/
export const AccessDeniedForDependencyExceptionReason = {
ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE: "ACCESS_DENIED_DURING_CREATE_SERVICE_LINKED_ROLE",
} as const;
/**
* @public
*/
export type AccessDeniedForDependencyExceptionReason =
(typeof AccessDeniedForDependencyExceptionReason)[keyof typeof AccessDeniedForDependencyExceptionReason];
/**
* @public
* <p>The operation that you attempted requires you to have the
* <code>iam:CreateServiceLinkedRole</code> for
* <code>organizations.amazonaws.com</code> permission so that Organizations can create the
* required service-linked role. You don't have that permission.</p>
*/
export class AccessDeniedForDependencyException extends __BaseException {
readonly name: "AccessDeniedForDependencyException" = "AccessDeniedForDependencyException";
readonly $fault: "client" = "client";
Message?: string;
Reason?: AccessDeniedForDependencyExceptionReason | string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AccessDeniedForDependencyException, __BaseException>) {
super({
name: "AccessDeniedForDependencyException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AccessDeniedForDependencyException.prototype);
this.Message = opts.Message;
this.Reason = opts.Reason;
}
}
/**
* @public
* <p>Your account isn't a member of an organization. To make this request, you must use the
* credentials of an account that belongs to an organization.</p>
*/
export class AWSOrganizationsNotInUseException extends __BaseException {
readonly name: "AWSOrganizationsNotInUseException" = "AWSOrganizationsNotInUseException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AWSOrganizationsNotInUseException, __BaseException>) {
super({
name: "AWSOrganizationsNotInUseException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AWSOrganizationsNotInUseException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>The target of the operation is currently being modified by a different request. Try
* again later.</p>
*/
export class ConcurrentModificationException extends __BaseException {
readonly name: "ConcurrentModificationException" = "ConcurrentModificationException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>) {
super({
name: "ConcurrentModificationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>The specified handshake is already in the requested state. For example, you can't
* accept a handshake that was already accepted.</p>
*/
export class HandshakeAlreadyInStateException extends __BaseException {
readonly name: "HandshakeAlreadyInStateException" = "HandshakeAlreadyInStateException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<HandshakeAlreadyInStateException, __BaseException>) {
super({
name: "HandshakeAlreadyInStateException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, HandshakeAlreadyInStateException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* @enum
*/
export const HandshakeConstraintViolationExceptionReason = {
ACCOUNT_NUMBER_LIMIT_EXCEEDED: "ACCOUNT_NUMBER_LIMIT_EXCEEDED",
ALREADY_IN_AN_ORGANIZATION: "ALREADY_IN_AN_ORGANIZATION",
HANDSHAKE_RATE_LIMIT_EXCEEDED: "HANDSHAKE_RATE_LIMIT_EXCEEDED",
INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: "INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES",
MANAGEMENT_ACCOUNT_EMAIL_NOT_VERIFIED: "MANAGEMENT_ACCOUNT_EMAIL_NOT_VERIFIED",
ORGANIZATION_ALREADY_HAS_ALL_FEATURES: "ORGANIZATION_ALREADY_HAS_ALL_FEATURES",
ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: "ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD",
ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION: "ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION",
ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: "ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED",
PAYMENT_INSTRUMENT_REQUIRED: "PAYMENT_INSTRUMENT_REQUIRED",
} as const;
/**
* @public
*/
export type HandshakeConstraintViolationExceptionReason =
(typeof HandshakeConstraintViolationExceptionReason)[keyof typeof HandshakeConstraintViolationExceptionReason];
/**
* @public
* <p>The requested operation would violate the constraint identified in the reason
* code.</p>
* <note>
* <p>Some of the reasons in the following list might not be applicable to this specific
* API or operation:</p>
* </note>
* <ul>
* <li>
* <p>ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number
* of accounts in an organization. Note that deleted and closed accounts still
* count toward your limit.</p>
* <important>
* <p>If you get this exception immediately after creating the organization,
* wait one hour and try again. If after an hour it continues to fail with this
* error, contact <a href="https://docs.aws.amazon.com/support/home#/">Amazon Web Services Support</a>.</p>
* </important>
* </li>
* <li>
* <p>ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because the
* invited account is already a member of an organization.</p>
* </li>
* <li>
* <p>HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
* handshakes that you can send in one day.</p>
* </li>
* <li>
* <p>INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations to
* join an organization while it's in the process of enabling all features. You can
* resume inviting accounts after you finalize the process when all accounts have
* agreed to the change.</p>
* </li>
* <li>
* <p>ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid
* because the organization has already enabled all features.</p>
* </li>
* <li>
* <p>ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION: The handshake request
* is invalid because the organization has already started the process to enable
* all features.</p>
* </li>
* <li>
* <p>ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because the
* account is from a different marketplace than the accounts in the organization.
* For example, accounts with India addresses must be associated with the AISPL
* marketplace. All accounts in an organization must be from the same
* marketplace.</p>
* </li>
* <li>
* <p>ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to change
* the membership of an account too quickly after its previous change.</p>
* </li>
* <li>
* <p>PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an account
* that doesn't have a payment instrument, such as a credit card, associated with
* it.</p>
* </li>
* </ul>
*/
export class HandshakeConstraintViolationException extends __BaseException {
readonly name: "HandshakeConstraintViolationException" = "HandshakeConstraintViolationException";
readonly $fault: "client" = "client";
Message?: string;
Reason?: HandshakeConstraintViolationExceptionReason | string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<HandshakeConstraintViolationException, __BaseException>) {
super({
name: "HandshakeConstraintViolationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, HandshakeConstraintViolationException.prototype);
this.Message = opts.Message;
this.Reason = opts.Reason;
}
}
/**
* @public
* <p>We can't find a handshake with the <code>HandshakeId</code> that you specified.</p>
*/
export class HandshakeNotFoundException extends __BaseException {
readonly name: "HandshakeNotFoundException" = "HandshakeNotFoundException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<HandshakeNotFoundException, __BaseException>) {
super({
name: "HandshakeNotFoundException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, HandshakeNotFoundException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>You can't perform the operation on the handshake in its current state. For example,
* you can't cancel a handshake that was already accepted or accept a handshake that was
* already declined.</p>
*/
export class InvalidHandshakeTransitionException extends __BaseException {
readonly name: "InvalidHandshakeTransitionException" = "InvalidHandshakeTransitionException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InvalidHandshakeTransitionException, __BaseException>) {
super({
name: "InvalidHandshakeTransitionException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidHandshakeTransitionException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* @enum
*/
export const InvalidInputExceptionReason = {
DUPLICATE_TAG_KEY: "DUPLICATE_TAG_KEY",
IMMUTABLE_POLICY: "IMMUTABLE_POLICY",
INPUT_REQUIRED: "INPUT_REQUIRED",
INVALID_EMAIL_ADDRESS_TARGET: "INVALID_EMAIL_ADDRESS_TARGET",
INVALID_ENUM: "INVALID_ENUM",
INVALID_ENUM_POLICY_TYPE: "INVALID_ENUM_POLICY_TYPE",
INVALID_FULL_NAME_TARGET: "INVALID_FULL_NAME_TARGET",
INVALID_LIST_MEMBER: "INVALID_LIST_MEMBER",
INVALID_PAGINATION_TOKEN: "INVALID_NEXT_TOKEN",
INVALID_PARTY_TYPE_TARGET: "INVALID_PARTY_TYPE_TARGET",
INVALID_PATTERN: "INVALID_PATTERN",
INVALID_PATTERN_TARGET_ID: "INVALID_PATTERN_TARGET_ID",
INVALID_RESOURCE_POLICY_JSON: "INVALID_RESOURCE_POLICY_JSON",
INVALID_ROLE_NAME: "INVALID_ROLE_NAME",
INVALID_SYNTAX_ORGANIZATION: "INVALID_SYNTAX_ORGANIZATION_ARN",
INVALID_SYNTAX_POLICY: "INVALID_SYNTAX_POLICY_ID",
INVALID_SYSTEM_TAGS_PARAMETER: "INVALID_SYSTEM_TAGS_PARAMETER",
MAX_FILTER_LIMIT_EXCEEDED: "MAX_LIMIT_EXCEEDED_FILTER",
MAX_LENGTH_EXCEEDED: "MAX_LENGTH_EXCEEDED",
MAX_VALUE_EXCEEDED: "MAX_VALUE_EXCEEDED",
MIN_LENGTH_EXCEEDED: "MIN_LENGTH_EXCEEDED",
MIN_VALUE_EXCEEDED: "MIN_VALUE_EXCEEDED",
MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: "MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS",
TARGET_NOT_SUPPORTED: "TARGET_NOT_SUPPORTED",
UNRECOGNIZED_SERVICE_PRINCIPAL: "UNRECOGNIZED_SERVICE_PRINCIPAL",
UNSUPPORTED_ACTION_IN_RESOURCE_POLICY: "UNSUPPORTED_ACTION_IN_RESOURCE_POLICY",
UNSUPPORTED_POLICY_TYPE_IN_RESOURCE_POLICY: "UNSUPPORTED_POLICY_TYPE_IN_RESOURCE_POLICY",
UNSUPPORTED_RESOURCE_IN_RESOURCE_POLICY: "UNSUPPORTED_RESOURCE_IN_RESOURCE_POLICY",
} as const;
/**
* @public
*/
export type InvalidInputExceptionReason =
(typeof InvalidInputExceptionReason)[keyof typeof InvalidInputExceptionReason];
/**
* @public
* <p>The requested operation failed because you provided invalid values for one or more of
* the request parameters. This exception includes a reason that contains additional
* information about the violated limit:</p>
* <note>
* <p>Some of the reasons in the following list might not be applicable to this specific
* API or operation.</p>
* </note>
* <ul>
* <li>
* <p>DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to the same
* entity.</p>
* </li>
* <li>
* <p>IMMUTABLE_POLICY: You specified a policy that is managed by Amazon Web Services and can't be
* modified.</p>
* </li>
* <li>
* <p>INPUT_REQUIRED: You must include a value for all required parameters.</p>
* </li>
* <li>
* <p>INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address for the
* invited account owner.</p>
* </li>
* <li>
* <p>INVALID_ENUM: You specified an invalid value.</p>
* </li>
* <li>
* <p>INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.</p>
* </li>
* <li>
* <p>INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid
* characters.</p>
* </li>
* <li>
* <p>INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least
* one invalid value.</p>
* </li>
* <li>
* <p>INVALID_PAGINATION_TOKEN: Get the value for the <code>NextToken</code>
* parameter from the response to a previous call of the operation.</p>
* </li>
* <li>
* <p>INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
* organization, or email) as a party.</p>
* </li>
* <li>
* <p>INVALID_PATTERN: You provided a value that doesn't match the required
* pattern.</p>
* </li>
* <li>
* <p>INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match
* the required pattern.</p>
* </li>
* <li>
* <p>INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name
* can't begin with the reserved prefix <code>AWSServiceRoleFor</code>.</p>
* </li>
* <li>
* <p>INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name
* (ARN) for the organization.</p>
* </li>
* <li>
* <p>INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. </p>
* </li>
* <li>
* <p>INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system tag.
* You can’t add, edit, or delete system tag keys because they're reserved for
* Amazon Web Services use. System tags don’t count against your tags per resource limit.</p>
* </li>
* <li>
* <p>MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the
* operation.</p>
* </li>
* <li>
* <p>MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than
* allowed.</p>
* </li>
* <li>
* <p>MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value
* than allowed.</p>
* </li>
* <li>
* <p>MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than
* allowed.</p>
* </li>
* <li>
* <p>MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value
* than allowed.</p>
* </li>
* <li>
* <p>MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between
* entities in the same root.</p>
* </li>
* <li>
* <p>TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target
* entity.</p>
* </li>
* <li>
* <p>UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't
* recognized.</p>
* </li>
* </ul>
*/
export class InvalidInputException extends __BaseException {
readonly name: "InvalidInputException" = "InvalidInputException";
readonly $fault: "client" = "client";
Message?: string;
Reason?: InvalidInputExceptionReason | string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>) {
super({
name: "InvalidInputException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidInputException.prototype);
this.Message = opts.Message;
this.Reason = opts.Reason;
}
}
/**
* @public
* <p>Organizations can't complete your request because of an internal service error. Try again
* later.</p>
*/
export class ServiceException extends __BaseException {
readonly name: "ServiceException" = "ServiceException";
readonly $fault: "server" = "server";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>) {
super({
name: "ServiceException",
$fault: "server",
...opts,
});
Object.setPrototypeOf(this, ServiceException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>You have sent too many requests in too short a period of time. The quota helps protect
* against denial-of-service attacks. Try again later.</p>
* <p>For information about quotas that affect Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html">Quotas for Organizations</a>in the
* <i>Organizations User Guide.</i>
* </p>
*/
export class TooManyRequestsException extends __BaseException {
readonly name: "TooManyRequestsException" = "TooManyRequestsException";
readonly $fault: "client" = "client";
Type?: string;
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>) {
super({
name: "TooManyRequestsException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
this.Type = opts.Type;
this.Message = opts.Message;
}
}
/**
* @public
* @enum
*/
export const AccountJoinedMethod = {
CREATED: "CREATED",
INVITED: "INVITED",
} as const;
/**
* @public
*/
export type AccountJoinedMethod = (typeof AccountJoinedMethod)[keyof typeof AccountJoinedMethod];
/**
* @public
* @enum
*/
export const AccountStatus = {
ACTIVE: "ACTIVE",
PENDING_CLOSURE: "PENDING_CLOSURE",
SUSPENDED: "SUSPENDED",
} as const;
/**
* @public
*/
export type AccountStatus = (typeof AccountStatus)[keyof typeof AccountStatus];
/**
* @public
* <p>Contains information about an Amazon Web Services account that is a member of an
* organization.</p>
*/
export interface Account {
/**
* <p>The unique identifier (ID) of the account.</p>
* <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for an account ID string requires exactly 12
* digits.</p>
*/
Id?: string;
/**
* <p>The Amazon Resource Name (ARN) of the account.</p>
* <p>For more information about ARNs in Organizations, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsorganizations.html#awsorganizations-resources-for-iam-policies">ARN
* Formats Supported by Organizations</a> in the <i>Amazon Web Services Service Authorization Reference</i>.</p>
*/
Arn?: string;
/**
* <p>The email address associated with the Amazon Web Services account.</p>
* <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for this parameter is a string of characters that represents a
* standard internet email address.</p>
*/
Email?: string;
/**
* <p>The friendly name of the account.</p>
* <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a>
* that is used to validate this parameter is a string of any of the characters in the ASCII
* character range.</p>
*/
Name?: string;
/**
* <p>The status of the account in the organization.</p>
*/
Status?: AccountStatus | string;
/**
* <p>The method by which the account joined the organization.</p>
*/
JoinedMethod?: AccountJoinedMethod | string;
/**
* <p>The date the account became a part of the organization.</p>
*/
JoinedTimestamp?: Date;
}
/**
* @public
* <p>You attempted to close an account that is already closed.</p>
*/
export class AccountAlreadyClosedException extends __BaseException {
readonly name: "AccountAlreadyClosedException" = "AccountAlreadyClosedException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AccountAlreadyClosedException, __BaseException>) {
super({
name: "AccountAlreadyClosedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AccountAlreadyClosedException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>The specified account is already a delegated administrator for this Amazon Web Services
* service.</p>
*/
export class AccountAlreadyRegisteredException extends __BaseException {
readonly name: "AccountAlreadyRegisteredException" = "AccountAlreadyRegisteredException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AccountAlreadyRegisteredException, __BaseException>) {
super({
name: "AccountAlreadyRegisteredException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AccountAlreadyRegisteredException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p> We can't find an Amazon Web Services account with the <code>AccountId</code> that you specified, or
* the account whose credentials you used to make this request isn't a member of an
* organization.</p>
*/
export class AccountNotFoundException extends __BaseException {
readonly name: "AccountNotFoundException" = "AccountNotFoundException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AccountNotFoundException, __BaseException>) {
super({
name: "AccountNotFoundException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AccountNotFoundException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>The specified account is not a delegated administrator for this Amazon Web Services service. </p>
*/
export class AccountNotRegisteredException extends __BaseException {
readonly name: "AccountNotRegisteredException" = "AccountNotRegisteredException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AccountNotRegisteredException, __BaseException>) {
super({
name: "AccountNotRegisteredException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AccountNotRegisteredException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>You can't invite an existing account to your organization until you verify that you
* own the email address associated with the management account. For more information, see
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_create.html#about-email-verification">Email Address
* Verification</a> in the <i>Organizations User Guide.</i>
* </p>
*/
export class AccountOwnerNotVerifiedException extends __BaseException {
readonly name: "AccountOwnerNotVerifiedException" = "AccountOwnerNotVerifiedException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AccountOwnerNotVerifiedException, __BaseException>) {
super({
name: "AccountOwnerNotVerifiedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AccountOwnerNotVerifiedException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>This account is already a member of an organization. An account can belong to only one
* organization at a time.</p>
*/
export class AlreadyInOrganizationException extends __BaseException {
readonly name: "AlreadyInOrganizationException" = "AlreadyInOrganizationException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AlreadyInOrganizationException, __BaseException>) {
super({
name: "AlreadyInOrganizationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AlreadyInOrganizationException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
*/
export interface AttachPolicyRequest {
/**
* <p>The unique identifier (ID) of the policy that you want to attach to the target. You
* can get the ID for the policy by calling the <a>ListPolicies</a>
* operation.</p>
* <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for a policy ID string requires "p-" followed
* by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).</p>
*/
PolicyId: string | undefined;
/**
* <p>The unique identifier (ID) of the root, OU, or account that you want to attach the
* policy to. You can get the ID by calling the <a>ListRoots</a>, <a>ListOrganizationalUnitsForParent</a>, or <a>ListAccounts</a>
* operations.</p>
* <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for a target ID string requires one of the
* following:</p>
* <ul>
* <li>
* <p>
* <b>Root</b> - A string that begins with "r-" followed by from 4 to 32 lowercase letters or
* digits.</p>
* </li>
* <li>
* <p>
* <b>Account</b> - A string that consists of exactly 12 digits.</p>
* </li>
* <li>
* <p>
* <b>Organizational unit (OU)</b> - A string that begins with "ou-" followed by from 4 to 32
* lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second
* "-" dash and from 8 to 32 additional lowercase letters or digits.</p>
* </li>
* </ul>
*/
TargetId: string | undefined;
}
/**
* @public
* @enum
*/
export const ConstraintViolationExceptionReason = {
ACCOUNT_CANNOT_LEAVE_ORGANIZATION: "ACCOUNT_CANNOT_LEAVE_ORGANIZATION",
ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: "ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA",
ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: "ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION",
ACCOUNT_CREATION_NOT_COMPLETE: "ACCOUNT_CREATION_NOT_COMPLETE",
ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: "ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED",
ACCOUNT_NUMBER_LIMIT_EXCEEDED: "ACCOUNT_NUMBER_LIMIT_EXCEEDED",
CANNOT_CLOSE_MANAGEMENT_ACCOUNT: "CANNOT_CLOSE_MANAGEMENT_ACCOUNT",
CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: "CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR",
CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: "CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG",
CLOSE_ACCOUNT_QUOTA_EXCEEDED: "CLOSE_ACCOUNT_QUOTA_EXCEEDED",
CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED: "CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED",
CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION: "CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION",
DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: "DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE",
EMAIL_VERIFICATION_CODE_EXPIRED: "EMAIL_VERIFICATION_CODE_EXPIRED",
HANDSHAKE_RATE_LIMIT_EXCEEDED: "HANDSHAKE_RATE_LIMIT_EXCEEDED",
INVALID_PAYMENT_INSTRUMENT: "INVALID_PAYMENT_INSTRUMENT",
MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: "MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE",
MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE: "MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE",
MASTER_ACCOUNT_MISSING_CONTACT_INFO: "MASTER_ACCOUNT_MISSING_CONTACT_INFO",
MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: "MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED",
MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: "MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED",
MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: "MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED",
MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: "MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED",
MAX_TAG_LIMIT_EXCEEDED: "MAX_TAG_LIMIT_EXCEEDED",
MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: "MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED",
MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: "MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED",
ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: "ORGANIZATION_NOT_IN_ALL_FEATURES_MODE",
OU_DEPTH_LIMIT_EXCEEDED: "OU_DEPTH_LIMIT_EXCEEDED",
OU_NUMBER_LIMIT_EXCEEDED: "OU_NUMBER_LIMIT_EXCEEDED",
POLICY_CONTENT_LIMIT_EXCEEDED: "POLICY_CONTENT_LIMIT_EXCEEDED",
POLICY_NUMBER_LIMIT_EXCEEDED: "POLICY_NUMBER_LIMIT_EXCEEDED",
SERVICE_ACCESS_NOT_ENABLED: "SERVICE_ACCESS_NOT_ENABLED",
TAG_POLICY_VIOLATION: "TAG_POLICY_VIOLATION",
WAIT_PERIOD_ACTIVE: "WAIT_PERIOD_ACTIVE",
} as const;
/**
* @public
*/
export type ConstraintViolationExceptionReason =
(typeof ConstraintViolationExceptionReason)[keyof typeof ConstraintViolationExceptionReason];
/**
* @public
* <p>Performing this operation violates a minimum or maximum value limit. For example,
* attempting to remove the last service control policy (SCP) from an OU or root, inviting
* or creating too many accounts to the organization, or attaching too many policies to an
* account, OU, or root. This exception includes a reason that contains additional
* information about the violated limit:</p>
* <note>
* <p>Some of the reasons in the following list might not be applicable to this specific
* API or operation.</p>
* </note>
* <ul>
* <li>
* <p>ACCOUNT_CANNOT_LEAVE_ORGANIZATION: You attempted to remove the management
* account from the organization. You can't remove the management account. Instead,
* after you remove all member accounts, delete the organization itself.</p>
* </li>
* <li>
* <p>ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove an
* account from the organization that doesn't yet have enough information to exist
* as a standalone account. This account requires you to first complete phone
* verification. Follow the steps at <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#orgs_manage_accounts_remove-from-master">Removing a member account from your organization</a> in the
* <i>Organizations User Guide.</i>
* </p>
* </li>
* <li>
* <p>ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
* accounts that you can create in one day.</p>
* </li>
* <li>
* <p>ACCOUNT_CREATION_NOT_COMPLETE: Your account setup isn't complete or your account isn't fully active. You must complete the account setup before you create an organization.</p>
* </li>
* <li>
* <p>ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number
* of accounts in an organization. If you need more accounts, contact <a href="https://docs.aws.amazon.com/support/home#/">Amazon Web Services Support</a> to
* request an increase in your limit. </p>
* <p>Or the number of invitations that you tried to send would cause you to exceed
* the limit of accounts in your organization. Send fewer invitations or contact
* Amazon Web Services Support to request an increase in the number of accounts.</p>
* <note>
* <p>Deleted and closed accounts still count toward your limit.</p>
* </note>
* <important>
* <p>If you get this exception when running a command immediately after
* creating the organization, wait one hour and try again. After an hour, if
* the command continues to fail with this error, contact <a href="https://docs.aws.amazon.com/support/home#/">Amazon Web Services
* Support</a>.</p>
* </important>
* </li>
* <li>
* <p>CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You attempted to register
* the management account of the organization as a delegated administrator for an
* Amazon Web Services service integrated with Organizations. You can designate only a member account as a
* delegated administrator.</p>
* </li>
* <li>
* <p>CANNOT_CLOSE_MANAGEMENT_ACCOUNT: You attempted to close the management
* account. To close the management account for the organization, you must first
* either remove or close all member accounts in the organization. Follow standard
* account closure process using root credentials. </p>
* </li>
* <li>
* <p>CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: You attempted to remove an
* account that is registered as a delegated administrator for a service integrated
* with your organization. To complete this operation, you must first deregister
* this account as a delegated administrator. </p>
* </li>
* <li>
* <p>CLOSE_ACCOUNT_QUOTA_EXCEEDED: You have exceeded close account quota for the
* past 30 days. </p>
* </li>
* <li>
* <p>CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED: You attempted to exceed the number of
* accounts that you can close at a time. </p>
* </li>
* <li>
* <p>CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION: To create an
* organization in the specified region, you must enable all features mode.</p>
* </li>
* <li>
* <p>DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: You attempted to register an
* Amazon Web Services account as a delegated administrator for an Amazon Web Services service that already has
* a delegated administrator. To complete this operation, you must first deregister
* any existing delegated administrators for this service.</p>
* </li>
* <li>
* <p>EMAIL_VERIFICATION_CODE_EXPIRED: The email verification code is only valid for