@aws-sdk/client-iam 3.186.0 → 3.190.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 +16 -0
- package/dist-cjs/models/models_0.js +66 -6
- package/dist-cjs/protocols/Aws_query.js +8 -4
- package/dist-es/IAM.js +634 -641
- package/dist-es/IAMClient.js +22 -28
- package/dist-es/commands/AddClientIDToOpenIDConnectProviderCommand.js +22 -29
- package/dist-es/commands/AddRoleToInstanceProfileCommand.js +22 -29
- package/dist-es/commands/AddUserToGroupCommand.js +22 -29
- package/dist-es/commands/AttachGroupPolicyCommand.js +22 -29
- package/dist-es/commands/AttachRolePolicyCommand.js +22 -29
- package/dist-es/commands/AttachUserPolicyCommand.js +22 -29
- package/dist-es/commands/ChangePasswordCommand.js +22 -29
- package/dist-es/commands/CreateAccessKeyCommand.js +21 -28
- package/dist-es/commands/CreateAccountAliasCommand.js +22 -29
- package/dist-es/commands/CreateGroupCommand.js +21 -28
- package/dist-es/commands/CreateInstanceProfileCommand.js +21 -28
- package/dist-es/commands/CreateLoginProfileCommand.js +21 -28
- package/dist-es/commands/CreateOpenIDConnectProviderCommand.js +21 -28
- package/dist-es/commands/CreatePolicyCommand.js +21 -28
- package/dist-es/commands/CreatePolicyVersionCommand.js +21 -28
- package/dist-es/commands/CreateRoleCommand.js +21 -28
- package/dist-es/commands/CreateSAMLProviderCommand.js +21 -28
- package/dist-es/commands/CreateServiceLinkedRoleCommand.js +21 -28
- package/dist-es/commands/CreateServiceSpecificCredentialCommand.js +21 -28
- package/dist-es/commands/CreateUserCommand.js +21 -28
- package/dist-es/commands/CreateVirtualMFADeviceCommand.js +21 -28
- package/dist-es/commands/DeactivateMFADeviceCommand.js +22 -29
- package/dist-es/commands/DeleteAccessKeyCommand.js +22 -29
- package/dist-es/commands/DeleteAccountAliasCommand.js +22 -29
- package/dist-es/commands/DeleteAccountPasswordPolicyCommand.js +23 -30
- package/dist-es/commands/DeleteGroupCommand.js +22 -29
- package/dist-es/commands/DeleteGroupPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteInstanceProfileCommand.js +22 -29
- package/dist-es/commands/DeleteLoginProfileCommand.js +22 -29
- package/dist-es/commands/DeleteOpenIDConnectProviderCommand.js +22 -29
- package/dist-es/commands/DeletePolicyCommand.js +22 -29
- package/dist-es/commands/DeletePolicyVersionCommand.js +22 -29
- package/dist-es/commands/DeleteRoleCommand.js +22 -29
- package/dist-es/commands/DeleteRolePermissionsBoundaryCommand.js +22 -29
- package/dist-es/commands/DeleteRolePolicyCommand.js +22 -29
- package/dist-es/commands/DeleteSAMLProviderCommand.js +22 -29
- package/dist-es/commands/DeleteSSHPublicKeyCommand.js +22 -29
- package/dist-es/commands/DeleteServerCertificateCommand.js +22 -29
- package/dist-es/commands/DeleteServiceLinkedRoleCommand.js +21 -28
- package/dist-es/commands/DeleteServiceSpecificCredentialCommand.js +22 -29
- package/dist-es/commands/DeleteSigningCertificateCommand.js +22 -29
- package/dist-es/commands/DeleteUserCommand.js +22 -29
- package/dist-es/commands/DeleteUserPermissionsBoundaryCommand.js +22 -29
- package/dist-es/commands/DeleteUserPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteVirtualMFADeviceCommand.js +22 -29
- package/dist-es/commands/DetachGroupPolicyCommand.js +22 -29
- package/dist-es/commands/DetachRolePolicyCommand.js +22 -29
- package/dist-es/commands/DetachUserPolicyCommand.js +22 -29
- package/dist-es/commands/EnableMFADeviceCommand.js +22 -29
- package/dist-es/commands/GenerateCredentialReportCommand.js +22 -29
- package/dist-es/commands/GenerateOrganizationsAccessReportCommand.js +21 -28
- package/dist-es/commands/GenerateServiceLastAccessedDetailsCommand.js +21 -28
- package/dist-es/commands/GetAccessKeyLastUsedCommand.js +21 -28
- package/dist-es/commands/GetAccountAuthorizationDetailsCommand.js +21 -28
- package/dist-es/commands/GetAccountPasswordPolicyCommand.js +22 -29
- package/dist-es/commands/GetAccountSummaryCommand.js +22 -29
- package/dist-es/commands/GetContextKeysForCustomPolicyCommand.js +21 -28
- package/dist-es/commands/GetContextKeysForPrincipalPolicyCommand.js +21 -28
- package/dist-es/commands/GetCredentialReportCommand.js +22 -29
- package/dist-es/commands/GetGroupCommand.js +21 -28
- package/dist-es/commands/GetGroupPolicyCommand.js +21 -28
- package/dist-es/commands/GetInstanceProfileCommand.js +21 -28
- package/dist-es/commands/GetLoginProfileCommand.js +21 -28
- package/dist-es/commands/GetOpenIDConnectProviderCommand.js +21 -28
- package/dist-es/commands/GetOrganizationsAccessReportCommand.js +21 -28
- package/dist-es/commands/GetPolicyCommand.js +21 -28
- package/dist-es/commands/GetPolicyVersionCommand.js +21 -28
- package/dist-es/commands/GetRoleCommand.js +21 -28
- package/dist-es/commands/GetRolePolicyCommand.js +21 -28
- package/dist-es/commands/GetSAMLProviderCommand.js +21 -28
- package/dist-es/commands/GetSSHPublicKeyCommand.js +21 -28
- package/dist-es/commands/GetServerCertificateCommand.js +21 -28
- package/dist-es/commands/GetServiceLastAccessedDetailsCommand.js +21 -28
- package/dist-es/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.js +21 -28
- package/dist-es/commands/GetServiceLinkedRoleDeletionStatusCommand.js +21 -28
- package/dist-es/commands/GetUserCommand.js +21 -28
- package/dist-es/commands/GetUserPolicyCommand.js +21 -28
- package/dist-es/commands/ListAccessKeysCommand.js +21 -28
- package/dist-es/commands/ListAccountAliasesCommand.js +21 -28
- package/dist-es/commands/ListAttachedGroupPoliciesCommand.js +21 -28
- package/dist-es/commands/ListAttachedRolePoliciesCommand.js +21 -28
- package/dist-es/commands/ListAttachedUserPoliciesCommand.js +21 -28
- package/dist-es/commands/ListEntitiesForPolicyCommand.js +21 -28
- package/dist-es/commands/ListGroupPoliciesCommand.js +21 -28
- package/dist-es/commands/ListGroupsCommand.js +21 -28
- package/dist-es/commands/ListGroupsForUserCommand.js +21 -28
- package/dist-es/commands/ListInstanceProfileTagsCommand.js +21 -28
- package/dist-es/commands/ListInstanceProfilesCommand.js +21 -28
- package/dist-es/commands/ListInstanceProfilesForRoleCommand.js +21 -28
- package/dist-es/commands/ListMFADeviceTagsCommand.js +21 -28
- package/dist-es/commands/ListMFADevicesCommand.js +21 -28
- package/dist-es/commands/ListOpenIDConnectProviderTagsCommand.js +21 -28
- package/dist-es/commands/ListOpenIDConnectProvidersCommand.js +21 -28
- package/dist-es/commands/ListPoliciesCommand.js +21 -28
- package/dist-es/commands/ListPoliciesGrantingServiceAccessCommand.js +21 -28
- package/dist-es/commands/ListPolicyTagsCommand.js +21 -28
- package/dist-es/commands/ListPolicyVersionsCommand.js +21 -28
- package/dist-es/commands/ListRolePoliciesCommand.js +21 -28
- package/dist-es/commands/ListRoleTagsCommand.js +21 -28
- package/dist-es/commands/ListRolesCommand.js +21 -28
- package/dist-es/commands/ListSAMLProviderTagsCommand.js +21 -28
- package/dist-es/commands/ListSAMLProvidersCommand.js +21 -28
- package/dist-es/commands/ListSSHPublicKeysCommand.js +21 -28
- package/dist-es/commands/ListServerCertificateTagsCommand.js +21 -28
- package/dist-es/commands/ListServerCertificatesCommand.js +21 -28
- package/dist-es/commands/ListServiceSpecificCredentialsCommand.js +21 -28
- package/dist-es/commands/ListSigningCertificatesCommand.js +21 -28
- package/dist-es/commands/ListUserPoliciesCommand.js +21 -28
- package/dist-es/commands/ListUserTagsCommand.js +21 -28
- package/dist-es/commands/ListUsersCommand.js +21 -28
- package/dist-es/commands/ListVirtualMFADevicesCommand.js +21 -28
- package/dist-es/commands/PutGroupPolicyCommand.js +22 -29
- package/dist-es/commands/PutRolePermissionsBoundaryCommand.js +22 -29
- package/dist-es/commands/PutRolePolicyCommand.js +22 -29
- package/dist-es/commands/PutUserPermissionsBoundaryCommand.js +22 -29
- package/dist-es/commands/PutUserPolicyCommand.js +22 -29
- package/dist-es/commands/RemoveClientIDFromOpenIDConnectProviderCommand.js +22 -29
- package/dist-es/commands/RemoveRoleFromInstanceProfileCommand.js +22 -29
- package/dist-es/commands/RemoveUserFromGroupCommand.js +22 -29
- package/dist-es/commands/ResetServiceSpecificCredentialCommand.js +21 -28
- package/dist-es/commands/ResyncMFADeviceCommand.js +22 -29
- package/dist-es/commands/SetDefaultPolicyVersionCommand.js +22 -29
- package/dist-es/commands/SetSecurityTokenServicePreferencesCommand.js +22 -29
- package/dist-es/commands/SimulateCustomPolicyCommand.js +21 -28
- package/dist-es/commands/SimulatePrincipalPolicyCommand.js +21 -28
- package/dist-es/commands/TagInstanceProfileCommand.js +22 -29
- package/dist-es/commands/TagMFADeviceCommand.js +22 -29
- package/dist-es/commands/TagOpenIDConnectProviderCommand.js +22 -29
- package/dist-es/commands/TagPolicyCommand.js +22 -29
- package/dist-es/commands/TagRoleCommand.js +22 -29
- package/dist-es/commands/TagSAMLProviderCommand.js +22 -29
- package/dist-es/commands/TagServerCertificateCommand.js +22 -29
- package/dist-es/commands/TagUserCommand.js +22 -29
- package/dist-es/commands/UntagInstanceProfileCommand.js +22 -29
- package/dist-es/commands/UntagMFADeviceCommand.js +22 -29
- package/dist-es/commands/UntagOpenIDConnectProviderCommand.js +22 -29
- package/dist-es/commands/UntagPolicyCommand.js +22 -29
- package/dist-es/commands/UntagRoleCommand.js +22 -29
- package/dist-es/commands/UntagSAMLProviderCommand.js +22 -29
- package/dist-es/commands/UntagServerCertificateCommand.js +22 -29
- package/dist-es/commands/UntagUserCommand.js +22 -29
- package/dist-es/commands/UpdateAccessKeyCommand.js +22 -29
- package/dist-es/commands/UpdateAccountPasswordPolicyCommand.js +22 -29
- package/dist-es/commands/UpdateAssumeRolePolicyCommand.js +22 -29
- package/dist-es/commands/UpdateGroupCommand.js +22 -29
- package/dist-es/commands/UpdateLoginProfileCommand.js +22 -29
- package/dist-es/commands/UpdateOpenIDConnectProviderThumbprintCommand.js +22 -29
- package/dist-es/commands/UpdateRoleCommand.js +21 -28
- package/dist-es/commands/UpdateRoleDescriptionCommand.js +21 -28
- package/dist-es/commands/UpdateSAMLProviderCommand.js +21 -28
- package/dist-es/commands/UpdateSSHPublicKeyCommand.js +22 -29
- package/dist-es/commands/UpdateServerCertificateCommand.js +22 -29
- package/dist-es/commands/UpdateServiceSpecificCredentialCommand.js +22 -29
- package/dist-es/commands/UpdateSigningCertificateCommand.js +22 -29
- package/dist-es/commands/UpdateUserCommand.js +22 -29
- package/dist-es/commands/UploadSSHPublicKeyCommand.js +21 -28
- package/dist-es/commands/UploadServerCertificateCommand.js +21 -28
- package/dist-es/commands/UploadSigningCertificateCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/IAMServiceException.js +5 -10
- package/dist-es/models/models_0.js +1086 -497
- package/dist-es/models/models_1.js +152 -95
- package/dist-es/pagination/GetAccountAuthorizationDetailsPaginator.js +25 -68
- package/dist-es/pagination/GetGroupPaginator.js +25 -68
- package/dist-es/pagination/ListAccessKeysPaginator.js +25 -68
- package/dist-es/pagination/ListAccountAliasesPaginator.js +25 -68
- package/dist-es/pagination/ListAttachedGroupPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListAttachedRolePoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListAttachedUserPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListEntitiesForPolicyPaginator.js +25 -68
- package/dist-es/pagination/ListGroupPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListGroupsForUserPaginator.js +25 -68
- package/dist-es/pagination/ListGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListInstanceProfilesForRolePaginator.js +25 -68
- package/dist-es/pagination/ListInstanceProfilesPaginator.js +25 -68
- package/dist-es/pagination/ListMFADevicesPaginator.js +25 -68
- package/dist-es/pagination/ListPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListPolicyVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListRolePoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListRolesPaginator.js +25 -68
- package/dist-es/pagination/ListSSHPublicKeysPaginator.js +25 -68
- package/dist-es/pagination/ListServerCertificatesPaginator.js +25 -68
- package/dist-es/pagination/ListSigningCertificatesPaginator.js +25 -68
- package/dist-es/pagination/ListUserPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListUserTagsPaginator.js +25 -68
- package/dist-es/pagination/ListUsersPaginator.js +25 -68
- package/dist-es/pagination/ListVirtualMFADevicesPaginator.js +25 -68
- package/dist-es/pagination/SimulateCustomPolicyPaginator.js +25 -68
- package/dist-es/pagination/SimulatePrincipalPolicyPaginator.js +25 -68
- package/dist-es/protocols/Aws_query.js +9075 -12381
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForInstanceProfileExists.js +23 -42
- package/dist-es/waiters/waitForPolicyExists.js +23 -42
- package/dist-es/waiters/waitForRoleExists.js +23 -42
- package/dist-es/waiters/waitForUserExists.js +23 -42
- package/dist-types/IAM.d.ts +4 -4
- package/dist-types/commands/DeleteLoginProfileCommand.d.ts +4 -4
- package/dist-types/models/models_0.d.ts +65 -19
- package/dist-types/ts3.4/models/models_0.d.ts +53 -35
- package/package.json +35 -36
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListPolicyVersionsCommand, } from "../commands/ListPolicyVersionsCommand";
|
|
3
2
|
import { IAM } from "../IAM";
|
|
4
3
|
import { IAMClient } from "../IAMClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 ListPolicyVersionsCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListPolicyVersionsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.listPolicyVersions.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listPolicyVersions(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListPolicyVersions(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListPolicyVersions(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxItems"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IAM) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IAMClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
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.Marker = token;
|
|
49
|
-
input["MaxItems"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof IAM)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IAMClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected IAM | IAMClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.Marker;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListRolePoliciesCommand, } from "../commands/ListRolePoliciesCommand";
|
|
3
2
|
import { IAM } from "../IAM";
|
|
4
3
|
import { IAMClient } from "../IAMClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 ListRolePoliciesCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListRolePoliciesCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.listRolePolicies.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listRolePolicies(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListRolePolicies(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListRolePolicies(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxItems"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IAM) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IAMClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
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.Marker = token;
|
|
49
|
-
input["MaxItems"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof IAM)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IAMClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected IAM | IAMClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.Marker;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListRolesCommand } from "../commands/ListRolesCommand";
|
|
3
2
|
import { IAM } from "../IAM";
|
|
4
3
|
import { IAMClient } from "../IAMClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 ListRolesCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListRolesCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.listRoles.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listRoles(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListRoles(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListRoles(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxItems"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IAM) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IAMClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
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.Marker = token;
|
|
49
|
-
input["MaxItems"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof IAM)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IAMClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected IAM | IAMClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.Marker;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListSSHPublicKeysCommand, } from "../commands/ListSSHPublicKeysCommand";
|
|
3
2
|
import { IAM } from "../IAM";
|
|
4
3
|
import { IAMClient } from "../IAMClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 ListSSHPublicKeysCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListSSHPublicKeysCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.listSSHPublicKeys.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listSSHPublicKeys(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListSSHPublicKeys(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListSSHPublicKeys(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxItems"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IAM) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IAMClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
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.Marker = token;
|
|
49
|
-
input["MaxItems"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof IAM)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IAMClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected IAM | IAMClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.Marker;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListServerCertificatesCommand, } from "../commands/ListServerCertificatesCommand";
|
|
3
2
|
import { IAM } from "../IAM";
|
|
4
3
|
import { IAMClient } from "../IAMClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 ListServerCertificatesCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListServerCertificatesCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.listServerCertificates.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listServerCertificates(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListServerCertificates(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListServerCertificates(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxItems"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IAM) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IAMClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
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.Marker = token;
|
|
49
|
-
input["MaxItems"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof IAM)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IAMClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected IAM | IAMClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.Marker;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListSigningCertificatesCommand, } from "../commands/ListSigningCertificatesCommand";
|
|
3
2
|
import { IAM } from "../IAM";
|
|
4
3
|
import { IAMClient } from "../IAMClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 ListSigningCertificatesCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListSigningCertificatesCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.listSigningCertificates.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listSigningCertificates(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListSigningCertificates(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListSigningCertificates(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxItems"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IAM) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IAMClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IAM | IAMClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
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.Marker = token;
|
|
49
|
-
input["MaxItems"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof IAM)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IAMClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected IAM | IAMClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.Marker;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|