@aws-sdk/client-iam 3.301.0 → 3.306.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,11 +2,16 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
2
2
  import { IAMServiceException as __BaseException } from "./IAMServiceException";
3
3
  /**
4
4
  * @public
5
+ * @enum
5
6
  */
6
- export declare enum AccessAdvisorUsageGranularityType {
7
- ACTION_LEVEL = "ACTION_LEVEL",
8
- SERVICE_LEVEL = "SERVICE_LEVEL"
9
- }
7
+ export declare const AccessAdvisorUsageGranularityType: {
8
+ readonly ACTION_LEVEL: "ACTION_LEVEL";
9
+ readonly SERVICE_LEVEL: "SERVICE_LEVEL";
10
+ };
11
+ /**
12
+ * @public
13
+ */
14
+ export type AccessAdvisorUsageGranularityType = (typeof AccessAdvisorUsageGranularityType)[keyof typeof AccessAdvisorUsageGranularityType];
10
15
  /**
11
16
  * @public
12
17
  * <p>An object that contains details about when a principal in the reported Organizations entity
@@ -59,11 +64,16 @@ export interface AccessDetail {
59
64
  }
60
65
  /**
61
66
  * @public
67
+ * @enum
62
68
  */
63
- export declare enum StatusType {
64
- Active = "Active",
65
- Inactive = "Inactive"
66
- }
69
+ export declare const StatusType: {
70
+ readonly Active: "Active";
71
+ readonly Inactive: "Inactive";
72
+ };
73
+ /**
74
+ * @public
75
+ */
76
+ export type StatusType = (typeof StatusType)[keyof typeof StatusType];
67
77
  /**
68
78
  * @public
69
79
  * <p>Contains information about an Amazon Web Services access key.</p>
@@ -316,18 +326,28 @@ export interface AddUserToGroupRequest {
316
326
  }
317
327
  /**
318
328
  * @public
329
+ * @enum
319
330
  */
320
- export declare enum AssignmentStatusType {
321
- Any = "Any",
322
- Assigned = "Assigned",
323
- Unassigned = "Unassigned"
324
- }
331
+ export declare const AssignmentStatusType: {
332
+ readonly Any: "Any";
333
+ readonly Assigned: "Assigned";
334
+ readonly Unassigned: "Unassigned";
335
+ };
325
336
  /**
326
337
  * @public
327
338
  */
328
- export declare enum PermissionsBoundaryAttachmentType {
329
- Policy = "PermissionsBoundaryPolicy"
330
- }
339
+ export type AssignmentStatusType = (typeof AssignmentStatusType)[keyof typeof AssignmentStatusType];
340
+ /**
341
+ * @public
342
+ * @enum
343
+ */
344
+ export declare const PermissionsBoundaryAttachmentType: {
345
+ readonly Policy: "PermissionsBoundaryPolicy";
346
+ };
347
+ /**
348
+ * @public
349
+ */
350
+ export type PermissionsBoundaryAttachmentType = (typeof PermissionsBoundaryAttachmentType)[keyof typeof PermissionsBoundaryAttachmentType];
331
351
  /**
332
352
  * @public
333
353
  * <p>Contains information about an attached permissions boundary.</p>
@@ -2181,12 +2201,17 @@ export declare class InvalidAuthenticationCodeException extends __BaseException
2181
2201
  }
2182
2202
  /**
2183
2203
  * @public
2204
+ * @enum
2184
2205
  */
2185
- export declare enum ReportStateType {
2186
- COMPLETE = "COMPLETE",
2187
- INPROGRESS = "INPROGRESS",
2188
- STARTED = "STARTED"
2189
- }
2206
+ export declare const ReportStateType: {
2207
+ readonly COMPLETE: "COMPLETE";
2208
+ readonly INPROGRESS: "INPROGRESS";
2209
+ readonly STARTED: "STARTED";
2210
+ };
2211
+ /**
2212
+ * @public
2213
+ */
2214
+ export type ReportStateType = (typeof ReportStateType)[keyof typeof ReportStateType];
2190
2215
  /**
2191
2216
  * @public
2192
2217
  * <p>Contains the response to a successful <a>GenerateCredentialReport</a>
@@ -2306,14 +2331,19 @@ export interface GetAccessKeyLastUsedResponse {
2306
2331
  }
2307
2332
  /**
2308
2333
  * @public
2334
+ * @enum
2309
2335
  */
