@aws-sdk/client-iam 3.691.0 → 3.693.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.
- package/README.md +40 -0
- package/dist-cjs/index.js +510 -10
- package/dist-es/IAM.js +10 -0
- package/dist-es/commands/DisableOrganizationsRootCredentialsManagementCommand.js +22 -0
- package/dist-es/commands/DisableOrganizationsRootSessionsCommand.js +22 -0
- package/dist-es/commands/EnableOrganizationsRootCredentialsManagementCommand.js +22 -0
- package/dist-es/commands/EnableOrganizationsRootSessionsCommand.js +22 -0
- package/dist-es/commands/ListOrganizationsFeaturesCommand.js +22 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +70 -9
- package/dist-es/models/models_1.js +9 -0
- package/dist-es/protocols/Aws_query.js +310 -1
- package/dist-types/IAM.d.ts +43 -0
- package/dist-types/IAMClient.d.ts +7 -2
- package/dist-types/commands/CreateLoginProfileCommand.d.ts +3 -3
- package/dist-types/commands/DeactivateMFADeviceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteLoginProfileCommand.d.ts +2 -2
- package/dist-types/commands/DisableOrganizationsRootCredentialsManagementCommand.d.ts +108 -0
- package/dist-types/commands/DisableOrganizationsRootSessionsCommand.d.ts +108 -0
- package/dist-types/commands/EnableOrganizationsRootCredentialsManagementCommand.d.ts +124 -0
- package/dist-types/commands/EnableOrganizationsRootSessionsCommand.d.ts +124 -0
- package/dist-types/commands/GetLoginProfileCommand.d.ts +2 -2
- package/dist-types/commands/ListAccountAliasesCommand.d.ts +3 -3
- package/dist-types/commands/ListOrganizationsFeaturesCommand.d.ts +106 -0
- package/dist-types/commands/SimulateCustomPolicyCommand.d.ts +2 -1
- package/dist-types/commands/SimulatePrincipalPolicyCommand.d.ts +1 -1
- package/dist-types/commands/TagInstanceProfileCommand.d.ts +1 -1
- package/dist-types/commands/TagMFADeviceCommand.d.ts +1 -1
- package/dist-types/commands/TagOpenIDConnectProviderCommand.d.ts +1 -1
- package/dist-types/commands/TagPolicyCommand.d.ts +1 -1
- package/dist-types/commands/TagRoleCommand.d.ts +1 -1
- package/dist-types/commands/TagSAMLProviderCommand.d.ts +1 -1
- package/dist-types/commands/TagServerCertificateCommand.d.ts +1 -1
- package/dist-types/commands/TagUserCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +203 -615
- package/dist-types/models/models_1.d.ts +611 -1
- package/dist-types/protocols/Aws_query.d.ts +45 -0
- package/dist-types/ts3.4/IAM.d.ts +105 -0
- package/dist-types/ts3.4/IAMClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateLoginProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteLoginProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisableOrganizationsRootCredentialsManagementCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisableOrganizationsRootSessionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/EnableOrganizationsRootCredentialsManagementCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/EnableOrganizationsRootSessionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetLoginProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListOrganizationsFeaturesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SimulateCustomPolicyCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SimulatePrincipalPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagInstanceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagMFADeviceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagOpenIDConnectProviderCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagRoleCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagSAMLProviderCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagServerCertificateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagUserCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +88 -106
- package/dist-types/ts3.4/models/models_1.d.ts +104 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +60 -0
- package/package.json +36 -36
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
* @example To list the centralized root access features enabled for your organization
|
|
77
|
+
* ```javascript
|
|
78
|
+
* // he following command lists the centralized root access features enabled for your organization.
|
|
79
|
+
* const input = {};
|
|
80
|
+
* const command = new ListOrganizationsFeaturesCommand(input);
|
|
81
|
+
* const response = await client.send(command);
|
|
82
|
+
* /* response ==
|
|
83
|
+
* {
|
|
84
|
+
* "EnabledFeatures": [
|
|
85
|
+
* "RootCredentialsManagement"
|
|
86
|
+
* ],
|
|
87
|
+
* "OrganizationId": "o-aa111bb222"
|
|
88
|
+
* }
|
|
89
|
+
* *\/
|
|
90
|
+
* // example id: to-list-the-centralized-root-access-features-enabled-for-your-organization-1730908832557
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
export declare class ListOrganizationsFeaturesCommand extends ListOrganizationsFeaturesCommand_base {
|
|
95
|
+
/** @internal type navigation helper, not in runtime. */
|
|
96
|
+
protected static __types: {
|
|
97
|
+
api: {
|
|
98
|
+
input: {};
|
|
99
|
+
output: ListOrganizationsFeaturesResponse;
|
|
100
|
+
};
|
|
101
|
+
sdk: {
|
|
102
|
+
input: ListOrganizationsFeaturesCommandInput;
|
|
103
|
+
output: ListOrganizationsFeaturesCommandOutput;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -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
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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";
|