@aws-sdk/client-iam 3.691.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 +203 -615
  37. package/dist-types/models/models_1.d.ts +611 -1
  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 +88 -106
  61. package/dist-types/ts3.4/models/models_1.d.ts +104 -0
  62. package/dist-types/ts3.4/protocols/Aws_query.d.ts +60 -0
  63. package/package.json +36 -36
@@ -0,0 +1,89 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
4
+ import { ListOrganizationsFeaturesRequest, ListOrganizationsFeaturesResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListOrganizationsFeaturesCommand}.
14
+ */
15
+ export interface ListOrganizationsFeaturesCommandInput extends ListOrganizationsFeaturesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListOrganizationsFeaturesCommand}.
21
+ */
22
+ export interface ListOrganizationsFeaturesCommandOutput extends ListOrganizationsFeaturesResponse, __MetadataBearer {
23
+ }
24
+ declare const ListOrganizationsFeaturesCommand_base: {
25
+ new (input: ListOrganizationsFeaturesCommandInput): import("@smithy/smithy-client").CommandImpl<ListOrganizationsFeaturesCommandInput, ListOrganizationsFeaturesCommandOutput, IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListOrganizationsFeaturesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListOrganizationsFeaturesCommandInput, ListOrganizationsFeaturesCommandOutput, IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists the centralized root access features enabled for your organization. For more
31
+ * information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html#id_root-user-access-management">Centrally manage root access for member accounts</a>.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { IAMClient, ListOrganizationsFeaturesCommand } from "@aws-sdk/client-iam"; // ES Modules import
36
+ * // const { IAMClient, ListOrganizationsFeaturesCommand } = require("@aws-sdk/client-iam"); // CommonJS import
37
+ * const client = new IAMClient(config);
38
+ * const input = {};
39
+ * const command = new ListOrganizationsFeaturesCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // ListOrganizationsFeaturesResponse
42
+ * // OrganizationId: "STRING_VALUE",
43
+ * // EnabledFeatures: [ // FeaturesListType
44
+ * // "RootCredentialsManagement" || "RootSessions",
45
+ * // ],
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param ListOrganizationsFeaturesCommandInput - {@link ListOrganizationsFeaturesCommandInput}
51
+ * @returns {@link ListOrganizationsFeaturesCommandOutput}
52
+ * @see {@link ListOrganizationsFeaturesCommandInput} for command's `input` shape.
53
+ * @see {@link ListOrganizationsFeaturesCommandOutput} for command's `response` shape.
54
+ * @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
55
+ *
56
+ * @throws {@link AccountNotManagementOrDelegatedAdministratorException} (client fault)
57
+ * <p>The request was rejected because the account making the request is not the management
58
+ * account or delegated administrator account for <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user.html#id_root-user-access-management">centralized root
59
+ * access</a>.</p>
60
+ *
61
+ * @throws {@link OrganizationNotFoundException} (client fault)
62
+ * <p>The request was rejected because no organization is associated with your account.</p>
63
+ *
64
+ * @throws {@link OrganizationNotInAllFeaturesModeException} (client fault)
65
+ * <p>The request was rejected because your organization does not have All features enabled. For
66
+ * more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#feature-set">Available feature sets</a> in the <i>Organizations User
67
+ * Guide</i>.</p>
68
+ *
69
+ * @throws {@link ServiceAccessNotEnabledException} (client fault)
70
+ * <p>The request was rejected because trusted access is not enabled for IAM in Organizations. For details, see IAM and Organizations in the <i>Organizations User Guide</i>.</p>
71
+ *
72
+ * @throws {@link IAMServiceException}
73
+ * <p>Base exception class for all service exceptions from IAM service.</p>
74
+ *
75
+ * @public
76
+ */
77
+ export declare class ListOrganizationsFeaturesCommand extends ListOrganizationsFeaturesCommand_base {
78
+ /** @internal type navigation helper, not in runtime. */
79
+ protected static __types: {
80
+ api: {
81
+ input: {};
82
+ output: ListOrganizationsFeaturesResponse;
83
+ };
84
+ sdk: {
85
+ input: ListOrganizationsFeaturesCommandInput;
86
+ output: ListOrganizationsFeaturesCommandOutput;
87
+ };
88
+ };
89
+ }
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
4
- import { SimulateCustomPolicyRequest, SimulatePolicyResponse } from "../models/models_0";
4
+ import { SimulateCustomPolicyRequest } from "../models/models_0";
5
+ import { SimulatePolicyResponse } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
4
- import { SimulatePolicyResponse, SimulatePrincipalPolicyRequest } from "../models/models_0";
4
+ import { SimulatePolicyResponse, SimulatePrincipalPolicyRequest } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
4
- import { TagInstanceProfileRequest } from "../models/models_0";
4
+ import { TagInstanceProfileRequest } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
4
- import { TagMFADeviceRequest } from "../models/models_0";
4
+ import { TagMFADeviceRequest } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
4
- import { TagOpenIDConnectProviderRequest } from "../models/models_0";
4
+ import { TagOpenIDConnectProviderRequest } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
4
- import { TagPolicyRequest } from "../models/models_0";
4
+ import { TagPolicyRequest } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
4
- import { TagRoleRequest } from "../models/models_0";
4
+ import { TagRoleRequest } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
4
- import { TagSAMLProviderRequest } from "../models/models_0";
4
+ import { TagSAMLProviderRequest } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
4
- import { TagServerCertificateRequest } from "../models/models_0";
4
+ import { TagServerCertificateRequest } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
4
- import { TagUserRequest } from "../models/models_0";
4
+ import { TagUserRequest } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -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";