@aws-sdk/client-sesv2 3.402.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/dist-types/commands/CancelExportJobCommand.d.ts +11 -0
- package/dist-types/commands/CreateExportJobCommand.d.ts +78 -0
- package/dist-types/commands/GetExportJobCommand.d.ts +52 -0
- package/dist-types/commands/GetMessageInsightsCommand.d.ts +60 -0
- package/dist-types/commands/ListExportJobsCommand.d.ts +25 -0
- package/package.json +1 -1
|
@@ -57,6 +57,17 @@ export interface CancelExportJobCommandOutput extends CancelExportJobResponse, _
|
|
|
57
57
|
* @throws {@link SESv2ServiceException}
|
|
58
58
|
* <p>Base exception class for all service exceptions from SESv2 service.</p>
|
|
59
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
|
+
*
|
|
60
71
|
*/
|
|
61
72
|
export declare class CancelExportJobCommand extends $Command<CancelExportJobCommandInput, CancelExportJobCommandOutput, SESv2ClientResolvedConfig> {
|
|
62
73
|
readonly input: CancelExportJobCommandInput;
|
|
@@ -129,6 +129,84 @@ export interface CreateExportJobCommandOutput extends CreateExportJobResponse, _
|
|
|
129
129
|
* @throws {@link SESv2ServiceException}
|
|
130
130
|
* <p>Base exception class for all service exceptions from SESv2 service.</p>
|
|
131
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
|
+
*
|
|
132
210
|
*/
|
|
133
211
|
export declare class CreateExportJobCommand extends $Command<CreateExportJobCommandInput, CreateExportJobCommandOutput, SESv2ClientResolvedConfig> {
|
|
134
212
|
readonly input: CreateExportJobCommandInput;
|
|
@@ -138,6 +138,58 @@ export interface GetExportJobCommandOutput extends GetExportJobResponse, __Metad
|
|
|
138
138
|
* @throws {@link SESv2ServiceException}
|
|
139
139
|
* <p>Base exception class for all service exceptions from SESv2 service.</p>
|
|
140
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
|
+
*
|
|
141
193
|
*/
|
|
142
194
|
export declare class GetExportJobCommand extends $Command<GetExportJobCommandInput, GetExportJobCommandOutput, SESv2ClientResolvedConfig> {
|
|
143
195
|
readonly input: GetExportJobCommandInput;
|
|
@@ -92,6 +92,66 @@ export interface GetMessageInsightsCommandOutput extends GetMessageInsightsRespo
|
|
|
92
92
|
* @throws {@link SESv2ServiceException}
|
|
93
93
|
* <p>Base exception class for all service exceptions from SESv2 service.</p>
|
|
94
94
|
*
|
|
95
|
+
* @example Get Message Insights
|
|
96
|
+
* ```javascript
|
|
97
|
+
* // Provides information about a specific message.
|
|
98
|
+
* const input = {
|
|
99
|
+
* "MessageId": "000000000000ab00-0a000aa0-1234-0a0a-1234-0a0aaa0aa00a-000000"
|
|
100
|
+
* };
|
|
101
|
+
* const command = new GetMessageInsightsCommand(input);
|
|
102
|
+
* const response = await client.send(command);
|
|
103
|
+
* /* response ==
|
|
104
|
+
* {
|
|
105
|
+
* "EmailTags": [
|
|
106
|
+
* {
|
|
107
|
+
* "Name": "ses:operation",
|
|
108
|
+
* "Value": "SendEmail"
|
|
109
|
+
* },
|
|
110
|
+
* {
|
|
111
|
+
* "Name": "ses:recipient-isp",
|
|
112
|
+
* "Value": "UNKNOWN_ISP"
|
|
113
|
+
* },
|
|
114
|
+
* {
|
|
115
|
+
* "Name": "ses:source-ip",
|
|
116
|
+
* "Value": "0.0.0.0"
|
|
117
|
+
* },
|
|
118
|
+
* {
|
|
119
|
+
* "Name": "ses:from-domain",
|
|
120
|
+
* "Value": "example.com"
|
|
121
|
+
* },
|
|
122
|
+
* {
|
|
123
|
+
* "Name": "ses:sender-identity",
|
|
124
|
+
* "Value": "hello@example.com"
|
|
125
|
+
* },
|
|
126
|
+
* {
|
|
127
|
+
* "Name": "ses:caller-identity",
|
|
128
|
+
* "Value": "Identity"
|
|
129
|
+
* }
|
|
130
|
+
* ],
|
|
131
|
+
* "FromEmailAddress": "hello@example.com",
|
|
132
|
+
* "Insights": [
|
|
133
|
+
* {
|
|
134
|
+
* "Destination": "recipient@example.com",
|
|
135
|
+
* "Events": [
|
|
136
|
+
* {
|
|
137
|
+
* "Timestamp": "2023-01-01T00:00:00.000000+01:00",
|
|
138
|
+
* "Type": "SEND"
|
|
139
|
+
* },
|
|
140
|
+
* {
|
|
141
|
+
* "Timestamp": "2023-01-01T00:00:01.000000+01:00",
|
|
142
|
+
* "Type": "DELIVERY"
|
|
143
|
+
* }
|
|
144
|
+
* ],
|
|
145
|
+
* "Isp": "UNKNOWN_ISP"
|
|
146
|
+
* }
|
|
147
|
+
* ],
|
|
148
|
+
* "MessageId": "000000000000ab00-0a000aa0-1234-0a0a-1234-0a0aaa0aa00a-000000",
|
|
149
|
+
* "Subject": "hello"
|
|
150
|
+
* }
|
|
151
|
+
* *\/
|
|
152
|
+
* // example id: get-message-insights-1689955713493
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
95
155
|
*/
|
|
96
156
|
export declare class GetMessageInsightsCommand extends $Command<GetMessageInsightsCommandInput, GetMessageInsightsCommandOutput, SESv2ClientResolvedConfig> {
|
|
97
157
|
readonly input: GetMessageInsightsCommandInput;
|
|
@@ -68,6 +68,31 @@ export interface ListExportJobsCommandOutput extends ListExportJobsResponse, __M
|
|
|
68
68
|
* @throws {@link SESv2ServiceException}
|
|
69
69
|
* <p>Base exception class for all service exceptions from SESv2 service.</p>
|
|
70
70
|
*
|
|
71
|
+
* @example List export jobs
|
|
72
|
+
* ```javascript
|
|
73
|
+
* // Lists export jobs of type METRICS_DATA and status PROCESSING
|
|
74
|
+
* const input = {
|
|
75
|
+
* "ExportSourceType": "METRICS_DATA",
|
|
76
|
+
* "JobStatus": "PROCESSING",
|
|
77
|
+
* "PageSize": 25
|
|
78
|
+
* };
|
|
79
|
+
* const command = new ListExportJobsCommand(input);
|
|
80
|
+
* const response = await client.send(command);
|
|
81
|
+
* /* response ==
|
|
82
|
+
* {
|
|
83
|
+
* "ExportJobs": [
|
|
84
|
+
* {
|
|
85
|
+
* "CreatedTimestamp": "167697473543",
|
|
86
|
+
* "ExportSourceType": "METRICS_DATA",
|
|
87
|
+
* "JobId": "72de83a0-6b49-47ca-9783-8b812576887a",
|
|
88
|
+
* "JobStatus": "PROCESSING"
|
|
89
|
+
* }
|
|
90
|
+
* ]
|
|
91
|
+
* }
|
|
92
|
+
* *\/
|
|
93
|
+
* // example id: list-export-jobs-1685702074256
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
71
96
|
*/
|
|
72
97
|
export declare class ListExportJobsCommand extends $Command<ListExportJobsCommandInput, ListExportJobsCommandOutput, SESv2ClientResolvedConfig> {
|
|
73
98
|
readonly input: ListExportJobsCommandInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sesv2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sesv2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.403.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|