2310
- export declare enum EntityType {
2311
- AWSManagedPolicy = "AWSManagedPolicy",
2312
- Group = "Group",
2313
- LocalManagedPolicy = "LocalManagedPolicy",
2314
- Role = "Role",
2315
- User = "User"
2316
- }
2336
+ export declare const EntityType: {
2337
+ readonly AWSManagedPolicy: "AWSManagedPolicy";
2338
+ readonly Group: "Group";
2339
+ readonly LocalManagedPolicy: "LocalManagedPolicy";
2340
+ readonly Role: "Role";
2341
+ readonly User: "User";
2342
+ };
2343
+ /**
2344
+ * @public
2345
+ */
2346
+ export type EntityType = (typeof EntityType)[keyof typeof EntityType];
2317
2347
  /**
2318
2348
  * @public
2319
2349
  */
@@ -2719,35 +2749,40 @@ export interface GetAccountPasswordPolicyResponse {
2719
2749
  }
2720
2750
  /**
2721
2751
  * @public
2752
+ * @enum
2722
2753
  */
2723
- export declare enum SummaryKeyType {
2724
- AccessKeysPerUserQuota = "AccessKeysPerUserQuota",
2725
- AccountAccessKeysPresent = "AccountAccessKeysPresent",
2726
- AccountMFAEnabled = "AccountMFAEnabled",
2727
- AccountSigningCertificatesPresent = "AccountSigningCertificatesPresent",
2728
- AttachedPoliciesPerGroupQuota = "AttachedPoliciesPerGroupQuota",
2729
- AttachedPoliciesPerRoleQuota = "AttachedPoliciesPerRoleQuota",
2730
- AttachedPoliciesPerUserQuota = "AttachedPoliciesPerUserQuota",
2731
- GlobalEndpointTokenVersion = "GlobalEndpointTokenVersion",
2732
- GroupPolicySizeQuota = "GroupPolicySizeQuota",
2733
- Groups = "Groups",
2734
- GroupsPerUserQuota = "GroupsPerUserQuota",
2735
- GroupsQuota = "GroupsQuota",
2736
- MFADevices = "MFADevices",
2737
- MFADevicesInUse = "MFADevicesInUse",
2738
- Policies = "Policies",
2739
- PoliciesQuota = "PoliciesQuota",
2740
- PolicySizeQuota = "PolicySizeQuota",
2741
- PolicyVersionsInUse = "PolicyVersionsInUse",
2742
- PolicyVersionsInUseQuota = "PolicyVersionsInUseQuota",
2743
- ServerCertificates = "ServerCertificates",
2744
- ServerCertificatesQuota = "ServerCertificatesQuota",
2745
- SigningCertificatesPerUserQuota = "SigningCertificatesPerUserQuota",
2746
- UserPolicySizeQuota = "UserPolicySizeQuota",
2747
- Users = "Users",
2748
- UsersQuota = "UsersQuota",
2749
- VersionsPerPolicyQuota = "VersionsPerPolicyQuota"
2750
- }
2754
+ export declare const SummaryKeyType: {
2755
+ readonly AccessKeysPerUserQuota: "AccessKeysPerUserQuota";
2756
+ readonly AccountAccessKeysPresent: "AccountAccessKeysPresent";
2757
+ readonly AccountMFAEnabled: "AccountMFAEnabled";
2758
+ readonly AccountSigningCertificatesPresent: "AccountSigningCertificatesPresent";
2759
+ readonly AttachedPoliciesPerGroupQuota: "AttachedPoliciesPerGroupQuota";
2760
+ readonly AttachedPoliciesPerRoleQuota: "AttachedPoliciesPerRoleQuota";
2761
+ readonly AttachedPoliciesPerUserQuota: "AttachedPoliciesPerUserQuota";
2762
+ readonly GlobalEndpointTokenVersion: "GlobalEndpointTokenVersion";
2763
+ readonly GroupPolicySizeQuota: "GroupPolicySizeQuota";
2764
+ readonly Groups: "Groups";
2765
+ readonly GroupsPerUserQuota: "GroupsPerUserQuota";
2766
+ readonly GroupsQuota: "GroupsQuota";
2767
+ readonly MFADevices: "MFADevices";
2768
+ readonly MFADevicesInUse: "MFADevicesInUse";
2769
+ readonly Policies: "Policies";
2770
+ readonly PoliciesQuota: "PoliciesQuota";
2771
+ readonly PolicySizeQuota: "PolicySizeQuota";
2772
+ readonly PolicyVersionsInUse: "PolicyVersionsInUse";
2773
+ readonly PolicyVersionsInUseQuota: "PolicyVersionsInUseQuota";
2774
+ readonly ServerCertificates: "ServerCertificates";
2775
+ readonly ServerCertificatesQuota: "ServerCertificatesQuota";
2776
+ readonly SigningCertificatesPerUserQuota: "SigningCertificatesPerUserQuota";
2777
+ readonly UserPolicySizeQuota: "UserPolicySizeQuota";
2778
+ readonly Users: "Users";
2779
+ readonly UsersQuota: "UsersQuota";
2780
+ readonly VersionsPerPolicyQuota: "VersionsPerPolicyQuota";
2781
+ };
2782
+ /**
2783
+ * @public
2784
+ */
2785
+ export type SummaryKeyType = (typeof SummaryKeyType)[keyof typeof SummaryKeyType];
2751
2786
  /**
2752
2787
  * @public
2753
2788
  * <p>Contains the response to a successful <a>GetAccountSummary</a> request.
@@ -2876,10 +2911,15 @@ export declare class CredentialReportNotReadyException extends __BaseException {
2876
2911
  }
2877
2912
  /**
2878
2913
  * @public
2914
+ * @enum
2879
2915
  */
