@aws-sdk/client-iam 3.687.0 → 3.692.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 (63) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +510 -10
  3. package/dist-es/IAM.js +10 -0
  4. package/dist-es/commands/DisableOrganizationsRootCredentialsManagementCommand.js +22 -0
  5. package/dist-es/commands/DisableOrganizationsRootSessionsCommand.js +22 -0
  6. package/dist-es/commands/EnableOrganizationsRootCredentialsManagementCommand.js +22 -0
  7. package/dist-es/commands/EnableOrganizationsRootSessionsCommand.js +22 -0
  8. package/dist-es/commands/ListOrganizationsFeaturesCommand.js +22 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/models_0.js +70 -9
  11. package/dist-es/models/models_1.js +9 -0
  12. package/dist-es/protocols/Aws_query.js +310 -1
  13. package/dist-types/IAM.d.ts +43 -0
  14. package/dist-types/IAMClient.d.ts +7 -2
  15. package/dist-types/commands/CreateLoginProfileCommand.d.ts +3 -3
  16. package/dist-types/commands/DeactivateMFADeviceCommand.d.ts +1 -1
  17. package/dist-types/commands/DeleteLoginProfileCommand.d.ts +2 -2
  18. package/dist-types/commands/DisableOrganizationsRootCredentialsManagementCommand.d.ts +91 -0
  19. package/dist-types/commands/DisableOrganizationsRootSessionsCommand.d.ts +91 -0
  20. package/dist-types/commands/EnableOrganizationsRootCredentialsManagementCommand.d.ts +107 -0
  21. package/dist-types/commands/EnableOrganizationsRootSessionsCommand.d.ts +106 -0
  22. package/dist-types/commands/GetLoginProfileCommand.d.ts +2 -2
  23. package/dist-types/commands/ListAccountAliasesCommand.d.ts +3 -3
  24. package/dist-types/commands/ListOrganizationsFeaturesCommand.d.ts +89 -0
  25. package/dist-types/commands/SimulateCustomPolicyCommand.d.ts +2 -1
  26. package/dist-types/commands/SimulatePrincipalPolicyCommand.d.ts +1 -1
  27. package/dist-types/commands/TagInstanceProfileCommand.d.ts +1 -1
  28. package/dist-types/commands/TagMFADeviceCommand.d.ts +1 -1
  29. package/dist-types/commands/TagOpenIDConnectProviderCommand.d.ts +1 -1
  30. package/dist-types/commands/TagPolicyCommand.d.ts +1 -1
  31. package/dist-types/commands/TagRoleCommand.d.ts +1 -1
  32. package/dist-types/commands/TagSAMLProviderCommand.d.ts +1 -1
  33. package/dist-types/commands/TagServerCertificateCommand.d.ts +1 -1
  34. package/dist-types/commands/TagUserCommand.d.ts +1 -1
  35. package/dist-types/commands/index.d.ts +5 -0
  36. package/dist-types/models/models_0.d.ts +616 -1028
  37. package/dist-types/models/models_1.d.ts +642 -32
  38. package/dist-types/protocols/Aws_query.d.ts +45 -0
  39. package/dist-types/ts3.4/IAM.d.ts +105 -0
  40. package/dist-types/ts3.4/IAMClient.d.ts +30 -0
  41. package/dist-types/ts3.4/commands/CreateLoginProfileCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/DeleteLoginProfileCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/DisableOrganizationsRootCredentialsManagementCommand.d.ts +51 -0
  44. package/dist-types/ts3.4/commands/DisableOrganizationsRootSessionsCommand.d.ts +51 -0
  45. package/dist-types/ts3.4/commands/EnableOrganizationsRootCredentialsManagementCommand.d.ts +51 -0
  46. package/dist-types/ts3.4/commands/EnableOrganizationsRootSessionsCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/GetLoginProfileCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/ListOrganizationsFeaturesCommand.d.ts +51 -0
  49. package/dist-types/ts3.4/commands/SimulateCustomPolicyCommand.d.ts +2 -4
  50. package/dist-types/ts3.4/commands/SimulatePrincipalPolicyCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/TagInstanceProfileCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/TagMFADeviceCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/TagOpenIDConnectProviderCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/TagPolicyCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/TagRoleCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/TagSAMLProviderCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/TagServerCertificateCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/TagUserCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  60. package/dist-types/ts3.4/models/models_0.d.ts +501 -511
  61. package/dist-types/ts3.4/models/models_1.d.ts +135 -31
  62. package/dist-types/ts3.4/protocols/Aws_query.d.ts +60 -0
  63. package/package.json +36 -36
