@aws-sdk/client-resource-explorer-2 3.206.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/LICENSE +201 -0
- package/README.md +241 -0
- package/dist-cjs/ResourceExplorer2.js +292 -0
- package/dist-cjs/ResourceExplorer2Client.js +40 -0
- package/dist-cjs/commands/AssociateDefaultViewCommand.js +45 -0
- package/dist-cjs/commands/BatchGetViewCommand.js +45 -0
- package/dist-cjs/commands/CreateIndexCommand.js +45 -0
- package/dist-cjs/commands/CreateViewCommand.js +45 -0
- package/dist-cjs/commands/DeleteIndexCommand.js +45 -0
- package/dist-cjs/commands/DeleteViewCommand.js +45 -0
- package/dist-cjs/commands/DisassociateDefaultViewCommand.js +44 -0
- package/dist-cjs/commands/GetDefaultViewCommand.js +45 -0
- package/dist-cjs/commands/GetIndexCommand.js +45 -0
- package/dist-cjs/commands/GetViewCommand.js +45 -0
- package/dist-cjs/commands/ListIndexesCommand.js +45 -0
- package/dist-cjs/commands/ListSupportedResourceTypesCommand.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +45 -0
- package/dist-cjs/commands/ListViewsCommand.js +45 -0
- package/dist-cjs/commands/SearchCommand.js +45 -0
- package/dist-cjs/commands/TagResourceCommand.js +45 -0
- package/dist-cjs/commands/UntagResourceCommand.js +45 -0
- package/dist-cjs/commands/UpdateIndexTypeCommand.js +45 -0
- package/dist-cjs/commands/UpdateViewCommand.js +45 -0
- package/dist-cjs/commands/index.js +22 -0
- package/dist-cjs/endpoint/EndpointParameters.js +11 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +251 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/ResourceExplorer2ServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +318 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListIndexesPaginator.js +36 -0
- package/dist-cjs/pagination/ListSupportedResourceTypesPaginator.js +36 -0
- package/dist-cjs/pagination/ListViewsPaginator.js +36 -0
- package/dist-cjs/pagination/SearchPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1771 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/ResourceExplorer2.js +288 -0
- package/dist-es/ResourceExplorer2Client.js +36 -0
- package/dist-es/commands/AssociateDefaultViewCommand.js +41 -0
- package/dist-es/commands/BatchGetViewCommand.js +41 -0
- package/dist-es/commands/CreateIndexCommand.js +41 -0
- package/dist-es/commands/CreateViewCommand.js +41 -0
- package/dist-es/commands/DeleteIndexCommand.js +41 -0
- package/dist-es/commands/DeleteViewCommand.js +41 -0
- package/dist-es/commands/DisassociateDefaultViewCommand.js +40 -0
- package/dist-es/commands/GetDefaultViewCommand.js +41 -0
- package/dist-es/commands/GetIndexCommand.js +41 -0
- package/dist-es/commands/GetViewCommand.js +41 -0
- package/dist-es/commands/ListIndexesCommand.js +41 -0
- package/dist-es/commands/ListSupportedResourceTypesCommand.js +41 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +41 -0
- package/dist-es/commands/ListViewsCommand.js +41 -0
- package/dist-es/commands/SearchCommand.js +41 -0
- package/dist-es/commands/TagResourceCommand.js +41 -0
- package/dist-es/commands/UntagResourceCommand.js +41 -0
- package/dist-es/commands/UpdateIndexTypeCommand.js +41 -0
- package/dist-es/commands/UpdateViewCommand.js +41 -0
- package/dist-es/commands/index.js +19 -0
- package/dist-es/endpoint/EndpointParameters.js +7 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +248 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/ResourceExplorer2ServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +262 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListIndexesPaginator.js +32 -0
- package/dist-es/pagination/ListSupportedResourceTypesPaginator.js +32 -0
- package/dist-es/pagination/ListViewsPaginator.js +32 -0
- package/dist-es/pagination/SearchPaginator.js +32 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +1730 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/ResourceExplorer2.d.ts +336 -0
- package/dist-types/ResourceExplorer2Client.d.ts +196 -0
- package/dist-types/commands/AssociateDefaultViewCommand.d.ts +43 -0
- package/dist-types/commands/BatchGetViewCommand.d.ts +37 -0
- package/dist-types/commands/CreateIndexCommand.d.ts +90 -0
- package/dist-types/commands/CreateViewCommand.d.ts +44 -0
- package/dist-types/commands/DeleteIndexCommand.d.ts +42 -0
- package/dist-types/commands/DeleteViewCommand.d.ts +40 -0
- package/dist-types/commands/DisassociateDefaultViewCommand.d.ts +41 -0
- package/dist-types/commands/GetDefaultViewCommand.d.ts +38 -0
- package/dist-types/commands/GetIndexCommand.d.ts +38 -0
- package/dist-types/commands/GetViewCommand.d.ts +37 -0
- package/dist-types/commands/ListIndexesCommand.d.ts +38 -0
- package/dist-types/commands/ListSupportedResourceTypesCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/ListViewsCommand.d.ts +46 -0
- package/dist-types/commands/SearchCommand.d.ts +49 -0
- package/dist-types/commands/TagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateIndexTypeCommand.d.ts +93 -0
- package/dist-types/commands/UpdateViewCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +19 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +17 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/ResourceExplorer2ServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1080 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListIndexesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSupportedResourceTypesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListViewsPaginator.d.ts +4 -0
- package/dist-types/pagination/SearchPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +59 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +17 -0
- package/dist-types/ts3.4/ResourceExplorer2.d.ts +327 -0
- package/dist-types/ts3.4/ResourceExplorer2Client.d.ts +226 -0
- package/dist-types/ts3.4/commands/AssociateDefaultViewCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/BatchGetViewCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateViewCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteIndexCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteViewCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DisassociateDefaultViewCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetDefaultViewCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetIndexCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetViewCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListIndexesCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListSupportedResourceTypesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListViewsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/SearchCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateIndexTypeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateViewCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +19 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/ResourceExplorer2ServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +384 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListIndexesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSupportedResourceTypesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListViewsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +233 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/package.json +105 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListViews = void 0;
|
|
4
|
+
const ListViewsCommand_1 = require("../commands/ListViewsCommand");
|
|
5
|
+
const ResourceExplorer2_1 = require("../ResourceExplorer2");
|
|
6
|
+
const ResourceExplorer2Client_1 = require("../ResourceExplorer2Client");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListViewsCommand_1.ListViewsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listViews(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListViews(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof ResourceExplorer2_1.ResourceExplorer2) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof ResourceExplorer2Client_1.ResourceExplorer2Client) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListViews = paginateListViews;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateSearch = void 0;
|
|
4
|
+
const SearchCommand_1 = require("../commands/SearchCommand");
|
|
5
|
+
const ResourceExplorer2_1 = require("../ResourceExplorer2");
|
|
6
|
+
const ResourceExplorer2Client_1 = require("../ResourceExplorer2Client");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new SearchCommand_1.SearchCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.search(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateSearch(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof ResourceExplorer2_1.ResourceExplorer2) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof ResourceExplorer2Client_1.ResourceExplorer2Client) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected ResourceExplorer2 | ResourceExplorer2Client");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateSearch = paginateSearch;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListIndexesPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListSupportedResourceTypesPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListViewsPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./SearchPaginator"), exports);
|