2880
- export declare enum ReportFormatType {
2881
- text_csv = "text/csv"
2882
- }
2916
+ export declare const ReportFormatType: {
2917
+ readonly text_csv: "text/csv";
2918
+ };
2919
+ /**
2920
+ * @public
2921
+ */
2922
+ export type ReportFormatType = (typeof ReportFormatType)[keyof typeof ReportFormatType];
2883
2923
  /**
2884
2924
  * @public
2885
2925
  * <p>Contains the response to a successful <a>GetCredentialReport</a> request.
@@ -3087,13 +3127,18 @@ export interface GetOpenIDConnectProviderResponse {
3087
3127
  }
3088
3128
  /**
3089
3129
  * @public
3130
+ * @enum
3090
3131
  */
3091
- export declare enum SortKeyType {
3092
- LAST_AUTHENTICATED_TIME_ASCENDING = "LAST_AUTHENTICATED_TIME_ASCENDING",
3093
- LAST_AUTHENTICATED_TIME_DESCENDING = "LAST_AUTHENTICATED_TIME_DESCENDING",
3094
- SERVICE_NAMESPACE_ASCENDING = "SERVICE_NAMESPACE_ASCENDING",
3095
- SERVICE_NAMESPACE_DESCENDING = "SERVICE_NAMESPACE_DESCENDING"
3096
- }
3132
+ export declare const SortKeyType: {
3133
+ readonly LAST_AUTHENTICATED_TIME_ASCENDING: "LAST_AUTHENTICATED_TIME_ASCENDING";
3134
+ readonly LAST_AUTHENTICATED_TIME_DESCENDING: "LAST_AUTHENTICATED_TIME_DESCENDING";
3135
+ readonly SERVICE_NAMESPACE_ASCENDING: "SERVICE_NAMESPACE_ASCENDING";
3136
+ readonly SERVICE_NAMESPACE_DESCENDING: "SERVICE_NAMESPACE_DESCENDING";
3137
+ };
3138
+ /**
3139
+ * @public
3140
+ */
3141
+ export type SortKeyType = (typeof SortKeyType)[keyof typeof SortKeyType];
3097
3142
  /**
3098
3143
  * @public
3099
3144
  */
