@aws-sdk/client-sesv2 3.477.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/GetDedicatedIpsPaginator.js +2 -24
- package/dist-cjs/pagination/ListConfigurationSetsPaginator.js +2 -24
- package/dist-cjs/pagination/ListContactListsPaginator.js +2 -24
- package/dist-cjs/pagination/ListContactsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCustomVerificationEmailTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListDedicatedIpPoolsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDeliverabilityTestReportsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDomainDeliverabilityCampaignsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEmailIdentitiesPaginator.js +2 -24
- package/dist-cjs/pagination/ListEmailTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListExportJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListImportJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRecommendationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSuppressedDestinationsPaginator.js +2 -24
- package/dist-es/pagination/GetDedicatedIpsPaginator.js +2 -23
- package/dist-es/pagination/ListConfigurationSetsPaginator.js +2 -23
- package/dist-es/pagination/ListContactListsPaginator.js +2 -23
- package/dist-es/pagination/ListContactsPaginator.js +2 -23
- package/dist-es/pagination/ListCustomVerificationEmailTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListDedicatedIpPoolsPaginator.js +2 -23
- package/dist-es/pagination/ListDeliverabilityTestReportsPaginator.js +2 -23
- package/dist-es/pagination/ListDomainDeliverabilityCampaignsPaginator.js +2 -23
- package/dist-es/pagination/ListEmailIdentitiesPaginator.js +2 -23
- package/dist-es/pagination/ListEmailTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListExportJobsPaginator.js +2 -23
- package/dist-es/pagination/ListImportJobsPaginator.js +2 -23
- package/dist-es/pagination/ListRecommendationsPaginator.js +2 -23
- package/dist-es/pagination/ListSuppressedDestinationsPaginator.js +2 -23
- package/dist-types/pagination/GetDedicatedIpsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListConfigurationSetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListContactListsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListContactsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCustomVerificationEmailTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDedicatedIpPoolsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDeliverabilityTestReportsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDomainDeliverabilityCampaignsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEmailIdentitiesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEmailTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListExportJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImportJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRecommendationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSuppressedDestinationsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetDedicatedIpsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListConfigurationSetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListContactListsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListContactsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCustomVerificationEmailTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDedicatedIpPoolsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDeliverabilityTestReportsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDomainDeliverabilityCampaignsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEmailIdentitiesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEmailTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListExportJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImportJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSuppressedDestinationsPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetDedicatedIps = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetDedicatedIpsCommand_1 = require("../commands/GetDedicatedIpsCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetDedicatedIpsCommand_1.GetDedicatedIpsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetDedicatedIps(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateGetDedicatedIps = paginateGetDedicatedIps;
|
|
7
|
+
exports.paginateGetDedicatedIps = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, GetDedicatedIpsCommand_1.GetDedicatedIpsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListConfigurationSets = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListConfigurationSetsCommand_1 = require("../commands/ListConfigurationSetsCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListConfigurationSetsCommand_1.ListConfigurationSetsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListConfigurationSets(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListConfigurationSets = paginateListConfigurationSets;
|
|
7
|
+
exports.paginateListConfigurationSets = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListConfigurationSetsCommand_1.ListConfigurationSetsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListContactLists = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListContactListsCommand_1 = require("../commands/ListContactListsCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListContactListsCommand_1.ListContactListsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListContactLists(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListContactLists = paginateListContactLists;
|
|
7
|
+
exports.paginateListContactLists = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListContactListsCommand_1.ListContactListsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListContacts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListContactsCommand_1 = require("../commands/ListContactsCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListContactsCommand_1.ListContactsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListContacts(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListContacts = paginateListContacts;
|
|
7
|
+
exports.paginateListContacts = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListContactsCommand_1.ListContactsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListCustomVerificationEmailTemplates = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListCustomVerificationEmailTemplatesCommand_1 = require("../commands/ListCustomVerificationEmailTemplatesCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListCustomVerificationEmailTemplatesCommand_1.ListCustomVerificationEmailTemplatesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListCustomVerificationEmailTemplates(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListCustomVerificationEmailTemplates = paginateListCustomVerificationEmailTemplates;
|
|
7
|
+
exports.paginateListCustomVerificationEmailTemplates = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListCustomVerificationEmailTemplatesCommand_1.ListCustomVerificationEmailTemplatesCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDedicatedIpPools = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDedicatedIpPoolsCommand_1 = require("../commands/ListDedicatedIpPoolsCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDedicatedIpPoolsCommand_1.ListDedicatedIpPoolsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDedicatedIpPools(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListDedicatedIpPools = paginateListDedicatedIpPools;
|
|
7
|
+
exports.paginateListDedicatedIpPools = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListDedicatedIpPoolsCommand_1.ListDedicatedIpPoolsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDeliverabilityTestReports = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDeliverabilityTestReportsCommand_1 = require("../commands/ListDeliverabilityTestReportsCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDeliverabilityTestReportsCommand_1.ListDeliverabilityTestReportsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDeliverabilityTestReports(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListDeliverabilityTestReports = paginateListDeliverabilityTestReports;
|
|
7
|
+
exports.paginateListDeliverabilityTestReports = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListDeliverabilityTestReportsCommand_1.ListDeliverabilityTestReportsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDomainDeliverabilityCampaigns = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDomainDeliverabilityCampaignsCommand_1 = require("../commands/ListDomainDeliverabilityCampaignsCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDomainDeliverabilityCampaignsCommand_1.ListDomainDeliverabilityCampaignsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDomainDeliverabilityCampaigns(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListDomainDeliverabilityCampaigns = paginateListDomainDeliverabilityCampaigns;
|
|
7
|
+
exports.paginateListDomainDeliverabilityCampaigns = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListDomainDeliverabilityCampaignsCommand_1.ListDomainDeliverabilityCampaignsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListEmailIdentities = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListEmailIdentitiesCommand_1 = require("../commands/ListEmailIdentitiesCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListEmailIdentitiesCommand_1.ListEmailIdentitiesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListEmailIdentities(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListEmailIdentities = paginateListEmailIdentities;
|
|
7
|
+
exports.paginateListEmailIdentities = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListEmailIdentitiesCommand_1.ListEmailIdentitiesCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListEmailTemplates = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListEmailTemplatesCommand_1 = require("../commands/ListEmailTemplatesCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListEmailTemplatesCommand_1.ListEmailTemplatesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListEmailTemplates(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListEmailTemplates = paginateListEmailTemplates;
|
|
7
|
+
exports.paginateListEmailTemplates = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListEmailTemplatesCommand_1.ListEmailTemplatesCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListExportJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListExportJobsCommand_1 = require("../commands/ListExportJobsCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListExportJobsCommand_1.ListExportJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListExportJobs(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListExportJobs = paginateListExportJobs;
|
|
7
|
+
exports.paginateListExportJobs = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListExportJobsCommand_1.ListExportJobsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListImportJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListImportJobsCommand_1 = require("../commands/ListImportJobsCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListImportJobsCommand_1.ListImportJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListImportJobs(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListImportJobs = paginateListImportJobs;
|
|
7
|
+
exports.paginateListImportJobs = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListImportJobsCommand_1.ListImportJobsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRecommendations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListRecommendationsCommand_1 = require("../commands/ListRecommendationsCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRecommendationsCommand_1.ListRecommendationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRecommendations(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListRecommendations = paginateListRecommendations;
|
|
7
|
+
exports.paginateListRecommendations = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListRecommendationsCommand_1.ListRecommendationsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSuppressedDestinations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSuppressedDestinationsCommand_1 = require("../commands/ListSuppressedDestinationsCommand");
|
|
5
6
|
const SESv2Client_1 = require("../SESv2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSuppressedDestinationsCommand_1.ListSuppressedDestinationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSuppressedDestinations(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["PageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SESv2Client_1.SESv2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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.paginateListSuppressedDestinations = paginateListSuppressedDestinations;
|
|
7
|
+
exports.paginateListSuppressedDestinations = (0, core_1.createPaginator)(SESv2Client_1.SESv2Client, ListSuppressedDestinationsCommand_1.ListSuppressedDestinationsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetDedicatedIpsCommand, } from "../commands/GetDedicatedIpsCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetDedicatedIpsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetDedicatedIps(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["PageSize"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SESv2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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 paginateGetDedicatedIps = createPaginator(SESv2Client, GetDedicatedIpsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListConfigurationSetsCommand, } from "../commands/ListConfigurationSetsCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListConfigurationSetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListConfigurationSets(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["PageSize"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SESv2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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 paginateListConfigurationSets = createPaginator(SESv2Client, ListConfigurationSetsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListContactListsCommand, } from "../commands/ListContactListsCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListContactListsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListContactLists(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["PageSize"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SESv2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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 paginateListContactLists = createPaginator(SESv2Client, ListContactListsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListContactsCommand, } from "../commands/ListContactsCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListContactsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListContacts(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["PageSize"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SESv2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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 paginateListContacts = createPaginator(SESv2Client, ListContactsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListCustomVerificationEmailTemplatesCommand, } from "../commands/ListCustomVerificationEmailTemplatesCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCustomVerificationEmailTemplatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCustomVerificationEmailTemplates(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["PageSize"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SESv2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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 paginateListCustomVerificationEmailTemplates = createPaginator(SESv2Client, ListCustomVerificationEmailTemplatesCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDedicatedIpPoolsCommand, } from "../commands/ListDedicatedIpPoolsCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDedicatedIpPoolsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDedicatedIpPools(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["PageSize"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SESv2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SESv2 | SESv2Client");
|
|
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 paginateListDedicatedIpPools = createPaginator(SESv2Client, ListDedicatedIpPoolsCommand, "NextToken", "NextToken", "PageSize");
|