@aws-sdk/client-sso 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/SSO.js +1 -2
- package/{dist/cjs → dist-cjs}/SSOClient.js +7 -8
- package/{dist/cjs → dist-cjs}/commands/GetRoleCredentialsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListAccountRolesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListAccountsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/LogoutCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListAccountRolesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListAccountsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +4 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/SSO.js +2 -21
- package/{dist/es → dist-es}/SSOClient.js +2 -26
- package/{dist/es → dist-es}/commands/GetRoleCredentialsCommand.js +4 -31
- package/{dist/es → dist-es}/commands/ListAccountRolesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListAccountsCommand.js +4 -32
- package/{dist/es → dist-es}/commands/LogoutCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -43
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListAccountRolesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListAccountsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +96 -102
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/SSO.d.ts +2 -2
- package/{dist/types → dist-types}/SSOClient.d.ts +5 -5
- package/{dist/types → dist-types}/commands/GetRoleCredentialsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListAccountRolesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListAccountsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/LogoutCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAccountRolesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAccountsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/SSO.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/SSOClient.d.ts +5 -5
- package/{dist/types → dist-types}/ts3.4/commands/GetRoleCredentialsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListAccountRolesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListAccountsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/LogoutCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAccountRolesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAccountsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +49 -46
- package/SSO.ts +0 -160
- package/SSOClient.ts +0 -245
- package/commands/GetRoleCredentialsCommand.ts +0 -95
- package/commands/ListAccountRolesCommand.ts +0 -94
- package/commands/ListAccountsCommand.ts +0 -96
- package/commands/LogoutCommand.ts +0 -87
- package/dist/cjs/SSO.js.map +0 -1
- package/dist/cjs/SSOClient.js.map +0 -1
- package/dist/cjs/commands/GetRoleCredentialsCommand.js.map +0 -1
- package/dist/cjs/commands/ListAccountRolesCommand.js.map +0 -1
- package/dist/cjs/commands/ListAccountsCommand.js.map +0 -1
- package/dist/cjs/commands/LogoutCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -88
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListAccountRolesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListAccountsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/SSO.js.map +0 -1
- package/dist/es/SSOClient.js.map +0 -1
- package/dist/es/commands/GetRoleCredentialsCommand.js.map +0 -1
- package/dist/es/commands/ListAccountRolesCommand.js.map +0 -1
- package/dist/es/commands/ListAccountsCommand.js.map +0 -1
- package/dist/es/commands/LogoutCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -11
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -88
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListAccountRolesPaginator.js.map +0 -1
- package/dist/es/pagination/ListAccountsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -94
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -334
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListAccountRolesPaginator.ts +0 -58
- package/pagination/ListAccountsPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -621
- package/runtimeConfig.browser.ts +0 -38
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -41
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -84,7 +84,6 @@ var partitionHash = {
|
|
|
84
84
|
};
|
|
85
85
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
86
86
|
return __generator(this, function (_a) {
|
|
87
|
-
return [2
|
|
87
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "awsssoportal", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
88
88
|
});
|
|
89
89
|
}); };
|
|
90
|
-
//# sourceMappingURL=endpoints.js.map
|
|
File without changes
|
|
File without changes
|
|
@@ -2,100 +2,57 @@ import { __assign } from "tslib";
|
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
3
|
export var AccountInfo;
|
|
4
4
|
(function (AccountInfo) {
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
5
|
AccountInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
9
6
|
})(AccountInfo || (AccountInfo = {}));
|
|
10
7
|
export var GetRoleCredentialsRequest;
|
|
11
8
|
(function (GetRoleCredentialsRequest) {
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
9
|
GetRoleCredentialsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
16
10
|
})(GetRoleCredentialsRequest || (GetRoleCredentialsRequest = {}));
|
|
17
11
|
export var RoleCredentials;
|
|
18
12
|
(function (RoleCredentials) {
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
13
|
RoleCredentials.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING })), (obj.sessionToken && { sessionToken: SENSITIVE_STRING }))); };
|
|
23
14
|
})(RoleCredentials || (RoleCredentials = {}));
|
|
24
15
|
export var GetRoleCredentialsResponse;
|
|
25
16
|
(function (GetRoleCredentialsResponse) {
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
17
|
GetRoleCredentialsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }))); };
|
|
30
18
|
})(GetRoleCredentialsResponse || (GetRoleCredentialsResponse = {}));
|
|
31
19
|
export var InvalidRequestException;
|
|
32
20
|
(function (InvalidRequestException) {
|
|
33
|
-
/**
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
36
21
|
InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
37
22
|
})(InvalidRequestException || (InvalidRequestException = {}));
|
|
38
23
|
export var ResourceNotFoundException;
|
|
39
24
|
(function (ResourceNotFoundException) {
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
25
|
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
44
26
|
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
45
27
|
export var TooManyRequestsException;
|
|
46
28
|
(function (TooManyRequestsException) {
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
50
29
|
TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
51
30
|
})(TooManyRequestsException || (TooManyRequestsException = {}));
|
|
52
31
|
export var UnauthorizedException;
|
|
53
32
|
(function (UnauthorizedException) {
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
33
|
UnauthorizedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
58
34
|
})(UnauthorizedException || (UnauthorizedException = {}));
|
|
59
35
|
export var ListAccountRolesRequest;
|
|
60
36
|
(function (ListAccountRolesRequest) {
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
37
|
ListAccountRolesRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
65
38
|
})(ListAccountRolesRequest || (ListAccountRolesRequest = {}));
|
|
66
39
|
export var RoleInfo;
|
|
67
40
|
(function (RoleInfo) {
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
41
|
RoleInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
72
42
|
})(RoleInfo || (RoleInfo = {}));
|
|
73
43
|
export var ListAccountRolesResponse;
|
|
74
44
|
(function (ListAccountRolesResponse) {
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
*/
|
|
78
45
|
ListAccountRolesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
79
46
|
})(ListAccountRolesResponse || (ListAccountRolesResponse = {}));
|
|
80
47
|
export var ListAccountsRequest;
|
|
81
48
|
(function (ListAccountsRequest) {
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
49
|
ListAccountsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
86
50
|
})(ListAccountsRequest || (ListAccountsRequest = {}));
|
|
87
51
|
export var ListAccountsResponse;
|
|
88
52
|
(function (ListAccountsResponse) {
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
53
|
ListAccountsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
93
54
|
})(ListAccountsResponse || (ListAccountsResponse = {}));
|
|
94
55
|
export var LogoutRequest;
|
|
95
56
|
(function (LogoutRequest) {
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
*/
|
|
99
57
|
LogoutRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
100
58
|
})(LogoutRequest || (LogoutRequest = {}));
|
|
101
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListAccountRolesCommand, } from "../commands/ListAccountRolesCommand";
|
|
2
3
|
import { SSO } from "../SSO";
|
|
3
4
|
import { SSOClient } from "../SSOClient";
|
|
4
|
-
import { ListAccountRolesCommand, } from "../commands/ListAccountRolesCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListAccountRolesCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.listAccountRoles.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,34 +44,31 @@ export function paginateListAccountRoles(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.nextToken = token;
|
|
59
49
|
input["maxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof SSO)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof SSO)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof SSOClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof SSOClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected SSO | SSOClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.nextToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
86
74
|
}
|
|
87
|
-
//# sourceMappingURL=ListAccountRolesPaginator.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListAccountsCommand, } from "../commands/ListAccountsCommand";
|
|
2
3
|
import { SSO } from "../SSO";
|
|
3
4
|
import { SSOClient } from "../SSOClient";
|
|
4
|
-
import { ListAccountsCommand, } from "../commands/ListAccountsCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListAccountsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.listAccounts.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,34 +44,31 @@ export function paginateListAccounts(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.nextToken = token;
|
|
59
49
|
input["maxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof SSO)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof SSO)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof SSOClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof SSOClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected SSO | SSOClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.nextToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
86
74
|
}
|
|
87
|
-
//# sourceMappingURL=ListAccountsPaginator.js.map
|