@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,91 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { CancelExportJobRequest, CancelExportJobResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, SESv2ClientResolvedConfig } from "../SESv2Client";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CancelExportJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CancelExportJobCommandInput extends CancelExportJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CancelExportJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CancelExportJobCommandOutput extends CancelExportJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Cancels an export job.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { SESv2Client, CancelExportJobCommand } from "@aws-sdk/client-sesv2"; // ES Modules import
|
|
31
|
+
* // const { SESv2Client, CancelExportJobCommand } = require("@aws-sdk/client-sesv2"); // CommonJS import
|
|
32
|
+
* const client = new SESv2Client(config);
|
|
33
|
+
* const input = { // CancelExportJobRequest
|
|
34
|
+
* JobId: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new CancelExportJobCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // {};
|
|
39
|
+
*
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @param CancelExportJobCommandInput - {@link CancelExportJobCommandInput}
|
|
43
|
+
* @returns {@link CancelExportJobCommandOutput}
|
|
44
|
+
* @see {@link CancelExportJobCommandInput} for command's `input` shape.
|
|
45
|
+
* @see {@link CancelExportJobCommandOutput} for command's `response` shape.
|
|
46
|
+
* @see {@link SESv2ClientResolvedConfig | config} for SESv2Client's `config` shape.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link BadRequestException} (client fault)
|
|
49
|
+
* <p>The input you provided is invalid.</p>
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link NotFoundException} (client fault)
|
|
52
|
+
* <p>The resource you attempted to access doesn't exist.</p>
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
55
|
+
* <p>Too many requests have been made to the operation.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link SESv2ServiceException}
|
|
58
|
+
* <p>Base exception class for all service exceptions from SESv2 service.</p>
|
|
59
|
+
*
|
|
60
|
+
* @example Cancel export job
|
|
61
|
+
* ```javascript
|
|
62
|
+
* // Cancels the export job with ID ef28cf62-9d8e-4b60-9283-b09816c99a99
|
|
63
|
+
* const input = {
|
|
64
|
+
* "JobId": "ef28cf62-9d8e-4b60-9283-b09816c99a99"
|
|
65
|
+
* };
|
|
66
|
+
* const command = new CancelExportJobCommand(input);
|
|
67
|
+
* await client.send(command);
|
|
68
|
+
* // example id: cancel-export-job-1685699696331
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
export declare class CancelExportJobCommand extends $Command<CancelExportJobCommandInput, CancelExportJobCommandOutput, SESv2ClientResolvedConfig> {
|
|
73
|
+
readonly input: CancelExportJobCommandInput;
|
|
74
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
75
|
+
/**
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
constructor(input: CancelExportJobCommandInput);
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelExportJobCommandInput, CancelExportJobCommandOutput>;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
private serialize;
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
private deserialize;
|
|
91
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { CreateExportJobRequest, CreateExportJobResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, SESv2ClientResolvedConfig } from "../SESv2Client";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateExportJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateExportJobCommandInput extends CreateExportJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateExportJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateExportJobCommandOutput extends CreateExportJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Creates an export job for a data source and destination.</p>
|
|
27
|
+
* <p>You can execute this operation no more than once per second.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SESv2Client, CreateExportJobCommand } from "@aws-sdk/client-sesv2"; // ES Modules import
|
|
32
|
+
* // const { SESv2Client, CreateExportJobCommand } = require("@aws-sdk/client-sesv2"); // CommonJS import
|
|
33
|
+
* const client = new SESv2Client(config);
|
|
34
|
+
* const input = { // CreateExportJobRequest
|
|
35
|
+
* ExportDataSource: { // ExportDataSource
|
|
36
|
+
* MetricsDataSource: { // MetricsDataSource
|
|
37
|
+
* Dimensions: { // ExportDimensions // required
|
|
38
|
+
* "<keys>": [ // ExportDimensionValue
|
|
39
|
+
* "STRING_VALUE",
|
|
40
|
+
* ],
|
|
41
|
+
* },
|
|
42
|
+
* Namespace: "VDM", // required
|
|
43
|
+
* Metrics: [ // ExportMetrics // required
|
|
44
|
+
* { // ExportMetric
|
|
45
|
+
* Name: "SEND" || "COMPLAINT" || "PERMANENT_BOUNCE" || "TRANSIENT_BOUNCE" || "OPEN" || "CLICK" || "DELIVERY" || "DELIVERY_OPEN" || "DELIVERY_CLICK" || "DELIVERY_COMPLAINT",
|
|
46
|
+
* Aggregation: "RATE" || "VOLUME",
|
|
47
|
+
* },
|
|
48
|
+
* ],
|
|
49
|
+
* StartDate: new Date("TIMESTAMP"), // required
|
|
50
|
+
* EndDate: new Date("TIMESTAMP"), // required
|
|
51
|
+
* },
|
|
52
|
+
* MessageInsightsDataSource: { // MessageInsightsDataSource
|
|
53
|
+
* StartDate: new Date("TIMESTAMP"), // required
|
|
54
|
+
* EndDate: new Date("TIMESTAMP"), // required
|
|
55
|
+
* Include: { // MessageInsightsFilters
|
|
56
|
+
* FromEmailAddress: [ // EmailAddressFilterList
|
|
57
|
+
* "STRING_VALUE",
|
|
58
|
+
* ],
|
|
59
|
+
* Destination: [
|
|
60
|
+
* "STRING_VALUE",
|
|
61
|
+
* ],
|
|
62
|
+
* Subject: [ // EmailSubjectFilterList
|
|
63
|
+
* "STRING_VALUE",
|
|
64
|
+
* ],
|
|
65
|
+
* Isp: [ // IspFilterList
|
|
66
|
+
* "STRING_VALUE",
|
|
67
|
+
* ],
|
|
68
|
+
* LastDeliveryEvent: [ // LastDeliveryEventList
|
|
69
|
+
* "SEND" || "DELIVERY" || "TRANSIENT_BOUNCE" || "PERMANENT_BOUNCE" || "UNDETERMINED_BOUNCE" || "COMPLAINT",
|
|
70
|
+
* ],
|
|
71
|
+
* LastEngagementEvent: [ // LastEngagementEventList
|
|
72
|
+
* "OPEN" || "CLICK",
|
|
73
|
+
* ],
|
|
74
|
+
* },
|
|
75
|
+
* Exclude: {
|
|
76
|
+
* FromEmailAddress: [
|
|
77
|
+
* "STRING_VALUE",
|
|
78
|
+
* ],
|
|
79
|
+
* Destination: [
|
|
80
|
+
* "STRING_VALUE",
|
|
81
|
+
* ],
|
|
82
|
+
* Subject: [
|
|
83
|
+
* "STRING_VALUE",
|
|
84
|
+
* ],
|
|
85
|
+
* Isp: [
|
|
86
|
+
* "STRING_VALUE",
|
|
87
|
+
* ],
|
|
88
|
+
* LastDeliveryEvent: [
|
|
89
|
+
* "SEND" || "DELIVERY" || "TRANSIENT_BOUNCE" || "PERMANENT_BOUNCE" || "UNDETERMINED_BOUNCE" || "COMPLAINT",
|
|
90
|
+
* ],
|
|
91
|
+
* LastEngagementEvent: [
|
|
92
|
+
* "OPEN" || "CLICK",
|
|
93
|
+
* ],
|
|
94
|
+
* },
|
|
95
|
+
* MaxResults: Number("int"),
|
|
96
|
+
* },
|
|
97
|
+
* },
|
|
98
|
+
* ExportDestination: { // ExportDestination
|
|
99
|
+
* DataFormat: "CSV" || "JSON", // required
|
|
100
|
+
* S3Url: "STRING_VALUE",
|
|
101
|
+
* },
|
|
102
|
+
* };
|
|
103
|
+
* const command = new CreateExportJobCommand(input);
|
|
104
|
+
* const response = await client.send(command);
|
|
105
|
+
* // { // CreateExportJobResponse
|
|
106
|
+
* // JobId: "STRING_VALUE",
|
|
107
|
+
* // };
|
|
108
|
+
*
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* @param CreateExportJobCommandInput - {@link CreateExportJobCommandInput}
|
|
112
|
+
* @returns {@link CreateExportJobCommandOutput}
|
|
113
|
+
* @see {@link CreateExportJobCommandInput} for command's `input` shape.
|
|
114
|
+
* @see {@link CreateExportJobCommandOutput} for command's `response` shape.
|
|
115
|
+
* @see {@link SESv2ClientResolvedConfig | config} for SESv2Client's `config` shape.
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link BadRequestException} (client fault)
|
|
118
|
+
* <p>The input you provided is invalid.</p>
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
121
|
+
* <p>There are too many instances of the specified resource type.</p>
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link NotFoundException} (client fault)
|
|
124
|
+
* <p>The resource you attempted to access doesn't exist.</p>
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
127
|
+
* <p>Too many requests have been made to the operation.</p>
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link SESv2ServiceException}
|
|
130
|
+
* <p>Base exception class for all service exceptions from SESv2 service.</p>
|
|
131
|
+
*
|
|
132
|
+
* @example Create Metrics export job
|
|
133
|
+
* ```javascript
|
|
134
|
+
* // Creates a new export job for Metrics data
|
|
135
|
+
* const input = {
|
|
136
|
+
* "ExportDataSource": {
|
|
137
|
+
* "MetricsDataSource": {
|
|
138
|
+
* "Dimensions": {
|
|
139
|
+
* "ISP": [
|
|
140
|
+
* "*"
|
|
141
|
+
* ]
|
|
142
|
+
* },
|
|
143
|
+
* "EndDate": "2023-07-02T00:00:00",
|
|
144
|
+
* "Metrics": [
|
|
145
|
+
* {
|
|
146
|
+
* "Aggregation": "VOLUME",
|
|
147
|
+
* "Name": "SEND"
|
|
148
|
+
* },
|
|
149
|
+
* {
|
|
150
|
+
* "Aggregation": "VOLUME",
|
|
151
|
+
* "Name": "COMPLAINT"
|
|
152
|
+
* },
|
|
153
|
+
* {
|
|
154
|
+
* "Aggregation": "RATE",
|
|
155
|
+
* "Name": "COMPLAINT"
|
|
156
|
+
* }
|
|
157
|
+
* ],
|
|
158
|
+
* "Namespace": "VDM",
|
|
159
|
+
* "StartDate": "2023-07-01T00:00:00"
|
|
160
|
+
* }
|
|
161
|
+
* },
|
|
162
|
+
* "ExportDestination": {
|
|
163
|
+
* "DataFormat": "CSV"
|
|
164
|
+
* }
|
|
165
|
+
* };
|
|
166
|
+
* const command = new CreateExportJobCommand(input);
|
|
167
|
+
* const response = await client.send(command);
|
|
168
|
+
* /* response ==
|
|
169
|
+
* {
|
|
170
|
+
* "JobId": "ef28cf62-9d8e-4b60-9283-b09816c99a99"
|
|
171
|
+
* }
|
|
172
|
+
* *\/
|
|
173
|
+
* // example id: create-export-job-1685701853690
|
|
174
|
+
* ```
|
|
175
|
+
*
|
|
176
|
+
* @example Create Message Insights export job
|
|
177
|
+
* ```javascript
|
|
178
|
+
* // Creates a new export job for Message Insights data
|
|
179
|
+
* const input = {
|
|
180
|
+
* "ExportDataSource": {
|
|
181
|
+
* "MessageInsightsDataSource": {
|
|
182
|
+
* "EndDate": "2023-07-02T00:00:00",
|
|
183
|
+
* "Exclude": {
|
|
184
|
+
* "FromEmailAddress": [
|
|
185
|
+
* "hello@example.com"
|
|
186
|
+
* ]
|
|
187
|
+
* },
|
|
188
|
+
* "Include": {
|
|
189
|
+
* "Subject": [
|
|
190
|
+
* "Hello"
|
|
191
|
+
* ]
|
|
192
|
+
* },
|
|
193
|
+
* "StartDate": "2023-07-01T00:00:00"
|
|
194
|
+
* }
|
|
195
|
+
* },
|
|
196
|
+
* "ExportDestination": {
|
|
197
|
+
* "DataFormat": "CSV"
|
|
198
|
+
* }
|
|
199
|
+
* };
|
|
200
|
+
* const command = new CreateExportJobCommand(input);
|
|
201
|
+
* const response = await client.send(command);
|
|
202
|
+
* /* response ==
|
|
203
|
+
* {
|
|
204
|
+
* "JobId": "ef28cf62-9d8e-4b60-9283-b09816c99a99"
|
|
205
|
+
* }
|
|
206
|
+
* *\/
|
|
207
|
+
* // example id: create-export-job-1689957853323
|
|
208
|
+
* ```
|
|
209
|
+
*
|
|
210
|
+
*/
|
|
211
|
+
export declare class CreateExportJobCommand extends $Command<CreateExportJobCommandInput, CreateExportJobCommandOutput, SESv2ClientResolvedConfig> {
|
|
212
|
+
readonly input: CreateExportJobCommandInput;
|
|
213
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
214
|
+
/**
|
|
215
|
+
* @public
|
|
216
|
+
*/
|
|
217
|
+
constructor(input: CreateExportJobCommandInput);
|
|
218
|
+
/**
|
|
219
|
+
* @internal
|
|
220
|
+
*/
|
|
221
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateExportJobCommandInput, CreateExportJobCommandOutput>;
|
|
222
|
+
/**
|
|
223
|
+
* @internal
|
|
224
|
+
*/
|
|
225
|
+
private serialize;
|
|
226
|
+
/**
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
private deserialize;
|
|
230
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GetExportJobRequest, GetExportJobResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, SESv2ClientResolvedConfig } from "../SESv2Client";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetExportJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetExportJobCommandInput extends GetExportJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetExportJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetExportJobCommandOutput extends GetExportJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Provides information about an export job.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { SESv2Client, GetExportJobCommand } from "@aws-sdk/client-sesv2"; // ES Modules import
|
|
31
|
+
* // const { SESv2Client, GetExportJobCommand } = require("@aws-sdk/client-sesv2"); // CommonJS import
|
|
32
|
+
* const client = new SESv2Client(config);
|
|
33
|
+
* const input = { // GetExportJobRequest
|
|
34
|
+
* JobId: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new GetExportJobCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // { // GetExportJobResponse
|
|
39
|
+
* // JobId: "STRING_VALUE",
|
|
40
|
+
* // ExportSourceType: "METRICS_DATA" || "MESSAGE_INSIGHTS",
|
|
41
|
+
* // JobStatus: "CREATED" || "PROCESSING" || "COMPLETED" || "FAILED" || "CANCELLED",
|
|
42
|
+
* // ExportDestination: { // ExportDestination
|
|
43
|
+
* // DataFormat: "CSV" || "JSON", // required
|
|
44
|
+
* // S3Url: "STRING_VALUE",
|
|
45
|
+
* // },
|
|
46
|
+
* // ExportDataSource: { // ExportDataSource
|
|
47
|
+
* // MetricsDataSource: { // MetricsDataSource
|
|
48
|
+
* // Dimensions: { // ExportDimensions // required
|
|
49
|
+
* // "<keys>": [ // ExportDimensionValue
|
|
50
|
+
* // "STRING_VALUE",
|
|
51
|
+
* // ],
|
|
52
|
+
* // },
|
|
53
|
+
* // Namespace: "VDM", // required
|
|
54
|
+
* // Metrics: [ // ExportMetrics // required
|
|
55
|
+
* // { // ExportMetric
|
|
56
|
+
* // Name: "SEND" || "COMPLAINT" || "PERMANENT_BOUNCE" || "TRANSIENT_BOUNCE" || "OPEN" || "CLICK" || "DELIVERY" || "DELIVERY_OPEN" || "DELIVERY_CLICK" || "DELIVERY_COMPLAINT",
|
|
57
|
+
* // Aggregation: "RATE" || "VOLUME",
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // StartDate: new Date("TIMESTAMP"), // required
|
|
61
|
+
* // EndDate: new Date("TIMESTAMP"), // required
|
|
62
|
+
* // },
|
|
63
|
+
* // MessageInsightsDataSource: { // MessageInsightsDataSource
|
|
64
|
+
* // StartDate: new Date("TIMESTAMP"), // required
|
|
65
|
+
* // EndDate: new Date("TIMESTAMP"), // required
|
|
66
|
+
* // Include: { // MessageInsightsFilters
|
|
67
|
+
* // FromEmailAddress: [ // EmailAddressFilterList
|
|
68
|
+
* // "STRING_VALUE",
|
|
69
|
+
* // ],
|
|
70
|
+
* // Destination: [
|
|
71
|
+
* // "STRING_VALUE",
|
|
72
|
+
* // ],
|
|
73
|
+
* // Subject: [ // EmailSubjectFilterList
|
|
74
|
+
* // "STRING_VALUE",
|
|
75
|
+
* // ],
|
|
76
|
+
* // Isp: [ // IspFilterList
|
|
77
|
+
* // "STRING_VALUE",
|
|
78
|
+
* // ],
|
|
79
|
+
* // LastDeliveryEvent: [ // LastDeliveryEventList
|
|
80
|
+
* // "SEND" || "DELIVERY" || "TRANSIENT_BOUNCE" || "PERMANENT_BOUNCE" || "UNDETERMINED_BOUNCE" || "COMPLAINT",
|
|
81
|
+
* // ],
|
|
82
|
+
* // LastEngagementEvent: [ // LastEngagementEventList
|
|
83
|
+
* // "OPEN" || "CLICK",
|
|
84
|
+
* // ],
|
|
85
|
+
* // },
|
|
86
|
+
* // Exclude: {
|
|
87
|
+
* // FromEmailAddress: [
|
|
88
|
+
* // "STRING_VALUE",
|
|
89
|
+
* // ],
|
|
90
|
+
* // Destination: [
|
|
91
|
+
* // "STRING_VALUE",
|
|
92
|
+
* // ],
|
|
93
|
+
* // Subject: [
|
|
94
|
+
* // "STRING_VALUE",
|
|
95
|
+
* // ],
|
|
96
|
+
* // Isp: [
|
|
97
|
+
* // "STRING_VALUE",
|
|
98
|
+
* // ],
|
|
99
|
+
* // LastDeliveryEvent: [
|
|
100
|
+
* // "SEND" || "DELIVERY" || "TRANSIENT_BOUNCE" || "PERMANENT_BOUNCE" || "UNDETERMINED_BOUNCE" || "COMPLAINT",
|
|
101
|
+
* // ],
|
|
102
|
+
* // LastEngagementEvent: [
|
|
103
|
+
* // "OPEN" || "CLICK",
|
|
104
|
+
* // ],
|
|
105
|
+
* // },
|
|
106
|
+
* // MaxResults: Number("int"),
|
|
107
|
+
* // },
|
|
108
|
+
* // },
|
|
109
|
+
* // CreatedTimestamp: new Date("TIMESTAMP"),
|
|
110
|
+
* // CompletedTimestamp: new Date("TIMESTAMP"),
|
|
111
|
+
* // FailureInfo: { // FailureInfo
|
|
112
|
+
* // FailedRecordsS3Url: "STRING_VALUE",
|
|
113
|
+
* // ErrorMessage: "STRING_VALUE",
|
|
114
|
+
* // },
|
|
115
|
+
* // Statistics: { // ExportStatistics
|
|
116
|
+
* // ProcessedRecordsCount: Number("int"),
|
|
117
|
+
* // ExportedRecordsCount: Number("int"),
|
|
118
|
+
* // },
|
|
119
|
+
* // };
|
|
120
|
+
*
|
|
121
|
+
* ```
|
|
122
|
+
*
|
|
123
|
+
* @param GetExportJobCommandInput - {@link GetExportJobCommandInput}
|
|
124
|
+
* @returns {@link GetExportJobCommandOutput}
|
|
125
|
+
* @see {@link GetExportJobCommandInput} for command's `input` shape.
|
|
126
|
+
* @see {@link GetExportJobCommandOutput} for command's `response` shape.
|
|
127
|
+
* @see {@link SESv2ClientResolvedConfig | config} for SESv2Client's `config` shape.
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link BadRequestException} (client fault)
|
|
130
|
+
* <p>The input you provided is invalid.</p>
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link NotFoundException} (client fault)
|
|
133
|
+
* <p>The resource you attempted to access doesn't exist.</p>
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
136
|
+
* <p>Too many requests have been made to the operation.</p>
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link SESv2ServiceException}
|
|
139
|
+
* <p>Base exception class for all service exceptions from SESv2 service.</p>
|
|
140
|
+
*
|
|
141
|
+
* @example Get export job
|
|
142
|
+
* ```javascript
|
|
143
|
+
* // Gets the export job with ID ef28cf62-9d8e-4b60-9283-b09816c99a99
|
|
144
|
+
* const input = {
|
|
145
|
+
* "JobId": "ef28cf62-9d8e-4b60-9283-b09816c99a99"
|
|
146
|
+
* };
|
|
147
|
+
* const command = new GetExportJobCommand(input);
|
|
148
|
+
* const response = await client.send(command);
|
|
149
|
+
* /* response ==
|
|
150
|
+
* {
|
|
151
|
+
* "CreatedTimestamp": "1685700961057",
|
|
152
|
+
* "ExportDataSource": {
|
|
153
|
+
* "MetricsDataSource": {
|
|
154
|
+
* "Dimensions": {
|
|
155
|
+
* "ISP": [
|
|
156
|
+
* "*"
|
|
157
|
+
* ]
|
|
158
|
+
* },
|
|
159
|
+
* "EndDate": "1675209600000",
|
|
160
|
+
* "Metrics": [
|
|
161
|
+
* {
|
|
162
|
+
* "Aggregation": "VOLUME",
|
|
163
|
+
* "Name": "SEND"
|
|
164
|
+
* },
|
|
165
|
+
* {
|
|
166
|
+
* "Aggregation": "VOLUME",
|
|
167
|
+
* "Name": "COMPLAINT"
|
|
168
|
+
* },
|
|
169
|
+
* {
|
|
170
|
+
* "Aggregation": "RATE",
|
|
171
|
+
* "Name": "COMPLAINT"
|
|
172
|
+
* }
|
|
173
|
+
* ],
|
|
174
|
+
* "Namespace": "VDM",
|
|
175
|
+
* "StartDate": "1672531200000"
|
|
176
|
+
* }
|
|
177
|
+
* },
|
|
178
|
+
* "ExportDestination": {
|
|
179
|
+
* "DataFormat": "CSV"
|
|
180
|
+
* },
|
|
181
|
+
* "ExportSourceType": "METRICS_DATA",
|
|
182
|
+
* "JobId": "ef28cf62-9d8e-4b60-9283-b09816c99a99",
|
|
183
|
+
* "JobStatus": "PROCESSING",
|
|
184
|
+
* "Statistics": {
|
|
185
|
+
* "ExportedRecordsCount": 5,
|
|
186
|
+
* "ProcessedRecordsCount": 5
|
|
187
|
+
* }
|
|
188
|
+
* }
|
|
189
|
+
* *\/
|
|
190
|
+
* // example id: get-export-job-1685699942772
|
|
191
|
+
* ```
|
|
192
|
+
*
|
|
193
|
+
*/
|
|
194
|
+
export declare class GetExportJobCommand extends $Command<GetExportJobCommandInput, GetExportJobCommandOutput, SESv2ClientResolvedConfig> {
|
|
195
|
+
readonly input: GetExportJobCommandInput;
|
|
196
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
197
|
+
/**
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
constructor(input: GetExportJobCommandInput);
|
|
201
|
+
/**
|
|
202
|
+
* @internal
|
|
203
|
+
*/
|
|
204
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SESv2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetExportJobCommandInput, GetExportJobCommandOutput>;
|
|
205
|
+
/**
|
|
206
|
+
* @internal
|
|
207
|
+
*/
|
|
208
|
+
private serialize;
|
|
209
|
+
/**
|
|
210
|
+
* @internal
|
|
211
|
+
*/
|
|
212
|
+
private deserialize;
|
|
213
|
+
}
|
|
@@ -54,7 +54,7 @@ export interface GetImportJobCommandOutput extends GetImportJobResponse, __Metad
|
|
|
54
54
|
* // FailedRecordsS3Url: "STRING_VALUE",
|
|
55
55
|
* // ErrorMessage: "STRING_VALUE",
|
|
56
56
|
* // },
|
|
57
|
-
* // JobStatus: "CREATED" || "PROCESSING" || "COMPLETED" || "FAILED",
|
|
57
|
+
* // JobStatus: "CREATED" || "PROCESSING" || "COMPLETED" || "FAILED" || "CANCELLED",
|
|
58
58
|
* // CreatedTimestamp: new Date("TIMESTAMP"),
|
|
59
59
|
* // CompletedTimestamp: new Date("TIMESTAMP"),
|
|
60
60
|
* // ProcessedRecordsCount: Number("int"),
|