@@ -3144,12 +3189,17 @@ export interface ErrorDetails {
3144
3189
  }
3145
3190
  /**
3146
3191
  * @public
3192
+ * @enum
3147
3193
  */
3148
- export declare enum JobStatusType {
3149
- COMPLETED = "COMPLETED",
3150
- FAILED = "FAILED",
3151
- IN_PROGRESS = "IN_PROGRESS"
3152
- }
3194
+ export declare const JobStatusType: {
3195
+ readonly COMPLETED: "COMPLETED";
3196
+ readonly FAILED: "FAILED";
3197
+ readonly IN_PROGRESS: "IN_PROGRESS";
3198
+ };
3199
+ /**
3200
+ * @public
3201
+ */
3202
+ export type JobStatusType = (typeof JobStatusType)[keyof typeof JobStatusType];
3153
3203
  /**
3154
3204
  * @public
3155
3205
  */
@@ -3650,12 +3700,17 @@ export interface GetServiceLastAccessedDetailsWithEntitiesRequest {
3650
3700
  }
3651
3701
  /**
3652
3702
  * @public
3703
+ * @enum
3653
3704
  */
3654
- export declare enum PolicyOwnerEntityType {
3655
- GROUP = "GROUP",
3656
- ROLE = "ROLE",
3657
- USER = "USER"
3658
- }
3705
+ export declare const PolicyOwnerEntityType: {
3706
+ readonly GROUP: "GROUP";
3707
+ readonly ROLE: "ROLE";
3708
+ readonly USER: "USER";
3709
+ };
3710
+ /**
3711
+ * @public
3712
+ */
3713
+ export type PolicyOwnerEntityType = (typeof PolicyOwnerEntityType)[keyof typeof PolicyOwnerEntityType];
3659
3714
  /**
3660
3715
  * @public
3661
3716
  * <p>Contains details about the specified entity (user or role).</p>
@@ -3801,13 +3856,18 @@ export interface DeletionTaskFailureReasonType {
3801
3856
  }
3802
3857
  /**
3803
3858
  * @public
3859
+ * @enum
3804
3860
  */
3805
- export declare enum DeletionTaskStatusType {
3806
- FAILED = "FAILED",
3807
- IN_PROGRESS = "IN_PROGRESS",
3808
- NOT_STARTED = "NOT_STARTED",
3809
- SUCCEEDED = "SUCCEEDED"
3810
- }
3861
+ export declare const DeletionTaskStatusType: {
3862
+ readonly FAILED: "FAILED";
3863
+ readonly IN_PROGRESS: "IN_PROGRESS";
3864
+ readonly NOT_STARTED: "NOT_STARTED";
3865
+ readonly SUCCEEDED: "SUCCEEDED";
3866
+ };
3867
+ /**
3868
+ * @public
3869
+ */
3870
+ export type DeletionTaskStatusType = (typeof DeletionTaskStatusType)[keyof typeof DeletionTaskStatusType];
3811
3871
  /**
3812
3872
  * @public
3813
3873
  */
@@ -3823,11 +3883,16 @@ export interface GetServiceLinkedRoleDeletionStatusResponse {
3823
3883
  }
3824
3884
  /**
3825
3885
  * @public
3886
+ * @enum
3826
3887
  */
