@aws-sdk/client-rolesanywhere 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/ListCrlsPaginator.js +2 -23
- package/dist-cjs/pagination/ListProfilesPaginator.js +2 -23
- package/dist-cjs/pagination/ListSubjectsPaginator.js +2 -23
- package/dist-cjs/pagination/ListTrustAnchorsPaginator.js +2 -23
- package/dist-cjs/protocols/Aws_restJson1.js +141 -339
- package/dist-es/pagination/ListCrlsPaginator.js +2 -22
- package/dist-es/pagination/ListProfilesPaginator.js +2 -22
- package/dist-es/pagination/ListSubjectsPaginator.js +2 -22
- package/dist-es/pagination/ListTrustAnchorsPaginator.js +2 -22
- package/dist-es/protocols/Aws_restJson1.js +142 -340
- package/dist-types/pagination/ListCrlsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProfilesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSubjectsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTrustAnchorsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListCrlsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSubjectsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTrustAnchorsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListCrlsCommand } from "../commands/ListCrlsCommand";
|
|
2
3
|
import { RolesAnywhereClient } from "../RolesAnywhereClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCrlsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCrls(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
if (config.client instanceof RolesAnywhereClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.nextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListCrls = createPaginator(RolesAnywhereClient, ListCrlsCommand, "nextToken", "nextToken", "");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListProfilesCommand, } from "../commands/ListProfilesCommand";
|
|
2
3
|
import { RolesAnywhereClient } from "../RolesAnywhereClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProfilesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProfiles(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
if (config.client instanceof RolesAnywhereClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.nextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListProfiles = createPaginator(RolesAnywhereClient, ListProfilesCommand, "nextToken", "nextToken", "");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSubjectsCommand, } from "../commands/ListSubjectsCommand";
|
|
2
3
|
import { RolesAnywhereClient } from "../RolesAnywhereClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSubjectsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSubjects(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
if (config.client instanceof RolesAnywhereClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.nextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListSubjects = createPaginator(RolesAnywhereClient, ListSubjectsCommand, "nextToken", "nextToken", "");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTrustAnchorsCommand, } from "../commands/ListTrustAnchorsCommand";
|
|
2
3
|
import { RolesAnywhereClient } from "../RolesAnywhereClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTrustAnchorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTrustAnchors(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
if (config.client instanceof RolesAnywhereClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.nextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListTrustAnchors = createPaginator(RolesAnywhereClient, ListTrustAnchorsCommand, "nextToken", "nextToken", "");
|