@aws-sdk/client-resource-explorer-2 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/ListIndexesForMembersPaginator.js +2 -24
- package/dist-cjs/pagination/ListIndexesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSupportedResourceTypesPaginator.js +2 -24
- package/dist-cjs/pagination/ListViewsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +91 -238
- package/dist-es/pagination/ListIndexesForMembersPaginator.js +2 -23
- package/dist-es/pagination/ListIndexesPaginator.js +2 -23
- package/dist-es/pagination/ListSupportedResourceTypesPaginator.js +2 -23
- package/dist-es/pagination/ListViewsPaginator.js +2 -23
- package/dist-es/pagination/SearchPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +92 -239
- package/dist-types/pagination/ListIndexesForMembersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIndexesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSupportedResourceTypesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListViewsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListIndexesForMembersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIndexesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSupportedResourceTypesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListViewsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListIndexesForMembers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListIndexesForMembersCommand_1 = require("../commands/ListIndexesForMembersCommand");
|
|
5
6
|
const ResourceExplorer2Client_1 = require("../ResourceExplorer2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListIndexesForMembersCommand_1.ListIndexesForMembersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListIndexesForMembers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ResourceExplorer2Client_1.ResourceExplorer2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListIndexesForMembers = paginateListIndexesForMembers;
|
|
7
|
+
exports.paginateListIndexesForMembers = (0, core_1.createPaginator)(ResourceExplorer2Client_1.ResourceExplorer2Client, ListIndexesForMembersCommand_1.ListIndexesForMembersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListIndexes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListIndexesCommand_1 = require("../commands/ListIndexesCommand");
|
|
5
6
|
const ResourceExplorer2Client_1 = require("../ResourceExplorer2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListIndexesCommand_1.ListIndexesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListIndexes(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ResourceExplorer2Client_1.ResourceExplorer2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListIndexes = paginateListIndexes;
|
|
7
|
+
exports.paginateListIndexes = (0, core_1.createPaginator)(ResourceExplorer2Client_1.ResourceExplorer2Client, ListIndexesCommand_1.ListIndexesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSupportedResourceTypes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSupportedResourceTypesCommand_1 = require("../commands/ListSupportedResourceTypesCommand");
|
|
5
6
|
const ResourceExplorer2Client_1 = require("../ResourceExplorer2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSupportedResourceTypesCommand_1.ListSupportedResourceTypesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSupportedResourceTypes(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ResourceExplorer2Client_1.ResourceExplorer2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListSupportedResourceTypes = paginateListSupportedResourceTypes;
|
|
7
|
+
exports.paginateListSupportedResourceTypes = (0, core_1.createPaginator)(ResourceExplorer2Client_1.ResourceExplorer2Client, ListSupportedResourceTypesCommand_1.ListSupportedResourceTypesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListViews = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListViewsCommand_1 = require("../commands/ListViewsCommand");
|
|
5
6
|
const ResourceExplorer2Client_1 = require("../ResourceExplorer2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListViewsCommand_1.ListViewsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListViews(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ResourceExplorer2Client_1.ResourceExplorer2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListViews = paginateListViews;
|
|
7
|
+
exports.paginateListViews = (0, core_1.createPaginator)(ResourceExplorer2Client_1.ResourceExplorer2Client, ListViewsCommand_1.ListViewsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearch = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchCommand_1 = require("../commands/SearchCommand");
|
|
5
6
|
const ResourceExplorer2Client_1 = require("../ResourceExplorer2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchCommand_1.SearchCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearch(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ResourceExplorer2Client_1.ResourceExplorer2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateSearch = paginateSearch;
|
|
7
|
+
exports.paginateSearch = (0, core_1.createPaginator)(ResourceExplorer2Client_1.ResourceExplorer2Client, SearchCommand_1.SearchCommand, "NextToken", "NextToken", "MaxResults");
|