3827
- export declare enum EncodingType {
3828
- PEM = "PEM",
3829
- SSH = "SSH"
3830
- }
3888
+ export declare const EncodingType: {
3889
+ readonly PEM: "PEM";
3890
+ readonly SSH: "SSH";
3891
+ };
3892
+ /**
3893
+ * @public
3894
+ */
3895
+ export type EncodingType = (typeof EncodingType)[keyof typeof EncodingType];
3831
3896
  /**
3832
3897
  * @public
3833
3898
  */
@@ -4285,11 +4350,16 @@ export interface ListAttachedUserPoliciesResponse {
4285
4350
  }
4286
4351
  /**
4287
4352
  * @public
4353
+ * @enum
4288
4354
  */
4289
- export declare enum PolicyUsageType {
4290
- PermissionsBoundary = "PermissionsBoundary",
4291
- PermissionsPolicy = "PermissionsPolicy"
4292
- }
4355
+ export declare const PolicyUsageType: {
4356
+ readonly PermissionsBoundary: "PermissionsBoundary";
4357
+ readonly PermissionsPolicy: "PermissionsPolicy";
4358
+ };
4359
+ /**
4360
+ * @public
4361
+ */
4362
+ export type PolicyUsageType = (typeof PolicyUsageType)[keyof typeof PolicyUsageType];
4293
4363
  /**
4294
4364
  * @public
4295
4365
  */
@@ -4990,12 +5060,17 @@ export interface ListOpenIDConnectProviderTagsResponse {
4990
5060
  }
4991
5061
  /**
4992
5062
  * @public
5063
+ * @enum
4993
5064
  */
4994
- export declare enum PolicyScopeType {
4995
- AWS = "AWS",
4996
- All = "All",
4997
- Local = "Local"
4998
- }
5065
+ export declare const PolicyScopeType: {
5066
+ readonly AWS: "AWS";
5067
+ readonly All: "All";
5068
+ readonly Local: "Local";
5069
+ };
5070
+ /**
5071
+ * @public
5072
+ */
5073
+ export type PolicyScopeType = (typeof PolicyScopeType)[keyof typeof PolicyScopeType];
4999
5074
  /**
5000
5075
  * @public
5001
5076
  */
@@ -5108,11 +5183,16 @@ export interface ListPoliciesGrantingServiceAccessRequest {
5108
5183
  }
5109
5184
  /**
5110
5185
  * @public
5186
+ * @enum
5111
5187
  */
5112
- export declare enum PolicyType {
5113
- INLINE = "INLINE",
5114
- MANAGED = "MANAGED"
5115
- }
5188
+ export declare const PolicyType: {
5189
+ readonly INLINE: "INLINE";
5190
+ readonly MANAGED: "MANAGED";
5191
+ };
5192
+ /**
5193
+ * @public
5194
+ */
5195
+ export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
5116
5196
  /**
5117
5197
  * @public
5118
5198
  * <p>Contains details about the permissions policies that are attached to the specified
@@ -6428,11 +6508,16 @@ export interface SetDefaultPolicyVersionRequest {
6428
6508
  }
6429
6509
  /**
6430
6510
  * @public
6511
+ * @enum
6431
6512
  */
6432
- export declare enum GlobalEndpointTokenVersion {
6433
- v1Token = "v1Token",
6434
- v2Token = "v2Token"
6435
- }
6513
+ export declare const GlobalEndpointTokenVersion: {
6514
+ readonly v1Token: "v1Token";
6515
+ readonly v2Token: "v2Token";
6516
+ };
6517
+ /**
6518
+ * @public
6519
+ */
6520
+ export type GlobalEndpointTokenVersion = (typeof GlobalEndpointTokenVersion)[keyof typeof GlobalEndpointTokenVersion];
6436
6521
  /**
6437
6522
  * @public
6438
6523
  */
@@ -6463,21 +6548,26 @@ export declare class PolicyEvaluationException extends __BaseException {
6463
6548
  }
6464
6549
  /**
6465
6550
  * @public
6551
+ * @enum
6466
6552
  */
