@aws-sdk/client-iam 3.186.0 → 3.190.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.
Files changed (208) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-cjs/models/models_0.js +66 -6
  3. package/dist-cjs/protocols/Aws_query.js +8 -4
  4. package/dist-es/IAM.js +634 -641
  5. package/dist-es/IAMClient.js +22 -28
  6. package/dist-es/commands/AddClientIDToOpenIDConnectProviderCommand.js +22 -29
  7. package/dist-es/commands/AddRoleToInstanceProfileCommand.js +22 -29
  8. package/dist-es/commands/AddUserToGroupCommand.js +22 -29
  9. package/dist-es/commands/AttachGroupPolicyCommand.js +22 -29
  10. package/dist-es/commands/AttachRolePolicyCommand.js +22 -29
  11. package/dist-es/commands/AttachUserPolicyCommand.js +22 -29
  12. package/dist-es/commands/ChangePasswordCommand.js +22 -29
  13. package/dist-es/commands/CreateAccessKeyCommand.js +21 -28
  14. package/dist-es/commands/CreateAccountAliasCommand.js +22 -29
  15. package/dist-es/commands/CreateGroupCommand.js +21 -28
  16. package/dist-es/commands/CreateInstanceProfileCommand.js +21 -28
  17. package/dist-es/commands/CreateLoginProfileCommand.js +21 -28
  18. package/dist-es/commands/CreateOpenIDConnectProviderCommand.js +21 -28
  19. package/dist-es/commands/CreatePolicyCommand.js +21 -28
  20. package/dist-es/commands/CreatePolicyVersionCommand.js +21 -28
  21. package/dist-es/commands/CreateRoleCommand.js +21 -28
  22. package/dist-es/commands/CreateSAMLProviderCommand.js +21 -28
  23. package/dist-es/commands/CreateServiceLinkedRoleCommand.js +21 -28
  24. package/dist-es/commands/CreateServiceSpecificCredentialCommand.js +21 -28
  25. package/dist-es/commands/CreateUserCommand.js +21 -28
  26. package/dist-es/commands/CreateVirtualMFADeviceCommand.js +21 -28
  27. package/dist-es/commands/DeactivateMFADeviceCommand.js +22 -29
  28. package/dist-es/commands/DeleteAccessKeyCommand.js +22 -29
  29. package/dist-es/commands/DeleteAccountAliasCommand.js +22 -29
  30. package/dist-es/commands/DeleteAccountPasswordPolicyCommand.js +23 -30
  31. package/dist-es/commands/DeleteGroupCommand.js +22 -29
  32. package/dist-es/commands/DeleteGroupPolicyCommand.js +22 -29
  33. package/dist-es/commands/DeleteInstanceProfileCommand.js +22 -29
  34. package/dist-es/commands/DeleteLoginProfileCommand.js +22 -29
  35. package/dist-es/commands/DeleteOpenIDConnectProviderCommand.js +22 -29
  36. package/dist-es/commands/DeletePolicyCommand.js +22 -29
  37. package/dist-es/commands/DeletePolicyVersionCommand.js +22 -29
  38. package/dist-es/commands/DeleteRoleCommand.js +22 -29
  39. package/dist-es/commands/DeleteRolePermissionsBoundaryCommand.js +22 -29
  40. package/dist-es/commands/DeleteRolePolicyCommand.js +22 -29
  41. package/dist-es/commands/DeleteSAMLProviderCommand.js +22 -29
  42. package/dist-es/commands/DeleteSSHPublicKeyCommand.js +22 -29
  43. package/dist-es/commands/DeleteServerCertificateCommand.js +22 -29
  44. package/dist-es/commands/DeleteServiceLinkedRoleCommand.js +21 -28
  45. package/dist-es/commands/DeleteServiceSpecificCredentialCommand.js +22 -29
  46. package/dist-es/commands/DeleteSigningCertificateCommand.js +22 -29
  47. package/dist-es/commands/DeleteUserCommand.js +22 -29
  48. package/dist-es/commands/DeleteUserPermissionsBoundaryCommand.js +22 -29
  49. package/dist-es/commands/DeleteUserPolicyCommand.js +22 -29
  50. package/dist-es/commands/DeleteVirtualMFADeviceCommand.js +22 -29
  51. package/dist-es/commands/DetachGroupPolicyCommand.js +22 -29
  52. package/dist-es/commands/DetachRolePolicyCommand.js +22 -29
  53. package/dist-es/commands/DetachUserPolicyCommand.js +22 -29
  54. package/dist-es/commands/EnableMFADeviceCommand.js +22 -29
  55. package/dist-es/commands/GenerateCredentialReportCommand.js +22 -29
  56. package/dist-es/commands/GenerateOrganizationsAccessReportCommand.js +21 -28
  57. package/dist-es/commands/GenerateServiceLastAccessedDetailsCommand.js +21 -28
  58. package/dist-es/commands/GetAccessKeyLastUsedCommand.js +21 -28
  59. package/dist-es/commands/GetAccountAuthorizationDetailsCommand.js +21 -28
  60. package/dist-es/commands/GetAccountPasswordPolicyCommand.js +22 -29
  61. package/dist-es/commands/GetAccountSummaryCommand.js +22 -29
  62. package/dist-es/commands/GetContextKeysForCustomPolicyCommand.js +21 -28
  63. package/dist-es/commands/GetContextKeysForPrincipalPolicyCommand.js +21 -28
  64. package/dist-es/commands/GetCredentialReportCommand.js +22 -29
  65. package/dist-es/commands/GetGroupCommand.js +21 -28
  66. package/dist-es/commands/GetGroupPolicyCommand.js +21 -28
  67. package/dist-es/commands/GetInstanceProfileCommand.js +21 -28
  68. package/dist-es/commands/GetLoginProfileCommand.js +21 -28
  69. package/dist-es/commands/GetOpenIDConnectProviderCommand.js +21 -28
  70. package/dist-es/commands/GetOrganizationsAccessReportCommand.js +21 -28
  71. package/dist-es/commands/GetPolicyCommand.js +21 -28
  72. package/dist-es/commands/GetPolicyVersionCommand.js +21 -28
  73. package/dist-es/commands/GetRoleCommand.js +21 -28
  74. package/dist-es/commands/GetRolePolicyCommand.js +21 -28
  75. package/dist-es/commands/GetSAMLProviderCommand.js +21 -28
  76. package/dist-es/commands/GetSSHPublicKeyCommand.js +21 -28
  77. package/dist-es/commands/GetServerCertificateCommand.js +21 -28
  78. package/dist-es/commands/GetServiceLastAccessedDetailsCommand.js +21 -28
  79. package/dist-es/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.js +21 -28
  80. package/dist-es/commands/GetServiceLinkedRoleDeletionStatusCommand.js +21 -28
  81. package/dist-es/commands/GetUserCommand.js +21 -28
  82. package/dist-es/commands/GetUserPolicyCommand.js +21 -28
  83. package/dist-es/commands/ListAccessKeysCommand.js +21 -28
  84. package/dist-es/commands/ListAccountAliasesCommand.js +21 -28
  85. package/dist-es/commands/ListAttachedGroupPoliciesCommand.js +21 -28
  86. package/dist-es/commands/ListAttachedRolePoliciesCommand.js +21 -28
  87. package/dist-es/commands/ListAttachedUserPoliciesCommand.js +21 -28
  88. package/dist-es/commands/ListEntitiesForPolicyCommand.js +21 -28
  89. package/dist-es/commands/ListGroupPoliciesCommand.js +21 -28
  90. package/dist-es/commands/ListGroupsCommand.js +21 -28
  91. package/dist-es/commands/ListGroupsForUserCommand.js +21 -28
  92. package/dist-es/commands/ListInstanceProfileTagsCommand.js +21 -28
  93. package/dist-es/commands/ListInstanceProfilesCommand.js +21 -28
  94. package/dist-es/commands/ListInstanceProfilesForRoleCommand.js +21 -28
  95. package/dist-es/commands/ListMFADeviceTagsCommand.js +21 -28
  96. package/dist-es/commands/ListMFADevicesCommand.js +21 -28
  97. package/dist-es/commands/ListOpenIDConnectProviderTagsCommand.js +21 -28
  98. package/dist-es/commands/ListOpenIDConnectProvidersCommand.js +21 -28
  99. package/dist-es/commands/ListPoliciesCommand.js +21 -28
  100. package/dist-es/commands/ListPoliciesGrantingServiceAccessCommand.js +21 -28
  101. package/dist-es/commands/ListPolicyTagsCommand.js +21 -28
  102. package/dist-es/commands/ListPolicyVersionsCommand.js +21 -28
  103. package/dist-es/commands/ListRolePoliciesCommand.js +21 -28
  104. package/dist-es/commands/ListRoleTagsCommand.js +21 -28
  105. package/dist-es/commands/ListRolesCommand.js +21 -28
  106. package/dist-es/commands/ListSAMLProviderTagsCommand.js +21 -28
  107. package/dist-es/commands/ListSAMLProvidersCommand.js +21 -28
  108. package/dist-es/commands/ListSSHPublicKeysCommand.js +21 -28
  109. package/dist-es/commands/ListServerCertificateTagsCommand.js +21 -28
  110. package/dist-es/commands/ListServerCertificatesCommand.js +21 -28
  111. package/dist-es/commands/ListServiceSpecificCredentialsCommand.js +21 -28
  112. package/dist-es/commands/ListSigningCertificatesCommand.js +21 -28
  113. package/dist-es/commands/ListUserPoliciesCommand.js +21 -28
  114. package/dist-es/commands/ListUserTagsCommand.js +21 -28
  115. package/dist-es/commands/ListUsersCommand.js +21 -28
  116. package/dist-es/commands/ListVirtualMFADevicesCommand.js +21 -28
  117. package/dist-es/commands/PutGroupPolicyCommand.js +22 -29
  118. package/dist-es/commands/PutRolePermissionsBoundaryCommand.js +22 -29
  119. package/dist-es/commands/PutRolePolicyCommand.js +22 -29
  120. package/dist-es/commands/PutUserPermissionsBoundaryCommand.js +22 -29
  121. package/dist-es/commands/PutUserPolicyCommand.js +22 -29
  122. package/dist-es/commands/RemoveClientIDFromOpenIDConnectProviderCommand.js +22 -29
  123. package/dist-es/commands/RemoveRoleFromInstanceProfileCommand.js +22 -29
  124. package/dist-es/commands/RemoveUserFromGroupCommand.js +22 -29
  125. package/dist-es/commands/ResetServiceSpecificCredentialCommand.js +21 -28
  126. package/dist-es/commands/ResyncMFADeviceCommand.js +22 -29
  127. package/dist-es/commands/SetDefaultPolicyVersionCommand.js +22 -29
  128. package/dist-es/commands/SetSecurityTokenServicePreferencesCommand.js +22 -29
  129. package/dist-es/commands/SimulateCustomPolicyCommand.js +21 -28
  130. package/dist-es/commands/SimulatePrincipalPolicyCommand.js +21 -28
  131. package/dist-es/commands/TagInstanceProfileCommand.js +22 -29
  132. package/dist-es/commands/TagMFADeviceCommand.js +22 -29
  133. package/dist-es/commands/TagOpenIDConnectProviderCommand.js +22 -29
  134. package/dist-es/commands/TagPolicyCommand.js +22 -29
  135. package/dist-es/commands/TagRoleCommand.js +22 -29
  136. package/dist-es/commands/TagSAMLProviderCommand.js +22 -29
  137. package/dist-es/commands/TagServerCertificateCommand.js +22 -29
  138. package/dist-es/commands/TagUserCommand.js +22 -29
  139. package/dist-es/commands/UntagInstanceProfileCommand.js +22 -29
  140. package/dist-es/commands/UntagMFADeviceCommand.js +22 -29
  141. package/dist-es/commands/UntagOpenIDConnectProviderCommand.js +22 -29
  142. package/dist-es/commands/UntagPolicyCommand.js +22 -29
  143. package/dist-es/commands/UntagRoleCommand.js +22 -29
  144. package/dist-es/commands/UntagSAMLProviderCommand.js +22 -29
  145. package/dist-es/commands/UntagServerCertificateCommand.js +22 -29
  146. package/dist-es/commands/UntagUserCommand.js +22 -29
  147. package/dist-es/commands/UpdateAccessKeyCommand.js +22 -29
  148. package/dist-es/commands/UpdateAccountPasswordPolicyCommand.js +22 -29
  149. package/dist-es/commands/UpdateAssumeRolePolicyCommand.js +22 -29
  150. package/dist-es/commands/UpdateGroupCommand.js +22 -29
  151. package/dist-es/commands/UpdateLoginProfileCommand.js +22 -29
  152. package/dist-es/commands/UpdateOpenIDConnectProviderThumbprintCommand.js +22 -29
  153. package/dist-es/commands/UpdateRoleCommand.js +21 -28
  154. package/dist-es/commands/UpdateRoleDescriptionCommand.js +21 -28
  155. package/dist-es/commands/UpdateSAMLProviderCommand.js +21 -28
  156. package/dist-es/commands/UpdateSSHPublicKeyCommand.js +22 -29
  157. package/dist-es/commands/UpdateServerCertificateCommand.js +22 -29
  158. package/dist-es/commands/UpdateServiceSpecificCredentialCommand.js +22 -29
  159. package/dist-es/commands/UpdateSigningCertificateCommand.js +22 -29
  160. package/dist-es/commands/UpdateUserCommand.js +22 -29
  161. package/dist-es/commands/UploadSSHPublicKeyCommand.js +21 -28
  162. package/dist-es/commands/UploadServerCertificateCommand.js +21 -28
  163. package/dist-es/commands/UploadSigningCertificateCommand.js +21 -28
  164. package/dist-es/endpoints.js +8 -8
  165. package/dist-es/models/IAMServiceException.js +5 -10
  166. package/dist-es/models/models_0.js +1086 -497
  167. package/dist-es/models/models_1.js +152 -95
  168. package/dist-es/pagination/GetAccountAuthorizationDetailsPaginator.js +25 -68
  169. package/dist-es/pagination/GetGroupPaginator.js +25 -68
  170. package/dist-es/pagination/ListAccessKeysPaginator.js +25 -68
  171. package/dist-es/pagination/ListAccountAliasesPaginator.js +25 -68
  172. package/dist-es/pagination/ListAttachedGroupPoliciesPaginator.js +25 -68
  173. package/dist-es/pagination/ListAttachedRolePoliciesPaginator.js +25 -68
  174. package/dist-es/pagination/ListAttachedUserPoliciesPaginator.js +25 -68
  175. package/dist-es/pagination/ListEntitiesForPolicyPaginator.js +25 -68
  176. package/dist-es/pagination/ListGroupPoliciesPaginator.js +25 -68
  177. package/dist-es/pagination/ListGroupsForUserPaginator.js +25 -68
  178. package/dist-es/pagination/ListGroupsPaginator.js +25 -68
  179. package/dist-es/pagination/ListInstanceProfilesForRolePaginator.js +25 -68
  180. package/dist-es/pagination/ListInstanceProfilesPaginator.js +25 -68
  181. package/dist-es/pagination/ListMFADevicesPaginator.js +25 -68
  182. package/dist-es/pagination/ListPoliciesPaginator.js +25 -68
  183. package/dist-es/pagination/ListPolicyVersionsPaginator.js +25 -68
  184. package/dist-es/pagination/ListRolePoliciesPaginator.js +25 -68
  185. package/dist-es/pagination/ListRolesPaginator.js +25 -68
  186. package/dist-es/pagination/ListSSHPublicKeysPaginator.js +25 -68
  187. package/dist-es/pagination/ListServerCertificatesPaginator.js +25 -68
  188. package/dist-es/pagination/ListSigningCertificatesPaginator.js +25 -68
  189. package/dist-es/pagination/ListUserPoliciesPaginator.js +25 -68
  190. package/dist-es/pagination/ListUserTagsPaginator.js +25 -68
  191. package/dist-es/pagination/ListUsersPaginator.js +25 -68
  192. package/dist-es/pagination/ListVirtualMFADevicesPaginator.js +25 -68
  193. package/dist-es/pagination/SimulateCustomPolicyPaginator.js +25 -68
  194. package/dist-es/pagination/SimulatePrincipalPolicyPaginator.js +25 -68
  195. package/dist-es/protocols/Aws_query.js +9075 -12381
  196. package/dist-es/runtimeConfig.browser.js +26 -12
  197. package/dist-es/runtimeConfig.js +30 -12
  198. package/dist-es/runtimeConfig.native.js +8 -5
  199. package/dist-es/runtimeConfig.shared.js +8 -11
  200. package/dist-es/waiters/waitForInstanceProfileExists.js +23 -42
  201. package/dist-es/waiters/waitForPolicyExists.js +23 -42
  202. package/dist-es/waiters/waitForRoleExists.js +23 -42
  203. package/dist-es/waiters/waitForUserExists.js +23 -42
  204. package/dist-types/IAM.d.ts +4 -4
  205. package/dist-types/commands/DeleteLoginProfileCommand.d.ts +4 -4
  206. package/dist-types/models/models_0.d.ts +65 -19
  207. package/dist-types/ts3.4/models/models_0.d.ts +53 -35
  208. package/package.json +35 -36
