@aws-sdk/client-workmail 3.476.0 → 3.478.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/pagination/ListAliasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAvailabilityConfigurationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupMembersPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupsForEntityPaginator.js +2 -24
- package/dist-cjs/pagination/ListGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListImpersonationRolesPaginator.js +2 -24
- package/dist-cjs/pagination/ListMailDomainsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMailboxExportJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMailboxPermissionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMobileDeviceAccessOverridesPaginator.js +2 -24
- package/dist-cjs/pagination/ListOrganizationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourceDelegatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListUsersPaginator.js +2 -24
- package/dist-es/pagination/ListAliasesPaginator.js +2 -23
- package/dist-es/pagination/ListAvailabilityConfigurationsPaginator.js +2 -23
- package/dist-es/pagination/ListGroupMembersPaginator.js +2 -23
- package/dist-es/pagination/ListGroupsForEntityPaginator.js +2 -23
- package/dist-es/pagination/ListGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListImpersonationRolesPaginator.js +2 -23
- package/dist-es/pagination/ListMailDomainsPaginator.js +2 -23
- package/dist-es/pagination/ListMailboxExportJobsPaginator.js +2 -23
- package/dist-es/pagination/ListMailboxPermissionsPaginator.js +2 -23
- package/dist-es/pagination/ListMobileDeviceAccessOverridesPaginator.js +2 -23
- package/dist-es/pagination/ListOrganizationsPaginator.js +2 -23
- package/dist-es/pagination/ListResourceDelegatesPaginator.js +2 -23
- package/dist-es/pagination/ListResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListUsersPaginator.js +2 -23
- package/dist-types/pagination/ListAliasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAvailabilityConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupMembersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupsForEntityPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImpersonationRolesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMailDomainsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMailboxExportJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMailboxPermissionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMobileDeviceAccessOverridesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOrganizationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourceDelegatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUsersPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAvailabilityConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupMembersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupsForEntityPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImpersonationRolesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMailDomainsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMailboxExportJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMailboxPermissionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMobileDeviceAccessOverridesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOrganizationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourceDelegatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAliases = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAliasesCommand_1 = require("../commands/ListAliasesCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAliasesCommand_1.ListAliasesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAliases(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListAliases = paginateListAliases;
|
|
7
|
+
exports.paginateListAliases = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListAliasesCommand_1.ListAliasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAvailabilityConfigurations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAvailabilityConfigurationsCommand_1 = require("../commands/ListAvailabilityConfigurationsCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAvailabilityConfigurationsCommand_1.ListAvailabilityConfigurationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAvailabilityConfigurations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListAvailabilityConfigurations = paginateListAvailabilityConfigurations;
|
|
7
|
+
exports.paginateListAvailabilityConfigurations = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListAvailabilityConfigurationsCommand_1.ListAvailabilityConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListGroupMembers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListGroupMembersCommand_1 = require("../commands/ListGroupMembersCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListGroupMembersCommand_1.ListGroupMembersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListGroupMembers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListGroupMembers = paginateListGroupMembers;
|
|
7
|
+
exports.paginateListGroupMembers = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListGroupMembersCommand_1.ListGroupMembersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListGroupsForEntity = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListGroupsForEntityCommand_1 = require("../commands/ListGroupsForEntityCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListGroupsForEntityCommand_1.ListGroupsForEntityCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListGroupsForEntity(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListGroupsForEntity = paginateListGroupsForEntity;
|
|
7
|
+
exports.paginateListGroupsForEntity = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListGroupsForEntityCommand_1.ListGroupsForEntityCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListGroupsCommand_1 = require("../commands/ListGroupsCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListGroupsCommand_1.ListGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListGroups(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListGroups = paginateListGroups;
|
|
7
|
+
exports.paginateListGroups = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListGroupsCommand_1.ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListImpersonationRoles = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListImpersonationRolesCommand_1 = require("../commands/ListImpersonationRolesCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListImpersonationRolesCommand_1.ListImpersonationRolesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListImpersonationRoles(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListImpersonationRoles = paginateListImpersonationRoles;
|
|
7
|
+
exports.paginateListImpersonationRoles = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListImpersonationRolesCommand_1.ListImpersonationRolesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMailDomains = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListMailDomainsCommand_1 = require("../commands/ListMailDomainsCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMailDomainsCommand_1.ListMailDomainsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMailDomains(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListMailDomains = paginateListMailDomains;
|
|
7
|
+
exports.paginateListMailDomains = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListMailDomainsCommand_1.ListMailDomainsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMailboxExportJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListMailboxExportJobsCommand_1 = require("../commands/ListMailboxExportJobsCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMailboxExportJobsCommand_1.ListMailboxExportJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMailboxExportJobs(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListMailboxExportJobs = paginateListMailboxExportJobs;
|
|
7
|
+
exports.paginateListMailboxExportJobs = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListMailboxExportJobsCommand_1.ListMailboxExportJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMailboxPermissions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListMailboxPermissionsCommand_1 = require("../commands/ListMailboxPermissionsCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMailboxPermissionsCommand_1.ListMailboxPermissionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMailboxPermissions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListMailboxPermissions = paginateListMailboxPermissions;
|
|
7
|
+
exports.paginateListMailboxPermissions = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListMailboxPermissionsCommand_1.ListMailboxPermissionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMobileDeviceAccessOverrides = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListMobileDeviceAccessOverridesCommand_1 = require("../commands/ListMobileDeviceAccessOverridesCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMobileDeviceAccessOverridesCommand_1.ListMobileDeviceAccessOverridesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMobileDeviceAccessOverrides(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListMobileDeviceAccessOverrides = paginateListMobileDeviceAccessOverrides;
|
|
7
|
+
exports.paginateListMobileDeviceAccessOverrides = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListMobileDeviceAccessOverridesCommand_1.ListMobileDeviceAccessOverridesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOrganizations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListOrganizationsCommand_1 = require("../commands/ListOrganizationsCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListOrganizationsCommand_1.ListOrganizationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListOrganizations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListOrganizations = paginateListOrganizations;
|
|
7
|
+
exports.paginateListOrganizations = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListOrganizationsCommand_1.ListOrganizationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResourceDelegates = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResourceDelegatesCommand_1 = require("../commands/ListResourceDelegatesCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourceDelegatesCommand_1.ListResourceDelegatesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResourceDelegates(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListResourceDelegates = paginateListResourceDelegates;
|
|
7
|
+
exports.paginateListResourceDelegates = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListResourceDelegatesCommand_1.ListResourceDelegatesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResourcesCommand_1 = require("../commands/ListResourcesCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourcesCommand_1.ListResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResources(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListResources = paginateListResources;
|
|
7
|
+
exports.paginateListResources = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListResourcesCommand_1.ListResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListUsers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListUsersCommand_1 = require("../commands/ListUsersCommand");
|
|
5
6
|
const WorkMailClient_1 = require("../WorkMailClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListUsersCommand_1.ListUsersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListUsers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof WorkMailClient_1.WorkMailClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListUsers = paginateListUsers;
|
|
7
|
+
exports.paginateListUsers = (0, core_1.createPaginator)(WorkMailClient_1.WorkMailClient, ListUsersCommand_1.ListUsersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAliasesCommand } from "../commands/ListAliasesCommand";
|
|
2
3
|
import { WorkMailClient } from "../WorkMailClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAliasesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAliases(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof WorkMailClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAliases = createPaginator(WorkMailClient, ListAliasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAvailabilityConfigurationsCommand, } from "../commands/ListAvailabilityConfigurationsCommand";
|
|
2
3
|
import { WorkMailClient } from "../WorkMailClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAvailabilityConfigurationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAvailabilityConfigurations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof WorkMailClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAvailabilityConfigurations = createPaginator(WorkMailClient, ListAvailabilityConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListGroupMembersCommand, } from "../commands/ListGroupMembersCommand";
|
|
2
3
|
import { WorkMailClient } from "../WorkMailClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListGroupMembersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListGroupMembers(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof WorkMailClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListGroupMembers = createPaginator(WorkMailClient, ListGroupMembersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListGroupsForEntityCommand, } from "../commands/ListGroupsForEntityCommand";
|
|
2
3
|
import { WorkMailClient } from "../WorkMailClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListGroupsForEntityCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListGroupsForEntity(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof WorkMailClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListGroupsForEntity = createPaginator(WorkMailClient, ListGroupsForEntityCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListGroupsCommand } from "../commands/ListGroupsCommand";
|
|
2
3
|
import { WorkMailClient } from "../WorkMailClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListGroups(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof WorkMailClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListGroups = createPaginator(WorkMailClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListImpersonationRolesCommand, } from "../commands/ListImpersonationRolesCommand";
|
|
2
3
|
import { WorkMailClient } from "../WorkMailClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListImpersonationRolesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListImpersonationRoles(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof WorkMailClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListImpersonationRoles = createPaginator(WorkMailClient, ListImpersonationRolesCommand, "NextToken", "NextToken", "MaxResults");
|