package/dist-es/IAM.js CHANGED
@@ -47,7 +47,11 @@ import { DeleteVirtualMFADeviceCommand, } from "./commands/DeleteVirtualMFADevic
47
47
  import { DetachGroupPolicyCommand, } from "./commands/DetachGroupPolicyCommand";
48
48
  import { DetachRolePolicyCommand, } from "./commands/DetachRolePolicyCommand";
49
49
  import { DetachUserPolicyCommand, } from "./commands/DetachUserPolicyCommand";
50
+ import { DisableOrganizationsRootCredentialsManagementCommand, } from "./commands/DisableOrganizationsRootCredentialsManagementCommand";
51
+ import { DisableOrganizationsRootSessionsCommand, } from "./commands/DisableOrganizationsRootSessionsCommand";
50
52
  import { EnableMFADeviceCommand, } from "./commands/EnableMFADeviceCommand";
53
+ import { EnableOrganizationsRootCredentialsManagementCommand, } from "./commands/EnableOrganizationsRootCredentialsManagementCommand";
54
+ import { EnableOrganizationsRootSessionsCommand, } from "./commands/EnableOrganizationsRootSessionsCommand";
51
55
  import { GenerateCredentialReportCommand, } from "./commands/GenerateCredentialReportCommand";
52
56
  import { GenerateOrganizationsAccessReportCommand, } from "./commands/GenerateOrganizationsAccessReportCommand";
53
57
  import { GenerateServiceLastAccessedDetailsCommand, } from "./commands/GenerateServiceLastAccessedDetailsCommand";
@@ -93,6 +97,7 @@ import { ListMFADevicesCommand, } from "./commands/ListMFADevicesCommand";
93
97
  import { ListMFADeviceTagsCommand, } from "./commands/ListMFADeviceTagsCommand";
94
98
  import { ListOpenIDConnectProvidersCommand, } from "./commands/ListOpenIDConnectProvidersCommand";
95
99
  import { ListOpenIDConnectProviderTagsCommand, } from "./commands/ListOpenIDConnectProviderTagsCommand";
100
+ import { ListOrganizationsFeaturesCommand, } from "./commands/ListOrganizationsFeaturesCommand";
96
101
  import { ListPoliciesCommand, } from "./commands/ListPoliciesCommand";
97
102
  import { ListPoliciesGrantingServiceAccessCommand, } from "./commands/ListPoliciesGrantingServiceAccessCommand";
98
103
  import { ListPolicyTagsCommand, } from "./commands/ListPolicyTagsCommand";