@@ -28,7 +28,7 @@ export interface AccessDetail {
28
28
  /**
29
29
  * <p>The Region where the last service access attempt occurred.</p>
30
30
  * <p>This field is null if no principals in the reported Organizations entity attempted to access the
31
- * 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>
31
+ * service within the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">tracking period</a>.</p>
32
32
  */
33
33
  Region?: string;
34
34
  /**
@@ -36,7 +36,7 @@ export interface AccessDetail {
36
36
  * authenticated principal last attempted to access the service. Amazon Web Services does not report
37
37
  * unauthenticated requests.</p>
38
38
  * <p>This field is null if no principals (IAM users, IAM roles, or root users) in the
39
- * 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>
39
+ * 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">tracking period</a>.</p>
40
40
  */
41
41
  EntityPath?: string;
42
42
  /**
@@ -44,16 +44,19 @@ export interface AccessDetail {
44
44
  * format</a>, when an authenticated principal most recently attempted to access the
45
45
  * service. Amazon Web Services does not report unauthenticated requests.</p>
46
46
  * <p>This field is null if no principals in the reported Organizations entity attempted to access the
47
- * 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>
47
+ * service within the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">tracking period</a>.</p>
48
48
  */
49
49
  LastAuthenticatedTime?: Date;
50
50
  /**
51
51
  * <p>The number of accounts with authenticated principals (root users, IAM users, and IAM
52
- * roles) that attempted to access the service in the reporting period.</p>
52
+ * roles) that attempted to access the service in the tracking period.</p>
53
53
  */
54
54
  TotalAuthenticatedEntities?: number;
55
55
  }
