@aws-sdk/client-iam 3.186.0 → 3.188.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 +8 -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
@@ -1,103 +1,160 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { IAMServiceException as __BaseException } from "./IAMServiceException";
4
- var KeyPairMismatchException = (function (_super) {
5
- __extends(KeyPairMismatchException, _super);
6
- function KeyPairMismatchException(opts) {
7
- var _this = _super.call(this, __assign({ name: "KeyPairMismatchException", $fault: "client" }, opts)) || this;
8
- _this.name = "KeyPairMismatchException";
9
- _this.$fault = "client";
10
- Object.setPrototypeOf(_this, KeyPairMismatchException.prototype);
11
- return _this;
3
+ export class KeyPairMismatchException extends __BaseException {
4
+ constructor(opts) {
5
+ super({
6
+ name: "KeyPairMismatchException",
7
+ $fault: "client",
8
+ ...opts,
9
+ });
10
+ this.name = "KeyPairMismatchException";
11
+ this.$fault = "client";
12
+ Object.setPrototypeOf(this, KeyPairMismatchException.prototype);
12
13
  }
13
- return KeyPairMismatchException;
14
- }(__BaseException));
15
- export { KeyPairMismatchException };
16
- var MalformedCertificateException = (function (_super) {
17
- __extends(MalformedCertificateException, _super);
18
- function MalformedCertificateException(opts) {
19
- var _this = _super.call(this, __assign({ name: "MalformedCertificateException", $fault: "client" }, opts)) || this;
20
- _this.name = "MalformedCertificateException";
21
- _this.$fault = "client";
22
- Object.setPrototypeOf(_this, MalformedCertificateException.prototype);
23
- return _this;
14
+ }
15
+ export class MalformedCertificateException extends __BaseException {
16
+ constructor(opts) {
17
+ super({
18
+ name: "MalformedCertificateException",
19
+ $fault: "client",
20
+ ...opts,
21
+ });
22
+ this.name = "MalformedCertificateException";
23
+ this.$fault = "client";
24
+ Object.setPrototypeOf(this, MalformedCertificateException.prototype);
24
25
  }
25
- return MalformedCertificateException;
26
- }(__BaseException));
27
- export { MalformedCertificateException };
28
- var DuplicateCertificateException = (function (_super) {
29
- __extends(DuplicateCertificateException, _super);
30
- function DuplicateCertificateException(opts) {
31
- var _this = _super.call(this, __assign({ name: "DuplicateCertificateException", $fault: "client" }, opts)) || this;
32
- _this.name = "DuplicateCertificateException";
33
- _this.$fault = "client";
34
- Object.setPrototypeOf(_this, DuplicateCertificateException.prototype);
35
- return _this;
26
+ }
27
+ export class DuplicateCertificateException extends __BaseException {
28
+ constructor(opts) {
29
+ super({
30
+ name: "DuplicateCertificateException",
31
+ $fault: "client",
32
+ ...opts,
33
+ });
34
+ this.name = "DuplicateCertificateException";
35
+ this.$fault = "client";
36
+ Object.setPrototypeOf(this, DuplicateCertificateException.prototype);
36
37
  }
37
- return DuplicateCertificateException;
38
- }(__BaseException));
39
- export { DuplicateCertificateException };
40
- var InvalidCertificateException = (function (_super) {
41
- __extends(InvalidCertificateException, _super);
42
- function InvalidCertificateException(opts) {
43
- var _this = _super.call(this, __assign({ name: "InvalidCertificateException", $fault: "client" }, opts)) || this;
44
- _this.name = "InvalidCertificateException";
45
- _this.$fault = "client";
46
- Object.setPrototypeOf(_this, InvalidCertificateException.prototype);
47
- return _this;
38
+ }
39
+ export class InvalidCertificateException extends __BaseException {
40
+ constructor(opts) {
41
+ super({
42
+ name: "InvalidCertificateException",
43
+ $fault: "client",
44
+ ...opts,
45
+ });
46
+ this.name = "InvalidCertificateException";
47
+ this.$fault = "client";
48
+ Object.setPrototypeOf(this, InvalidCertificateException.prototype);
48
49
  }
49
- return InvalidCertificateException;
50
- }(__BaseException));
51
- export { InvalidCertificateException };
52
- var DuplicateSSHPublicKeyException = (function (_super) {
53
- __extends(DuplicateSSHPublicKeyException, _super);
54
- function DuplicateSSHPublicKeyException(opts) {
55
- var _this = _super.call(this, __assign({ name: "DuplicateSSHPublicKeyException", $fault: "client" }, opts)) || this;
56
- _this.name = "DuplicateSSHPublicKeyException";
57
- _this.$fault = "client";
58
- Object.setPrototypeOf(_this, DuplicateSSHPublicKeyException.prototype);
59
- return _this;
50
+ }
51
+ export class DuplicateSSHPublicKeyException extends __BaseException {
52
+ constructor(opts) {
53
+ super({
54
+ name: "DuplicateSSHPublicKeyException",
55
+ $fault: "client",
56
+ ...opts,
57
+ });
58
+ this.name = "DuplicateSSHPublicKeyException";
59
+ this.$fault = "client";
60
+ Object.setPrototypeOf(this, DuplicateSSHPublicKeyException.prototype);
60
61
  }
61
- return DuplicateSSHPublicKeyException;
62
- }(__BaseException));
63
- export { DuplicateSSHPublicKeyException };
64
- var InvalidPublicKeyException = (function (_super) {
65
- __extends(InvalidPublicKeyException, _super);
66
- function InvalidPublicKeyException(opts) {
67
- var _this = _super.call(this, __assign({ name: "InvalidPublicKeyException", $fault: "client" }, opts)) || this;
68
- _this.name = "InvalidPublicKeyException";
69
- _this.$fault = "client";
70
- Object.setPrototypeOf(_this, InvalidPublicKeyException.prototype);
71
- return _this;
62
+ }
63
+ export class InvalidPublicKeyException extends __BaseException {
64
+ constructor(opts) {
65
+ super({
66
+ name: "InvalidPublicKeyException",
67
+ $fault: "client",
68
+ ...opts,
69
+ });
70
+ this.name = "InvalidPublicKeyException";
71
+ this.$fault = "client";
72
+ Object.setPrototypeOf(this, InvalidPublicKeyException.prototype);
72
73
  }
73
- return InvalidPublicKeyException;
74
- }(__BaseException));
75
- export { InvalidPublicKeyException };
76
- export var UntagPolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
77
- export var UntagRoleRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
- export var UntagSAMLProviderRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
79
- export var UntagServerCertificateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
80
- export var UntagUserRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
81
- export var UpdateAccessKeyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
- export var UpdateAccountPasswordPolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
83
- export var UpdateAssumeRolePolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
84
- export var UpdateGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
- export var UpdateLoginProfileRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Password && { Password: SENSITIVE_STRING }))); };
86
- export var UpdateOpenIDConnectProviderThumbprintRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
- export var UpdateRoleRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
88
- export var UpdateRoleResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
- export var UpdateRoleDescriptionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
90
- export var UpdateRoleDescriptionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
91
- export var UpdateSAMLProviderRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
92
- export var UpdateSAMLProviderResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
93
- export var UpdateServerCertificateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
94
- export var UpdateServiceSpecificCredentialRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
95
- export var UpdateSigningCertificateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
96
- export var UpdateSSHPublicKeyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
- export var UpdateUserRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
- export var UploadServerCertificateRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.PrivateKey && { PrivateKey: SENSITIVE_STRING }))); };
99
- export var UploadServerCertificateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
100
- export var UploadSigningCertificateRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
101
- export var UploadSigningCertificateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
- export var UploadSSHPublicKeyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
103
- export var UploadSSHPublicKeyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
74
+ }
75
+ export const UntagPolicyRequestFilterSensitiveLog = (obj) => ({
76
+ ...obj,
77
+ });
78
+ export const UntagRoleRequestFilterSensitiveLog = (obj) => ({
79
+ ...obj,
80
+ });
81
+ export const UntagSAMLProviderRequestFilterSensitiveLog = (obj) => ({
82
+ ...obj,
83
+ });
84
+ export const UntagServerCertificateRequestFilterSensitiveLog = (obj) => ({
85
+ ...obj,
86
+ });
87
+ export const UntagUserRequestFilterSensitiveLog = (obj) => ({
88
+ ...obj,
89
+ });
90
+ export const UpdateAccessKeyRequestFilterSensitiveLog = (obj) => ({
91
+ ...obj,
92
+ });
93
+ export const UpdateAccountPasswordPolicyRequestFilterSensitiveLog = (obj) => ({
94
+ ...obj,
95
+ });
96
+ export const UpdateAssumeRolePolicyRequestFilterSensitiveLog = (obj) => ({
97
+ ...obj,
98
+ });
99
+ export const UpdateGroupRequestFilterSensitiveLog = (obj) => ({
100
+ ...obj,
101
+ });
102
+ export const UpdateLoginProfileRequestFilterSensitiveLog = (obj) => ({
103
+ ...obj,
104
+ ...(obj.Password && { Password: SENSITIVE_STRING }),
105
+ });
106
+ export const UpdateOpenIDConnectProviderThumbprintRequestFilterSensitiveLog = (obj) => ({
107
+ ...obj,
108
+ });
109
+ export const UpdateRoleRequestFilterSensitiveLog = (obj) => ({
110
+ ...obj,
111
+ });
112
+ export const UpdateRoleResponseFilterSensitiveLog = (obj) => ({
113
+ ...obj,
114
+ });
115
+ export const UpdateRoleDescriptionRequestFilterSensitiveLog = (obj) => ({
116
+ ...obj,
117
+ });
118
+ export const UpdateRoleDescriptionResponseFilterSensitiveLog = (obj) => ({
119
+ ...obj,
120
+ });
121
+ export const UpdateSAMLProviderRequestFilterSensitiveLog = (obj) => ({
122
+ ...obj,
123
+ });
124
+ export const UpdateSAMLProviderResponseFilterSensitiveLog = (obj) => ({
125
+ ...obj,
126
+ });
127
+ export const UpdateServerCertificateRequestFilterSensitiveLog = (obj) => ({
128
+ ...obj,
129
+ });
130
+ export const UpdateServiceSpecificCredentialRequestFilterSensitiveLog = (obj) => ({
131
+ ...obj,
132
+ });
133
+ export const UpdateSigningCertificateRequestFilterSensitiveLog = (obj) => ({
134
+ ...obj,
135
+ });
136
+ export const UpdateSSHPublicKeyRequestFilterSensitiveLog = (obj) => ({
137
+ ...obj,
138
+ });
139
+ export const UpdateUserRequestFilterSensitiveLog = (obj) => ({
140
+ ...obj,
141
+ });
142
+ export const UploadServerCertificateRequestFilterSensitiveLog = (obj) => ({
143
+ ...obj,
144
+ ...(obj.PrivateKey && { PrivateKey: SENSITIVE_STRING }),
145
+ });
146
+ export const UploadServerCertificateResponseFilterSensitiveLog = (obj) => ({
147
+ ...obj,
148
+ });
149
+ export const UploadSigningCertificateRequestFilterSensitiveLog = (obj) => ({
150
+ ...obj,
151
+ });
152
+ export const UploadSigningCertificateResponseFilterSensitiveLog = (obj) => ({
153
+ ...obj,
154
+ });
155
+ export const UploadSSHPublicKeyRequestFilterSensitiveLog = (obj) => ({
156
+ ...obj,
157
+ });
158
+ export const UploadSSHPublicKeyResponseFilterSensitiveLog = (obj) => ({
159
+ ...obj,
160
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { GetAccountAuthorizationDetailsCommand, } from "../commands/GetAccountAuthorizationDetailsCommand";
3
2
  import { IAM } from "../IAM";
4
3
  import { IAMClient } from "../IAMClient";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new GetAccountAuthorizationDetailsCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new GetAccountAuthorizationDetailsCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.getAccountAuthorizationDetails.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.getAccountAuthorizationDetails(input, ...args);
32
9
  };
33
- export function paginateGetAccountAuthorizationDetails(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateGetAccountAuthorizationDetails(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.Marker = token;
16
+ input["MaxItems"] = config.pageSize;
17
+ if (config.client instanceof IAM) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof IAMClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected IAM | IAMClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.Marker;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateGetAccountAuthorizationDetails_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.Marker = token;
49
- input["MaxItems"] = config.pageSize;
50
- if (!(config.client instanceof IAM)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof IAMClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected IAM | IAMClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.Marker;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { GetGroupCommand } from "../commands/GetGroupCommand";
3
2
  import { IAM } from "../IAM";
4
3
  import { IAMClient } from "../IAMClient";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new GetGroupCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new GetGroupCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.getGroup.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.getGroup(input, ...args);
32
9
  };
33
- export function paginateGetGroup(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateGetGroup(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.Marker = token;
16
+ input["MaxItems"] = config.pageSize;
17
+ if (config.client instanceof IAM) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof IAMClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected IAM | IAMClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.Marker;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateGetGroup_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.Marker = token;
49
- input["MaxItems"] = config.pageSize;
50
- if (!(config.client instanceof IAM)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof IAMClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected IAM | IAMClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.Marker;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListAccessKeysCommand, } from "../commands/ListAccessKeysCommand";
3
2
  import { IAM } from "../IAM";
4
3
  import { IAMClient } from "../IAMClient";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListAccessKeysCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListAccessKeysCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.listAccessKeys.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listAccessKeys(input, ...args);
32
9
  };
33
- export function paginateListAccessKeys(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListAccessKeys(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.Marker = token;
16
+ input["MaxItems"] = config.pageSize;
17
+ if (config.client instanceof IAM) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof IAMClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected IAM | IAMClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.Marker;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListAccessKeys_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.Marker = token;
49
- input["MaxItems"] = config.pageSize;
50
- if (!(config.client instanceof IAM)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof IAMClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected IAM | IAMClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.Marker;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }