-
Notifications
You must be signed in to change notification settings - Fork 545
/
models_0.ts
9959 lines (8900 loc) · 378 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 { IAMServiceException as __BaseException } from "./IAMServiceException";
export enum AccessAdvisorUsageGranularityType {
ACTION_LEVEL = "ACTION_LEVEL",
SERVICE_LEVEL = "SERVICE_LEVEL",
}
/**
* <p>An object that contains details about when a principal in the reported Organizations entity
* last attempted to access an Amazon Web Services service. A principal can be an IAM user, an IAM role,
* or the Amazon Web Services account root user within the reported Organizations entity.</p>
* <p>This data type is a response element in the <a>GetOrganizationsAccessReport</a> operation.</p>
*/
export interface AccessDetail {
/**
* <p>The name of the service in which access was attempted.</p>
*/
ServiceName: string | undefined;
/**
* <p>The namespace of the service in which access was attempted.</p>
* <p>To learn the service namespace of a service, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html">Actions, resources, and condition keys for Amazon Web Services services</a> in the
* <i>Service Authorization Reference</i>. Choose the name of the service to
* view details for that service. In the first paragraph, find the service prefix. For
* example, <code>(service prefix: a4b)</code>. For more information about service namespaces,
* see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces">Amazon Web Services
* service namespaces</a> in the <i>Amazon Web Services General Reference</i>.</p>
*/
ServiceNamespace: string | undefined;
/**
* <p>The Region where the last service access attempt occurred.</p>
* <p>This field is null if no principals in the reported Organizations entity attempted to access the
* service within the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">reporting period</a>.</p>
*/
Region?: string;
/**
* <p>The path of the Organizations entity (root, organizational unit, or account) from which an
* authenticated principal last attempted to access the service. Amazon Web Services does not report
* unauthenticated requests.</p>
* <p>This field is null if no principals (IAM users, IAM roles, or root users) in the
* reported Organizations entity attempted to access the service within the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">reporting period</a>.</p>
*/
EntityPath?: string;
/**
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time
* format</a>, when an authenticated principal most recently attempted to access the
* service. Amazon Web Services does not report unauthenticated requests.</p>
* <p>This field is null if no principals in the reported Organizations entity attempted to access the
* service within the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">reporting period</a>.</p>
*/
LastAuthenticatedTime?: Date;
/**
* <p>The number of accounts with authenticated principals (root users, IAM users, and IAM
* roles) that attempted to access the service in the reporting period.</p>
*/
TotalAuthenticatedEntities?: number;
}
export namespace AccessDetail {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AccessDetail): any => ({
...obj,
});
}
export type StatusType = "Active" | "Inactive";
/**
* <p>Contains information about an Amazon Web Services access key.</p>
* <p> This data type is used as a response element in the <a>CreateAccessKey</a>
* and <a>ListAccessKeys</a> operations. </p>
* <note>
* <p>The <code>SecretAccessKey</code> value is returned only in response to <a>CreateAccessKey</a>. You can get a secret access key only when you first
* create an access key; you cannot recover the secret access key later. If you lose a
* secret access key, you must create a new access key.</p>
* </note>
*/
export interface AccessKey {
/**
* <p>The name of the IAM user that the access key is associated with.</p>
*/
UserName: string | undefined;
/**
* <p>The ID for this access key.</p>
*/
AccessKeyId: string | undefined;
/**
* <p>The status of the access key. <code>Active</code> means that the key is valid for API
* calls, while <code>Inactive</code> means it is not. </p>
*/
Status: StatusType | string | undefined;
/**
* <p>The secret key used to sign requests.</p>
*/
SecretAccessKey: string | undefined;
/**
* <p>The date when the access key was created.</p>
*/
CreateDate?: Date;
}
export namespace AccessKey {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AccessKey): any => ({
...obj,
...(obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }),
});
}
/**
* <p>Contains information about the last time an Amazon Web Services access key was used since IAM began
* tracking this information on April 22, 2015.</p>
* <p>This data type is used as a response element in the <a>GetAccessKeyLastUsed</a> operation.</p>
*/
export interface AccessKeyLastUsed {
/**
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time
* format</a>, when the access key was most recently used. This field is null in the
* following situations:</p>
* <ul>
* <li>
* <p>The user does not have an access key.</p>
* </li>
* <li>
* <p>An access key exists but has not been used since IAM began tracking this
* information.</p>
* </li>
* <li>
* <p>There is no sign-in data associated with the user.</p>
* </li>
* </ul>
*/
LastUsedDate: Date | undefined;
/**
* <p>The name of the Amazon Web Services service with which this access key was most recently used. The
* value of this field is "N/A" in the following situations:</p>
* <ul>
* <li>
* <p>The user does not have an access key.</p>
* </li>
* <li>
* <p>An access key exists but has not been used since IAM started tracking this
* information.</p>
* </li>
* <li>
* <p>There is no sign-in data associated with the user.</p>
* </li>
* </ul>
*/
ServiceName: string | undefined;
/**
* <p>The Amazon Web Services Region where this access key was most recently used. The value for this field
* is "N/A" in the following situations:</p>
* <ul>
* <li>
* <p>The user does not have an access key.</p>
* </li>
* <li>
* <p>An access key exists but has not been used since IAM began tracking this
* information.</p>
* </li>
* <li>
* <p>There is no sign-in data associated with the user.</p>
* </li>
* </ul>
* <p>For more information about Amazon Web Services Regions, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html">Regions and endpoints</a> in the Amazon Web Services
* General Reference.</p>
*/
Region: string | undefined;
}
export namespace AccessKeyLastUsed {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AccessKeyLastUsed): any => ({
...obj,
});
}
/**
* <p>Contains information about an Amazon Web Services access key, without its secret key.</p>
* <p>This data type is used as a response element in the <a>ListAccessKeys</a>
* operation.</p>
*/
export interface AccessKeyMetadata {
/**
* <p>The name of the IAM user that the key is associated with.</p>
*/
UserName?: string;
/**
* <p>The ID for this access key.</p>
*/
AccessKeyId?: string;
/**
* <p>The status of the access key. <code>Active</code> means that the key is valid for API
* calls; <code>Inactive</code> means it is not.</p>
*/
Status?: StatusType | string;
/**
* <p>The date when the access key was created.</p>
*/
CreateDate?: Date;
}
export namespace AccessKeyMetadata {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AccessKeyMetadata): any => ({
...obj,
});
}
export interface AddClientIDToOpenIDConnectProviderRequest {
/**
* <p>The Amazon Resource Name (ARN) of the IAM OpenID Connect (OIDC) provider resource to
* add the client ID to. You can get a list of OIDC provider ARNs by using the <a>ListOpenIDConnectProviders</a> operation.</p>
*/
OpenIDConnectProviderArn: string | undefined;
/**
* <p>The client ID (also known as audience) to add to the IAM OpenID Connect provider
* resource.</p>
*/
ClientID: string | undefined;
}
export namespace AddClientIDToOpenIDConnectProviderRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AddClientIDToOpenIDConnectProviderRequest): any => ({
...obj,
});
}
/**
* <p>The request was rejected because an invalid or out-of-range value was supplied for an
* input parameter.</p>
*/
export class InvalidInputException extends __BaseException {
readonly name: "InvalidInputException" = "InvalidInputException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>) {
super({
name: "InvalidInputException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidInputException.prototype);
}
}
/**
* <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services
* account limits. The error message describes the limit exceeded.</p>
*/
export class LimitExceededException extends __BaseException {
readonly name: "LimitExceededException" = "LimitExceededException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>) {
super({
name: "LimitExceededException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, LimitExceededException.prototype);
}
}
/**
* <p>The request was rejected because it referenced a resource entity that does not exist. The
* error message describes the resource.</p>
*/
export class NoSuchEntityException extends __BaseException {
readonly name: "NoSuchEntityException" = "NoSuchEntityException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<NoSuchEntityException, __BaseException>) {
super({
name: "NoSuchEntityException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, NoSuchEntityException.prototype);
}
}
/**
* <p>The request processing has failed because of an unknown error, exception or
* failure.</p>
*/
export class ServiceFailureException extends __BaseException {
readonly name: "ServiceFailureException" = "ServiceFailureException";
readonly $fault: "server" = "server";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ServiceFailureException, __BaseException>) {
super({
name: "ServiceFailureException",
$fault: "server",
...opts,
});
Object.setPrototypeOf(this, ServiceFailureException.prototype);
}
}
export interface AddRoleToInstanceProfileRequest {
/**
* <p>The name of the instance profile to update.</p>
* <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric
* characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
*/
InstanceProfileName: string | undefined;
/**
* <p>The name of the role to add.</p>
* <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric
* characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
*/
RoleName: string | undefined;
}
export namespace AddRoleToInstanceProfileRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AddRoleToInstanceProfileRequest): any => ({
...obj,
});
}
/**
* <p>The request was rejected because it attempted to create a resource that already
* exists.</p>
*/
export class EntityAlreadyExistsException extends __BaseException {
readonly name: "EntityAlreadyExistsException" = "EntityAlreadyExistsException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<EntityAlreadyExistsException, __BaseException>) {
super({
name: "EntityAlreadyExistsException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, EntityAlreadyExistsException.prototype);
}
}
/**
* <p>The request was rejected because only the service that depends on the service-linked role
* can modify or delete the role on your behalf. The error message includes the name of the
* service that depends on this service-linked role. You must request the change through that
* service.</p>
*/
export class UnmodifiableEntityException extends __BaseException {
readonly name: "UnmodifiableEntityException" = "UnmodifiableEntityException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<UnmodifiableEntityException, __BaseException>) {
super({
name: "UnmodifiableEntityException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, UnmodifiableEntityException.prototype);
}
}
export interface AddUserToGroupRequest {
/**
* <p>The name of the group to update.</p>
* <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric
* characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
*/
GroupName: string | undefined;
/**
* <p>The name of the user to add.</p>
* <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric
* characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
*/
UserName: string | undefined;
}
export namespace AddUserToGroupRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AddUserToGroupRequest): any => ({
...obj,
});
}
export type AssignmentStatusType = "Any" | "Assigned" | "Unassigned";
export enum PermissionsBoundaryAttachmentType {
Policy = "PermissionsBoundaryPolicy",
}
/**
* <p>Contains information about an attached permissions boundary.</p>
* <p>An attached permissions boundary is a managed policy that has been attached to a user or
* role to set the permissions boundary.</p>
* <p>For more information about permissions boundaries, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html">Permissions boundaries for IAM
* identities </a> in the <i>IAM User Guide</i>.</p>
*/
export interface AttachedPermissionsBoundary {
/**
* <p> The permissions boundary usage type that indicates what type of IAM resource is used
* as the permissions boundary for an entity. This data type can only have a value of
* <code>Policy</code>.</p>
*/
PermissionsBoundaryType?: PermissionsBoundaryAttachmentType | string;
/**
* <p> The ARN of the policy used to set the permissions boundary for the user or role.</p>
*/
PermissionsBoundaryArn?: string;
}
export namespace AttachedPermissionsBoundary {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AttachedPermissionsBoundary): any => ({
...obj,
});
}
/**
* <p>Contains information about an attached policy.</p>
* <p>An attached policy is a managed policy that has been attached to a user, group, or role.
* This data type is used as a response element in the <a>ListAttachedGroupPolicies</a>, <a>ListAttachedRolePolicies</a>, <a>ListAttachedUserPolicies</a>, and <a>GetAccountAuthorizationDetails</a> operations. </p>
* <p>For more information about managed policies, refer to <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html">Managed policies and inline
* policies</a> in the <i>IAM User Guide</i>. </p>
*/
export interface AttachedPolicy {
/**
* <p>The friendly name of the attached policy.</p>
*/
PolicyName?: string;
/**
* <p>The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web Services resources.</p>
* <p>For more information about ARNs, go to <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in
* the <i>Amazon Web Services General Reference</i>. </p>
*/
PolicyArn?: string;
}
export namespace AttachedPolicy {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AttachedPolicy): any => ({
...obj,
});
}
export interface AttachGroupPolicyRequest {
/**
* <p>The name (friendly name, not ARN) of the group to attach the policy to.</p>
* <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric
* characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
*/
GroupName: string | undefined;
/**
* <p>The Amazon Resource Name (ARN) of the IAM policy you want to attach.</p>
* <p>For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
*/
PolicyArn: string | undefined;
}
export namespace AttachGroupPolicyRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AttachGroupPolicyRequest): any => ({
...obj,
});
}
/**
* <p>The request failed because Amazon Web Services service role policies can only be attached to the
* service-linked role for that service.</p>
*/
export class PolicyNotAttachableException extends __BaseException {
readonly name: "PolicyNotAttachableException" = "PolicyNotAttachableException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<PolicyNotAttachableException, __BaseException>) {
super({
name: "PolicyNotAttachableException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, PolicyNotAttachableException.prototype);
}
}
export interface AttachRolePolicyRequest {
/**
* <p>The name (friendly name, not ARN) of the role to attach the policy to.</p>
* <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric
* characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
*/
RoleName: string | undefined;
/**
* <p>The Amazon Resource Name (ARN) of the IAM policy you want to attach.</p>
* <p>For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
*/
PolicyArn: string | undefined;
}
export namespace AttachRolePolicyRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AttachRolePolicyRequest): any => ({
...obj,
});
}
export interface AttachUserPolicyRequest {
/**
* <p>The name (friendly name, not ARN) of the IAM user to attach the policy to.</p>
* <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric
* characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
*/
UserName: string | undefined;
/**
* <p>The Amazon Resource Name (ARN) of the IAM policy you want to attach.</p>
* <p>For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
*/
PolicyArn: string | undefined;
}
export namespace AttachUserPolicyRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AttachUserPolicyRequest): any => ({
...obj,
});
}
export interface ChangePasswordRequest {
/**
* <p>The IAM user's current password.</p>
*/
OldPassword: string | undefined;
/**
* <p>The new password. The new password must conform to the Amazon Web Services account's password
* policy, if one exists.</p>
* <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a>
* that is used to validate this parameter is a string of characters. That string can include almost any printable
* ASCII character from the space (<code>\u0020</code>) through the end of the ASCII character range (<code>\u00FF</code>).
* You can also include the tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>)
* characters. Any of these characters are valid in a password. However, many tools, such
* as the Amazon Web Services Management Console, might restrict the ability to type certain characters because they have
* special meaning within that tool.</p>
*/
NewPassword: string | undefined;
}
export namespace ChangePasswordRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: ChangePasswordRequest): any => ({
...obj,
...(obj.OldPassword && { OldPassword: SENSITIVE_STRING }),
...(obj.NewPassword && { NewPassword: SENSITIVE_STRING }),
});
}
/**
* <p>The request was rejected because it referenced an entity that is temporarily unmodifiable,
* such as a user name that was deleted and then recreated. The error indicates that the request
* is likely to succeed if you try again after waiting several minutes. The error message
* describes the entity.</p>
*/
export class EntityTemporarilyUnmodifiableException extends __BaseException {
readonly name: "EntityTemporarilyUnmodifiableException" = "EntityTemporarilyUnmodifiableException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<EntityTemporarilyUnmodifiableException, __BaseException>) {
super({
name: "EntityTemporarilyUnmodifiableException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, EntityTemporarilyUnmodifiableException.prototype);
}
}
/**
* <p>The request was rejected because the type of user for the transaction was
* incorrect.</p>
*/
export class InvalidUserTypeException extends __BaseException {
readonly name: "InvalidUserTypeException" = "InvalidUserTypeException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InvalidUserTypeException, __BaseException>) {
super({
name: "InvalidUserTypeException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidUserTypeException.prototype);
}
}
/**
* <p>The request was rejected because the provided password did not meet the requirements
* imposed by the account password policy.</p>
*/
export class PasswordPolicyViolationException extends __BaseException {
readonly name: "PasswordPolicyViolationException" = "PasswordPolicyViolationException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<PasswordPolicyViolationException, __BaseException>) {
super({
name: "PasswordPolicyViolationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, PasswordPolicyViolationException.prototype);
}
}
export interface CreateAccessKeyRequest {
/**
* <p>The name of the IAM user that the new key will belong to.</p>
* <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric
* characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
*/
UserName?: string;
}
export namespace CreateAccessKeyRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: CreateAccessKeyRequest): any => ({
...obj,
});
}
/**
* <p>Contains the response to a successful <a>CreateAccessKey</a> request.
* </p>
*/
export interface CreateAccessKeyResponse {
/**
* <p>A structure with details about the access key.</p>
*/
AccessKey: AccessKey | undefined;
}
export namespace CreateAccessKeyResponse {
/**
* @internal
*/
export const filterSensitiveLog = (obj: CreateAccessKeyResponse): any => ({
...obj,
...(obj.AccessKey && { AccessKey: AccessKey.filterSensitiveLog(obj.AccessKey) }),
});
}
export interface CreateAccountAliasRequest {
/**
* <p>The account alias to create.</p>
* <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of
* lowercase letters, digits, and dashes. You cannot start or finish with a dash, nor can you have
* two dashes in a row.</p>
*/
AccountAlias: string | undefined;
}
export namespace CreateAccountAliasRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: CreateAccountAliasRequest): any => ({
...obj,
});
}
export interface CreateGroupRequest {
/**
* <p> The path to the group. For more information about paths, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
* identifiers</a> in the <i>IAM User Guide</i>.</p>
* <p>This parameter is optional. If it is not included, it defaults to a slash (/).</p>
* <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting
* of either a forward slash (/) by itself or a string that must begin and end with forward slashes.
* In addition, it can contain any ASCII character from the ! (<code>\u0021</code>) through the DEL character (<code>\u007F</code>), including
* most punctuation characters, digits, and upper and lowercased letters.</p>
*/
Path?: string;
/**
* <p>The name of the group to create. Do not include the path in this value.</p>
* <p>IAM user, group, role, and policy names must be unique within the account. Names are
* not distinguished by case. For example, you cannot create resources named both
* "MyResource" and "myresource".</p>
*/
GroupName: string | undefined;
}
export namespace CreateGroupRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: CreateGroupRequest): any => ({
...obj,
});
}
/**
* <p>Contains information about an IAM group entity.</p>
* <p>This data type is used as a response element in the following operations:</p>
* <ul>
* <li>
* <p>
* <a>CreateGroup</a>
* </p>
* </li>
* <li>
* <p>
* <a>GetGroup</a>
* </p>
* </li>
* <li>
* <p>
* <a>ListGroups</a>
* </p>
* </li>
* </ul>
*/
export interface Group {
/**
* <p>The path to the group. For more information about paths, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM identifiers</a> in the
* <i>IAM User Guide</i>. </p>
*/
Path: string | undefined;
/**
* <p>The friendly name that identifies the group.</p>
*/
GroupName: string | undefined;
/**
* <p> The stable and unique string identifying the group. For more information about IDs, see
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
* identifiers</a> in the <i>IAM User Guide</i>. </p>
*/
GroupId: string | undefined;
/**
* <p> The Amazon Resource Name (ARN) specifying the group. For more information about ARNs
* and how to use them in policies, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM identifiers</a> in the
* <i>IAM User Guide</i>. </p>
*/
Arn: string | undefined;
/**
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time
* format</a>, when the group was created.</p>
*/
CreateDate: Date | undefined;
}
export namespace Group {
/**
* @internal
*/
export const filterSensitiveLog = (obj: Group): any => ({
...obj,
});
}
/**
* <p>Contains the response to a successful <a>CreateGroup</a> request. </p>
*/
export interface CreateGroupResponse {
/**
* <p>A structure containing details about the new group.</p>
*/
Group: Group | undefined;
}
export namespace CreateGroupResponse {
/**
* @internal
*/
export const filterSensitiveLog = (obj: CreateGroupResponse): any => ({
...obj,
});
}
/**
* <p>The request was rejected because multiple requests to change this object were submitted
* simultaneously. Wait a few minutes and submit your request again.</p>
*/
export class ConcurrentModificationException extends __BaseException {
readonly name: "ConcurrentModificationException" = "ConcurrentModificationException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>) {
super({
name: "ConcurrentModificationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
}
}
/**
* <p>A structure that represents user-provided metadata that can be associated with an IAM
* resource. For more information about tagging, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM resources</a> in the
* <i>IAM User Guide</i>.</p>
*/
export interface Tag {
/**
* <p>The key name that can be used to look up or retrieve the associated value. For example,
* <code>Department</code> or <code>Cost Center</code> are common choices.</p>
*/
Key: string | undefined;
/**
* <p>The value associated with this tag. For example, tags with a key name of
* <code>Department</code> could have values such as <code>Human Resources</code>,
* <code>Accounting</code>, and <code>Support</code>. Tags with a key name of <code>Cost
* Center</code> might have values that consist of the number associated with the different
* cost centers in your company. Typically, many resources have tags with the same key name but
* with different values.</p>
* <note>
* <p>Amazon Web Services always interprets the tag <code>Value</code> as a single string. If you need to
* store an array, you can store comma-separated values in the string. However, you must
* interpret the value in your code.</p>
* </note>
*/
Value: string | undefined;
}
export namespace Tag {
/**
* @internal
*/
export const filterSensitiveLog = (obj: Tag): any => ({
...obj,
});
}
export interface CreateInstanceProfileRequest {
/**
* <p>The name of the instance profile to create.</p>
* <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric
* characters with no spaces. You can also include any of the following characters: _+=,.@-</p>
*/
InstanceProfileName: string | undefined;
/**
* <p> The path to the instance profile. For more information about paths, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM
* Identifiers</a> in the <i>IAM User Guide</i>.</p>
* <p>This parameter is optional. If it is not included, it defaults to a slash (/).</p>
* <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting
* of either a forward slash (/) by itself or a string that must begin and end with forward slashes.
* In addition, it can contain any ASCII character from the ! (<code>\u0021</code>) through the DEL character (<code>\u007F</code>), including
* most punctuation characters, digits, and upper and lowercased letters.</p>
*/
Path?: string;
/**
* <p>A list of tags that you want to attach to the newly created IAM instance profile.
* Each tag consists of a key name and an associated value. For more information about tagging, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM resources</a> in the
* <i>IAM User Guide</i>.</p>
* <note>
* <p>If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request
* fails and the resource is not created.</p>
* </note>
*/
Tags?: Tag[];
}
export namespace CreateInstanceProfileRequest {
/**
* @internal
*/
export const filterSensitiveLog = (obj: CreateInstanceProfileRequest): any => ({
...obj,
});
}
/**
* <p>Contains information about the last time that an IAM role was used. This includes the
* date and time and the Region in which the role was last used. Activity is only reported for
* the trailing 400 days. This period can be shorter if your Region began supporting these
* features within the last year. The role might have been used more than 400 days ago. For
* more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period">Regions where data is tracked</a> in the <i>IAM User
* Guide</i>.</p>
* <p>This data type is returned as a response element in the <a>GetRole</a> and
* <a>GetAccountAuthorizationDetails</a> operations.</p>
*/
export interface RoleLastUsed {
/**
* <p>The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time
* format</a> that the role was last used.</p>
* <p>This field is null if the role has not been used within the IAM tracking period. For
* more information about the tracking period, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period">Regions where data is tracked</a> in the <i>IAM User Guide</i>.
* </p>
*/
LastUsedDate?: Date;
/**
* <p>The name of the Amazon Web Services Region in which the role was last used.</p>
*/
Region?: string;
}
export namespace RoleLastUsed {
/**
* @internal
*/
export const filterSensitiveLog = (obj: RoleLastUsed): any => ({
...obj,
});
}
/**
* <p>Contains information about an IAM role. This structure is returned as a response
* element in several API operations that interact with roles.</p>
*/
export interface Role {
/**
* <p> The path to the role. For more information about paths, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html">IAM identifiers</a> in the
* <i>IAM User Guide</i>. </p>
*/
Path: string | undefined;
/**
* <p>The friendly name that identifies the role.</p>
*/
RoleName: string | undefined;
/**
* <p> The stable and unique string identifying the role. For more information about IDs, see