56
- export declare type StatusType = "Active" | "Inactive";
56
+ export declare enum StatusType {
57
+ Active = "Active",
58
+ Inactive = "Inactive"
59
+ }
57
60
  /**
58
61
  * <p>Contains information about an Amazon Web Services access key.</p>
59
62
  * <p> This data type is used as a response element in the <a>CreateAccessKey</a>
@@ -286,7 +289,11 @@ export interface AddUserToGroupRequest {
286
289
  */
287
290
  UserName: string | undefined;
288
291
  }
289
- export declare type AssignmentStatusType = "Any" | "Assigned" | "Unassigned";
292
+ export declare enum AssignmentStatusType {
293
+ Any = "Any",
294
+ Assigned = "Assigned",
295
+ Unassigned = "Unassigned"
296
+ }
290
297
  export declare enum PermissionsBoundaryAttachmentType {
291
298
  Policy = "PermissionsBoundaryPolicy"
292
299
  }
@@ -2451,7 +2458,34 @@ export interface GetAccountPasswordPolicyResponse {
2451
2458
  */
2452
2459
  PasswordPolicy: PasswordPolicy | undefined;
2453
2460
  }
2454
- export declare type SummaryKeyType = "AccessKeysPerUserQuota" | "AccountAccessKeysPresent" | "AccountMFAEnabled" | "AccountSigningCertificatesPresent" | "AttachedPoliciesPerGroupQuota" | "AttachedPoliciesPerRoleQuota" | "AttachedPoliciesPerUserQuota" | "GlobalEndpointTokenVersion" | "GroupPolicySizeQuota" | "Groups" | "GroupsPerUserQuota" | "GroupsQuota" | "MFADevices" | "MFADevicesInUse" | "Policies" | "PoliciesQuota" | "PolicySizeQuota" | "PolicyVersionsInUse" | "PolicyVersionsInUseQuota" | "ServerCertificates" | "ServerCertificatesQuota" | "SigningCertificatesPerUserQuota" | "UserPolicySizeQuota" | "Users" | "UsersQuota" | "VersionsPerPolicyQuota";
2461
+ export declare enum SummaryKeyType {
2462
+ AccessKeysPerUserQuota = "AccessKeysPerUserQuota",
2463
+ AccountAccessKeysPresent = "AccountAccessKeysPresent",
2464
+ AccountMFAEnabled = "AccountMFAEnabled",
2465
+ AccountSigningCertificatesPresent = "AccountSigningCertificatesPresent",
2466
+ AttachedPoliciesPerGroupQuota = "AttachedPoliciesPerGroupQuota",
2467
+ AttachedPoliciesPerRoleQuota = "AttachedPoliciesPerRoleQuota",
2468
+ AttachedPoliciesPerUserQuota = "AttachedPoliciesPerUserQuota",
2469
+ GlobalEndpointTokenVersion = "GlobalEndpointTokenVersion",
2470
+ GroupPolicySizeQuota = "GroupPolicySizeQuota",
2471
+ Groups = "Groups",
2472
+ GroupsPerUserQuota = "GroupsPerUserQuota",
2473
+ GroupsQuota = "GroupsQuota",
2474
+ MFADevices = "MFADevices",
2475
+ MFADevicesInUse = "MFADevicesInUse",
2476
+ Policies = "Policies",
2477
+ PoliciesQuota = "PoliciesQuota",
2478
+ PolicySizeQuota = "PolicySizeQuota",
2479
+ PolicyVersionsInUse = "PolicyVersionsInUse",
2480
+ PolicyVersionsInUseQuota = "PolicyVersionsInUseQuota",
2481
+ ServerCertificates = "ServerCertificates",
2482
+ ServerCertificatesQuota = "ServerCertificatesQuota",
2483
+ SigningCertificatesPerUserQuota = "SigningCertificatesPerUserQuota",
2484
+ UserPolicySizeQuota = "UserPolicySizeQuota",
2485
+ Users = "Users",
2486
+ UsersQuota = "UsersQuota",
2487
+ VersionsPerPolicyQuota = "VersionsPerPolicyQuota"
2488
+ }
2455
2489
  /**
2456
2490
  * <p>Contains the response to a successful <a>GetAccountSummary</a> request.
2457
2491
  * </p>
@@ -2567,7 +2601,9 @@ export declare class CredentialReportNotReadyException extends __BaseException {
2567
2601
  */
