@aws-sdk/client-sesv2 3.402.0 → 3.405.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.
@@ -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.402.0",
4
+ "version": "3.405.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",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.398.0",
25
- "@aws-sdk/credential-provider-node": "3.398.0",
24
+ "@aws-sdk/client-sts": "3.405.0",
25
+ "@aws-sdk/credential-provider-node": "3.405.0",
26
26
  "@aws-sdk/middleware-host-header": "3.398.0",
27
27
  "@aws-sdk/middleware-logger": "3.398.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.398.0",
@@ -31,7 +31,7 @@
31
31
  "@aws-sdk/types": "3.398.0",
32
32
  "@aws-sdk/util-endpoints": "3.398.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.398.0",
34
- "@aws-sdk/util-user-agent-node": "3.398.0",
34
+ "@aws-sdk/util-user-agent-node": "3.405.0",
35
35
  "@smithy/config-resolver": "^2.0.5",
36
36
  "@smithy/fetch-http-handler": "^2.0.5",
37
37
  "@smithy/hash-node": "^2.0.5",
@@ -41,7 +41,7 @@
41
41
  "@smithy/middleware-retry": "^2.0.5",
42
42
  "@smithy/middleware-serde": "^2.0.5",
43
43
  "@smithy/middleware-stack": "^2.0.0",
44
- "@smithy/node-config-provider": "^2.0.5",
44
+ "@smithy/node-config-provider": "^2.0.6",
45
45
  "@smithy/node-http-handler": "^2.0.5",
46
46
  "@smithy/protocol-http": "^2.0.5",
47
47
  "@smithy/smithy-client": "^2.0.5",
@@ -50,8 +50,8 @@
50
50
  "@smithy/util-base64": "^2.0.0",
51
51
  "@smithy/util-body-length-browser": "^2.0.0",
52
52
  "@smithy/util-body-length-node": "^2.1.0",
53
- "@smithy/util-defaults-mode-browser": "^2.0.5",
54
- "@smithy/util-defaults-mode-node": "^2.0.5",
53
+ "@smithy/util-defaults-mode-browser": "^2.0.6",
54
+ "@smithy/util-defaults-mode-node": "^2.0.6",
55
55
  "@smithy/util-retry": "^2.0.0",
56
56
  "@smithy/util-utf8": "^2.0.0",
57
57
  "tslib": "^2.5.0"