@aws-sdk/client-workspaces-web 3.44.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/CHANGELOG.md +11 -0
- package/LICENSE +201 -0
- package/README.md +208 -0
- package/dist-cjs/WorkSpacesWeb.js +667 -0
- package/dist-cjs/WorkSpacesWebClient.js +35 -0
- package/dist-cjs/commands/AssociateBrowserSettingsCommand.js +36 -0
- package/dist-cjs/commands/AssociateNetworkSettingsCommand.js +36 -0
- package/dist-cjs/commands/AssociateTrustStoreCommand.js +36 -0
- package/dist-cjs/commands/AssociateUserSettingsCommand.js +36 -0
- package/dist-cjs/commands/CreateBrowserSettingsCommand.js +36 -0
- package/dist-cjs/commands/CreateIdentityProviderCommand.js +36 -0
- package/dist-cjs/commands/CreateNetworkSettingsCommand.js +36 -0
- package/dist-cjs/commands/CreatePortalCommand.js +36 -0
- package/dist-cjs/commands/CreateTrustStoreCommand.js +36 -0
- package/dist-cjs/commands/CreateUserSettingsCommand.js +36 -0
- package/dist-cjs/commands/DeleteBrowserSettingsCommand.js +36 -0
- package/dist-cjs/commands/DeleteIdentityProviderCommand.js +36 -0
- package/dist-cjs/commands/DeleteNetworkSettingsCommand.js +36 -0
- package/dist-cjs/commands/DeletePortalCommand.js +36 -0
- package/dist-cjs/commands/DeleteTrustStoreCommand.js +36 -0
- package/dist-cjs/commands/DeleteUserSettingsCommand.js +36 -0
- package/dist-cjs/commands/DisassociateBrowserSettingsCommand.js +36 -0
- package/dist-cjs/commands/DisassociateNetworkSettingsCommand.js +36 -0
- package/dist-cjs/commands/DisassociateTrustStoreCommand.js +36 -0
- package/dist-cjs/commands/DisassociateUserSettingsCommand.js +36 -0
- package/dist-cjs/commands/GetBrowserSettingsCommand.js +36 -0
- package/dist-cjs/commands/GetIdentityProviderCommand.js +36 -0
- package/dist-cjs/commands/GetNetworkSettingsCommand.js +36 -0
- package/dist-cjs/commands/GetPortalCommand.js +36 -0
- package/dist-cjs/commands/GetPortalServiceProviderMetadataCommand.js +36 -0
- package/dist-cjs/commands/GetTrustStoreCertificateCommand.js +36 -0
- package/dist-cjs/commands/GetTrustStoreCommand.js +36 -0
- package/dist-cjs/commands/GetUserSettingsCommand.js +36 -0
- package/dist-cjs/commands/ListBrowserSettingsCommand.js +36 -0
- package/dist-cjs/commands/ListIdentityProvidersCommand.js +36 -0
- package/dist-cjs/commands/ListNetworkSettingsCommand.js +36 -0
- package/dist-cjs/commands/ListPortalsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/ListTrustStoreCertificatesCommand.js +36 -0
- package/dist-cjs/commands/ListTrustStoresCommand.js +36 -0
- package/dist-cjs/commands/ListUserSettingsCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateBrowserSettingsCommand.js +36 -0
- package/dist-cjs/commands/UpdateIdentityProviderCommand.js +36 -0
- package/dist-cjs/commands/UpdateNetworkSettingsCommand.js +36 -0
- package/dist-cjs/commands/UpdatePortalCommand.js +36 -0
- package/dist-cjs/commands/UpdateTrustStoreCommand.js +36 -0
- package/dist-cjs/commands/UpdateUserSettingsCommand.js +36 -0
- package/dist-cjs/commands/index.js +47 -0
- package/dist-cjs/endpoints.js +130 -0
- package/dist-cjs/index.js +8 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +712 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListBrowserSettingsPaginator.js +35 -0
- package/dist-cjs/pagination/ListIdentityProvidersPaginator.js +35 -0
- package/dist-cjs/pagination/ListNetworkSettingsPaginator.js +35 -0
- package/dist-cjs/pagination/ListPortalsPaginator.js +35 -0
- package/dist-cjs/pagination/ListTrustStoreCertificatesPaginator.js +35 -0
- package/dist-cjs/pagination/ListTrustStoresPaginator.js +35 -0
- package/dist-cjs/pagination/ListUserSettingsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +5533 -0
- package/dist-cjs/runtimeConfig.browser.js +40 -0
- package/dist-cjs/runtimeConfig.js +44 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/WorkSpacesWeb.js +670 -0
- package/dist-es/WorkSpacesWebClient.js +37 -0
- package/dist-es/commands/AssociateBrowserSettingsCommand.js +39 -0
- package/dist-es/commands/AssociateNetworkSettingsCommand.js +39 -0
- package/dist-es/commands/AssociateTrustStoreCommand.js +39 -0
- package/dist-es/commands/AssociateUserSettingsCommand.js +39 -0
- package/dist-es/commands/CreateBrowserSettingsCommand.js +39 -0
- package/dist-es/commands/CreateIdentityProviderCommand.js +39 -0
- package/dist-es/commands/CreateNetworkSettingsCommand.js +39 -0
- package/dist-es/commands/CreatePortalCommand.js +39 -0
- package/dist-es/commands/CreateTrustStoreCommand.js +39 -0
- package/dist-es/commands/CreateUserSettingsCommand.js +39 -0
- package/dist-es/commands/DeleteBrowserSettingsCommand.js +39 -0
- package/dist-es/commands/DeleteIdentityProviderCommand.js +39 -0
- package/dist-es/commands/DeleteNetworkSettingsCommand.js +39 -0
- package/dist-es/commands/DeletePortalCommand.js +39 -0
- package/dist-es/commands/DeleteTrustStoreCommand.js +39 -0
- package/dist-es/commands/DeleteUserSettingsCommand.js +39 -0
- package/dist-es/commands/DisassociateBrowserSettingsCommand.js +39 -0
- package/dist-es/commands/DisassociateNetworkSettingsCommand.js +39 -0
- package/dist-es/commands/DisassociateTrustStoreCommand.js +39 -0
- package/dist-es/commands/DisassociateUserSettingsCommand.js +39 -0
- package/dist-es/commands/GetBrowserSettingsCommand.js +39 -0
- package/dist-es/commands/GetIdentityProviderCommand.js +39 -0
- package/dist-es/commands/GetNetworkSettingsCommand.js +39 -0
- package/dist-es/commands/GetPortalCommand.js +39 -0
- package/dist-es/commands/GetPortalServiceProviderMetadataCommand.js +39 -0
- package/dist-es/commands/GetTrustStoreCertificateCommand.js +39 -0
- package/dist-es/commands/GetTrustStoreCommand.js +39 -0
- package/dist-es/commands/GetUserSettingsCommand.js +39 -0
- package/dist-es/commands/ListBrowserSettingsCommand.js +39 -0
- package/dist-es/commands/ListIdentityProvidersCommand.js +39 -0
- package/dist-es/commands/ListNetworkSettingsCommand.js +39 -0
- package/dist-es/commands/ListPortalsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/ListTrustStoreCertificatesCommand.js +39 -0
- package/dist-es/commands/ListTrustStoresCommand.js +39 -0
- package/dist-es/commands/ListUserSettingsCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateBrowserSettingsCommand.js +39 -0
- package/dist-es/commands/UpdateIdentityProviderCommand.js +39 -0
- package/dist-es/commands/UpdateNetworkSettingsCommand.js +39 -0
- package/dist-es/commands/UpdatePortalCommand.js +39 -0
- package/dist-es/commands/UpdateTrustStoreCommand.js +39 -0
- package/dist-es/commands/UpdateUserSettingsCommand.js +39 -0
- package/dist-es/commands/index.js +44 -0
- package/dist-es/endpoints.js +126 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +484 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListBrowserSettingsPaginator.js +74 -0
- package/dist-es/pagination/ListIdentityProvidersPaginator.js +74 -0
- package/dist-es/pagination/ListNetworkSettingsPaginator.js +74 -0
- package/dist-es/pagination/ListPortalsPaginator.js +74 -0
- package/dist-es/pagination/ListTrustStoreCertificatesPaginator.js +74 -0
- package/dist-es/pagination/ListTrustStoresPaginator.js +74 -0
- package/dist-es/pagination/ListUserSettingsPaginator.js +74 -0
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +6269 -0
- package/dist-es/runtimeConfig.browser.js +17 -0
- package/dist-es/runtimeConfig.js +21 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/WorkSpacesWeb.d.ts +330 -0
- package/dist-types/WorkSpacesWebClient.d.ts +189 -0
- package/dist-types/commands/AssociateBrowserSettingsCommand.d.ts +35 -0
- package/dist-types/commands/AssociateNetworkSettingsCommand.d.ts +35 -0
- package/dist-types/commands/AssociateTrustStoreCommand.d.ts +35 -0
- package/dist-types/commands/AssociateUserSettingsCommand.d.ts +35 -0
- package/dist-types/commands/CreateBrowserSettingsCommand.d.ts +37 -0
- package/dist-types/commands/CreateIdentityProviderCommand.d.ts +35 -0
- package/dist-types/commands/CreateNetworkSettingsCommand.d.ts +37 -0
- package/dist-types/commands/CreatePortalCommand.d.ts +35 -0
- package/dist-types/commands/CreateTrustStoreCommand.d.ts +39 -0
- package/dist-types/commands/CreateUserSettingsCommand.d.ts +37 -0
- package/dist-types/commands/DeleteBrowserSettingsCommand.d.ts +35 -0
- package/dist-types/commands/DeleteIdentityProviderCommand.d.ts +35 -0
- package/dist-types/commands/DeleteNetworkSettingsCommand.d.ts +35 -0
- package/dist-types/commands/DeletePortalCommand.d.ts +35 -0
- package/dist-types/commands/DeleteTrustStoreCommand.d.ts +35 -0
- package/dist-types/commands/DeleteUserSettingsCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateBrowserSettingsCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateNetworkSettingsCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateTrustStoreCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateUserSettingsCommand.d.ts +35 -0
- package/dist-types/commands/GetBrowserSettingsCommand.d.ts +35 -0
- package/dist-types/commands/GetIdentityProviderCommand.d.ts +35 -0
- package/dist-types/commands/GetNetworkSettingsCommand.d.ts +35 -0
- package/dist-types/commands/GetPortalCommand.d.ts +35 -0
- package/dist-types/commands/GetPortalServiceProviderMetadataCommand.d.ts +35 -0
- package/dist-types/commands/GetTrustStoreCertificateCommand.d.ts +35 -0
- package/dist-types/commands/GetTrustStoreCommand.d.ts +35 -0
- package/dist-types/commands/GetUserSettingsCommand.d.ts +35 -0
- package/dist-types/commands/ListBrowserSettingsCommand.d.ts +35 -0
- package/dist-types/commands/ListIdentityProvidersCommand.d.ts +35 -0
- package/dist-types/commands/ListNetworkSettingsCommand.d.ts +35 -0
- package/dist-types/commands/ListPortalsCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/ListTrustStoreCertificatesCommand.d.ts +35 -0
- package/dist-types/commands/ListTrustStoresCommand.d.ts +35 -0
- package/dist-types/commands/ListUserSettingsCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateBrowserSettingsCommand.d.ts +35 -0
- package/dist-types/commands/UpdateIdentityProviderCommand.d.ts +35 -0
- package/dist-types/commands/UpdateNetworkSettingsCommand.d.ts +35 -0
- package/dist-types/commands/UpdatePortalCommand.d.ts +35 -0
- package/dist-types/commands/UpdateTrustStoreCommand.d.ts +35 -0
- package/dist-types/commands/UpdateUserSettingsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +44 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2382 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListBrowserSettingsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListIdentityProvidersPaginator.d.ts +4 -0
- package/dist-types/pagination/ListNetworkSettingsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListPortalsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTrustStoreCertificatesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTrustStoresPaginator.d.ts +4 -0
- package/dist-types/pagination/ListUserSettingsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +134 -0
- package/dist-types/runtimeConfig.browser.d.ts +39 -0
- package/dist-types/runtimeConfig.d.ts +39 -0
- package/dist-types/runtimeConfig.native.d.ts +38 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/WorkSpacesWeb.d.ts +225 -0
- package/dist-types/ts3.4/WorkSpacesWebClient.d.ts +115 -0
- package/dist-types/ts3.4/commands/AssociateBrowserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AssociateNetworkSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AssociateTrustStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AssociateUserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateBrowserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateIdentityProviderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateNetworkSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreatePortalCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateTrustStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateUserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteBrowserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteIdentityProviderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteNetworkSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePortalCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteTrustStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteUserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateBrowserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateNetworkSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateTrustStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateUserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetBrowserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetIdentityProviderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetNetworkSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPortalCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPortalServiceProviderMetadataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTrustStoreCertificateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTrustStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetUserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBrowserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListIdentityProvidersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListNetworkSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPortalsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTrustStoreCertificatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTrustStoresCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListUserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateBrowserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateIdentityProviderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateNetworkSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdatePortalCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateTrustStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateUserSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +44 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1238 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListBrowserSettingsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListIdentityProvidersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListNetworkSettingsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListPortalsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTrustStoreCertificatesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTrustStoresPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListUserSettingsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +134 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +96 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListBrowserSettingsCommand, } from "../commands/ListBrowserSettingsCommand";
|
|
3
|
+
import { WorkSpacesWeb } from "../WorkSpacesWeb";
|
|
4
|
+
import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListBrowserSettingsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listBrowserSettings.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListBrowserSettings(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListBrowserSettings_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof WorkSpacesWeb)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof WorkSpacesWebClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.nextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListIdentityProvidersCommand, } from "../commands/ListIdentityProvidersCommand";
|
|
3
|
+
import { WorkSpacesWeb } from "../WorkSpacesWeb";
|
|
4
|
+
import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListIdentityProvidersCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listIdentityProviders.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListIdentityProviders(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListIdentityProviders_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof WorkSpacesWeb)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof WorkSpacesWebClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.nextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListNetworkSettingsCommand, } from "../commands/ListNetworkSettingsCommand";
|
|
3
|
+
import { WorkSpacesWeb } from "../WorkSpacesWeb";
|
|
4
|
+
import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListNetworkSettingsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listNetworkSettings.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListNetworkSettings(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListNetworkSettings_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof WorkSpacesWeb)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof WorkSpacesWebClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.nextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListPortalsCommand } from "../commands/ListPortalsCommand";
|
|
3
|
+
import { WorkSpacesWeb } from "../WorkSpacesWeb";
|
|
4
|
+
import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListPortalsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listPortals.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListPortals(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListPortals_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof WorkSpacesWeb)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof WorkSpacesWebClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.nextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListTrustStoreCertificatesCommand, } from "../commands/ListTrustStoreCertificatesCommand";
|
|
3
|
+
import { WorkSpacesWeb } from "../WorkSpacesWeb";
|
|
4
|
+
import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTrustStoreCertificatesCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listTrustStoreCertificates.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListTrustStoreCertificates(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListTrustStoreCertificates_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof WorkSpacesWeb)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof WorkSpacesWebClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.nextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListTrustStoresCommand, } from "../commands/ListTrustStoresCommand";
|
|
3
|
+
import { WorkSpacesWeb } from "../WorkSpacesWeb";
|
|
4
|
+
import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTrustStoresCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listTrustStores.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListTrustStores(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListTrustStores_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof WorkSpacesWeb)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof WorkSpacesWebClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.nextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListUserSettingsCommand, } from "../commands/ListUserSettingsCommand";
|
|
3
|
+
import { WorkSpacesWeb } from "../WorkSpacesWeb";
|
|
4
|
+
import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListUserSettingsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listUserSettings.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListUserSettings(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListUserSettings_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof WorkSpacesWeb)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof WorkSpacesWebClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.nextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
2
|
+
export * from "./ListBrowserSettingsPaginator";
|
|
3
|
+
export * from "./ListIdentityProvidersPaginator";
|
|
4
|
+
export * from "./ListNetworkSettingsPaginator";
|
|
5
|
+
export * from "./ListPortalsPaginator";
|
|
6
|
+
export * from "./ListTrustStoreCertificatesPaginator";
|
|
7
|
+
export * from "./ListTrustStoresPaginator";
|
|
8
|
+
export * from "./ListUserSettingsPaginator";
|