@@ -208,7 +213,11 @@ const commands = {
208
213
  DetachGroupPolicyCommand,
209
214
  DetachRolePolicyCommand,
210
215
  DetachUserPolicyCommand,
216
+ DisableOrganizationsRootCredentialsManagementCommand,
217
+ DisableOrganizationsRootSessionsCommand,
211
218
  EnableMFADeviceCommand,
219
+ EnableOrganizationsRootCredentialsManagementCommand,
220
+ EnableOrganizationsRootSessionsCommand,
212
221
  GenerateCredentialReportCommand,
213
222
  GenerateOrganizationsAccessReportCommand,
214
223
  GenerateServiceLastAccessedDetailsCommand,
@@ -254,6 +263,7 @@ const commands = {
254
263
  ListMFADeviceTagsCommand,
255
264
  ListOpenIDConnectProvidersCommand,
256
265
  ListOpenIDConnectProviderTagsCommand,
266
+ ListOrganizationsFeaturesCommand,
257
267
  ListPoliciesCommand,
258
268
  ListPoliciesGrantingServiceAccessCommand,
259
269
  ListPolicyTagsCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DisableOrganizationsRootCredentialsManagementCommand, se_DisableOrganizationsRootCredentialsManagementCommand, } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class DisableOrganizationsRootCredentialsManagementCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSIdentityManagementV20100508", "DisableOrganizationsRootCredentialsManagement", {})
17
+ .n("IAMClient", "DisableOrganizationsRootCredentialsManagementCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DisableOrganizationsRootCredentialsManagementCommand)
20
+ .de(de_DisableOrganizationsRootCredentialsManagementCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DisableOrganizationsRootSessionsCommand, se_DisableOrganizationsRootSessionsCommand, } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class DisableOrganizationsRootSessionsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSIdentityManagementV20100508", "DisableOrganizationsRootSessions", {})
17
+ .n("IAMClient", "DisableOrganizationsRootSessionsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DisableOrganizationsRootSessionsCommand)
20
+ .de(de_DisableOrganizationsRootSessionsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_EnableOrganizationsRootCredentialsManagementCommand, se_EnableOrganizationsRootCredentialsManagementCommand, } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class EnableOrganizationsRootCredentialsManagementCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSIdentityManagementV20100508", "EnableOrganizationsRootCredentialsManagement", {})
17
+ .n("IAMClient", "EnableOrganizationsRootCredentialsManagementCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_EnableOrganizationsRootCredentialsManagementCommand)
20
+ .de(de_EnableOrganizationsRootCredentialsManagementCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_EnableOrganizationsRootSessionsCommand, se_EnableOrganizationsRootSessionsCommand, } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class EnableOrganizationsRootSessionsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSIdentityManagementV20100508", "EnableOrganizationsRootSessions", {})
17
+ .n("IAMClient", "EnableOrganizationsRootSessionsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_EnableOrganizationsRootSessionsCommand)
20
+ .de(de_EnableOrganizationsRootSessionsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListOrganizationsFeaturesCommand, se_ListOrganizationsFeaturesCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class ListOrganizationsFeaturesCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSIdentityManagementV20100508", "ListOrganizationsFeatures", {})
17
+ .n("IAMClient", "ListOrganizationsFeaturesCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListOrganizationsFeaturesCommand)
20
+ .de(de_ListOrganizationsFeaturesCommand)
21
+ .build() {
22
+ }
@@ -46,7 +46,11 @@ export * from "./DeleteVirtualMFADeviceCommand";
46
46
  export * from "./DetachGroupPolicyCommand";
47
47
  export * from "./DetachRolePolicyCommand";
48
48
  export * from "./DetachUserPolicyCommand";
49
+ export * from "./DisableOrganizationsRootCredentialsManagementCommand";
50
+ export * from "./DisableOrganizationsRootSessionsCommand";
49
51
  export * from "./EnableMFADeviceCommand";
52
+ export * from "./EnableOrganizationsRootCredentialsManagementCommand";
53
+ export * from "./EnableOrganizationsRootSessionsCommand";
50
54
  export * from "./GenerateCredentialReportCommand";
51
55
  export * from "./GenerateOrganizationsAccessReportCommand";
52
56
  export * from "./GenerateServiceLastAccessedDetailsCommand";
@@ -92,6 +96,7 @@ export * from "./ListMFADeviceTagsCommand";
92
96
  export * from "./ListMFADevicesCommand";
93
97
  export * from "./ListOpenIDConnectProviderTagsCommand";
94
98
  export * from "./ListOpenIDConnectProvidersCommand";
99
+ export * from "./ListOrganizationsFeaturesCommand";
95
100
  export * from "./ListPoliciesCommand";
96
101
  export * from "./ListPoliciesGrantingServiceAccessCommand";
97
102
  export * from "./ListPolicyTagsCommand";
@@ -8,6 +8,19 @@ export const StatusType = {
8
8
  Active: "Active",
9
9
  Inactive: "Inactive",
10
10
  };
11
+ export class AccountNotManagementOrDelegatedAdministratorException extends __BaseException {
12
+ constructor(opts) {
13
+ super({
14
+ name: "AccountNotManagementOrDelegatedAdministratorException",
15
+ $fault: "client",
16
+ ...opts,
17
+ });
18
+ this.name = "AccountNotManagementOrDelegatedAdministratorException";
19
+ this.$fault = "client";
20
+ Object.setPrototypeOf(this, AccountNotManagementOrDelegatedAdministratorException.prototype);
21
+ this.Message = opts.Message;
22
+ }
23
+ }
11
24
  export class InvalidInputException extends __BaseException {
12
25
  constructor(opts) {
13
26
  super({
@@ -196,6 +209,49 @@ export class DeleteConflictException extends __BaseException {
196
209
  Object.setPrototypeOf(this, DeleteConflictException.prototype);
197
210
  }
198
211
  }
212
+ export const FeatureType = {
213
+ ROOT_CREDENTIALS_MANAGEMENT: "RootCredentialsManagement",
214
+ ROOT_SESSIONS: "RootSessions",
215
+ };
216
+ export class OrganizationNotFoundException extends __BaseException {
217
+ constructor(opts) {
218
+ super({
219
+ name: "OrganizationNotFoundException",
220
+ $fault: "client",
221
+ ...opts,
222
+ });
223
+ this.name = "OrganizationNotFoundException";
224
+ this.$fault = "client";
225
+ Object.setPrototypeOf(this, OrganizationNotFoundException.prototype);
226
+ this.Message = opts.Message;
227
+ }
228
+ }
229
+ export class OrganizationNotInAllFeaturesModeException extends __BaseException {
230
+ constructor(opts) {
231
+ super({
232
+ name: "OrganizationNotInAllFeaturesModeException",
233
+ $fault: "client",
234
+ ...opts,
235
+ });
236
+ this.name = "OrganizationNotInAllFeaturesModeException";
237
+ this.$fault = "client";
238
+ Object.setPrototypeOf(this, OrganizationNotInAllFeaturesModeException.prototype);
239
+ this.Message = opts.Message;
240
+ }
241
+ }
242
+ export class ServiceAccessNotEnabledException extends __BaseException {
243
+ constructor(opts) {
244
+ super({
245
+ name: "ServiceAccessNotEnabledException",
246
+ $fault: "client",
247
+ ...opts,
248
+ });
249
+ this.name = "ServiceAccessNotEnabledException";
250
+ this.$fault = "client";
251
+ Object.setPrototypeOf(this, ServiceAccessNotEnabledException.prototype);
252
+ this.Message = opts.Message;
253
+ }
254
+ }
199
255
  export class InvalidAuthenticationCodeException extends __BaseException {
200
256
  constructor(opts) {
201
257
  super({
@@ -208,6 +264,19 @@ export class InvalidAuthenticationCodeException extends __BaseException {
208
264
  Object.setPrototypeOf(this, InvalidAuthenticationCodeException.prototype);
209
265
  }
210
266
  }
267
+ export class CallerIsNotManagementAccountException extends __BaseException {
268
+ constructor(opts) {
269
+ super({
270
+ name: "CallerIsNotManagementAccountException",
271
+ $fault: "client",
272
+ ...opts,
273
+ });
274
+ this.name = "CallerIsNotManagementAccountException";
275
+ this.$fault = "client";
276
+ Object.setPrototypeOf(this, CallerIsNotManagementAccountException.prototype);
277
+ this.Message = opts.Message;
278
+ }
279
+ }
211
280
  export const ReportStateType = {
212
281
  COMPLETE: "COMPLETE",
213
282
  INPROGRESS: "INPROGRESS",
@@ -236,6 +305,7 @@ export const SummaryKeyType = {
236
305
  AccessKeysPerUserQuota: "AccessKeysPerUserQuota",
237
306
  AccountAccessKeysPresent: "AccountAccessKeysPresent",
238
307
  AccountMFAEnabled: "AccountMFAEnabled",
308
+ AccountPasswordPresent: "AccountPasswordPresent",
239
309
  AccountSigningCertificatesPresent: "AccountSigningCertificatesPresent",
240
310
  AttachedPoliciesPerGroupQuota: "AttachedPoliciesPerGroupQuota",
241
311
  AttachedPoliciesPerRoleQuota: "AttachedPoliciesPerRoleQuota",
@@ -385,15 +455,6 @@ export const PolicyEvaluationDecisionType = {
385
455
  EXPLICIT_DENY: "explicitDeny",
386
456
  IMPLICIT_DENY: "implicitDeny",
387
457
  };
388
- export const PolicySourceType = {
389
- AWS_MANAGED: "aws-managed",
390
- GROUP: "group",
391
- NONE: "none",
392
- RESOURCE: "resource",
393
- ROLE: "role",
394
- USER: "user",
395
- USER_MANAGED: "user-managed",
396
- };
397
458
  export const AccessKeyFilterSensitiveLog = (obj) => ({
398
459
  ...obj,
399
460
  ...(obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }),
@@ -1,5 +1,14 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { IAMServiceException as __BaseException } from "./IAMServiceException";
3
+ export const PolicySourceType = {
4
+ AWS_MANAGED: "aws-managed",
5
+ GROUP: "group",
6
+ NONE: "none",
7
+ RESOURCE: "resource",
8
+ ROLE: "role",
9
+ USER: "user",
10
+ USER_MANAGED: "user-managed",
11
+ };
3
12
  export class KeyPairMismatchException extends __BaseException {
4
13
  constructor(opts) {
5
14
  super({