@aws-sdk/client-iam 3.476.0 → 3.478.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/dist-cjs/pagination/GetAccountAuthorizationDetailsPaginator.js +2 -24
- package/dist-cjs/pagination/GetGroupPaginator.js +2 -24
- package/dist-cjs/pagination/ListAccessKeysPaginator.js +2 -24
- package/dist-cjs/pagination/ListAccountAliasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAttachedGroupPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAttachedRolePoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAttachedUserPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListEntitiesForPolicyPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupsForUserPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInstanceProfileTagsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInstanceProfilesForRolePaginator.js +2 -24
- package/dist-cjs/pagination/ListInstanceProfilesPaginator.js +2 -24
- package/dist-cjs/pagination/ListMFADeviceTagsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMFADevicesPaginator.js +2 -24
- package/dist-cjs/pagination/ListOpenIDConnectProviderTagsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPolicyTagsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPolicyVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRolePoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListRoleTagsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRolesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSAMLProviderTagsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSSHPublicKeysPaginator.js +2 -24
- package/dist-cjs/pagination/ListServerCertificateTagsPaginator.js +2 -24
- package/dist-cjs/pagination/ListServerCertificatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSigningCertificatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListUserPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListUserTagsPaginator.js +2 -24
- package/dist-cjs/pagination/ListUsersPaginator.js +2 -24
- package/dist-cjs/pagination/ListVirtualMFADevicesPaginator.js +2 -24
- package/dist-cjs/pagination/SimulateCustomPolicyPaginator.js +2 -24
- package/dist-cjs/pagination/SimulatePrincipalPolicyPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_query.js +2563 -2175
- package/dist-es/pagination/GetAccountAuthorizationDetailsPaginator.js +2 -23
- package/dist-es/pagination/GetGroupPaginator.js +2 -23
- package/dist-es/pagination/ListAccessKeysPaginator.js +2 -23
- package/dist-es/pagination/ListAccountAliasesPaginator.js +2 -23
- package/dist-es/pagination/ListAttachedGroupPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListAttachedRolePoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListAttachedUserPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListEntitiesForPolicyPaginator.js +2 -23
- package/dist-es/pagination/ListGroupPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListGroupsForUserPaginator.js +2 -23
- package/dist-es/pagination/ListGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListInstanceProfileTagsPaginator.js +2 -23
- package/dist-es/pagination/ListInstanceProfilesForRolePaginator.js +2 -23
- package/dist-es/pagination/ListInstanceProfilesPaginator.js +2 -23
- package/dist-es/pagination/ListMFADeviceTagsPaginator.js +2 -23
- package/dist-es/pagination/ListMFADevicesPaginator.js +2 -23
- package/dist-es/pagination/ListOpenIDConnectProviderTagsPaginator.js +2 -23
- package/dist-es/pagination/ListPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListPolicyTagsPaginator.js +2 -23
- package/dist-es/pagination/ListPolicyVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListRolePoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListRoleTagsPaginator.js +2 -23
- package/dist-es/pagination/ListRolesPaginator.js +2 -23
- package/dist-es/pagination/ListSAMLProviderTagsPaginator.js +2 -23
- package/dist-es/pagination/ListSSHPublicKeysPaginator.js +2 -23
- package/dist-es/pagination/ListServerCertificateTagsPaginator.js +2 -23
- package/dist-es/pagination/ListServerCertificatesPaginator.js +2 -23
- package/dist-es/pagination/ListSigningCertificatesPaginator.js +2 -23
- package/dist-es/pagination/ListUserPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListUserTagsPaginator.js +2 -23
- package/dist-es/pagination/ListUsersPaginator.js +2 -23
- package/dist-es/pagination/ListVirtualMFADevicesPaginator.js +2 -23
- package/dist-es/pagination/SimulateCustomPolicyPaginator.js +2 -23
- package/dist-es/pagination/SimulatePrincipalPolicyPaginator.js +2 -23
- package/dist-es/protocols/Aws_query.js +2563 -2175
- package/dist-types/pagination/GetAccountAuthorizationDetailsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetGroupPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAccessKeysPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAccountAliasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAttachedGroupPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAttachedRolePoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAttachedUserPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEntitiesForPolicyPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupsForUserPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInstanceProfileTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInstanceProfilesForRolePaginator.d.ts +1 -1
- package/dist-types/pagination/ListInstanceProfilesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMFADeviceTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMFADevicesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOpenIDConnectProviderTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPolicyTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPolicyVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRolePoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRoleTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRolesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSAMLProviderTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSSHPublicKeysPaginator.d.ts +1 -1
- package/dist-types/pagination/ListServerCertificateTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListServerCertificatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSigningCertificatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUserPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUserTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUsersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVirtualMFADevicesPaginator.d.ts +1 -1
- package/dist-types/pagination/SimulateCustomPolicyPaginator.d.ts +1 -1
- package/dist-types/pagination/SimulatePrincipalPolicyPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetAccountAuthorizationDetailsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetGroupPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAccessKeysPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAccountAliasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAttachedGroupPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAttachedRolePoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAttachedUserPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEntitiesForPolicyPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupsForUserPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInstanceProfileTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInstanceProfilesForRolePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInstanceProfilesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMFADeviceTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMFADevicesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOpenIDConnectProviderTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPolicyTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPolicyVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRolePoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRoleTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRolesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSAMLProviderTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSSHPublicKeysPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListServerCertificateTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListServerCertificatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSigningCertificatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUserPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUserTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVirtualMFADevicesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SimulateCustomPolicyPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SimulatePrincipalPolicyPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRolesCommand } from "../commands/ListRolesCommand";
|
|
2
3
|
import { IAMClient } from "../IAMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRolesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRoles(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
|
-
}
|
|
4
|
+
export const paginateListRoles = createPaginator(IAMClient, ListRolesCommand, "Marker", "Marker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSAMLProviderTagsCommand, } from "../commands/ListSAMLProviderTagsCommand";
|
|
2
3
|
import { IAMClient } from "../IAMClient";
|
|
3
|
-
const
|
|
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
|
-
}
|
|
4
|
+
export const paginateListSAMLProviderTags = createPaginator(IAMClient, ListSAMLProviderTagsCommand, "Marker", "Marker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSSHPublicKeysCommand, } from "../commands/ListSSHPublicKeysCommand";
|
|
2
3
|
import { IAMClient } from "../IAMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSSHPublicKeysCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSSHPublicKeys(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
|
-
}
|
|
4
|
+
export const paginateListSSHPublicKeys = createPaginator(IAMClient, ListSSHPublicKeysCommand, "Marker", "Marker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListServerCertificateTagsCommand, } from "../commands/ListServerCertificateTagsCommand";
|
|
2
3
|
import { IAMClient } from "../IAMClient";
|
|
3
|
-
const
|
|
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
|
-
}
|
|
4
|
+
export const paginateListServerCertificateTags = createPaginator(IAMClient, ListServerCertificateTagsCommand, "Marker", "Marker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListServerCertificatesCommand, } from "../commands/ListServerCertificatesCommand";
|
|
2
3
|
import { IAMClient } from "../IAMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListServerCertificatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListServerCertificates(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
|
-
}
|
|
4
|
+
export const paginateListServerCertificates = createPaginator(IAMClient, ListServerCertificatesCommand, "Marker", "Marker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSigningCertificatesCommand, } from "../commands/ListSigningCertificatesCommand";
|
|
2
3
|
import { IAMClient } from "../IAMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSigningCertificatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSigningCertificates(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
|
-
}
|
|
4
|
+
export const paginateListSigningCertificates = createPaginator(IAMClient, ListSigningCertificatesCommand, "Marker", "Marker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListUserPoliciesCommand, } from "../commands/ListUserPoliciesCommand";
|
|
2
3
|
import { IAMClient } from "../IAMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListUserPoliciesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListUserPolicies(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
|
-
}
|
|
4
|
+
export const paginateListUserPolicies = createPaginator(IAMClient, ListUserPoliciesCommand, "Marker", "Marker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListUserTagsCommand, } from "../commands/ListUserTagsCommand";
|
|
2
3
|
import { IAMClient } from "../IAMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListUserTagsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListUserTags(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
|
-
}
|
|
4
|
+
export const paginateListUserTags = createPaginator(IAMClient, ListUserTagsCommand, "Marker", "Marker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListUsersCommand } from "../commands/ListUsersCommand";
|
|
2
3
|
import { IAMClient } from "../IAMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListUsersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListUsers(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
|
-
}
|
|
4
|
+
export const paginateListUsers = createPaginator(IAMClient, ListUsersCommand, "Marker", "Marker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListVirtualMFADevicesCommand, } from "../commands/ListVirtualMFADevicesCommand";
|
|
2
3
|
import { IAMClient } from "../IAMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListVirtualMFADevicesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListVirtualMFADevices(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
|
-
}
|
|
4
|
+
export const paginateListVirtualMFADevices = createPaginator(IAMClient, ListVirtualMFADevicesCommand, "Marker", "Marker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SimulateCustomPolicyCommand, } from "../commands/SimulateCustomPolicyCommand";
|
|
2
3
|
import { IAMClient } from "../IAMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SimulateCustomPolicyCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSimulateCustomPolicy(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
|
-
}
|
|
4
|
+
export const paginateSimulateCustomPolicy = createPaginator(IAMClient, SimulateCustomPolicyCommand, "Marker", "Marker", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SimulatePrincipalPolicyCommand, } from "../commands/SimulatePrincipalPolicyCommand";
|
|
2
3
|
import { IAMClient } from "../IAMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SimulatePrincipalPolicyCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSimulatePrincipalPolicy(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
|
-
}
|
|
4
|
+
export const paginateSimulatePrincipalPolicy = createPaginator(IAMClient, SimulatePrincipalPolicyCommand, "Marker", "Marker", "MaxItems");
|