6467
- export declare enum ContextKeyTypeEnum {
6468
- BINARY = "binary",
6469
- BINARY_LIST = "binaryList",
6470
- BOOLEAN = "boolean",
6471
- BOOLEAN_LIST = "booleanList",
6472
- DATE = "date",
6473
- DATE_LIST = "dateList",
6474
- IP = "ip",
6475
- IP_LIST = "ipList",
6476
- NUMERIC = "numeric",
6477
- NUMERIC_LIST = "numericList",
6478
- STRING = "string",
6479
- STRING_LIST = "stringList"
6480
- }
6553
+ export declare const ContextKeyTypeEnum: {
6554
+ readonly BINARY: "binary";
6555
+ readonly BINARY_LIST: "binaryList";
6556
+ readonly BOOLEAN: "boolean";
6557
+ readonly BOOLEAN_LIST: "booleanList";
6558
+ readonly DATE: "date";
6559
+ readonly DATE_LIST: "dateList";
6560
+ readonly IP: "ip";
6561
+ readonly IP_LIST: "ipList";
6562
+ readonly NUMERIC: "numeric";
6563
+ readonly NUMERIC_LIST: "numericList";
6564
+ readonly STRING: "string";
6565
+ readonly STRING_LIST: "stringList";
6566
+ };
6567
+ /**
6568
+ * @public
6569
+ */
6570
+ export type ContextKeyTypeEnum = (typeof ContextKeyTypeEnum)[keyof typeof ContextKeyTypeEnum];
6481
6571
  /**
6482
6572
  * @public
6483
6573
  * <p>Contains information about a condition context key. It includes the name of the key and
@@ -6711,12 +6801,17 @@ export interface SimulateCustomPolicyRequest {
6711
6801
  }
6712
6802
  /**
6713
6803
  * @public
6804
+ * @enum
6714
6805
  */
6715
- export declare enum PolicyEvaluationDecisionType {
6716
- ALLOWED = "allowed",
6717
- EXPLICIT_DENY = "explicitDeny",
6718
- IMPLICIT_DENY = "implicitDeny"
6719
- }
6806
+ export declare const PolicyEvaluationDecisionType: {
6807
+ readonly ALLOWED: "allowed";
6808
+ readonly EXPLICIT_DENY: "explicitDeny";
6809
+ readonly IMPLICIT_DENY: "implicitDeny";
6810
+ };
6811
+ /**
6812
+ * @public
6813
+ */
6814
+ export type PolicyEvaluationDecisionType = (typeof PolicyEvaluationDecisionType)[keyof typeof PolicyEvaluationDecisionType];
6720
6815
  /**
6721
6816
  * @public
6722
6817
  * <p>Contains the row and column of a location of a <code>Statement</code> element in a
@@ -6737,16 +6832,21 @@ export interface Position {
6737
6832
  }
6738
6833
  /**
6739
6834
  * @public
6835
+ * @enum
6740
6836
  */
6741
- export declare enum PolicySourceType {
6742
- AWS_MANAGED = "aws-managed",
6743
- GROUP = "group",
6744
- NONE = "none",
6745
- RESOURCE = "resource",
6746
- ROLE = "role",
6747
- USER = "user",
6748
- USER_MANAGED = "user-managed"
6749
- }
6837
+ export declare const PolicySourceType: {
6838
+ readonly AWS_MANAGED: "aws-managed";
6839
+ readonly GROUP: "group";
6840
+ readonly NONE: "none";
6841
+ readonly RESOURCE: "resource";
6842
+ readonly ROLE: "role";
6843
+ readonly USER: "user";
6844
+ readonly USER_MANAGED: "user-managed";
6845
+ };
6846
+ /**
6847
+ * @public
6848
+ */
6849
+ export type PolicySourceType = (typeof PolicySourceType)[keyof typeof PolicySourceType];
6750
6850
  /**
6751
6851
  * @public
6752
6852
  * <p>Contains a reference to a <code>Statement</code> element in a policy document that