@aws-sdk/client-sesv2 3.398.0 → 3.403.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/README.md +40 -0
- package/dist-cjs/SESv2.js +10 -0
- package/dist-cjs/commands/CancelExportJobCommand.js +46 -0
- package/dist-cjs/commands/CreateExportJobCommand.js +47 -0
- package/dist-cjs/commands/GetExportJobCommand.js +47 -0
- package/dist-cjs/commands/GetMessageInsightsCommand.js +47 -0
- package/dist-cjs/commands/ListExportJobsCommand.js +46 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +76 -8
- package/dist-cjs/models/models_1.js +2 -0
- package/dist-cjs/pagination/ListExportJobsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +405 -4
- package/dist-es/SESv2.js +10 -0
- package/dist-es/commands/CancelExportJobCommand.js +42 -0
- package/dist-es/commands/CreateExportJobCommand.js +43 -0
- package/dist-es/commands/GetExportJobCommand.js +43 -0
- package/dist-es/commands/GetMessageInsightsCommand.js +43 -0
- package/dist-es/commands/ListExportJobsCommand.js +42 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +67 -6
- package/dist-es/models/models_1.js +1 -0
- package/dist-es/pagination/ListExportJobsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +391 -0
- package/dist-types/SESv2.d.ts +35 -0
- package/dist-types/SESv2Client.d.ts +7 -2
- package/dist-types/commands/CancelExportJobCommand.d.ts +91 -0
- package/dist-types/commands/CreateExportJobCommand.d.ts +230 -0
- package/dist-types/commands/GetExportJobCommand.d.ts +213 -0
- package/dist-types/commands/GetImportJobCommand.d.ts +1 -1
- package/dist-types/commands/GetMessageInsightsCommand.d.ts +175 -0
- package/dist-types/commands/ListExportJobsCommand.d.ts +116 -0
- package/dist-types/commands/ListImportJobsCommand.d.ts +1 -1
- package/dist-types/commands/PutSuppressedDestinationCommand.d.ts +2 -1
- package/dist-types/commands/SendBulkEmailCommand.d.ts +1 -1
- package/dist-types/commands/SendCustomVerificationEmailCommand.d.ts +1 -1
- package/dist-types/commands/SendEmailCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/TestRenderEmailTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateConfigurationSetEventDestinationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContactListCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCustomVerificationEmailTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEmailIdentityPolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEmailTemplateCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +811 -558
- package/dist-types/models/models_1.d.ts +523 -0
- package/dist-types/pagination/ListExportJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/SESv2.d.ts +85 -0
- package/dist-types/ts3.4/SESv2Client.d.ts +30 -0
- package/dist-types/ts3.4/commands/CancelExportJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateExportJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetExportJobCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetMessageInsightsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListExportJobsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/PutSuppressedDestinationCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SendBulkEmailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SendCustomVerificationEmailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SendEmailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TestRenderEmailTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateConfigurationSetEventDestinationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateContactListCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateCustomVerificationEmailTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateEmailIdentityPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateEmailTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +176 -102
- package/dist-types/ts3.4/models/models_1.d.ts +109 -0
- package/dist-types/ts3.4/pagination/ListExportJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { CreateExportJobRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { de_CreateExportJobCommand, se_CreateExportJobCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateExportJobCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateExportJobCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "SESv2Client";
|
|
26
|
+
const commandName = "CreateExportJobCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: CreateExportJobRequestFilterSensitiveLog,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
};
|
|
34
|
+
const { requestHandler } = configuration;
|
|
35
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
36
|
+
}
|
|
37
|
+
serialize(input, context) {
|
|
38
|
+
return se_CreateExportJobCommand(input, context);
|
|
39
|
+
}
|
|
40
|
+
deserialize(output, context) {
|
|
41
|
+
return de_CreateExportJobCommand(output, context);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { GetExportJobResponseFilterSensitiveLog } from "../models/models_0";
|
|
5
|
+
import { de_GetExportJobCommand, se_GetExportJobCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetExportJobCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetExportJobCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "SESv2Client";
|
|
26
|
+
const commandName = "GetExportJobCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: GetExportJobResponseFilterSensitiveLog,
|
|
33
|
+
};
|
|
34
|
+
const { requestHandler } = configuration;
|
|
35
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
36
|
+
}
|
|
37
|
+
serialize(input, context) {
|
|
38
|
+
return se_GetExportJobCommand(input, context);
|
|
39
|
+
}
|
|
40
|
+
deserialize(output, context) {
|
|
41
|
+
return de_GetExportJobCommand(output, context);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { GetMessageInsightsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { de_GetMessageInsightsCommand, se_GetMessageInsightsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetMessageInsightsCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetMessageInsightsCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "SESv2Client";
|
|
26
|
+
const commandName = "GetMessageInsightsCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: GetMessageInsightsResponseFilterSensitiveLog,
|
|
33
|
+
};
|
|
34
|
+
const { requestHandler } = configuration;
|
|
35
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
36
|
+
}
|
|
37
|
+
serialize(input, context) {
|
|
38
|
+
return se_GetMessageInsightsCommand(input, context);
|
|
39
|
+
}
|
|
40
|
+
deserialize(output, context) {
|
|
41
|
+
return de_GetMessageInsightsCommand(output, context);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_ListExportJobsCommand, se_ListExportJobsCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListExportJobsCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListExportJobsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SESv2Client";
|
|
25
|
+
const commandName = "ListExportJobsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_ListExportJobsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_ListExportJobsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./BatchGetMetricDataCommand";
|
|
2
|
+
export * from "./CancelExportJobCommand";
|
|
2
3
|
export * from "./CreateConfigurationSetCommand";
|
|
3
4
|
export * from "./CreateConfigurationSetEventDestinationCommand";
|
|
4
5
|
export * from "./CreateContactCommand";
|
|
@@ -9,6 +10,7 @@ export * from "./CreateDeliverabilityTestReportCommand";
|
|
|
9
10
|
export * from "./CreateEmailIdentityCommand";
|
|
10
11
|
export * from "./CreateEmailIdentityPolicyCommand";
|
|
11
12
|
export * from "./CreateEmailTemplateCommand";
|
|
13
|
+
export * from "./CreateExportJobCommand";
|
|
12
14
|
export * from "./CreateImportJobCommand";
|
|
13
15
|
export * from "./DeleteConfigurationSetCommand";
|
|
14
16
|
export * from "./DeleteConfigurationSetEventDestinationCommand";
|
|
@@ -37,7 +39,9 @@ export * from "./GetDomainStatisticsReportCommand";
|
|
|
37
39
|
export * from "./GetEmailIdentityCommand";
|
|
38
40
|
export * from "./GetEmailIdentityPoliciesCommand";
|
|
39
41
|
export * from "./GetEmailTemplateCommand";
|
|
42
|
+
export * from "./GetExportJobCommand";
|
|
40
43
|
export * from "./GetImportJobCommand";
|
|
44
|
+
export * from "./GetMessageInsightsCommand";
|
|
41
45
|
export * from "./GetSuppressedDestinationCommand";
|
|
42
46
|
export * from "./ListConfigurationSetsCommand";
|
|
43
47
|
export * from "./ListContactListsCommand";
|
|
@@ -48,6 +52,7 @@ export * from "./ListDeliverabilityTestReportsCommand";
|
|
|
48
52
|
export * from "./ListDomainDeliverabilityCampaignsCommand";
|
|
49
53
|
export * from "./ListEmailIdentitiesCommand";
|
|
50
54
|
export * from "./ListEmailTemplatesCommand";
|
|
55
|
+
export * from "./ListExportJobsCommand";
|
|
51
56
|
export * from "./ListImportJobsCommand";
|
|
52
57
|
export * from "./ListRecommendationsCommand";
|
|
53
58
|
export * from "./ListSuppressedDestinationsCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
2
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, {
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://email-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://email-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://email.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://email.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
package/dist-es/models/index.js
CHANGED
|
@@ -114,6 +114,11 @@ export const BehaviorOnMxFailure = {
|
|
|
114
114
|
REJECT_MESSAGE: "REJECT_MESSAGE",
|
|
115
115
|
USE_DEFAULT_VALUE: "USE_DEFAULT_VALUE",
|
|
116
116
|
};
|
|
117
|
+
export const BounceType = {
|
|
118
|
+
PERMANENT: "PERMANENT",
|
|
119
|
+
TRANSIENT: "TRANSIENT",
|
|
120
|
+
UNDETERMINED: "UNDETERMINED",
|
|
121
|
+
};
|
|
117
122
|
export const BulkEmailStatus = {
|
|
118
123
|
ACCOUNT_DAILY_QUOTA_EXCEEDED: "ACCOUNT_DAILY_QUOTA_EXCEEDED",
|
|
119
124
|
ACCOUNT_SENDING_PAUSED: "ACCOUNT_SENDING_PAUSED",
|
|
@@ -267,6 +272,22 @@ export const IdentityType = {
|
|
|
267
272
|
EMAIL_ADDRESS: "EMAIL_ADDRESS",
|
|
268
273
|
MANAGED_DOMAIN: "MANAGED_DOMAIN",
|
|
269
274
|
};
|
|
275
|
+
export const DeliveryEventType = {
|
|
276
|
+
COMPLAINT: "COMPLAINT",
|
|
277
|
+
DELIVERY: "DELIVERY",
|
|
278
|
+
PERMANENT_BOUNCE: "PERMANENT_BOUNCE",
|
|
279
|
+
SEND: "SEND",
|
|
280
|
+
TRANSIENT_BOUNCE: "TRANSIENT_BOUNCE",
|
|
281
|
+
UNDETERMINED_BOUNCE: "UNDETERMINED_BOUNCE",
|
|
282
|
+
};
|
|
283
|
+
export const EngagementEventType = {
|
|
284
|
+
CLICK: "CLICK",
|
|
285
|
+
OPEN: "OPEN",
|
|
286
|
+
};
|
|
287
|
+
export const MetricAggregation = {
|
|
288
|
+
RATE: "RATE",
|
|
289
|
+
VOLUME: "VOLUME",
|
|
290
|
+
};
|
|
270
291
|
export const DataFormat = {
|
|
271
292
|
CSV: "CSV",
|
|
272
293
|
JSON: "JSON",
|
|
@@ -284,6 +305,17 @@ export const DeliverabilityDashboardAccountStatus = {
|
|
|
284
305
|
DISABLED: "DISABLED",
|
|
285
306
|
PENDING_EXPIRATION: "PENDING_EXPIRATION",
|
|
286
307
|
};
|
|
308
|
+
export const ExportSourceType = {
|
|
309
|
+
MESSAGE_INSIGHTS: "MESSAGE_INSIGHTS",
|
|
310
|
+
METRICS_DATA: "METRICS_DATA",
|
|
311
|
+
};
|
|
312
|
+
export const JobStatus = {
|
|
313
|
+
CANCELLED: "CANCELLED",
|
|
314
|
+
COMPLETED: "COMPLETED",
|
|
315
|
+
CREATED: "CREATED",
|
|
316
|
+
FAILED: "FAILED",
|
|
317
|
+
PROCESSING: "PROCESSING",
|
|
318
|
+
};
|
|
287
319
|
export const MailFromDomainStatus = {
|
|
288
320
|
FAILED: "FAILED",
|
|
289
321
|
PENDING: "PENDING",
|
|
@@ -297,12 +329,6 @@ export const VerificationStatus = {
|
|
|
297
329
|
SUCCESS: "SUCCESS",
|
|
298
330
|
TEMPORARY_FAILURE: "TEMPORARY_FAILURE",
|
|
299
331
|
};
|
|
300
|
-
export const JobStatus = {
|
|
301
|
-
COMPLETED: "COMPLETED",
|
|
302
|
-
CREATED: "CREATED",
|
|
303
|
-
FAILED: "FAILED",
|
|
304
|
-
PROCESSING: "PROCESSING",
|
|
305
|
-
};
|
|
306
332
|
export const ImportDestinationType = {
|
|
307
333
|
CONTACT_LIST: "CONTACT_LIST",
|
|
308
334
|
SUPPRESSION_LIST: "SUPPRESSION_LIST",
|
|
@@ -355,10 +381,45 @@ export const CreateEmailIdentityRequestFilterSensitiveLog = (obj) => ({
|
|
|
355
381
|
DkimSigningAttributes: DkimSigningAttributesFilterSensitiveLog(obj.DkimSigningAttributes),
|
|
356
382
|
}),
|
|
357
383
|
});
|
|
384
|
+
export const MessageInsightsFiltersFilterSensitiveLog = (obj) => ({
|
|
385
|
+
...obj,
|
|
386
|
+
...(obj.FromEmailAddress && { FromEmailAddress: SENSITIVE_STRING }),
|
|
387
|
+
...(obj.Destination && { Destination: SENSITIVE_STRING }),
|
|
388
|
+
...(obj.Subject && { Subject: SENSITIVE_STRING }),
|
|
389
|
+
});
|
|
390
|
+
export const MessageInsightsDataSourceFilterSensitiveLog = (obj) => ({
|
|
391
|
+
...obj,
|
|
392
|
+
...(obj.Include && { Include: MessageInsightsFiltersFilterSensitiveLog(obj.Include) }),
|
|
393
|
+
...(obj.Exclude && { Exclude: MessageInsightsFiltersFilterSensitiveLog(obj.Exclude) }),
|
|
394
|
+
});
|
|
395
|
+
export const ExportDataSourceFilterSensitiveLog = (obj) => ({
|
|
396
|
+
...obj,
|
|
397
|
+
...(obj.MessageInsightsDataSource && {
|
|
398
|
+
MessageInsightsDataSource: MessageInsightsDataSourceFilterSensitiveLog(obj.MessageInsightsDataSource),
|
|
399
|
+
}),
|
|
400
|
+
});
|
|
401
|
+
export const CreateExportJobRequestFilterSensitiveLog = (obj) => ({
|
|
402
|
+
...obj,
|
|
403
|
+
...(obj.ExportDataSource && { ExportDataSource: ExportDataSourceFilterSensitiveLog(obj.ExportDataSource) }),
|
|
404
|
+
});
|
|
405
|
+
export const EmailInsightsFilterSensitiveLog = (obj) => ({
|
|
406
|
+
...obj,
|
|
407
|
+
...(obj.Destination && { Destination: SENSITIVE_STRING }),
|
|
408
|
+
});
|
|
358
409
|
export const GetAccountResponseFilterSensitiveLog = (obj) => ({
|
|
359
410
|
...obj,
|
|
360
411
|
...(obj.Details && { Details: AccountDetailsFilterSensitiveLog(obj.Details) }),
|
|
361
412
|
});
|
|
413
|
+
export const GetExportJobResponseFilterSensitiveLog = (obj) => ({
|
|
414
|
+
...obj,
|
|
415
|
+
...(obj.ExportDataSource && { ExportDataSource: ExportDataSourceFilterSensitiveLog(obj.ExportDataSource) }),
|
|
416
|
+
});
|
|
417
|
+
export const GetMessageInsightsResponseFilterSensitiveLog = (obj) => ({
|
|
418
|
+
...obj,
|
|
419
|
+
...(obj.FromEmailAddress && { FromEmailAddress: SENSITIVE_STRING }),
|
|
420
|
+
...(obj.Subject && { Subject: SENSITIVE_STRING }),
|
|
421
|
+
...(obj.Insights && { Insights: obj.Insights.map((item) => EmailInsightsFilterSensitiveLog(item)) }),
|
|
422
|
+
});
|
|
362
423
|
export const PutAccountDetailsRequestFilterSensitiveLog = (obj) => ({
|
|
363
424
|
...obj,
|
|
364
425
|
...(obj.WebsiteURL && { WebsiteURL: SENSITIVE_STRING }),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListExportJobsCommand, } from "../commands/ListExportJobsCommand";
|
|
2
|
+
import { SESv2Client } from "../SESv2Client";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
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
|
+
}
|
|
@@ -9,6 +9,7 @@ export * from "./ListDeliverabilityTestReportsPaginator";
|
|
|
9
9
|
export * from "./ListDomainDeliverabilityCampaignsPaginator";
|
|
10
10
|
export * from "./ListEmailIdentitiesPaginator";
|
|
11
11
|
export * from "./ListEmailTemplatesPaginator";
|
|
12
|
+
export * from "./ListExportJobsPaginator";
|
|
12
13
|
export * from "./ListImportJobsPaginator";
|
|
13
14
|
export * from "./ListRecommendationsPaginator";
|
|
14
15
|
export * from "./ListSuppressedDestinationsPaginator";
|