@aws-sdk/client-iam 3.359.0 → 3.360.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 +8 -0
- package/dist-cjs/IAM.js +2 -0
- package/dist-cjs/commands/GetMFADeviceCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/pagination/ListInstanceProfileTagsPaginator.js +29 -0
- package/dist-cjs/pagination/ListMFADeviceTagsPaginator.js +29 -0
- package/dist-cjs/pagination/ListOpenIDConnectProviderTagsPaginator.js +29 -0
- package/dist-cjs/pagination/ListPolicyTagsPaginator.js +29 -0
- package/dist-cjs/pagination/ListRoleTagsPaginator.js +29 -0
- package/dist-cjs/pagination/ListSAMLProviderTagsPaginator.js +29 -0
- package/dist-cjs/pagination/ListServerCertificateTagsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_query.js +91 -6
- package/dist-es/IAM.js +2 -0
- package/dist-es/commands/GetMFADeviceCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/pagination/ListInstanceProfileTagsPaginator.js +25 -0
- package/dist-es/pagination/ListMFADeviceTagsPaginator.js +25 -0
- package/dist-es/pagination/ListOpenIDConnectProviderTagsPaginator.js +25 -0
- package/dist-es/pagination/ListPolicyTagsPaginator.js +25 -0
- package/dist-es/pagination/ListRoleTagsPaginator.js +25 -0
- package/dist-es/pagination/ListSAMLProviderTagsPaginator.js +25 -0
- package/dist-es/pagination/ListServerCertificateTagsPaginator.js +25 -0
- package/dist-es/pagination/index.js +7 -0
- package/dist-es/protocols/Aws_query.js +83 -0
- package/dist-types/IAM.d.ts +7 -0
- package/dist-types/IAMClient.d.ts +3 -2
- package/dist-types/commands/AttachGroupPolicyCommand.d.ts +3 -1
- package/dist-types/commands/AttachRolePolicyCommand.d.ts +11 -5
- package/dist-types/commands/AttachUserPolicyCommand.d.ts +3 -1
- package/dist-types/commands/GetMFADeviceCommand.d.ts +87 -0
- package/dist-types/commands/PutGroupPolicyCommand.d.ts +6 -2
- package/dist-types/commands/PutRolePolicyCommand.d.ts +14 -5
- package/dist-types/commands/PutUserPolicyCommand.d.ts +6 -2
- package/dist-types/commands/UntagMFADeviceCommand.d.ts +1 -1
- package/dist-types/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +37 -33
- package/dist-types/models/models_1.d.ts +33 -0
- package/dist-types/pagination/ListInstanceProfileTagsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMFADeviceTagsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListOpenIDConnectProviderTagsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPolicyTagsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRoleTagsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSAMLProviderTagsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServerCertificateTagsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/protocols/Aws_query.d.ts +9 -0
- package/dist-types/ts3.4/IAM.d.ts +17 -0
- package/dist-types/ts3.4/IAMClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetMFADeviceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagMFADeviceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +10 -8
- package/dist-types/ts3.4/models/models_1.d.ts +8 -0
- package/dist-types/ts3.4/pagination/ListInstanceProfileTagsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMFADeviceTagsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListOpenIDConnectProviderTagsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPolicyTagsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRoleTagsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSAMLProviderTagsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServerCertificateTagsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -711,6 +711,14 @@ GetLoginProfile
|
|
|
711
711
|
|
|
712
712
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iam/classes/getloginprofilecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iam/interfaces/getloginprofilecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iam/interfaces/getloginprofilecommandoutput.html)
|
|
713
713
|
|
|
714
|
+
</details>
|
|
715
|
+
<details>
|
|
716
|
+
<summary>
|
|
717
|
+
GetMFADevice
|
|
718
|
+
</summary>
|
|
719
|
+
|
|
720
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iam/classes/getmfadevicecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iam/interfaces/getmfadevicecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iam/interfaces/getmfadevicecommandoutput.html)
|
|
721
|
+
|
|
714
722
|
</details>
|
|
715
723
|
<details>
|
|
716
724
|
<summary>
|
package/dist-cjs/IAM.js
CHANGED
|
@@ -65,6 +65,7 @@ const GetGroupCommand_1 = require("./commands/GetGroupCommand");
|
|
|
65
65
|
const GetGroupPolicyCommand_1 = require("./commands/GetGroupPolicyCommand");
|
|
66
66
|
const GetInstanceProfileCommand_1 = require("./commands/GetInstanceProfileCommand");
|
|
67
67
|
const GetLoginProfileCommand_1 = require("./commands/GetLoginProfileCommand");
|
|
68
|
+
const GetMFADeviceCommand_1 = require("./commands/GetMFADeviceCommand");
|
|
68
69
|
const GetOpenIDConnectProviderCommand_1 = require("./commands/GetOpenIDConnectProviderCommand");
|
|
69
70
|
const GetOrganizationsAccessReportCommand_1 = require("./commands/GetOrganizationsAccessReportCommand");
|
|
70
71
|
const GetPolicyCommand_1 = require("./commands/GetPolicyCommand");
|
|
@@ -225,6 +226,7 @@ const commands = {
|
|
|
225
226
|
GetGroupPolicyCommand: GetGroupPolicyCommand_1.GetGroupPolicyCommand,
|
|
226
227
|
GetInstanceProfileCommand: GetInstanceProfileCommand_1.GetInstanceProfileCommand,
|
|
227
228
|
GetLoginProfileCommand: GetLoginProfileCommand_1.GetLoginProfileCommand,
|
|
229
|
+
GetMFADeviceCommand: GetMFADeviceCommand_1.GetMFADeviceCommand,
|
|
228
230
|
GetOpenIDConnectProviderCommand: GetOpenIDConnectProviderCommand_1.GetOpenIDConnectProviderCommand,
|
|
229
231
|
GetOrganizationsAccessReportCommand: GetOrganizationsAccessReportCommand_1.GetOrganizationsAccessReportCommand,
|
|
230
232
|
GetPolicyCommand: GetPolicyCommand_1.GetPolicyCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetMFADeviceCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_query_1 = require("../protocols/Aws_query");
|
|
9
|
+
class GetMFADeviceCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetMFADeviceCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "IAMClient";
|
|
28
|
+
const commandName = "GetMFADeviceCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_query_1.se_GetMFADeviceCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_query_1.de_GetMFADeviceCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetMFADeviceCommand = GetMFADeviceCommand;
|
|
@@ -64,6 +64,7 @@ tslib_1.__exportStar(require("./GetGroupCommand"), exports);
|
|
|
64
64
|
tslib_1.__exportStar(require("./GetGroupPolicyCommand"), exports);
|
|
65
65
|
tslib_1.__exportStar(require("./GetInstanceProfileCommand"), exports);
|
|
66
66
|
tslib_1.__exportStar(require("./GetLoginProfileCommand"), exports);
|
|
67
|
+
tslib_1.__exportStar(require("./GetMFADeviceCommand"), exports);
|
|
67
68
|
tslib_1.__exportStar(require("./GetOpenIDConnectProviderCommand"), exports);
|
|
68
69
|
tslib_1.__exportStar(require("./GetOrganizationsAccessReportCommand"), exports);
|
|
69
70
|
tslib_1.__exportStar(require("./GetPolicyCommand"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListInstanceProfileTags = void 0;
|
|
4
|
+
const ListInstanceProfileTagsCommand_1 = require("../commands/ListInstanceProfileTagsCommand");
|
|
5
|
+
const IAMClient_1 = require("../IAMClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListInstanceProfileTagsCommand_1.ListInstanceProfileTagsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListInstanceProfileTags(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.Marker = token;
|
|
15
|
+
input["MaxItems"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof IAMClient_1.IAMClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.Marker;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListInstanceProfileTags = paginateListInstanceProfileTags;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListMFADeviceTags = void 0;
|
|
4
|
+
const ListMFADeviceTagsCommand_1 = require("../commands/ListMFADeviceTagsCommand");
|
|
5
|
+
const IAMClient_1 = require("../IAMClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListMFADeviceTagsCommand_1.ListMFADeviceTagsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListMFADeviceTags(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.Marker = token;
|
|
15
|
+
input["MaxItems"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof IAMClient_1.IAMClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.Marker;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListMFADeviceTags = paginateListMFADeviceTags;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListOpenIDConnectProviderTags = void 0;
|
|
4
|
+
const ListOpenIDConnectProviderTagsCommand_1 = require("../commands/ListOpenIDConnectProviderTagsCommand");
|
|
5
|
+
const IAMClient_1 = require("../IAMClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListOpenIDConnectProviderTagsCommand_1.ListOpenIDConnectProviderTagsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListOpenIDConnectProviderTags(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.Marker = token;
|
|
15
|
+
input["MaxItems"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof IAMClient_1.IAMClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.Marker;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListOpenIDConnectProviderTags = paginateListOpenIDConnectProviderTags;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListPolicyTags = void 0;
|
|
4
|
+
const ListPolicyTagsCommand_1 = require("../commands/ListPolicyTagsCommand");
|
|
5
|
+
const IAMClient_1 = require("../IAMClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListPolicyTagsCommand_1.ListPolicyTagsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListPolicyTags(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.Marker = token;
|
|
15
|
+
input["MaxItems"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof IAMClient_1.IAMClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.Marker;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListPolicyTags = paginateListPolicyTags;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListRoleTags = void 0;
|
|
4
|
+
const ListRoleTagsCommand_1 = require("../commands/ListRoleTagsCommand");
|
|
5
|
+
const IAMClient_1 = require("../IAMClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListRoleTagsCommand_1.ListRoleTagsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListRoleTags(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.Marker = token;
|
|
15
|
+
input["MaxItems"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof IAMClient_1.IAMClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.Marker;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListRoleTags = paginateListRoleTags;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListSAMLProviderTags = void 0;
|
|
4
|
+
const ListSAMLProviderTagsCommand_1 = require("../commands/ListSAMLProviderTagsCommand");
|
|
5
|
+
const IAMClient_1 = require("../IAMClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListSAMLProviderTagsCommand_1.ListSAMLProviderTagsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListSAMLProviderTags(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.Marker = token;
|
|
15
|
+
input["MaxItems"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof IAMClient_1.IAMClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.Marker;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListSAMLProviderTags = paginateListSAMLProviderTags;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListServerCertificateTags = void 0;
|
|
4
|
+
const ListServerCertificateTagsCommand_1 = require("../commands/ListServerCertificateTagsCommand");
|
|
5
|
+
const IAMClient_1 = require("../IAMClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListServerCertificateTagsCommand_1.ListServerCertificateTagsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListServerCertificateTags(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.Marker = token;
|
|
15
|
+
input["MaxItems"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof IAMClient_1.IAMClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.Marker;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListServerCertificateTags = paginateListServerCertificateTags;
|
|
@@ -13,14 +13,21 @@ tslib_1.__exportStar(require("./ListEntitiesForPolicyPaginator"), exports);
|
|
|
13
13
|
tslib_1.__exportStar(require("./ListGroupPoliciesPaginator"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./ListGroupsForUserPaginator"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./ListGroupsPaginator"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./ListInstanceProfileTagsPaginator"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./ListInstanceProfilesForRolePaginator"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./ListInstanceProfilesPaginator"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./ListMFADeviceTagsPaginator"), exports);
|
|
18
20
|
tslib_1.__exportStar(require("./ListMFADevicesPaginator"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./ListOpenIDConnectProviderTagsPaginator"), exports);
|
|
19
22
|
tslib_1.__exportStar(require("./ListPoliciesPaginator"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./ListPolicyTagsPaginator"), exports);
|
|
20
24
|
tslib_1.__exportStar(require("./ListPolicyVersionsPaginator"), exports);
|
|
21
25
|
tslib_1.__exportStar(require("./ListRolePoliciesPaginator"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./ListRoleTagsPaginator"), exports);
|
|
22
27
|
tslib_1.__exportStar(require("./ListRolesPaginator"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./ListSAMLProviderTagsPaginator"), exports);
|
|
23
29
|
tslib_1.__exportStar(require("./ListSSHPublicKeysPaginator"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./ListServerCertificateTagsPaginator"), exports);
|
|
24
31
|
tslib_1.__exportStar(require("./ListServerCertificatesPaginator"), exports);
|
|
25
32
|
tslib_1.__exportStar(require("./ListSigningCertificatesPaginator"), exports);
|
|
26
33
|
tslib_1.__exportStar(require("./ListUserPoliciesPaginator"), exports);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.se_GenerateCredentialReportCommand = exports.se_EnableMFADeviceCommand = exports.se_DetachUserPolicyCommand = exports.se_DetachRolePolicyCommand = exports.se_DetachGroupPolicyCommand = exports.se_DeleteVirtualMFADeviceCommand = exports.se_DeleteUserPolicyCommand = exports.se_DeleteUserPermissionsBoundaryCommand = exports.se_DeleteUserCommand = exports.se_DeleteSSHPublicKeyCommand = exports.se_DeleteSigningCertificateCommand = exports.se_DeleteServiceSpecificCredentialCommand = exports.se_DeleteServiceLinkedRoleCommand = exports.se_DeleteServerCertificateCommand = exports.se_DeleteSAMLProviderCommand = exports.se_DeleteRolePolicyCommand = exports.se_DeleteRolePermissionsBoundaryCommand = exports.se_DeleteRoleCommand = exports.se_DeletePolicyVersionCommand = exports.se_DeletePolicyCommand = exports.se_DeleteOpenIDConnectProviderCommand = exports.se_DeleteLoginProfileCommand = exports.se_DeleteInstanceProfileCommand = exports.se_DeleteGroupPolicyCommand = exports.se_DeleteGroupCommand = exports.se_DeleteAccountPasswordPolicyCommand = exports.se_DeleteAccountAliasCommand = exports.se_DeleteAccessKeyCommand = exports.se_DeactivateMFADeviceCommand = exports.se_CreateVirtualMFADeviceCommand = exports.se_CreateUserCommand = exports.se_CreateServiceSpecificCredentialCommand = exports.se_CreateServiceLinkedRoleCommand = exports.se_CreateSAMLProviderCommand = exports.se_CreateRoleCommand = exports.se_CreatePolicyVersionCommand = exports.se_CreatePolicyCommand = exports.se_CreateOpenIDConnectProviderCommand = exports.se_CreateLoginProfileCommand = exports.se_CreateInstanceProfileCommand = exports.se_CreateGroupCommand = exports.se_CreateAccountAliasCommand = exports.se_CreateAccessKeyCommand = exports.se_ChangePasswordCommand = exports.se_AttachUserPolicyCommand = exports.se_AttachRolePolicyCommand = exports.se_AttachGroupPolicyCommand = exports.se_AddUserToGroupCommand = exports.se_AddRoleToInstanceProfileCommand = exports.se_AddClientIDToOpenIDConnectProviderCommand = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.de_UploadSSHPublicKeyCommand = exports.de_UploadSigningCertificateCommand = exports.de_UploadServerCertificateCommand = exports.de_UpdateUserCommand = exports.de_UpdateSSHPublicKeyCommand = exports.de_UpdateSigningCertificateCommand = exports.de_UpdateServiceSpecificCredentialCommand = exports.de_UpdateServerCertificateCommand = exports.de_UpdateSAMLProviderCommand = exports.de_UpdateRoleDescriptionCommand = exports.de_UpdateRoleCommand = exports.de_UpdateOpenIDConnectProviderThumbprintCommand = exports.de_UpdateLoginProfileCommand = exports.de_UpdateGroupCommand = exports.de_UpdateAssumeRolePolicyCommand = exports.de_UpdateAccountPasswordPolicyCommand = void 0;
|
|
4
|
+
exports.se_ListRolesCommand = exports.se_ListRolePoliciesCommand = exports.se_ListPolicyVersionsCommand = exports.se_ListPolicyTagsCommand = exports.se_ListPoliciesGrantingServiceAccessCommand = exports.se_ListPoliciesCommand = exports.se_ListOpenIDConnectProviderTagsCommand = exports.se_ListOpenIDConnectProvidersCommand = exports.se_ListMFADeviceTagsCommand = exports.se_ListMFADevicesCommand = exports.se_ListInstanceProfileTagsCommand = exports.se_ListInstanceProfilesForRoleCommand = exports.se_ListInstanceProfilesCommand = exports.se_ListGroupsForUserCommand = exports.se_ListGroupsCommand = exports.se_ListGroupPoliciesCommand = exports.se_ListEntitiesForPolicyCommand = exports.se_ListAttachedUserPoliciesCommand = exports.se_ListAttachedRolePoliciesCommand = exports.se_ListAttachedGroupPoliciesCommand = exports.se_ListAccountAliasesCommand = exports.se_ListAccessKeysCommand = exports.se_GetUserPolicyCommand = exports.se_GetUserCommand = exports.se_GetSSHPublicKeyCommand = exports.se_GetServiceLinkedRoleDeletionStatusCommand = exports.se_GetServiceLastAccessedDetailsWithEntitiesCommand = exports.se_GetServiceLastAccessedDetailsCommand = exports.se_GetServerCertificateCommand = exports.se_GetSAMLProviderCommand = exports.se_GetRolePolicyCommand = exports.se_GetRoleCommand = exports.se_GetPolicyVersionCommand = exports.se_GetPolicyCommand = exports.se_GetOrganizationsAccessReportCommand = exports.se_GetOpenIDConnectProviderCommand = exports.se_GetMFADeviceCommand = exports.se_GetLoginProfileCommand = exports.se_GetInstanceProfileCommand = exports.se_GetGroupPolicyCommand = exports.se_GetGroupCommand = exports.se_GetCredentialReportCommand = exports.se_GetContextKeysForPrincipalPolicyCommand = exports.se_GetContextKeysForCustomPolicyCommand = exports.se_GetAccountSummaryCommand = exports.se_GetAccountPasswordPolicyCommand = exports.se_GetAccountAuthorizationDetailsCommand = exports.se_GetAccessKeyLastUsedCommand = exports.se_GenerateServiceLastAccessedDetailsCommand = exports.se_GenerateOrganizationsAccessReportCommand = void 0;
|
|
5
|
+
exports.se_UpdateRoleDescriptionCommand = exports.se_UpdateRoleCommand = exports.se_UpdateOpenIDConnectProviderThumbprintCommand = exports.se_UpdateLoginProfileCommand = exports.se_UpdateGroupCommand = exports.se_UpdateAssumeRolePolicyCommand = exports.se_UpdateAccountPasswordPolicyCommand = exports.se_UpdateAccessKeyCommand = exports.se_UntagUserCommand = exports.se_UntagServerCertificateCommand = exports.se_UntagSAMLProviderCommand = exports.se_UntagRoleCommand = exports.se_UntagPolicyCommand = exports.se_UntagOpenIDConnectProviderCommand = exports.se_UntagMFADeviceCommand = exports.se_UntagInstanceProfileCommand = exports.se_TagUserCommand = exports.se_TagServerCertificateCommand = exports.se_TagSAMLProviderCommand = exports.se_TagRoleCommand = exports.se_TagPolicyCommand = exports.se_TagOpenIDConnectProviderCommand = exports.se_TagMFADeviceCommand = exports.se_TagInstanceProfileCommand = exports.se_SimulatePrincipalPolicyCommand = exports.se_SimulateCustomPolicyCommand = exports.se_SetSecurityTokenServicePreferencesCommand = exports.se_SetDefaultPolicyVersionCommand = exports.se_ResyncMFADeviceCommand = exports.se_ResetServiceSpecificCredentialCommand = exports.se_RemoveUserFromGroupCommand = exports.se_RemoveRoleFromInstanceProfileCommand = exports.se_RemoveClientIDFromOpenIDConnectProviderCommand = exports.se_PutUserPolicyCommand = exports.se_PutUserPermissionsBoundaryCommand = exports.se_PutRolePolicyCommand = exports.se_PutRolePermissionsBoundaryCommand = exports.se_PutGroupPolicyCommand = exports.se_ListVirtualMFADevicesCommand = exports.se_ListUserTagsCommand = exports.se_ListUsersCommand = exports.se_ListUserPoliciesCommand = exports.se_ListSSHPublicKeysCommand = exports.se_ListSigningCertificatesCommand = exports.se_ListServiceSpecificCredentialsCommand = exports.se_ListServerCertificateTagsCommand = exports.se_ListServerCertificatesCommand = exports.se_ListSAMLProviderTagsCommand = exports.se_ListSAMLProvidersCommand = exports.se_ListRoleTagsCommand = void 0;
|
|
6
|
+
exports.de_DeleteSSHPublicKeyCommand = exports.de_DeleteSigningCertificateCommand = exports.de_DeleteServiceSpecificCredentialCommand = exports.de_DeleteServiceLinkedRoleCommand = exports.de_DeleteServerCertificateCommand = exports.de_DeleteSAMLProviderCommand = exports.de_DeleteRolePolicyCommand = exports.de_DeleteRolePermissionsBoundaryCommand = exports.de_DeleteRoleCommand = exports.de_DeletePolicyVersionCommand = exports.de_DeletePolicyCommand = exports.de_DeleteOpenIDConnectProviderCommand = exports.de_DeleteLoginProfileCommand = exports.de_DeleteInstanceProfileCommand = exports.de_DeleteGroupPolicyCommand = exports.de_DeleteGroupCommand = exports.de_DeleteAccountPasswordPolicyCommand = exports.de_DeleteAccountAliasCommand = exports.de_DeleteAccessKeyCommand = exports.de_DeactivateMFADeviceCommand = exports.de_CreateVirtualMFADeviceCommand = exports.de_CreateUserCommand = exports.de_CreateServiceSpecificCredentialCommand = exports.de_CreateServiceLinkedRoleCommand = exports.de_CreateSAMLProviderCommand = exports.de_CreateRoleCommand = exports.de_CreatePolicyVersionCommand = exports.de_CreatePolicyCommand = exports.de_CreateOpenIDConnectProviderCommand = exports.de_CreateLoginProfileCommand = exports.de_CreateInstanceProfileCommand = exports.de_CreateGroupCommand = exports.de_CreateAccountAliasCommand = exports.de_CreateAccessKeyCommand = exports.de_ChangePasswordCommand = exports.de_AttachUserPolicyCommand = exports.de_AttachRolePolicyCommand = exports.de_AttachGroupPolicyCommand = exports.de_AddUserToGroupCommand = exports.de_AddRoleToInstanceProfileCommand = exports.de_AddClientIDToOpenIDConnectProviderCommand = exports.se_UploadSSHPublicKeyCommand = exports.se_UploadSigningCertificateCommand = exports.se_UploadServerCertificateCommand = exports.se_UpdateUserCommand = exports.se_UpdateSSHPublicKeyCommand = exports.se_UpdateSigningCertificateCommand = exports.se_UpdateServiceSpecificCredentialCommand = exports.se_UpdateServerCertificateCommand = exports.se_UpdateSAMLProviderCommand = void 0;
|
|
7
|
+
exports.de_ListMFADevicesCommand = exports.de_ListInstanceProfileTagsCommand = exports.de_ListInstanceProfilesForRoleCommand = exports.de_ListInstanceProfilesCommand = exports.de_ListGroupsForUserCommand = exports.de_ListGroupsCommand = exports.de_ListGroupPoliciesCommand = exports.de_ListEntitiesForPolicyCommand = exports.de_ListAttachedUserPoliciesCommand = exports.de_ListAttachedRolePoliciesCommand = exports.de_ListAttachedGroupPoliciesCommand = exports.de_ListAccountAliasesCommand = exports.de_ListAccessKeysCommand = exports.de_GetUserPolicyCommand = exports.de_GetUserCommand = exports.de_GetSSHPublicKeyCommand = exports.de_GetServiceLinkedRoleDeletionStatusCommand = exports.de_GetServiceLastAccessedDetailsWithEntitiesCommand = exports.de_GetServiceLastAccessedDetailsCommand = exports.de_GetServerCertificateCommand = exports.de_GetSAMLProviderCommand = exports.de_GetRolePolicyCommand = exports.de_GetRoleCommand = exports.de_GetPolicyVersionCommand = exports.de_GetPolicyCommand = exports.de_GetOrganizationsAccessReportCommand = exports.de_GetOpenIDConnectProviderCommand = exports.de_GetMFADeviceCommand = exports.de_GetLoginProfileCommand = exports.de_GetInstanceProfileCommand = exports.de_GetGroupPolicyCommand = exports.de_GetGroupCommand = exports.de_GetCredentialReportCommand = exports.de_GetContextKeysForPrincipalPolicyCommand = exports.de_GetContextKeysForCustomPolicyCommand = exports.de_GetAccountSummaryCommand = exports.de_GetAccountPasswordPolicyCommand = exports.de_GetAccountAuthorizationDetailsCommand = exports.de_GetAccessKeyLastUsedCommand = exports.de_GenerateServiceLastAccessedDetailsCommand = exports.de_GenerateOrganizationsAccessReportCommand = exports.de_GenerateCredentialReportCommand = exports.de_EnableMFADeviceCommand = exports.de_DetachUserPolicyCommand = exports.de_DetachRolePolicyCommand = exports.de_DetachGroupPolicyCommand = exports.de_DeleteVirtualMFADeviceCommand = exports.de_DeleteUserPolicyCommand = exports.de_DeleteUserPermissionsBoundaryCommand = exports.de_DeleteUserCommand = void 0;
|
|
8
|
+
exports.de_UntagServerCertificateCommand = exports.de_UntagSAMLProviderCommand = exports.de_UntagRoleCommand = exports.de_UntagPolicyCommand = exports.de_UntagOpenIDConnectProviderCommand = exports.de_UntagMFADeviceCommand = exports.de_UntagInstanceProfileCommand = exports.de_TagUserCommand = exports.de_TagServerCertificateCommand = exports.de_TagSAMLProviderCommand = exports.de_TagRoleCommand = exports.de_TagPolicyCommand = exports.de_TagOpenIDConnectProviderCommand = exports.de_TagMFADeviceCommand = exports.de_TagInstanceProfileCommand = exports.de_SimulatePrincipalPolicyCommand = exports.de_SimulateCustomPolicyCommand = exports.de_SetSecurityTokenServicePreferencesCommand = exports.de_SetDefaultPolicyVersionCommand = exports.de_ResyncMFADeviceCommand = exports.de_ResetServiceSpecificCredentialCommand = exports.de_RemoveUserFromGroupCommand = exports.de_RemoveRoleFromInstanceProfileCommand = exports.de_RemoveClientIDFromOpenIDConnectProviderCommand = exports.de_PutUserPolicyCommand = exports.de_PutUserPermissionsBoundaryCommand = exports.de_PutRolePolicyCommand = exports.de_PutRolePermissionsBoundaryCommand = exports.de_PutGroupPolicyCommand = exports.de_ListVirtualMFADevicesCommand = exports.de_ListUserTagsCommand = exports.de_ListUsersCommand = exports.de_ListUserPoliciesCommand = exports.de_ListSSHPublicKeysCommand = exports.de_ListSigningCertificatesCommand = exports.de_ListServiceSpecificCredentialsCommand = exports.de_ListServerCertificateTagsCommand = exports.de_ListServerCertificatesCommand = exports.de_ListSAMLProviderTagsCommand = exports.de_ListSAMLProvidersCommand = exports.de_ListRoleTagsCommand = exports.de_ListRolesCommand = exports.de_ListRolePoliciesCommand = exports.de_ListPolicyVersionsCommand = exports.de_ListPolicyTagsCommand = exports.de_ListPoliciesGrantingServiceAccessCommand = exports.de_ListPoliciesCommand = exports.de_ListOpenIDConnectProviderTagsCommand = exports.de_ListOpenIDConnectProvidersCommand = exports.de_ListMFADeviceTagsCommand = void 0;
|
|
9
|
+
exports.de_UploadSSHPublicKeyCommand = exports.de_UploadSigningCertificateCommand = exports.de_UploadServerCertificateCommand = exports.de_UpdateUserCommand = exports.de_UpdateSSHPublicKeyCommand = exports.de_UpdateSigningCertificateCommand = exports.de_UpdateServiceSpecificCredentialCommand = exports.de_UpdateServerCertificateCommand = exports.de_UpdateSAMLProviderCommand = exports.de_UpdateRoleDescriptionCommand = exports.de_UpdateRoleCommand = exports.de_UpdateOpenIDConnectProviderThumbprintCommand = exports.de_UpdateLoginProfileCommand = exports.de_UpdateGroupCommand = exports.de_UpdateAssumeRolePolicyCommand = exports.de_UpdateAccountPasswordPolicyCommand = exports.de_UpdateAccessKeyCommand = exports.de_UntagUserCommand = void 0;
|
|
10
10
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
11
11
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
12
12
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
@@ -696,6 +696,17 @@ const se_GetLoginProfileCommand = async (input, context) => {
|
|
|
696
696
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
697
697
|
};
|
|
698
698
|
exports.se_GetLoginProfileCommand = se_GetLoginProfileCommand;
|
|
699
|
+
const se_GetMFADeviceCommand = async (input, context) => {
|
|
700
|
+
const headers = SHARED_HEADERS;
|
|
701
|
+
let body;
|
|
702
|
+
body = buildFormUrlencodedString({
|
|
703
|
+
...se_GetMFADeviceRequest(input, context),
|
|
704
|
+
Action: "GetMFADevice",
|
|
705
|
+
Version: "2010-05-08",
|
|
706
|
+
});
|
|
707
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
708
|
+
};
|
|
709
|
+
exports.se_GetMFADeviceCommand = se_GetMFADeviceCommand;
|
|
699
710
|
const se_GetOpenIDConnectProviderCommand = async (input, context) => {
|
|
700
711
|
const headers = SHARED_HEADERS;
|
|
701
712
|
let body;
|
|
@@ -4225,6 +4236,42 @@ const de_GetLoginProfileCommandError = async (output, context) => {
|
|
|
4225
4236
|
});
|
|
4226
4237
|
}
|
|
4227
4238
|
};
|
|
4239
|
+
const de_GetMFADeviceCommand = async (output, context) => {
|
|
4240
|
+
if (output.statusCode >= 300) {
|
|
4241
|
+
return de_GetMFADeviceCommandError(output, context);
|
|
4242
|
+
}
|
|
4243
|
+
const data = await parseBody(output.body, context);
|
|
4244
|
+
let contents = {};
|
|
4245
|
+
contents = de_GetMFADeviceResponse(data.GetMFADeviceResult, context);
|
|
4246
|
+
const response = {
|
|
4247
|
+
$metadata: deserializeMetadata(output),
|
|
4248
|
+
...contents,
|
|
4249
|
+
};
|
|
4250
|
+
return response;
|
|
4251
|
+
};
|
|
4252
|
+
exports.de_GetMFADeviceCommand = de_GetMFADeviceCommand;
|
|
4253
|
+
const de_GetMFADeviceCommandError = async (output, context) => {
|
|
4254
|
+
const parsedOutput = {
|
|
4255
|
+
...output,
|
|
4256
|
+
body: await parseErrorBody(output.body, context),
|
|
4257
|
+
};
|
|
4258
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4259
|
+
switch (errorCode) {
|
|
4260
|
+
case "NoSuchEntity":
|
|
4261
|
+
case "com.amazonaws.iam#NoSuchEntityException":
|
|
4262
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
4263
|
+
case "ServiceFailure":
|
|
4264
|
+
case "com.amazonaws.iam#ServiceFailureException":
|
|
4265
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4266
|
+
default:
|
|
4267
|
+
const parsedBody = parsedOutput.body;
|
|
4268
|
+
return throwDefaultError({
|
|
4269
|
+
output,
|
|
4270
|
+
parsedBody: parsedBody.Error,
|
|
4271
|
+
errorCode,
|
|
4272
|
+
});
|
|
4273
|
+
}
|
|
4274
|
+
};
|
|
4228
4275
|
const de_GetOpenIDConnectProviderCommand = async (output, context) => {
|
|
4229
4276
|
if (output.statusCode >= 300) {
|
|
4230
4277
|
return de_GetOpenIDConnectProviderCommandError(output, context);
|
|
@@ -8806,6 +8853,16 @@ const se_GetLoginProfileRequest = (input, context) => {
|
|
|
8806
8853
|
}
|
|
8807
8854
|
return entries;
|
|
8808
8855
|
};
|
|
8856
|
+
const se_GetMFADeviceRequest = (input, context) => {
|
|
8857
|
+
const entries = {};
|
|
8858
|
+
if (input.SerialNumber != null) {
|
|
8859
|
+
entries["SerialNumber"] = input.SerialNumber;
|
|
8860
|
+
}
|
|
8861
|
+
if (input.UserName != null) {
|
|
8862
|
+
entries["UserName"] = input.UserName;
|
|
8863
|
+
}
|
|
8864
|
+
return entries;
|
|
8865
|
+
};
|
|
8809
8866
|
const se_GetOpenIDConnectProviderRequest = (input, context) => {
|
|
8810
8867
|
const entries = {};
|
|
8811
8868
|
if (input.OpenIDConnectProviderArn != null) {
|
|
@@ -10407,6 +10464,15 @@ const de_certificateListType = (output, context) => {
|
|
|
10407
10464
|
return de_SigningCertificate(entry, context);
|
|
10408
10465
|
});
|
|
10409
10466
|
};
|
|
10467
|
+
const de_CertificationMapType = (output, context) => {
|
|
10468
|
+
return output.reduce((acc, pair) => {
|
|
10469
|
+
if (pair["value"] === null) {
|
|
10470
|
+
return acc;
|
|
10471
|
+
}
|
|
10472
|
+
acc[pair["key"]] = (0, smithy_client_1.expectString)(pair["value"]);
|
|
10473
|
+
return acc;
|
|
10474
|
+
}, {});
|
|
10475
|
+
};
|
|
10410
10476
|
const de_clientIDListType = (output, context) => {
|
|
10411
10477
|
return (output || [])
|
|
10412
10478
|
.filter((e) => e != null)
|
|
@@ -10867,6 +10933,25 @@ const de_GetLoginProfileResponse = (output, context) => {
|
|
|
10867
10933
|
}
|
|
10868
10934
|
return contents;
|
|
10869
10935
|
};
|
|
10936
|
+
const de_GetMFADeviceResponse = (output, context) => {
|
|
10937
|
+
const contents = {};
|
|
10938
|
+
if (output["UserName"] !== undefined) {
|
|
10939
|
+
contents.UserName = (0, smithy_client_1.expectString)(output["UserName"]);
|
|
10940
|
+
}
|
|
10941
|
+
if (output["SerialNumber"] !== undefined) {
|
|
10942
|
+
contents.SerialNumber = (0, smithy_client_1.expectString)(output["SerialNumber"]);
|
|
10943
|
+
}
|
|
10944
|
+
if (output["EnableDate"] !== undefined) {
|
|
10945
|
+
contents.EnableDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["EnableDate"]));
|
|
10946
|
+
}
|
|
10947
|
+
if (output.Certifications === "") {
|
|
10948
|
+
contents.Certifications = {};
|
|
10949
|
+
}
|
|
10950
|
+
else if (output["Certifications"] !== undefined && output["Certifications"]["entry"] !== undefined) {
|
|
10951
|
+
contents.Certifications = de_CertificationMapType((0, smithy_client_1.getArrayIfSingleItem)(output["Certifications"]["entry"]), context);
|
|
10952
|
+
}
|
|
10953
|
+
return contents;
|
|
10954
|
+
};
|
|
10870
10955
|
const de_GetOpenIDConnectProviderResponse = (output, context) => {
|
|
10871
10956
|
const contents = {};
|
|
10872
10957
|
if (output["Url"] !== undefined) {
|
package/dist-es/IAM.js
CHANGED
|
@@ -62,6 +62,7 @@ import { GetGroupCommand } from "./commands/GetGroupCommand";
|
|
|
62
62
|
import { GetGroupPolicyCommand, } from "./commands/GetGroupPolicyCommand";
|
|
63
63
|
import { GetInstanceProfileCommand, } from "./commands/GetInstanceProfileCommand";
|
|
64
64
|
import { GetLoginProfileCommand, } from "./commands/GetLoginProfileCommand";
|
|
65
|
+
import { GetMFADeviceCommand, } from "./commands/GetMFADeviceCommand";
|
|
65
66
|
import { GetOpenIDConnectProviderCommand, } from "./commands/GetOpenIDConnectProviderCommand";
|
|
66
67
|
import { GetOrganizationsAccessReportCommand, } from "./commands/GetOrganizationsAccessReportCommand";
|
|
67
68
|
import { GetPolicyCommand } from "./commands/GetPolicyCommand";
|
|
@@ -222,6 +223,7 @@ const commands = {
|
|
|
222
223
|
GetGroupPolicyCommand,
|
|
223
224
|
GetInstanceProfileCommand,
|
|
224
225
|
GetLoginProfileCommand,
|
|
226
|
+
GetMFADeviceCommand,
|
|
225
227
|
GetOpenIDConnectProviderCommand,
|
|
226
228
|
GetOrganizationsAccessReportCommand,
|
|
227
229
|
GetPolicyCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_GetMFADeviceCommand, se_GetMFADeviceCommand } from "../protocols/Aws_query";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetMFADeviceCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetMFADeviceCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "IAMClient";
|
|
25
|
+
const commandName = "GetMFADeviceCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_GetMFADeviceCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_GetMFADeviceCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -61,6 +61,7 @@ export * from "./GetGroupCommand";
|
|
|
61
61
|
export * from "./GetGroupPolicyCommand";
|
|
62
62
|
export * from "./GetInstanceProfileCommand";
|
|
63
63
|
export * from "./GetLoginProfileCommand";
|
|
64
|
+
export * from "./GetMFADeviceCommand";
|
|
64
65
|
export * from "./GetOpenIDConnectProviderCommand";
|
|
65
66
|
export * from "./GetOrganizationsAccessReportCommand";
|
|
66
67
|
export * from "./GetPolicyCommand";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListInstanceProfileTagsCommand, } from "../commands/ListInstanceProfileTagsCommand";
|
|
2
|
+
import { IAMClient } from "../IAMClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListInstanceProfileTagsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListInstanceProfileTags(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.Marker = token;
|
|
12
|
+
input["MaxItems"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof IAMClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.Marker;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListMFADeviceTagsCommand, } from "../commands/ListMFADeviceTagsCommand";
|
|
2
|
+
import { IAMClient } from "../IAMClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListMFADeviceTagsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListMFADeviceTags(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.Marker = token;
|
|
12
|
+
input["MaxItems"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof IAMClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.Marker;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|