@aws-sdk/client-sesv2 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/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-cjs/protocols/Aws_restJson1.js +483 -1176
- 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-es/protocols/Aws_restJson1.js +484 -1177
- 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 +7 -6
|
@@ -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");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDeliverabilityTestReportsCommand, } from "../commands/ListDeliverabilityTestReportsCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDeliverabilityTestReportsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDeliverabilityTestReports(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 paginateListDeliverabilityTestReports = createPaginator(SESv2Client, ListDeliverabilityTestReportsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDomainDeliverabilityCampaignsCommand, } from "../commands/ListDomainDeliverabilityCampaignsCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDomainDeliverabilityCampaignsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDomainDeliverabilityCampaigns(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 paginateListDomainDeliverabilityCampaigns = createPaginator(SESv2Client, ListDomainDeliverabilityCampaignsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEmailIdentitiesCommand, } from "../commands/ListEmailIdentitiesCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEmailIdentitiesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEmailIdentities(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 paginateListEmailIdentities = createPaginator(SESv2Client, ListEmailIdentitiesCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEmailTemplatesCommand, } from "../commands/ListEmailTemplatesCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEmailTemplatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEmailTemplates(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 paginateListEmailTemplates = createPaginator(SESv2Client, ListEmailTemplatesCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListExportJobsCommand, } from "../commands/ListExportJobsCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListExportJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListExportJobs(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 paginateListExportJobs = createPaginator(SESv2Client, ListExportJobsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListImportJobsCommand, } from "../commands/ListImportJobsCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListImportJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListImportJobs(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 paginateListImportJobs = createPaginator(SESv2Client, ListImportJobsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRecommendationsCommand, } from "../commands/ListRecommendationsCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRecommendationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRecommendations(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 paginateListRecommendations = createPaginator(SESv2Client, ListRecommendationsCommand, "NextToken", "NextToken", "PageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSuppressedDestinationsCommand, } from "../commands/ListSuppressedDestinationsCommand";
|
|
2
3
|
import { SESv2Client } from "../SESv2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSuppressedDestinationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSuppressedDestinations(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 paginateListSuppressedDestinations = createPaginator(SESv2Client, ListSuppressedDestinationsCommand, "NextToken", "NextToken", "PageSize");
|