2568
2602
  constructor(opts: __ExceptionOptionType<CredentialReportNotReadyException, __BaseException>);
2569
2603
  }
2570
- export declare type ReportFormatType = "text/csv";
2604
+ export declare enum ReportFormatType {
2605
+ text_csv = "text/csv"
2606
+ }
2571
2607
  /**
2572
2608
  * <p>Contains the response to a successful <a>GetCredentialReport</a> request.
2573
2609
  * </p>
@@ -2803,7 +2839,11 @@ export interface ErrorDetails {
2803
2839
  */
2804
2840
  Code: string | undefined;
2805
2841
  }
2806
- export declare type JobStatusType = "COMPLETED" | "FAILED" | "IN_PROGRESS";
2842
+ export declare enum JobStatusType {
2843
+ COMPLETED = "COMPLETED",
2844
+ FAILED = "FAILED",
2845
+ IN_PROGRESS = "IN_PROGRESS"
2846
+ }
2807
2847
  export interface GetOrganizationsAccessReportResponse {
2808
2848
  /**
2809
2849
  * <p>The status of the job.</p>
@@ -3110,14 +3150,14 @@ export interface TrackedActionLastAccessed {
3110
3150
  * format</a>, when an authenticated entity most recently attempted to access the
3111
3151
  * tracked service. Amazon Web Services does not report unauthenticated requests.</p>
3112
3152
  * <p>This field is null if no IAM entities attempted to access the service within the
3113
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">reporting period</a>.</p>
3153
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">tracking period</a>.</p>
3114
3154
  */
3115
3155
  LastAccessedTime?: Date;
3116
3156
  /**
3117
3157
  * <p>The Region from which the authenticated entity (user or role) last attempted to access
3118
3158
  * the tracked action. Amazon Web Services does not report unauthenticated requests.</p>
3119
3159
  * <p>This field is null if no IAM entities attempted to access the service within the
3120
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">reporting period</a>.</p>
3160
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">tracking period</a>.</p>
3121
3161
  */
3122
3162
  LastAccessedRegion?: string;
3123
3163
  }
