@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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListOpenIDConnectProviderTagsCommand, } from "../commands/ListOpenIDConnectProviderTagsCommand";
|
|
2
|
+
import { IAMClient } from "../IAMClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListOpenIDConnectProviderTagsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListOpenIDConnectProviderTags(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 { ListPolicyTagsCommand, } from "../commands/ListPolicyTagsCommand";
|
|
2
|
+
import { IAMClient } from "../IAMClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListPolicyTagsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListPolicyTags(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 { ListRoleTagsCommand, } from "../commands/ListRoleTagsCommand";
|
|
2
|
+
import { IAMClient } from "../IAMClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListRoleTagsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListRoleTags(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 { ListSAMLProviderTagsCommand, } from "../commands/ListSAMLProviderTagsCommand";
|
|
2
|
+
import { IAMClient } from "../IAMClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListSAMLProviderTagsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListSAMLProviderTags(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 { ListServerCertificateTagsCommand, } from "../commands/ListServerCertificateTagsCommand";
|
|
2
|
+
import { IAMClient } from "../IAMClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListServerCertificateTagsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListServerCertificateTags(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
|
+
}
|
|
@@ -10,14 +10,21 @@ export * from "./ListEntitiesForPolicyPaginator";
|
|
|
10
10
|
export * from "./ListGroupPoliciesPaginator";
|
|
11
11
|
export * from "./ListGroupsForUserPaginator";
|
|
12
12
|
export * from "./ListGroupsPaginator";
|
|
13
|
+
export * from "./ListInstanceProfileTagsPaginator";
|
|
13
14
|
export * from "./ListInstanceProfilesForRolePaginator";
|
|
14
15
|
export * from "./ListInstanceProfilesPaginator";
|
|
16
|
+
export * from "./ListMFADeviceTagsPaginator";
|
|
15
17
|
export * from "./ListMFADevicesPaginator";
|
|
18
|
+
export * from "./ListOpenIDConnectProviderTagsPaginator";
|
|
16
19
|
export * from "./ListPoliciesPaginator";
|
|
20
|
+
export * from "./ListPolicyTagsPaginator";
|
|
17
21
|
export * from "./ListPolicyVersionsPaginator";
|
|
18
22
|
export * from "./ListRolePoliciesPaginator";
|
|
23
|
+
export * from "./ListRoleTagsPaginator";
|
|
19
24
|
export * from "./ListRolesPaginator";
|
|
25
|
+
export * from "./ListSAMLProviderTagsPaginator";
|
|
20
26
|
export * from "./ListSSHPublicKeysPaginator";
|
|
27
|
+
export * from "./ListServerCertificateTagsPaginator";
|
|
21
28
|
export * from "./ListServerCertificatesPaginator";
|
|
22
29
|
export * from "./ListSigningCertificatesPaginator";
|
|
23
30
|
export * from "./ListUserPoliciesPaginator";
|
|
@@ -624,6 +624,16 @@ export const se_GetLoginProfileCommand = async (input, context) => {
|
|
|
624
624
|
});
|
|
625
625
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
626
626
|
};
|
|
627
|
+
export const se_GetMFADeviceCommand = async (input, context) => {
|
|
628
|
+
const headers = SHARED_HEADERS;
|
|
629
|
+
let body;
|
|
630
|
+
body = buildFormUrlencodedString({
|
|
631
|
+
...se_GetMFADeviceRequest(input, context),
|
|
632
|
+
Action: "GetMFADevice",
|
|
633
|
+
Version: "2010-05-08",
|
|
634
|
+
});
|
|
635
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
636
|
+
};
|
|
627
637
|
export const se_GetOpenIDConnectProviderCommand = async (input, context) => {
|
|
628
638
|
const headers = SHARED_HEADERS;
|
|
629
639
|
let body;
|
|
@@ -3995,6 +4005,41 @@ const de_GetLoginProfileCommandError = async (output, context) => {
|
|
|
3995
4005
|
});
|
|
3996
4006
|
}
|
|
3997
4007
|
};
|
|
4008
|
+
export const de_GetMFADeviceCommand = async (output, context) => {
|
|
4009
|
+
if (output.statusCode >= 300) {
|
|
4010
|
+
return de_GetMFADeviceCommandError(output, context);
|
|
4011
|
+
}
|
|
4012
|
+
const data = await parseBody(output.body, context);
|
|
4013
|
+
let contents = {};
|
|
4014
|
+
contents = de_GetMFADeviceResponse(data.GetMFADeviceResult, context);
|
|
4015
|
+
const response = {
|
|
4016
|
+
$metadata: deserializeMetadata(output),
|
|
4017
|
+
...contents,
|
|
4018
|
+
};
|
|
4019
|
+
return response;
|
|
4020
|
+
};
|
|
4021
|
+
const de_GetMFADeviceCommandError = async (output, context) => {
|
|
4022
|
+
const parsedOutput = {
|
|
4023
|
+
...output,
|
|
4024
|
+
body: await parseErrorBody(output.body, context),
|
|
4025
|
+
};
|
|
4026
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4027
|
+
switch (errorCode) {
|
|
4028
|
+
case "NoSuchEntity":
|
|
4029
|
+
case "com.amazonaws.iam#NoSuchEntityException":
|
|
4030
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
4031
|
+
case "ServiceFailure":
|
|
4032
|
+
case "com.amazonaws.iam#ServiceFailureException":
|
|
4033
|
+
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
4034
|
+
default:
|
|
4035
|
+
const parsedBody = parsedOutput.body;
|
|
4036
|
+
return throwDefaultError({
|
|
4037
|
+
output,
|
|
4038
|
+
parsedBody: parsedBody.Error,
|
|
4039
|
+
errorCode,
|
|
4040
|
+
});
|
|
4041
|
+
}
|
|
4042
|
+
};
|
|
3998
4043
|
export const de_GetOpenIDConnectProviderCommand = async (output, context) => {
|
|
3999
4044
|
if (output.statusCode >= 300) {
|
|
4000
4045
|
return de_GetOpenIDConnectProviderCommandError(output, context);
|
|
@@ -8481,6 +8526,16 @@ const se_GetLoginProfileRequest = (input, context) => {
|
|
|
8481
8526
|
}
|
|
8482
8527
|
return entries;
|
|
8483
8528
|
};
|
|
8529
|
+
const se_GetMFADeviceRequest = (input, context) => {
|
|
8530
|
+
const entries = {};
|
|
8531
|
+
if (input.SerialNumber != null) {
|
|
8532
|
+
entries["SerialNumber"] = input.SerialNumber;
|
|
8533
|
+
}
|
|
8534
|
+
if (input.UserName != null) {
|
|
8535
|
+
entries["UserName"] = input.UserName;
|
|
8536
|
+
}
|
|
8537
|
+
return entries;
|
|
8538
|
+
};
|
|
8484
8539
|
const se_GetOpenIDConnectProviderRequest = (input, context) => {
|
|
8485
8540
|
const entries = {};
|
|
8486
8541
|
if (input.OpenIDConnectProviderArn != null) {
|
|
@@ -10082,6 +10137,15 @@ const de_certificateListType = (output, context) => {
|
|
|
10082
10137
|
return de_SigningCertificate(entry, context);
|
|
10083
10138
|
});
|
|
10084
10139
|
};
|
|
10140
|
+
const de_CertificationMapType = (output, context) => {
|
|
10141
|
+
return output.reduce((acc, pair) => {
|
|
10142
|
+
if (pair["value"] === null) {
|
|
10143
|
+
return acc;
|
|
10144
|
+
}
|
|
10145
|
+
acc[pair["key"]] = __expectString(pair["value"]);
|
|
10146
|
+
return acc;
|
|
10147
|
+
}, {});
|
|
10148
|
+
};
|
|
10085
10149
|
const de_clientIDListType = (output, context) => {
|
|
10086
10150
|
return (output || [])
|
|
10087
10151
|
.filter((e) => e != null)
|
|
@@ -10542,6 +10606,25 @@ const de_GetLoginProfileResponse = (output, context) => {
|
|
|
10542
10606
|
}
|
|
10543
10607
|
return contents;
|
|
10544
10608
|
};
|
|
10609
|
+
const de_GetMFADeviceResponse = (output, context) => {
|
|
10610
|
+
const contents = {};
|
|
10611
|
+
if (output["UserName"] !== undefined) {
|
|
10612
|
+
contents.UserName = __expectString(output["UserName"]);
|
|
10613
|
+
}
|
|
10614
|
+
if (output["SerialNumber"] !== undefined) {
|
|
10615
|
+
contents.SerialNumber = __expectString(output["SerialNumber"]);
|
|
10616
|
+
}
|
|
10617
|
+
if (output["EnableDate"] !== undefined) {
|
|
10618
|
+
contents.EnableDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["EnableDate"]));
|
|
10619
|
+
}
|
|
10620
|
+
if (output.Certifications === "") {
|
|
10621
|
+
contents.Certifications = {};
|
|
10622
|
+
}
|
|
10623
|
+
else if (output["Certifications"] !== undefined && output["Certifications"]["entry"] !== undefined) {
|
|
10624
|
+
contents.Certifications = de_CertificationMapType(__getArrayIfSingleItem(output["Certifications"]["entry"]), context);
|
|
10625
|
+
}
|
|
10626
|
+
return contents;
|
|
10627
|
+
};
|
|
10545
10628
|
const de_GetOpenIDConnectProviderResponse = (output, context) => {
|
|
10546
10629
|
const contents = {};
|
|
10547
10630
|
if (output["Url"] !== undefined) {
|
package/dist-types/IAM.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ import { GetGroupCommandInput, GetGroupCommandOutput } from "./commands/GetGroup
|
|
|
62
62
|
import { GetGroupPolicyCommandInput, GetGroupPolicyCommandOutput } from "./commands/GetGroupPolicyCommand";
|
|
63
63
|
import { GetInstanceProfileCommandInput, GetInstanceProfileCommandOutput } from "./commands/GetInstanceProfileCommand";
|
|
64
64
|
import { GetLoginProfileCommandInput, GetLoginProfileCommandOutput } from "./commands/GetLoginProfileCommand";
|
|
65
|
+
import { GetMFADeviceCommandInput, GetMFADeviceCommandOutput } from "./commands/GetMFADeviceCommand";
|
|
65
66
|
import { GetOpenIDConnectProviderCommandInput, GetOpenIDConnectProviderCommandOutput } from "./commands/GetOpenIDConnectProviderCommand";
|
|
66
67
|
import { GetOrganizationsAccessReportCommandInput, GetOrganizationsAccessReportCommandOutput } from "./commands/GetOrganizationsAccessReportCommand";
|
|
67
68
|
import { GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand";
|
|
@@ -537,6 +538,12 @@ export interface IAM {
|
|
|
537
538
|
getLoginProfile(args: GetLoginProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetLoginProfileCommandOutput>;
|
|
538
539
|
getLoginProfile(args: GetLoginProfileCommandInput, cb: (err: any, data?: GetLoginProfileCommandOutput) => void): void;
|
|
539
540
|
getLoginProfile(args: GetLoginProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLoginProfileCommandOutput) => void): void;
|
|
541
|
+
/**
|
|
542
|
+
* @see {@link GetMFADeviceCommand}
|
|
543
|
+
*/
|
|
544
|
+
getMFADevice(args: GetMFADeviceCommandInput, options?: __HttpHandlerOptions): Promise<GetMFADeviceCommandOutput>;
|
|
545
|
+
getMFADevice(args: GetMFADeviceCommandInput, cb: (err: any, data?: GetMFADeviceCommandOutput) => void): void;
|
|
546
|
+
getMFADevice(args: GetMFADeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMFADeviceCommandOutput) => void): void;
|
|
540
547
|
/**
|
|
541
548
|
* @see {@link GetOpenIDConnectProviderCommand}
|
|
542
549
|
*/
|
|
@@ -71,6 +71,7 @@ import { GetGroupCommandInput, GetGroupCommandOutput } from "./commands/GetGroup
|
|
|
71
71
|
import { GetGroupPolicyCommandInput, GetGroupPolicyCommandOutput } from "./commands/GetGroupPolicyCommand";
|
|
72
72
|
import { GetInstanceProfileCommandInput, GetInstanceProfileCommandOutput } from "./commands/GetInstanceProfileCommand";
|
|
73
73
|
import { GetLoginProfileCommandInput, GetLoginProfileCommandOutput } from "./commands/GetLoginProfileCommand";
|
|
74
|
+
import { GetMFADeviceCommandInput, GetMFADeviceCommandOutput } from "./commands/GetMFADeviceCommand";
|
|
74
75
|
import { GetOpenIDConnectProviderCommandInput, GetOpenIDConnectProviderCommandOutput } from "./commands/GetOpenIDConnectProviderCommand";
|
|
75
76
|
import { GetOrganizationsAccessReportCommandInput, GetOrganizationsAccessReportCommandOutput } from "./commands/GetOrganizationsAccessReportCommand";
|
|
76
77
|
import { GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand";
|
|
@@ -171,11 +172,11 @@ export { __Client };
|
|
|
171
172
|
/**
|
|
172
173
|
* @public
|
|
173
174
|
*/
|
|
174
|
-
export type ServiceInputTypes = AddClientIDToOpenIDConnectProviderCommandInput | AddRoleToInstanceProfileCommandInput | AddUserToGroupCommandInput | AttachGroupPolicyCommandInput | AttachRolePolicyCommandInput | AttachUserPolicyCommandInput | ChangePasswordCommandInput | CreateAccessKeyCommandInput | CreateAccountAliasCommandInput | CreateGroupCommandInput | CreateInstanceProfileCommandInput | CreateLoginProfileCommandInput | CreateOpenIDConnectProviderCommandInput | CreatePolicyCommandInput | CreatePolicyVersionCommandInput | CreateRoleCommandInput | CreateSAMLProviderCommandInput | CreateServiceLinkedRoleCommandInput | CreateServiceSpecificCredentialCommandInput | CreateUserCommandInput | CreateVirtualMFADeviceCommandInput | DeactivateMFADeviceCommandInput | DeleteAccessKeyCommandInput | DeleteAccountAliasCommandInput | DeleteAccountPasswordPolicyCommandInput | DeleteGroupCommandInput | DeleteGroupPolicyCommandInput | DeleteInstanceProfileCommandInput | DeleteLoginProfileCommandInput | DeleteOpenIDConnectProviderCommandInput | DeletePolicyCommandInput | DeletePolicyVersionCommandInput | DeleteRoleCommandInput | DeleteRolePermissionsBoundaryCommandInput | DeleteRolePolicyCommandInput | DeleteSAMLProviderCommandInput | DeleteSSHPublicKeyCommandInput | DeleteServerCertificateCommandInput | DeleteServiceLinkedRoleCommandInput | DeleteServiceSpecificCredentialCommandInput | DeleteSigningCertificateCommandInput | DeleteUserCommandInput | DeleteUserPermissionsBoundaryCommandInput | DeleteUserPolicyCommandInput | DeleteVirtualMFADeviceCommandInput | DetachGroupPolicyCommandInput | DetachRolePolicyCommandInput | DetachUserPolicyCommandInput | EnableMFADeviceCommandInput | GenerateCredentialReportCommandInput | GenerateOrganizationsAccessReportCommandInput | GenerateServiceLastAccessedDetailsCommandInput | GetAccessKeyLastUsedCommandInput | GetAccountAuthorizationDetailsCommandInput | GetAccountPasswordPolicyCommandInput | GetAccountSummaryCommandInput | GetContextKeysForCustomPolicyCommandInput | GetContextKeysForPrincipalPolicyCommandInput | GetCredentialReportCommandInput | GetGroupCommandInput | GetGroupPolicyCommandInput | GetInstanceProfileCommandInput | GetLoginProfileCommandInput | GetOpenIDConnectProviderCommandInput | GetOrganizationsAccessReportCommandInput | GetPolicyCommandInput | GetPolicyVersionCommandInput | GetRoleCommandInput | GetRolePolicyCommandInput | GetSAMLProviderCommandInput | GetSSHPublicKeyCommandInput | GetServerCertificateCommandInput | GetServiceLastAccessedDetailsCommandInput | GetServiceLastAccessedDetailsWithEntitiesCommandInput | GetServiceLinkedRoleDeletionStatusCommandInput | GetUserCommandInput | GetUserPolicyCommandInput | ListAccessKeysCommandInput | ListAccountAliasesCommandInput | ListAttachedGroupPoliciesCommandInput | ListAttachedRolePoliciesCommandInput | ListAttachedUserPoliciesCommandInput | ListEntitiesForPolicyCommandInput | ListGroupPoliciesCommandInput | ListGroupsCommandInput | ListGroupsForUserCommandInput | ListInstanceProfileTagsCommandInput | ListInstanceProfilesCommandInput | ListInstanceProfilesForRoleCommandInput | ListMFADeviceTagsCommandInput | ListMFADevicesCommandInput | ListOpenIDConnectProviderTagsCommandInput | ListOpenIDConnectProvidersCommandInput | ListPoliciesCommandInput | ListPoliciesGrantingServiceAccessCommandInput | ListPolicyTagsCommandInput | ListPolicyVersionsCommandInput | ListRolePoliciesCommandInput | ListRoleTagsCommandInput | ListRolesCommandInput | ListSAMLProviderTagsCommandInput | ListSAMLProvidersCommandInput | ListSSHPublicKeysCommandInput | ListServerCertificateTagsCommandInput | ListServerCertificatesCommandInput | ListServiceSpecificCredentialsCommandInput | ListSigningCertificatesCommandInput | ListUserPoliciesCommandInput | ListUserTagsCommandInput | ListUsersCommandInput | ListVirtualMFADevicesCommandInput | PutGroupPolicyCommandInput | PutRolePermissionsBoundaryCommandInput | PutRolePolicyCommandInput | PutUserPermissionsBoundaryCommandInput | PutUserPolicyCommandInput | RemoveClientIDFromOpenIDConnectProviderCommandInput | RemoveRoleFromInstanceProfileCommandInput | RemoveUserFromGroupCommandInput | ResetServiceSpecificCredentialCommandInput | ResyncMFADeviceCommandInput | SetDefaultPolicyVersionCommandInput | SetSecurityTokenServicePreferencesCommandInput | SimulateCustomPolicyCommandInput | SimulatePrincipalPolicyCommandInput | TagInstanceProfileCommandInput | TagMFADeviceCommandInput | TagOpenIDConnectProviderCommandInput | TagPolicyCommandInput | TagRoleCommandInput | TagSAMLProviderCommandInput | TagServerCertificateCommandInput | TagUserCommandInput | UntagInstanceProfileCommandInput | UntagMFADeviceCommandInput | UntagOpenIDConnectProviderCommandInput | UntagPolicyCommandInput | UntagRoleCommandInput | UntagSAMLProviderCommandInput | UntagServerCertificateCommandInput | UntagUserCommandInput | UpdateAccessKeyCommandInput | UpdateAccountPasswordPolicyCommandInput | UpdateAssumeRolePolicyCommandInput | UpdateGroupCommandInput | UpdateLoginProfileCommandInput | UpdateOpenIDConnectProviderThumbprintCommandInput | UpdateRoleCommandInput | UpdateRoleDescriptionCommandInput | UpdateSAMLProviderCommandInput | UpdateSSHPublicKeyCommandInput | UpdateServerCertificateCommandInput | UpdateServiceSpecificCredentialCommandInput | UpdateSigningCertificateCommandInput | UpdateUserCommandInput | UploadSSHPublicKeyCommandInput | UploadServerCertificateCommandInput | UploadSigningCertificateCommandInput;
|
|
175
|
+
export type ServiceInputTypes = AddClientIDToOpenIDConnectProviderCommandInput | AddRoleToInstanceProfileCommandInput | AddUserToGroupCommandInput | AttachGroupPolicyCommandInput | AttachRolePolicyCommandInput | AttachUserPolicyCommandInput | ChangePasswordCommandInput | CreateAccessKeyCommandInput | CreateAccountAliasCommandInput | CreateGroupCommandInput | CreateInstanceProfileCommandInput | CreateLoginProfileCommandInput | CreateOpenIDConnectProviderCommandInput | CreatePolicyCommandInput | CreatePolicyVersionCommandInput | CreateRoleCommandInput | CreateSAMLProviderCommandInput | CreateServiceLinkedRoleCommandInput | CreateServiceSpecificCredentialCommandInput | CreateUserCommandInput | CreateVirtualMFADeviceCommandInput | DeactivateMFADeviceCommandInput | DeleteAccessKeyCommandInput | DeleteAccountAliasCommandInput | DeleteAccountPasswordPolicyCommandInput | DeleteGroupCommandInput | DeleteGroupPolicyCommandInput | DeleteInstanceProfileCommandInput | DeleteLoginProfileCommandInput | DeleteOpenIDConnectProviderCommandInput | DeletePolicyCommandInput | DeletePolicyVersionCommandInput | DeleteRoleCommandInput | DeleteRolePermissionsBoundaryCommandInput | DeleteRolePolicyCommandInput | DeleteSAMLProviderCommandInput | DeleteSSHPublicKeyCommandInput | DeleteServerCertificateCommandInput | DeleteServiceLinkedRoleCommandInput | DeleteServiceSpecificCredentialCommandInput | DeleteSigningCertificateCommandInput | DeleteUserCommandInput | DeleteUserPermissionsBoundaryCommandInput | DeleteUserPolicyCommandInput | DeleteVirtualMFADeviceCommandInput | DetachGroupPolicyCommandInput | DetachRolePolicyCommandInput | DetachUserPolicyCommandInput | EnableMFADeviceCommandInput | GenerateCredentialReportCommandInput | GenerateOrganizationsAccessReportCommandInput | GenerateServiceLastAccessedDetailsCommandInput | GetAccessKeyLastUsedCommandInput | GetAccountAuthorizationDetailsCommandInput | GetAccountPasswordPolicyCommandInput | GetAccountSummaryCommandInput | GetContextKeysForCustomPolicyCommandInput | GetContextKeysForPrincipalPolicyCommandInput | GetCredentialReportCommandInput | GetGroupCommandInput | GetGroupPolicyCommandInput | GetInstanceProfileCommandInput | GetLoginProfileCommandInput | GetMFADeviceCommandInput | GetOpenIDConnectProviderCommandInput | GetOrganizationsAccessReportCommandInput | GetPolicyCommandInput | GetPolicyVersionCommandInput | GetRoleCommandInput | GetRolePolicyCommandInput | GetSAMLProviderCommandInput | GetSSHPublicKeyCommandInput | GetServerCertificateCommandInput | GetServiceLastAccessedDetailsCommandInput | GetServiceLastAccessedDetailsWithEntitiesCommandInput | GetServiceLinkedRoleDeletionStatusCommandInput | GetUserCommandInput | GetUserPolicyCommandInput | ListAccessKeysCommandInput | ListAccountAliasesCommandInput | ListAttachedGroupPoliciesCommandInput | ListAttachedRolePoliciesCommandInput | ListAttachedUserPoliciesCommandInput | ListEntitiesForPolicyCommandInput | ListGroupPoliciesCommandInput | ListGroupsCommandInput | ListGroupsForUserCommandInput | ListInstanceProfileTagsCommandInput | ListInstanceProfilesCommandInput | ListInstanceProfilesForRoleCommandInput | ListMFADeviceTagsCommandInput | ListMFADevicesCommandInput | ListOpenIDConnectProviderTagsCommandInput | ListOpenIDConnectProvidersCommandInput | ListPoliciesCommandInput | ListPoliciesGrantingServiceAccessCommandInput | ListPolicyTagsCommandInput | ListPolicyVersionsCommandInput | ListRolePoliciesCommandInput | ListRoleTagsCommandInput | ListRolesCommandInput | ListSAMLProviderTagsCommandInput | ListSAMLProvidersCommandInput | ListSSHPublicKeysCommandInput | ListServerCertificateTagsCommandInput | ListServerCertificatesCommandInput | ListServiceSpecificCredentialsCommandInput | ListSigningCertificatesCommandInput | ListUserPoliciesCommandInput | ListUserTagsCommandInput | ListUsersCommandInput | ListVirtualMFADevicesCommandInput | PutGroupPolicyCommandInput | PutRolePermissionsBoundaryCommandInput | PutRolePolicyCommandInput | PutUserPermissionsBoundaryCommandInput | PutUserPolicyCommandInput | RemoveClientIDFromOpenIDConnectProviderCommandInput | RemoveRoleFromInstanceProfileCommandInput | RemoveUserFromGroupCommandInput | ResetServiceSpecificCredentialCommandInput | ResyncMFADeviceCommandInput | SetDefaultPolicyVersionCommandInput | SetSecurityTokenServicePreferencesCommandInput | SimulateCustomPolicyCommandInput | SimulatePrincipalPolicyCommandInput | TagInstanceProfileCommandInput | TagMFADeviceCommandInput | TagOpenIDConnectProviderCommandInput | TagPolicyCommandInput | TagRoleCommandInput | TagSAMLProviderCommandInput | TagServerCertificateCommandInput | TagUserCommandInput | UntagInstanceProfileCommandInput | UntagMFADeviceCommandInput | UntagOpenIDConnectProviderCommandInput | UntagPolicyCommandInput | UntagRoleCommandInput | UntagSAMLProviderCommandInput | UntagServerCertificateCommandInput | UntagUserCommandInput | UpdateAccessKeyCommandInput | UpdateAccountPasswordPolicyCommandInput | UpdateAssumeRolePolicyCommandInput | UpdateGroupCommandInput | UpdateLoginProfileCommandInput | UpdateOpenIDConnectProviderThumbprintCommandInput | UpdateRoleCommandInput | UpdateRoleDescriptionCommandInput | UpdateSAMLProviderCommandInput | UpdateSSHPublicKeyCommandInput | UpdateServerCertificateCommandInput | UpdateServiceSpecificCredentialCommandInput | UpdateSigningCertificateCommandInput | UpdateUserCommandInput | UploadSSHPublicKeyCommandInput | UploadServerCertificateCommandInput | UploadSigningCertificateCommandInput;
|
|
175
176
|
/**
|
|
176
177
|
* @public
|
|
177
178
|
*/
|
|
178
|
-
export type ServiceOutputTypes = AddClientIDToOpenIDConnectProviderCommandOutput | AddRoleToInstanceProfileCommandOutput | AddUserToGroupCommandOutput | AttachGroupPolicyCommandOutput | AttachRolePolicyCommandOutput | AttachUserPolicyCommandOutput | ChangePasswordCommandOutput | CreateAccessKeyCommandOutput | CreateAccountAliasCommandOutput | CreateGroupCommandOutput | CreateInstanceProfileCommandOutput | CreateLoginProfileCommandOutput | CreateOpenIDConnectProviderCommandOutput | CreatePolicyCommandOutput | CreatePolicyVersionCommandOutput | CreateRoleCommandOutput | CreateSAMLProviderCommandOutput | CreateServiceLinkedRoleCommandOutput | CreateServiceSpecificCredentialCommandOutput | CreateUserCommandOutput | CreateVirtualMFADeviceCommandOutput | DeactivateMFADeviceCommandOutput | DeleteAccessKeyCommandOutput | DeleteAccountAliasCommandOutput | DeleteAccountPasswordPolicyCommandOutput | DeleteGroupCommandOutput | DeleteGroupPolicyCommandOutput | DeleteInstanceProfileCommandOutput | DeleteLoginProfileCommandOutput | DeleteOpenIDConnectProviderCommandOutput | DeletePolicyCommandOutput | DeletePolicyVersionCommandOutput | DeleteRoleCommandOutput | DeleteRolePermissionsBoundaryCommandOutput | DeleteRolePolicyCommandOutput | DeleteSAMLProviderCommandOutput | DeleteSSHPublicKeyCommandOutput | DeleteServerCertificateCommandOutput | DeleteServiceLinkedRoleCommandOutput | DeleteServiceSpecificCredentialCommandOutput | DeleteSigningCertificateCommandOutput | DeleteUserCommandOutput | DeleteUserPermissionsBoundaryCommandOutput | DeleteUserPolicyCommandOutput | DeleteVirtualMFADeviceCommandOutput | DetachGroupPolicyCommandOutput | DetachRolePolicyCommandOutput | DetachUserPolicyCommandOutput | EnableMFADeviceCommandOutput | GenerateCredentialReportCommandOutput | GenerateOrganizationsAccessReportCommandOutput | GenerateServiceLastAccessedDetailsCommandOutput | GetAccessKeyLastUsedCommandOutput | GetAccountAuthorizationDetailsCommandOutput | GetAccountPasswordPolicyCommandOutput | GetAccountSummaryCommandOutput | GetContextKeysForCustomPolicyCommandOutput | GetContextKeysForPrincipalPolicyCommandOutput | GetCredentialReportCommandOutput | GetGroupCommandOutput | GetGroupPolicyCommandOutput | GetInstanceProfileCommandOutput | GetLoginProfileCommandOutput | GetOpenIDConnectProviderCommandOutput | GetOrganizationsAccessReportCommandOutput | GetPolicyCommandOutput | GetPolicyVersionCommandOutput | GetRoleCommandOutput | GetRolePolicyCommandOutput | GetSAMLProviderCommandOutput | GetSSHPublicKeyCommandOutput | GetServerCertificateCommandOutput | GetServiceLastAccessedDetailsCommandOutput | GetServiceLastAccessedDetailsWithEntitiesCommandOutput | GetServiceLinkedRoleDeletionStatusCommandOutput | GetUserCommandOutput | GetUserPolicyCommandOutput | ListAccessKeysCommandOutput | ListAccountAliasesCommandOutput | ListAttachedGroupPoliciesCommandOutput | ListAttachedRolePoliciesCommandOutput | ListAttachedUserPoliciesCommandOutput | ListEntitiesForPolicyCommandOutput | ListGroupPoliciesCommandOutput | ListGroupsCommandOutput | ListGroupsForUserCommandOutput | ListInstanceProfileTagsCommandOutput | ListInstanceProfilesCommandOutput | ListInstanceProfilesForRoleCommandOutput | ListMFADeviceTagsCommandOutput | ListMFADevicesCommandOutput | ListOpenIDConnectProviderTagsCommandOutput | ListOpenIDConnectProvidersCommandOutput | ListPoliciesCommandOutput | ListPoliciesGrantingServiceAccessCommandOutput | ListPolicyTagsCommandOutput | ListPolicyVersionsCommandOutput | ListRolePoliciesCommandOutput | ListRoleTagsCommandOutput | ListRolesCommandOutput | ListSAMLProviderTagsCommandOutput | ListSAMLProvidersCommandOutput | ListSSHPublicKeysCommandOutput | ListServerCertificateTagsCommandOutput | ListServerCertificatesCommandOutput | ListServiceSpecificCredentialsCommandOutput | ListSigningCertificatesCommandOutput | ListUserPoliciesCommandOutput | ListUserTagsCommandOutput | ListUsersCommandOutput | ListVirtualMFADevicesCommandOutput | PutGroupPolicyCommandOutput | PutRolePermissionsBoundaryCommandOutput | PutRolePolicyCommandOutput | PutUserPermissionsBoundaryCommandOutput | PutUserPolicyCommandOutput | RemoveClientIDFromOpenIDConnectProviderCommandOutput | RemoveRoleFromInstanceProfileCommandOutput | RemoveUserFromGroupCommandOutput | ResetServiceSpecificCredentialCommandOutput | ResyncMFADeviceCommandOutput | SetDefaultPolicyVersionCommandOutput | SetSecurityTokenServicePreferencesCommandOutput | SimulateCustomPolicyCommandOutput | SimulatePrincipalPolicyCommandOutput | TagInstanceProfileCommandOutput | TagMFADeviceCommandOutput | TagOpenIDConnectProviderCommandOutput | TagPolicyCommandOutput | TagRoleCommandOutput | TagSAMLProviderCommandOutput | TagServerCertificateCommandOutput | TagUserCommandOutput | UntagInstanceProfileCommandOutput | UntagMFADeviceCommandOutput | UntagOpenIDConnectProviderCommandOutput | UntagPolicyCommandOutput | UntagRoleCommandOutput | UntagSAMLProviderCommandOutput | UntagServerCertificateCommandOutput | UntagUserCommandOutput | UpdateAccessKeyCommandOutput | UpdateAccountPasswordPolicyCommandOutput | UpdateAssumeRolePolicyCommandOutput | UpdateGroupCommandOutput | UpdateLoginProfileCommandOutput | UpdateOpenIDConnectProviderThumbprintCommandOutput | UpdateRoleCommandOutput | UpdateRoleDescriptionCommandOutput | UpdateSAMLProviderCommandOutput | UpdateSSHPublicKeyCommandOutput | UpdateServerCertificateCommandOutput | UpdateServiceSpecificCredentialCommandOutput | UpdateSigningCertificateCommandOutput | UpdateUserCommandOutput | UploadSSHPublicKeyCommandOutput | UploadServerCertificateCommandOutput | UploadSigningCertificateCommandOutput;
|
|
179
|
+
export type ServiceOutputTypes = AddClientIDToOpenIDConnectProviderCommandOutput | AddRoleToInstanceProfileCommandOutput | AddUserToGroupCommandOutput | AttachGroupPolicyCommandOutput | AttachRolePolicyCommandOutput | AttachUserPolicyCommandOutput | ChangePasswordCommandOutput | CreateAccessKeyCommandOutput | CreateAccountAliasCommandOutput | CreateGroupCommandOutput | CreateInstanceProfileCommandOutput | CreateLoginProfileCommandOutput | CreateOpenIDConnectProviderCommandOutput | CreatePolicyCommandOutput | CreatePolicyVersionCommandOutput | CreateRoleCommandOutput | CreateSAMLProviderCommandOutput | CreateServiceLinkedRoleCommandOutput | CreateServiceSpecificCredentialCommandOutput | CreateUserCommandOutput | CreateVirtualMFADeviceCommandOutput | DeactivateMFADeviceCommandOutput | DeleteAccessKeyCommandOutput | DeleteAccountAliasCommandOutput | DeleteAccountPasswordPolicyCommandOutput | DeleteGroupCommandOutput | DeleteGroupPolicyCommandOutput | DeleteInstanceProfileCommandOutput | DeleteLoginProfileCommandOutput | DeleteOpenIDConnectProviderCommandOutput | DeletePolicyCommandOutput | DeletePolicyVersionCommandOutput | DeleteRoleCommandOutput | DeleteRolePermissionsBoundaryCommandOutput | DeleteRolePolicyCommandOutput | DeleteSAMLProviderCommandOutput | DeleteSSHPublicKeyCommandOutput | DeleteServerCertificateCommandOutput | DeleteServiceLinkedRoleCommandOutput | DeleteServiceSpecificCredentialCommandOutput | DeleteSigningCertificateCommandOutput | DeleteUserCommandOutput | DeleteUserPermissionsBoundaryCommandOutput | DeleteUserPolicyCommandOutput | DeleteVirtualMFADeviceCommandOutput | DetachGroupPolicyCommandOutput | DetachRolePolicyCommandOutput | DetachUserPolicyCommandOutput | EnableMFADeviceCommandOutput | GenerateCredentialReportCommandOutput | GenerateOrganizationsAccessReportCommandOutput | GenerateServiceLastAccessedDetailsCommandOutput | GetAccessKeyLastUsedCommandOutput | GetAccountAuthorizationDetailsCommandOutput | GetAccountPasswordPolicyCommandOutput | GetAccountSummaryCommandOutput | GetContextKeysForCustomPolicyCommandOutput | GetContextKeysForPrincipalPolicyCommandOutput | GetCredentialReportCommandOutput | GetGroupCommandOutput | GetGroupPolicyCommandOutput | GetInstanceProfileCommandOutput | GetLoginProfileCommandOutput | GetMFADeviceCommandOutput | GetOpenIDConnectProviderCommandOutput | GetOrganizationsAccessReportCommandOutput | GetPolicyCommandOutput | GetPolicyVersionCommandOutput | GetRoleCommandOutput | GetRolePolicyCommandOutput | GetSAMLProviderCommandOutput | GetSSHPublicKeyCommandOutput | GetServerCertificateCommandOutput | GetServiceLastAccessedDetailsCommandOutput | GetServiceLastAccessedDetailsWithEntitiesCommandOutput | GetServiceLinkedRoleDeletionStatusCommandOutput | GetUserCommandOutput | GetUserPolicyCommandOutput | ListAccessKeysCommandOutput | ListAccountAliasesCommandOutput | ListAttachedGroupPoliciesCommandOutput | ListAttachedRolePoliciesCommandOutput | ListAttachedUserPoliciesCommandOutput | ListEntitiesForPolicyCommandOutput | ListGroupPoliciesCommandOutput | ListGroupsCommandOutput | ListGroupsForUserCommandOutput | ListInstanceProfileTagsCommandOutput | ListInstanceProfilesCommandOutput | ListInstanceProfilesForRoleCommandOutput | ListMFADeviceTagsCommandOutput | ListMFADevicesCommandOutput | ListOpenIDConnectProviderTagsCommandOutput | ListOpenIDConnectProvidersCommandOutput | ListPoliciesCommandOutput | ListPoliciesGrantingServiceAccessCommandOutput | ListPolicyTagsCommandOutput | ListPolicyVersionsCommandOutput | ListRolePoliciesCommandOutput | ListRoleTagsCommandOutput | ListRolesCommandOutput | ListSAMLProviderTagsCommandOutput | ListSAMLProvidersCommandOutput | ListSSHPublicKeysCommandOutput | ListServerCertificateTagsCommandOutput | ListServerCertificatesCommandOutput | ListServiceSpecificCredentialsCommandOutput | ListSigningCertificatesCommandOutput | ListUserPoliciesCommandOutput | ListUserTagsCommandOutput | ListUsersCommandOutput | ListVirtualMFADevicesCommandOutput | PutGroupPolicyCommandOutput | PutRolePermissionsBoundaryCommandOutput | PutRolePolicyCommandOutput | PutUserPermissionsBoundaryCommandOutput | PutUserPolicyCommandOutput | RemoveClientIDFromOpenIDConnectProviderCommandOutput | RemoveRoleFromInstanceProfileCommandOutput | RemoveUserFromGroupCommandOutput | ResetServiceSpecificCredentialCommandOutput | ResyncMFADeviceCommandOutput | SetDefaultPolicyVersionCommandOutput | SetSecurityTokenServicePreferencesCommandOutput | SimulateCustomPolicyCommandOutput | SimulatePrincipalPolicyCommandOutput | TagInstanceProfileCommandOutput | TagMFADeviceCommandOutput | TagOpenIDConnectProviderCommandOutput | TagPolicyCommandOutput | TagRoleCommandOutput | TagSAMLProviderCommandOutput | TagServerCertificateCommandOutput | TagUserCommandOutput | UntagInstanceProfileCommandOutput | UntagMFADeviceCommandOutput | UntagOpenIDConnectProviderCommandOutput | UntagPolicyCommandOutput | UntagRoleCommandOutput | UntagSAMLProviderCommandOutput | UntagServerCertificateCommandOutput | UntagUserCommandOutput | UpdateAccessKeyCommandOutput | UpdateAccountPasswordPolicyCommandOutput | UpdateAssumeRolePolicyCommandOutput | UpdateGroupCommandOutput | UpdateLoginProfileCommandOutput | UpdateOpenIDConnectProviderThumbprintCommandOutput | UpdateRoleCommandOutput | UpdateRoleDescriptionCommandOutput | UpdateSAMLProviderCommandOutput | UpdateSSHPublicKeyCommandOutput | UpdateServerCertificateCommandOutput | UpdateServiceSpecificCredentialCommandOutput | UpdateSigningCertificateCommandOutput | UpdateUserCommandOutput | UploadSSHPublicKeyCommandOutput | UploadServerCertificateCommandOutput | UploadSigningCertificateCommandOutput;
|
|
179
180
|
/**
|
|
180
181
|
* @public
|
|
181
182
|
*/
|
|
@@ -25,7 +25,9 @@ export interface AttachGroupPolicyCommandOutput extends __MetadataBearer {
|
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Attaches the specified managed policy to the specified IAM group.</p>
|
|
27
27
|
* <p>You use this operation to attach a managed policy to a group. To embed an inline
|
|
28
|
-
* policy in a group, use <a>
|
|
28
|
+
* policy in a group, use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutGroupPolicy.html">
|
|
29
|
+
* <code>PutGroupPolicy</code>
|
|
30
|
+
* </a>.</p>
|
|
29
31
|
* <p>As a best practice, you can validate your IAM policies.
|
|
30
32
|
* To learn more, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_policy-validator.html">Validating IAM policies</a>
|
|
31
33
|
* in the <i>IAM User Guide</i>.</p>
|
|
@@ -28,13 +28,19 @@ export interface AttachRolePolicyCommandOutput extends __MetadataBearer {
|
|
|
28
28
|
* (access) policy.</p>
|
|
29
29
|
* <note>
|
|
30
30
|
* <p>You cannot use a managed policy as the role's trust policy. The role's trust
|
|
31
|
-
* policy is created at the same time as the role, using <a>
|
|
32
|
-
*
|
|
31
|
+
* policy is created at the same time as the role, using <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html">
|
|
32
|
+
* <code>CreateRole</code>
|
|
33
|
+
* </a>. You can update a role's trust policy using
|
|
34
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAssumeRolePolicy.html">
|
|
35
|
+
* <code>UpdateAssumerolePolicy</code>
|
|
36
|
+
* </a>.</p>
|
|
33
37
|
* </note>
|
|
34
38
|
* <p>Use this operation to attach a <i>managed</i> policy to a role. To embed
|
|
35
|
-
* an inline policy in a role, use <a>
|
|
36
|
-
*
|
|
37
|
-
*
|
|
39
|
+
* an inline policy in a role, use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutRolePolicy.html">
|
|
40
|
+
* <code>PutRolePolicy</code>
|
|
41
|
+
* </a>. For more information about policies, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html">Managed
|
|
42
|
+
* policies and inline policies</a> in the
|
|
43
|
+
* <i>IAM User Guide</i>.</p>
|
|
38
44
|
* <p>As a best practice, you can validate your IAM policies.
|
|
39
45
|
* To learn more, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_policy-validator.html">Validating IAM policies</a>
|
|
40
46
|
* in the <i>IAM User Guide</i>.</p>
|
|
@@ -25,7 +25,9 @@ export interface AttachUserPolicyCommandOutput extends __MetadataBearer {
|
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Attaches the specified managed policy to the specified user.</p>
|
|
27
27
|
* <p>You use this operation to attach a <i>managed</i> policy to a user. To
|
|
28
|
-
* embed an inline policy in a user, use <a>
|
|
28
|
+
* embed an inline policy in a user, use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_PutUserPolicy.html">
|
|
29
|
+
* <code>PutUserPolicy</code>
|
|
30
|
+
* </a>.</p>
|
|
29
31
|
* <p>As a best practice, you can validate your IAM policies.
|
|
30
32
|
* To learn more, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_policy-validator.html">Validating IAM policies</a>
|
|
31
33
|
* in the <i>IAM User Guide</i>.</p>
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
|
|
5
|
+
import { GetMFADeviceRequest, GetMFADeviceResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetMFADeviceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetMFADeviceCommandInput extends GetMFADeviceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetMFADeviceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetMFADeviceCommandOutput extends GetMFADeviceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieves information about an MFA device for a specified user.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { IAMClient, GetMFADeviceCommand } from "@aws-sdk/client-iam"; // ES Modules import
|
|
31
|
+
* // const { IAMClient, GetMFADeviceCommand } = require("@aws-sdk/client-iam"); // CommonJS import
|
|
32
|
+
* const client = new IAMClient(config);
|
|
33
|
+
* const input = { // GetMFADeviceRequest
|
|
34
|
+
* SerialNumber: "STRING_VALUE", // required
|
|
35
|
+
* UserName: "STRING_VALUE",
|
|
36
|
+
* };
|
|
37
|
+
* const command = new GetMFADeviceCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // GetMFADeviceResponse
|
|
40
|
+
* // UserName: "STRING_VALUE",
|
|
41
|
+
* // SerialNumber: "STRING_VALUE", // required
|
|
42
|
+
* // EnableDate: new Date("TIMESTAMP"),
|
|
43
|
+
* // Certifications: { // CertificationMapType
|
|
44
|
+
* // "<keys>": "STRING_VALUE",
|
|
45
|
+
* // },
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param GetMFADeviceCommandInput - {@link GetMFADeviceCommandInput}
|
|
51
|
+
* @returns {@link GetMFADeviceCommandOutput}
|
|
52
|
+
* @see {@link GetMFADeviceCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link GetMFADeviceCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link NoSuchEntityException} (client fault)
|
|
57
|
+
* <p>The request was rejected because it referenced a resource entity that does not exist. The
|
|
58
|
+
* error message describes the resource.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ServiceFailureException} (server fault)
|
|
61
|
+
* <p>The request processing has failed because of an unknown error, exception or
|
|
62
|
+
* failure.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link IAMServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
export declare class GetMFADeviceCommand extends $Command<GetMFADeviceCommandInput, GetMFADeviceCommandOutput, IAMClientResolvedConfig> {
|
|
69
|
+
readonly input: GetMFADeviceCommandInput;
|
|
70
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
constructor(input: GetMFADeviceCommandInput);
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetMFADeviceCommandInput, GetMFADeviceCommandOutput>;
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
private serialize;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
private deserialize;
|
|
87
|
+
}
|
|
@@ -26,8 +26,12 @@ export interface PutGroupPolicyCommandOutput extends __MetadataBearer {
|
|
|
26
26
|
* <p>Adds or updates an inline policy document that is embedded in the specified IAM
|
|
27
27
|
* group.</p>
|
|
28
28
|
* <p>A user can also have managed policies attached to it. To attach a managed policy to a
|
|
29
|
-
* group, use <a>
|
|
30
|
-
*
|
|
29
|
+
* group, use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachGroupPolicy.html">
|
|
30
|
+
* <code>AttachGroupPolicy</code>
|
|
31
|
+
* </a>. To create a new managed policy, use
|
|
32
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html">
|
|
33
|
+
* <code>CreatePolicy</code>
|
|
34
|
+
* </a>. For information about policies, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html">Managed
|
|
31
35
|
* policies and inline policies</a> in the
|
|
32
36
|
* <i>IAM User Guide</i>.</p>
|
|
33
37
|
* <p>For information about the maximum number of inline policies that you can embed in a
|
|
@@ -27,12 +27,21 @@ export interface PutRolePolicyCommandOutput extends __MetadataBearer {
|
|
|
27
27
|
* role.</p>
|
|
28
28
|
* <p>When you embed an inline policy in a role, the inline policy is used as part of the
|
|
29
29
|
* role's access (permissions) policy. The role's trust policy is created at the same time
|
|
30
|
-
* as the role, using <a>
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
30
|
+
* as the role, using <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html">
|
|
31
|
+
* <code>CreateRole</code>
|
|
32
|
+
* </a>.
|
|
33
|
+
* You can update a role's trust policy using <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAssumeRolePolicy.html">
|
|
34
|
+
* <code>UpdateAssumerolePolicy</code>
|
|
35
|
+
* </a>. For more information about IAM
|
|
36
|
+
* roles, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html">Using
|
|
37
|
+
* roles to delegate permissions and federate identities</a>.</p>
|
|
34
38
|
* <p>A role can also have a managed policy attached to it. To attach a managed policy to a
|
|
35
|
-
* role, use <a
|
|
39
|
+
* role, use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachRolePolicy.html">
|
|
40
|
+
* <code>AttachRolePolicy</code>
|
|
41
|
+
* </a>. To create a new managed policy, use
|
|
42
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html">
|
|
43
|
+
* <code>CreatePolicy</code>
|
|
44
|
+
* </a>. For information about policies, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html">Managed
|
|
36
45
|
* policies and inline policies</a> in the
|
|
37
46
|
* <i>IAM User Guide</i>.</p>
|
|
38
47
|
* <p>For information about the maximum number of inline policies that you can embed with a
|
|
@@ -26,8 +26,12 @@ export interface PutUserPolicyCommandOutput extends __MetadataBearer {
|
|
|
26
26
|
* <p>Adds or updates an inline policy document that is embedded in the specified IAM
|
|
27
27
|
* user.</p>
|
|
28
28
|
* <p>An IAM user can also have a managed policy attached to it. To attach a managed
|
|
29
|
-
* policy to a user, use <a>
|
|
30
|
-
*
|
|
29
|
+
* policy to a user, use <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachUserPolicy.html">
|
|
30
|
+
* <code>AttachUserPolicy</code>
|
|
31
|
+
* </a>. To create a new managed policy, use
|
|
32
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html">
|
|
33
|
+
* <code>CreatePolicy</code>
|
|
34
|
+
* </a>. For information about policies, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html">Managed
|
|
31
35
|
* policies and inline policies</a> in the
|
|
32
36
|
* <i>IAM User Guide</i>.</p>
|
|
33
37
|
* <p>For information about the maximum number of inline policies that you can embed in a
|
|
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
|
|
5
|
-
import { UntagMFADeviceRequest } from "../models/
|
|
5
|
+
import { UntagMFADeviceRequest } from "../models/models_1";
|
|
6
6
|
/**
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { IAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IAMClient";
|
|
5
|
-
import { UntagOpenIDConnectProviderRequest } from "../models/
|
|
5
|
+
import { UntagOpenIDConnectProviderRequest } from "../models/models_1";
|
|
6
6
|
/**
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
@@ -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";
|