@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,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListCrls = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListCrlsCommand_1 = require("../commands/ListCrlsCommand");
|
|
5
6
|
const RolesAnywhereClient_1 = require("../RolesAnywhereClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListCrlsCommand_1.ListCrlsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListCrls(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
if (config.client instanceof RolesAnywhereClient_1.RolesAnywhereClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.nextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListCrls = paginateListCrls;
|
|
7
|
+
exports.paginateListCrls = (0, core_1.createPaginator)(RolesAnywhereClient_1.RolesAnywhereClient, ListCrlsCommand_1.ListCrlsCommand, "nextToken", "nextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListProfiles = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListProfilesCommand_1 = require("../commands/ListProfilesCommand");
|
|
5
6
|
const RolesAnywhereClient_1 = require("../RolesAnywhereClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListProfilesCommand_1.ListProfilesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListProfiles(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
if (config.client instanceof RolesAnywhereClient_1.RolesAnywhereClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.nextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListProfiles = paginateListProfiles;
|
|
7
|
+
exports.paginateListProfiles = (0, core_1.createPaginator)(RolesAnywhereClient_1.RolesAnywhereClient, ListProfilesCommand_1.ListProfilesCommand, "nextToken", "nextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSubjects = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSubjectsCommand_1 = require("../commands/ListSubjectsCommand");
|
|
5
6
|
const RolesAnywhereClient_1 = require("../RolesAnywhereClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSubjectsCommand_1.ListSubjectsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSubjects(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
if (config.client instanceof RolesAnywhereClient_1.RolesAnywhereClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.nextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListSubjects = paginateListSubjects;
|
|
7
|
+
exports.paginateListSubjects = (0, core_1.createPaginator)(RolesAnywhereClient_1.RolesAnywhereClient, ListSubjectsCommand_1.ListSubjectsCommand, "nextToken", "nextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTrustAnchors = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTrustAnchorsCommand_1 = require("../commands/ListTrustAnchorsCommand");
|
|
5
6
|
const RolesAnywhereClient_1 = require("../RolesAnywhereClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTrustAnchorsCommand_1.ListTrustAnchorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTrustAnchors(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
if (config.client instanceof RolesAnywhereClient_1.RolesAnywhereClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.nextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListTrustAnchors = paginateListTrustAnchors;
|
|
7
|
+
exports.paginateListTrustAnchors = (0, core_1.createPaginator)(RolesAnywhereClient_1.RolesAnywhereClient, ListTrustAnchorsCommand_1.ListTrustAnchorsCommand, "nextToken", "nextToken", "");
|