@@ -3135,7 +3175,7 @@ export interface ServiceLastAccessed {
3135
3175
  * format</a>, when an authenticated entity most recently attempted to access the
3136
3176
  * service. Amazon Web Services does not report unauthenticated requests.</p>
3137
3177
  * <p>This field is null if no IAM entities attempted to access the service within the
3138
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">reporting period</a>.</p>
3178
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">tracking period</a>.</p>
3139
3179
  */
3140
3180
  LastAuthenticated?: Date;
3141
3181
  /**
@@ -3152,27 +3192,27 @@ export interface ServiceLastAccessed {
3152
3192
  * <p>The ARN of the authenticated entity (user or role) that last attempted to access the
3153
3193
  * service. Amazon Web Services does not report unauthenticated requests.</p>
3154
3194
  * <p>This field is null if no IAM entities attempted to access the service within the
3155
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">reporting period</a>.</p>
3195
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">tracking period</a>.</p>
3156
3196
  */
3157
3197
  LastAuthenticatedEntity?: string;
3158
3198
  /**
3159
3199
  * <p>The Region from which the authenticated entity (user or role) last attempted to access
3160
3200
  * the service. Amazon Web Services does not report unauthenticated requests.</p>
3161
3201
  * <p>This field is null if no IAM entities attempted to access the service within the
3162
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">reporting period</a>.</p>
3202
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">tracking period</a>.</p>
3163
3203
  */
3164
3204
  LastAuthenticatedRegion?: string;
3165
3205
  /**
3166
3206
  * <p>The total number of authenticated principals (root user, IAM users, or IAM roles)
3167
3207
  * that have attempted to access the service.</p>
3168
- * <p>This field is null if no principals 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>
3208
+ * <p>This field is null if no principals 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">tracking period</a>.</p>
3169
3209
  */
3170
3210
  TotalAuthenticatedEntities?: number;
3171
3211
  /**
3172
3212
  * <p>An object that contains details about the most recent attempt to access a tracked action
3173
3213
  * within the service.</p>
3174
3214
  * <p>This field is null if there no tracked actions or if the principal did not use the
3175
- * tracked actions 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>. This field is also null if the report was generated at the
3215
+ * tracked actions within the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">tracking period</a>. This field is also null if the report was generated at the
3176
3216
  * service level and not the action level. For more information, see the
3177
3217
  * <code>Granularity</code> field in <a>GenerateServiceLastAccessedDetails</a>.</p>
3178
3218
  */
@@ -3312,7 +3352,7 @@ export interface EntityDetails {
3312
3352
  * format</a>, when the authenticated entity last attempted to access Amazon Web Services. Amazon Web Services does
3313
3353
  * not report unauthenticated requests.</p>
3314
3354
  * <p>This field is null if no IAM entities attempted to access the service within the
3315
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">reporting period</a>.</p>
3355
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period">tracking period</a>.</p>
3316
3356
  */
3317
3357
  LastAuthenticated?: Date;
3318
3358
  }
@@ -3416,7 +3456,10 @@ export interface GetServiceLinkedRoleDeletionStatusResponse {
3416
3456
  */
3417
3457
  Reason?: DeletionTaskFailureReasonType;
3418
3458
  }
3419
- export declare type EncodingType = "PEM" | "SSH";
3459
+ export declare enum EncodingType {
3460
+ PEM = "PEM",
3461
+ SSH = "SSH"
3462
+ }
3420
3463
  export interface GetSSHPublicKeyRequest {
3421
3464
  /**
3422
3465
  * <p>The name of the IAM user associated with the SSH public key.</p>
@@ -3839,7 +3882,10 @@ export interface ListAttachedUserPoliciesResponse {
3839
3882
  */
3840
3883
  Marker?: string;
3841
3884
  }
3842
- export declare type PolicyUsageType = "PermissionsBoundary" | "PermissionsPolicy";
3885
+ export declare enum PolicyUsageType {
3886
+ PermissionsBoundary = "PermissionsBoundary",
3887
+ PermissionsPolicy = "PermissionsPolicy"
3888
+ }
3843
3889
  export interface ListEntitiesForPolicyRequest {
3844
3890
  /**
3845
3891
  * <p>The Amazon Resource Name (ARN) of the IAM policy for which you want the
@@ -12,7 +12,10 @@ export interface AccessDetail {
12
12
  LastAuthenticatedTime?: Date;
13
13
  TotalAuthenticatedEntities?: number;
14
14
  }
15
- export declare type StatusType = "Active" | "Inactive";
15
+ export declare enum StatusType {
16
+ Active = "Active",
17
+ Inactive = "Inactive",
18
+ }
16
19
  export interface AccessKey {
17
20
  UserName: string | undefined;
18
21
  AccessKeyId: string | undefined;
@@ -85,7 +88,11 @@ export interface AddUserToGroupRequest {
85
88
  GroupName: string | undefined;
86
89
  UserName: string | undefined;
87
90
  }
88
- export declare type AssignmentStatusType = "Any" | "Assigned" | "Unassigned";
91
+ export declare enum AssignmentStatusType {
92
+ Any = "Any",
93
+ Assigned = "Assigned",
94
+ Unassigned = "Unassigned",
95
+ }
89
96
  export declare enum PermissionsBoundaryAttachmentType {
90
97
  Policy = "PermissionsBoundaryPolicy",
91
98
  }
@@ -620,33 +627,34 @@ export interface PasswordPolicy {
620
627
  export interface GetAccountPasswordPolicyResponse {
621
628
  PasswordPolicy: PasswordPolicy | undefined;
622
629
  }
623
- export declare type SummaryKeyType =
624
- | "AccessKeysPerUserQuota"
625
- | "AccountAccessKeysPresent"
626
- | "AccountMFAEnabled"
627
- | "AccountSigningCertificatesPresent"
628
- | "AttachedPoliciesPerGroupQuota"
629
- | "AttachedPoliciesPerRoleQuota"
630
- | "AttachedPoliciesPerUserQuota"
631
- | "GlobalEndpointTokenVersion"
632
- | "GroupPolicySizeQuota"
633
- | "Groups"
634
- | "GroupsPerUserQuota"
635
- | "GroupsQuota"
636
- | "MFADevices"
637
- | "MFADevicesInUse"
638
- | "Policies"
639
- | "PoliciesQuota"
640
- | "PolicySizeQuota"
641
- | "PolicyVersionsInUse"
642
- | "PolicyVersionsInUseQuota"
643
- | "ServerCertificates"
644
- | "ServerCertificatesQuota"
645
- | "SigningCertificatesPerUserQuota"
646
- | "UserPolicySizeQuota"
647
- | "Users"
648
- | "UsersQuota"
649
- | "VersionsPerPolicyQuota";
630
+ export declare enum SummaryKeyType {
631
+ AccessKeysPerUserQuota = "AccessKeysPerUserQuota",
632
+ AccountAccessKeysPresent = "AccountAccessKeysPresent",
633
+ AccountMFAEnabled = "AccountMFAEnabled",
634
+ AccountSigningCertificatesPresent = "AccountSigningCertificatesPresent",
635
+ AttachedPoliciesPerGroupQuota = "AttachedPoliciesPerGroupQuota",
636
+ AttachedPoliciesPerRoleQuota = "AttachedPoliciesPerRoleQuota",
637
+ AttachedPoliciesPerUserQuota = "AttachedPoliciesPerUserQuota",
638
+ GlobalEndpointTokenVersion = "GlobalEndpointTokenVersion",
639
+ GroupPolicySizeQuota = "GroupPolicySizeQuota",
640
+ Groups = "Groups",
641
+ GroupsPerUserQuota = "GroupsPerUserQuota",
642
+ GroupsQuota = "GroupsQuota",
643
+ MFADevices = "MFADevices",
644
+ MFADevicesInUse = "MFADevicesInUse",
645
+ Policies = "Policies",
646
+ PoliciesQuota = "PoliciesQuota",
647
+ PolicySizeQuota = "PolicySizeQuota",
648
+ PolicyVersionsInUse = "PolicyVersionsInUse",
649
+ PolicyVersionsInUseQuota = "PolicyVersionsInUseQuota",
650
+ ServerCertificates = "ServerCertificates",
651
+ ServerCertificatesQuota = "ServerCertificatesQuota",
652
+ SigningCertificatesPerUserQuota = "SigningCertificatesPerUserQuota",
653
+ UserPolicySizeQuota = "UserPolicySizeQuota",
654
+ Users = "Users",
655
+ UsersQuota = "UsersQuota",
656
+ VersionsPerPolicyQuota = "VersionsPerPolicyQuota",
657
+ }
650
658
  export interface GetAccountSummaryResponse {
651
659
  SummaryMap?: Record<string, number>;
652
660
  }
@@ -690,7 +698,9 @@ export declare class CredentialReportNotReadyException extends __BaseException {
690
698
  >
691
699
  );
692
700
  }
693
- export declare type ReportFormatType = "text/csv";
701
+ export declare enum ReportFormatType {
702
+ text_csv = "text/csv",
703
+ }
694
704
  export interface GetCredentialReportResponse {
695
705
  Content?: Uint8Array;
696
706
  ReportFormat?: ReportFormatType | string;
@@ -754,7 +764,11 @@ export interface ErrorDetails {
754
764
  Message: string | undefined;
755
765
  Code: string | undefined;
756
766
  }
757
- export declare type JobStatusType = "COMPLETED" | "FAILED" | "IN_PROGRESS";
767
+ export declare enum JobStatusType {
768
+ COMPLETED = "COMPLETED",
769
+ FAILED = "FAILED",
770
+ IN_PROGRESS = "IN_PROGRESS",
771
+ }
758
772
  export interface GetOrganizationsAccessReportResponse {
759
773
  JobStatus: JobStatusType | string | undefined;
760
774
  JobCreationDate: Date | undefined;
@@ -905,7 +919,10 @@ export interface GetServiceLinkedRoleDeletionStatusResponse {
905
919
  Status: DeletionTaskStatusType | string | undefined;
906
920
  Reason?: DeletionTaskFailureReasonType;
907
921
  }
908
- export declare type EncodingType = "PEM" | "SSH";
922
+ export declare enum EncodingType {
923
+ PEM = "PEM",
924
+ SSH = "SSH",
925
+ }
909
926
  export interface GetSSHPublicKeyRequest {
910
927
  UserName: string | undefined;
911
928
  SSHPublicKeyId: string | undefined;
@@ -999,9 +1016,10 @@ export interface ListAttachedUserPoliciesResponse {
999
1016
  IsTruncated?: boolean;
1000
1017
  Marker?: string;
1001
1018
  }
1002
- export declare type PolicyUsageType =
1003
- | "PermissionsBoundary"
1004
- | "PermissionsPolicy";
1019
+ export declare enum PolicyUsageType {
1020
+ PermissionsBoundary = "PermissionsBoundary",
1021
+ PermissionsPolicy = "PermissionsPolicy",
1022
+ }
1005
1023
  export interface ListEntitiesForPolicyRequest {
1006
1024
  PolicyArn: string | undefined;
1007
1025
  EntityFilter?: EntityType | string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iam",
3
3
  "description": "AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native",
4
- "version": "3.186.0",
4
+ "version": "3.190.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,44 +19,43 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.186.0",
23
- "@aws-sdk/config-resolver": "3.186.0",
24
- "@aws-sdk/credential-provider-node": "3.186.0",
25
- "@aws-sdk/fetch-http-handler": "3.186.0",
26
- "@aws-sdk/hash-node": "3.186.0",
27
- "@aws-sdk/invalid-dependency": "3.186.0",
28
- "@aws-sdk/middleware-content-length": "3.186.0",
29
- "@aws-sdk/middleware-host-header": "3.186.0",
30
- "@aws-sdk/middleware-logger": "3.186.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.186.0",
32
- "@aws-sdk/middleware-retry": "3.186.0",
33
- "@aws-sdk/middleware-serde": "3.186.0",
34
- "@aws-sdk/middleware-signing": "3.186.0",
35
- "@aws-sdk/middleware-stack": "3.186.0",
36
- "@aws-sdk/middleware-user-agent": "3.186.0",
37
- "@aws-sdk/node-config-provider": "3.186.0",
38
- "@aws-sdk/node-http-handler": "3.186.0",
39
- "@aws-sdk/protocol-http": "3.186.0",
40
- "@aws-sdk/smithy-client": "3.186.0",
41
- "@aws-sdk/types": "3.186.0",
42
- "@aws-sdk/url-parser": "3.186.0",
43
- "@aws-sdk/util-base64-browser": "3.186.0",
44
- "@aws-sdk/util-base64-node": "3.186.0",
45
- "@aws-sdk/util-body-length-browser": "3.186.0",
46
- "@aws-sdk/util-body-length-node": "3.186.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.186.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.186.0",
49
- "@aws-sdk/util-user-agent-browser": "3.186.0",
50
- "@aws-sdk/util-user-agent-node": "3.186.0",
51
- "@aws-sdk/util-utf8-browser": "3.186.0",
52
- "@aws-sdk/util-utf8-node": "3.186.0",
53
- "@aws-sdk/util-waiter": "3.186.0",
54
- "entities": "2.2.0",
55
- "fast-xml-parser": "3.19.0",
22
+ "@aws-sdk/client-sts": "3.190.0",
23
+ "@aws-sdk/config-resolver": "3.190.0",
24
+ "@aws-sdk/credential-provider-node": "3.190.0",
25
+ "@aws-sdk/fetch-http-handler": "3.190.0",
26
+ "@aws-sdk/hash-node": "3.190.0",
27
+ "@aws-sdk/invalid-dependency": "3.190.0",
28
+ "@aws-sdk/middleware-content-length": "3.190.0",
29
+ "@aws-sdk/middleware-host-header": "3.190.0",
30
+ "@aws-sdk/middleware-logger": "3.190.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.190.0",
32
+ "@aws-sdk/middleware-retry": "3.190.0",
33
+ "@aws-sdk/middleware-serde": "3.190.0",
34
+ "@aws-sdk/middleware-signing": "3.190.0",
35
+ "@aws-sdk/middleware-stack": "3.190.0",
36
+ "@aws-sdk/middleware-user-agent": "3.190.0",
37
+ "@aws-sdk/node-config-provider": "3.190.0",
38
+ "@aws-sdk/node-http-handler": "3.190.0",
39
+ "@aws-sdk/protocol-http": "3.190.0",
40
+ "@aws-sdk/smithy-client": "3.190.0",
41
+ "@aws-sdk/types": "3.190.0",
42
+ "@aws-sdk/url-parser": "3.190.0",
43
+ "@aws-sdk/util-base64-browser": "3.188.0",
44
+ "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-body-length-browser": "3.188.0",
46
+ "@aws-sdk/util-body-length-node": "3.188.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.190.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.190.0",
49
+ "@aws-sdk/util-user-agent-browser": "3.190.0",
50
+ "@aws-sdk/util-user-agent-node": "3.190.0",
51
+ "@aws-sdk/util-utf8-browser": "3.188.0",
52
+ "@aws-sdk/util-utf8-node": "3.188.0",
53
+ "@aws-sdk/util-waiter": "3.190.0",
54
+ "fast-xml-parser": "4.0.11",
56
55
  "tslib": "^2.3.1"
57
56
  },
58
57
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.186.0",
58
+ "@aws-sdk/service-client-documentation-generator": "3.188.0",
60
59
  "@tsconfig/recommended": "1.0.1",
61
60
  "@types/node": "^12.7.5",
62
61
  "concurrently": "7.0.0",