@aws-sdk/client-sesv2 3.779.0 → 3.787.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/index.js CHANGED
@@ -24,6 +24,8 @@ __export(index_exports, {
24
24
  AccountDetailsFilterSensitiveLog: () => AccountDetailsFilterSensitiveLog,
25
25
  AccountSuspendedException: () => AccountSuspendedException,
26
26
  AlreadyExistsException: () => AlreadyExistsException,
27
+ AttachmentContentDisposition: () => AttachmentContentDisposition,
28
+ AttachmentContentTransferEncoding: () => AttachmentContentTransferEncoding,
27
29
  BadRequestException: () => BadRequestException,
28
30
  BatchGetMetricDataCommand: () => BatchGetMetricDataCommand,
29
31
  BehaviorOnMxFailure: () => BehaviorOnMxFailure,
@@ -432,6 +434,15 @@ var AlreadyExistsException = class _AlreadyExistsException extends SESv2ServiceE
432
434
  Object.setPrototypeOf(this, _AlreadyExistsException.prototype);
433
435
  }
434
436
  };
437
+ var AttachmentContentDisposition = {
438
+ ATTACHMENT: "ATTACHMENT",
439
+ INLINE: "INLINE"
440
+ };
441
+ var AttachmentContentTransferEncoding = {
442
+ BASE64: "BASE64",
443
+ QUOTED_PRINTABLE: "QUOTED_PRINTABLE",
444
+ SEVEN_BIT: "SEVEN_BIT"
445
+ };
435
446
  var BadRequestException = class _BadRequestException extends SESv2ServiceException {
436
447
  static {
437
448
  __name(this, "BadRequestException");
@@ -2074,7 +2085,7 @@ var se_SendBulkEmailCommand = /* @__PURE__ */ __name(async (input, context) => {
2074
2085
  (0, import_smithy_client.take)(input, {
2075
2086
  BulkEmailEntries: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "BulkEmailEntries"),
2076
2087
  ConfigurationSetName: [],
2077
- DefaultContent: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "DefaultContent"),
2088
+ DefaultContent: /* @__PURE__ */ __name((_) => se_BulkEmailContent(_, context), "DefaultContent"),
2078
2089
  DefaultEmailTags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "DefaultEmailTags"),
2079
2090
  EndpointId: [],
2080
2091
  FeedbackForwardingEmailAddress: [],
@@ -3767,6 +3778,22 @@ var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput,
3767
3778
  });
3768
3779
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3769
3780
  }, "de_TooManyRequestsExceptionRes");
3781
+ var se_Attachment = /* @__PURE__ */ __name((input, context) => {
3782
+ return (0, import_smithy_client.take)(input, {
3783
+ ContentDescription: [],
3784
+ ContentDisposition: [],
3785
+ ContentId: [],
3786
+ ContentTransferEncoding: [],
3787
+ ContentType: [],
3788
+ FileName: [],
3789
+ RawContent: context.base64Encoder
3790
+ });
3791
+ }, "se_Attachment");
3792
+ var se_AttachmentList = /* @__PURE__ */ __name((input, context) => {
3793
+ return input.filter((e) => e != null).map((entry) => {
3794
+ return se_Attachment(entry, context);
3795
+ });
3796
+ }, "se_AttachmentList");
3770
3797
  var se_BatchGetMetricDataQueries = /* @__PURE__ */ __name((input, context) => {
3771
3798
  return input.filter((e) => e != null).map((entry) => {
3772
3799
  return se_BatchGetMetricDataQuery(entry, context);
@@ -3782,6 +3809,11 @@ var se_BatchGetMetricDataQuery = /* @__PURE__ */ __name((input, context) => {
3782
3809
  StartDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartDate")
3783
3810
  });
3784
3811
  }, "se_BatchGetMetricDataQuery");
3812
+ var se_BulkEmailContent = /* @__PURE__ */ __name((input, context) => {
3813
+ return (0, import_smithy_client.take)(input, {
3814
+ Template: /* @__PURE__ */ __name((_) => se_Template(_, context), "Template")
3815
+ });
3816
+ }, "se_BulkEmailContent");
3785
3817
  var se_DomainDeliverabilityTrackingOption = /* @__PURE__ */ __name((input, context) => {
3786
3818
  return (0, import_smithy_client.take)(input, {
3787
3819
  Domain: [],
@@ -3797,8 +3829,8 @@ var se_DomainDeliverabilityTrackingOptions = /* @__PURE__ */ __name((input, cont
3797
3829
  var se_EmailContent = /* @__PURE__ */ __name((input, context) => {
3798
3830
  return (0, import_smithy_client.take)(input, {
3799
3831
  Raw: /* @__PURE__ */ __name((_) => se_RawMessage(_, context), "Raw"),
3800
- Simple: import_smithy_client._json,
3801
- Template: import_smithy_client._json
3832
+ Simple: /* @__PURE__ */ __name((_) => se_Message(_, context), "Simple"),
3833
+ Template: /* @__PURE__ */ __name((_) => se_Template(_, context), "Template")
3802
3834
  });
3803
3835
  }, "se_EmailContent");
3804
3836
  var se_ExportDataSource = /* @__PURE__ */ __name((input, context) => {
@@ -3807,6 +3839,14 @@ var se_ExportDataSource = /* @__PURE__ */ __name((input, context) => {
3807
3839
  MetricsDataSource: /* @__PURE__ */ __name((_) => se_MetricsDataSource(_, context), "MetricsDataSource")
3808
3840
  });
3809
3841
  }, "se_ExportDataSource");
3842
+ var se_Message = /* @__PURE__ */ __name((input, context) => {
3843
+ return (0, import_smithy_client.take)(input, {
3844
+ Attachments: /* @__PURE__ */ __name((_) => se_AttachmentList(_, context), "Attachments"),
3845
+ Body: import_smithy_client._json,
3846
+ Headers: import_smithy_client._json,
3847
+ Subject: import_smithy_client._json
3848
+ });
3849
+ }, "se_Message");
3810
3850
  var se_MessageInsightsDataSource = /* @__PURE__ */ __name((input, context) => {
3811
3851
  return (0, import_smithy_client.take)(input, {
3812
3852
  EndDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndDate"),
@@ -3836,6 +3876,16 @@ var se_ReputationOptions = /* @__PURE__ */ __name((input, context) => {
3836
3876
  ReputationMetricsEnabled: []
3837
3877
  });
3838
3878
  }, "se_ReputationOptions");
3879
+ var se_Template = /* @__PURE__ */ __name((input, context) => {
3880
+ return (0, import_smithy_client.take)(input, {
3881
+ Attachments: /* @__PURE__ */ __name((_) => se_AttachmentList(_, context), "Attachments"),
3882
+ Headers: import_smithy_client._json,
3883
+ TemplateArn: [],
3884
+ TemplateContent: import_smithy_client._json,
3885
+ TemplateData: [],
3886
+ TemplateName: []
3887
+ });
3888
+ }, "se_Template");
3839
3889
  var de_BlacklistEntries = /* @__PURE__ */ __name((output, context) => {
3840
3890
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
3841
3891
  return de_BlacklistEntry(entry, context);
@@ -5966,6 +6016,8 @@ var paginateListSuppressedDestinations = (0, import_core.createPaginator)(SESv2C
5966
6016
  ReviewStatus,
5967
6017
  AccountSuspendedException,
5968
6018
  AlreadyExistsException,
6019
+ AttachmentContentDisposition,
6020
+ AttachmentContentTransferEncoding,
5969
6021
  BadRequestException,
5970
6022
  MetricDimensionName,
5971
6023
  Metric,
@@ -38,6 +38,15 @@ export class AlreadyExistsException extends __BaseException {
38
38
  Object.setPrototypeOf(this, AlreadyExistsException.prototype);
39
39
  }
40
40
  }
41
+ export const AttachmentContentDisposition = {
42
+ ATTACHMENT: "ATTACHMENT",
43
+ INLINE: "INLINE",
44
+ };
45
+ export const AttachmentContentTransferEncoding = {
46
+ BASE64: "BASE64",
47
+ QUOTED_PRINTABLE: "QUOTED_PRINTABLE",
48
+ SEVEN_BIT: "SEVEN_BIT",
49
+ };
41
50
  export class BadRequestException extends __BaseException {
42
51
  name = "BadRequestException";
43
52
  $fault = "client";
@@ -1062,7 +1062,7 @@ export const se_SendBulkEmailCommand = async (input, context) => {
1062
1062
  body = JSON.stringify(take(input, {
1063
1063
  BulkEmailEntries: (_) => _json(_),
1064
1064
  ConfigurationSetName: [],
1065
- DefaultContent: (_) => _json(_),
1065
+ DefaultContent: (_) => se_BulkEmailContent(_, context),
1066
1066
  DefaultEmailTags: (_) => _json(_),
1067
1067
  EndpointId: [],
1068
1068
  FeedbackForwardingEmailAddress: [],
@@ -2734,6 +2734,24 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
2734
2734
  });
2735
2735
  return __decorateServiceException(exception, parsedOutput.body);
2736
2736
  };
2737
+ const se_Attachment = (input, context) => {
2738
+ return take(input, {
2739
+ ContentDescription: [],
2740
+ ContentDisposition: [],
2741
+ ContentId: [],
2742
+ ContentTransferEncoding: [],
2743
+ ContentType: [],
2744
+ FileName: [],
2745
+ RawContent: context.base64Encoder,
2746
+ });
2747
+ };
2748
+ const se_AttachmentList = (input, context) => {
2749
+ return input
2750
+ .filter((e) => e != null)
2751
+ .map((entry) => {
2752
+ return se_Attachment(entry, context);
2753
+ });
2754
+ };
2737
2755
  const se_BatchGetMetricDataQueries = (input, context) => {
2738
2756
  return input
2739
2757
  .filter((e) => e != null)
@@ -2751,6 +2769,11 @@ const se_BatchGetMetricDataQuery = (input, context) => {
2751
2769
  StartDate: (_) => _.getTime() / 1000,
2752
2770
  });
2753
2771
  };
2772
+ const se_BulkEmailContent = (input, context) => {
2773
+ return take(input, {
2774
+ Template: (_) => se_Template(_, context),
2775
+ });
2776
+ };
2754
2777
  const se_DomainDeliverabilityTrackingOption = (input, context) => {
2755
2778
  return take(input, {
2756
2779
  Domain: [],
@@ -2768,8 +2791,8 @@ const se_DomainDeliverabilityTrackingOptions = (input, context) => {
2768
2791
  const se_EmailContent = (input, context) => {
2769
2792
  return take(input, {
2770
2793
  Raw: (_) => se_RawMessage(_, context),
2771
- Simple: _json,
2772
- Template: _json,
2794
+ Simple: (_) => se_Message(_, context),
2795
+ Template: (_) => se_Template(_, context),
2773
2796
  });
2774
2797
  };
2775
2798
  const se_ExportDataSource = (input, context) => {
@@ -2778,6 +2801,14 @@ const se_ExportDataSource = (input, context) => {
2778
2801
  MetricsDataSource: (_) => se_MetricsDataSource(_, context),
2779
2802
  });
2780
2803
  };
2804
+ const se_Message = (input, context) => {
2805
+ return take(input, {
2806
+ Attachments: (_) => se_AttachmentList(_, context),
2807
+ Body: _json,
2808
+ Headers: _json,
2809
+ Subject: _json,
2810
+ });
2811
+ };
2781
2812
  const se_MessageInsightsDataSource = (input, context) => {
2782
2813
  return take(input, {
2783
2814
  EndDate: (_) => _.getTime() / 1000,
@@ -2807,6 +2838,16 @@ const se_ReputationOptions = (input, context) => {
2807
2838
  ReputationMetricsEnabled: [],
2808
2839
  });
2809
2840
  };
2841
+ const se_Template = (input, context) => {
2842
+ return take(input, {
2843
+ Attachments: (_) => se_AttachmentList(_, context),
2844
+ Headers: _json,
2845
+ TemplateArn: [],
2846
+ TemplateContent: _json,
2847
+ TemplateData: [],
2848
+ TemplateName: [],
2849
+ });
2850
+ };
2810
2851
  const de_BlacklistEntries = (output, context) => {
2811
2852
  const retVal = (output || [])
2812
2853
  .filter((e) => e != null)
@@ -65,6 +65,17 @@ declare const CreateDeliverabilityTestReportCommand_base: {
65
65
  * Value: "STRING_VALUE", // required
66
66
  * },
67
67
  * ],
68
+ * Attachments: [ // AttachmentList
69
+ * { // Attachment
70
+ * RawContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
71
+ * ContentDisposition: "ATTACHMENT" || "INLINE",
72
+ * FileName: "STRING_VALUE", // required
73
+ * ContentDescription: "STRING_VALUE",
74
+ * ContentId: "STRING_VALUE",
75
+ * ContentTransferEncoding: "BASE64" || "QUOTED_PRINTABLE" || "SEVEN_BIT",
76
+ * ContentType: "STRING_VALUE",
77
+ * },
78
+ * ],
68
79
  * },
69
80
  * Raw: { // RawMessage
70
81
  * Data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
@@ -84,6 +95,17 @@ declare const CreateDeliverabilityTestReportCommand_base: {
84
95
  * Value: "STRING_VALUE", // required
85
96
  * },
86
97
  * ],
98
+ * Attachments: [
99
+ * {
100
+ * RawContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
101
+ * ContentDisposition: "ATTACHMENT" || "INLINE",
102
+ * FileName: "STRING_VALUE", // required
103
+ * ContentDescription: "STRING_VALUE",
104
+ * ContentId: "STRING_VALUE",
105
+ * ContentTransferEncoding: "BASE64" || "QUOTED_PRINTABLE" || "SEVEN_BIT",
106
+ * ContentType: "STRING_VALUE",
107
+ * },
108
+ * ],
87
109
  * },
88
110
  * },
89
111
  * Tags: [ // TagList
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { PutConfigurationSetSuppressionOptionsRequest, PutConfigurationSetSuppressionOptionsResponse } from "../models/models_0";
3
+ import { PutConfigurationSetSuppressionOptionsRequest, PutConfigurationSetSuppressionOptionsResponse } from "../models/models_1";
4
4
  import { ServiceInputTypes, ServiceOutputTypes, SESv2ClientResolvedConfig } from "../SESv2Client";
5
5
  /**
6
6
  * @public
@@ -1,7 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { PutConfigurationSetTrackingOptionsRequest } from "../models/models_0";
4
- import { PutConfigurationSetTrackingOptionsResponse } from "../models/models_1";
3
+ import { PutConfigurationSetTrackingOptionsRequest, PutConfigurationSetTrackingOptionsResponse } from "../models/models_1";
5
4
  import { ServiceInputTypes, ServiceOutputTypes, SESv2ClientResolvedConfig } from "../SESv2Client";
6
5
  /**
7
6
  * @public
@@ -64,6 +64,17 @@ declare const SendBulkEmailCommand_base: {
64
64
  * Value: "STRING_VALUE", // required
65
65
  * },
66
66
  * ],
67
+ * Attachments: [ // AttachmentList
68
+ * { // Attachment
69
+ * RawContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
70
+ * ContentDisposition: "ATTACHMENT" || "INLINE",
71
+ * FileName: "STRING_VALUE", // required
72
+ * ContentDescription: "STRING_VALUE",
73
+ * ContentId: "STRING_VALUE",
74
+ * ContentTransferEncoding: "BASE64" || "QUOTED_PRINTABLE" || "SEVEN_BIT",
75
+ * ContentType: "STRING_VALUE",
76
+ * },
77
+ * ],
67
78
  * },
68
79
  * },
69
80
  * BulkEmailEntries: [ // BulkEmailEntryList // required
@@ -98,6 +98,17 @@ declare const SendEmailCommand_base: {
98
98
  * Value: "STRING_VALUE", // required
99
99
  * },
100
100
  * ],
101
+ * Attachments: [ // AttachmentList
102
+ * { // Attachment
103
+ * RawContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
104
+ * ContentDisposition: "ATTACHMENT" || "INLINE",
105
+ * FileName: "STRING_VALUE", // required
106
+ * ContentDescription: "STRING_VALUE",
107
+ * ContentId: "STRING_VALUE",
108
+ * ContentTransferEncoding: "BASE64" || "QUOTED_PRINTABLE" || "SEVEN_BIT",
109
+ * ContentType: "STRING_VALUE",
110
+ * },
111
+ * ],
101
112
  * },
102
113
  * Raw: { // RawMessage
103
114
  * Data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
@@ -117,6 +128,17 @@ declare const SendEmailCommand_base: {
117
128
  * Value: "STRING_VALUE", // required
118
129
  * },
119
130
  * ],
131
+ * Attachments: [
132
+ * {
133
+ * RawContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
134
+ * ContentDisposition: "ATTACHMENT" || "INLINE",
135
+ * FileName: "STRING_VALUE", // required
136
+ * ContentDescription: "STRING_VALUE",
137
+ * ContentId: "STRING_VALUE",
138
+ * ContentTransferEncoding: "BASE64" || "QUOTED_PRINTABLE" || "SEVEN_BIT",
139
+ * ContentType: "STRING_VALUE",
140
+ * },
141
+ * ],
120
142
  * },
121
143
  * },
122
144
  * EmailTags: [ // MessageTagList
@@ -168,6 +168,83 @@ export interface ArchivingOptions {
168
168
  */
169
169
  ArchiveArn?: string | undefined;
170
170
  }
171
+ /**
172
+ * @public
173
+ * @enum
174
+ */
175
+ export declare const AttachmentContentDisposition: {
176
+ readonly ATTACHMENT: "ATTACHMENT";
177
+ readonly INLINE: "INLINE";
178
+ };
179
+ /**
180
+ * @public
181
+ */
182
+ export type AttachmentContentDisposition = (typeof AttachmentContentDisposition)[keyof typeof AttachmentContentDisposition];
183
+ /**
184
+ * @public
185
+ * @enum
186
+ */
187
+ export declare const AttachmentContentTransferEncoding: {
188
+ readonly BASE64: "BASE64";
189
+ readonly QUOTED_PRINTABLE: "QUOTED_PRINTABLE";
190
+ readonly SEVEN_BIT: "SEVEN_BIT";
191
+ };
192
+ /**
193
+ * @public
194
+ */
195
+ export type AttachmentContentTransferEncoding = (typeof AttachmentContentTransferEncoding)[keyof typeof AttachmentContentTransferEncoding];
196
+ /**
197
+ * <p> Contains metadata and attachment raw content.</p>
198
+ * @public
199
+ */
200
+ export interface Attachment {
201
+ /**
202
+ * <p> The raw data of the attachment. It needs to be base64-encoded if you are accessing Amazon SES
203
+ * directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services
204
+ * SDK, the SDK takes care of the base 64-encoding for you.</p>
205
+ * @public
206
+ */
207
+ RawContent: Uint8Array | undefined;
208
+ /**
209
+ * <p> A standard descriptor indicating how the attachment should be rendered in the email.
210
+ * Supported values: <code>ATTACHMENT</code> or <code>INLINE</code>.</p>
211
+ * @public
212
+ */
213
+ ContentDisposition?: AttachmentContentDisposition | undefined;
214
+ /**
215
+ * <p>The file name for the attachment as it will appear in the email.
216
+ * Amazon SES restricts certain file extensions. To ensure attachments are accepted,
217
+ * check the <a href="https://docs.aws.amazon.com/ses/latest/dg/mime-types.html">Unsupported attachment types</a>
218
+ * in the Amazon SES Developer Guide.</p>
219
+ * @public
220
+ */
221
+ FileName: string | undefined;
222
+ /**
223
+ * <p> A brief description of the attachment content.</p>
224
+ * @public
225
+ */
226
+ ContentDescription?: string | undefined;
227
+ /**
228
+ * <p> Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.</p>
229
+ * @public
230
+ */
231
+ ContentId?: string | undefined;
232
+ /**
233
+ * <p> Specifies how the attachment is encoded.
234
+ * Supported values: <code>BASE64</code>, <code>QUOTED_PRINTABLE</code>, <code>SEVEN_BIT</code>.</p>
235
+ * @public
236
+ */
237
+ ContentTransferEncoding?: AttachmentContentTransferEncoding | undefined;
238
+ /**
239
+ * <p> The MIME type of the attachment.</p>
240
+ * <note>
241
+ * <p>Example: <code>application/pdf</code>, <code>image/jpeg</code>
242
+ * </p>
243
+ * </note>
244
+ * @public
245
+ */
246
+ ContentType?: string | undefined;
247
+ }
171
248
  /**
172
249
  * <p>The input you provided is invalid.</p>
173
250
  * @public
@@ -668,6 +745,11 @@ export interface Template {
668
745
  * @public
669
746
  */
670
747
  Headers?: MessageHeader[] | undefined;
748
+ /**
749
+ * <p> The List of attachments to include in your email. All recipients will receive the same attachments.</p>
750
+ * @public
751
+ */
752
+ Attachments?: Attachment[] | undefined;
671
753
  }
672
754
  /**
673
755
  * <p>An object that contains the body of the message. You can specify a template
@@ -1976,18 +2058,23 @@ export interface Message {
1976
2058
  * @public
1977
2059
  */
1978
2060
  Headers?: MessageHeader[] | undefined;
2061
+ /**
2062
+ * <p> The List of attachments to include in your email. All recipients will receive the same attachments.</p>
2063
+ * @public
2064
+ */
2065
+ Attachments?: Attachment[] | undefined;
1979
2066
  }
1980
2067
  /**
1981
- * <p>An object that defines the entire content of the email, including the message headers
1982
- * and the body content. You can create a simple email message, in which you specify the
1983
- * subject and the text and HTML versions of the message body. You can also create raw
1984
- * messages, in which you specify a complete MIME-formatted message. Raw messages can
1985
- * include attachments and custom headers.</p>
2068
+ * <p>An object that defines the entire content of the email, including the message headers, body content,
2069
+ * and attachments. For a simple email message, you specify the subject and provide both text
2070
+ * and HTML versions of the message body. You can also add attachments to simple and templated
2071
+ * messages. For a raw message, you provide a complete MIME-formatted message, which can
2072
+ * include custom headers and attachments.</p>
1986
2073
  * @public
1987
2074
  */
1988
2075
  export interface EmailContent {
1989
2076
  /**
1990
- * <p>The simple email message. The message consists of a subject and a message body.</p>
2077
+ * <p>The simple email message. The message consists of a subject, message body and attachments list.</p>
1991
2078
  * @public
1992
2079
  */
1993
2080
  Simple?: Message | undefined;
@@ -7115,73 +7202,6 @@ export interface PutConfigurationSetSendingOptionsRequest {
7115
7202
  */
7116
7203
  export interface PutConfigurationSetSendingOptionsResponse {
7117
7204
  }
7118
- /**
7119
- * <p>A request to change the account suppression list preferences for a specific
7120
- * configuration set.</p>
7121
- * @public
7122
- */
7123
- export interface PutConfigurationSetSuppressionOptionsRequest {
7124
- /**
7125
- * <p>The name of the configuration set to change the suppression list preferences
7126
- * for.</p>
7127
- * @public
7128
- */
7129
- ConfigurationSetName: string | undefined;
7130
- /**
7131
- * <p>A list that contains the reasons that email addresses are automatically added to the
7132
- * suppression list for your account. This list can contain any or all of the
7133
- * following:</p>
7134
- * <ul>
7135
- * <li>
7136
- * <p>
7137
- * <code>COMPLAINT</code> – Amazon SES adds an email address to the suppression
7138
- * list for your account when a message sent to that address results in a
7139
- * complaint.</p>
7140
- * </li>
7141
- * <li>
7142
- * <p>
7143
- * <code>BOUNCE</code> – Amazon SES adds an email address to the suppression
7144
- * list for your account when a message sent to that address results in a hard
7145
- * bounce.</p>
7146
- * </li>
7147
- * </ul>
7148
- * @public
7149
- */
7150
- SuppressedReasons?: SuppressionListReason[] | undefined;
7151
- }
7152
- /**
7153
- * <p>An HTTP 200 response if the request succeeds, or an error message if the request
7154
- * fails.</p>
7155
- * @public
7156
- */
7157
- export interface PutConfigurationSetSuppressionOptionsResponse {
7158
- }
7159
- /**
7160
- * <p>A request to add a custom domain for tracking open and click events to a configuration
7161
- * set.</p>
7162
- * @public
7163
- */
7164
- export interface PutConfigurationSetTrackingOptionsRequest {
7165
- /**
7166
- * <p>The name of the configuration set.</p>
7167
- * @public
7168
- */
7169
- ConfigurationSetName: string | undefined;
7170
- /**
7171
- * <p>The domain to use to track open and click events.</p>
7172
- * @public
7173
- */
7174
- CustomRedirectDomain?: string | undefined;
7175
- /**
7176
- * <p>The https policy to use for tracking open and click events. If the value is OPTIONAL or HttpsPolicy is not
7177
- * specified, the open trackers use HTTP and click tracker use the original protocol of the link.
7178
- * If the value is REQUIRE, both open and click tracker uses HTTPS and if the value is REQUIRE_OPEN_ONLY
7179
- * open tracker uses HTTPS and link tracker is same as original protocol of the link.
7180
- * </p>
7181
- * @public
7182
- */
7183
- HttpsPolicy?: HttpsPolicy | undefined;
7184
- }
7185
7205
  /**
7186
7206
  * @internal
7187
7207
  */
@@ -1,4 +1,71 @@
1
- import { BehaviorOnMxFailure, BulkEmailContent, BulkEmailEntry, BulkEmailEntryResult, Destination, DkimSigningAttributes, DkimSigningAttributesOrigin, DkimStatus, DomainDeliverabilityTrackingOption, EmailContent, EmailTemplateContent, EventDestinationDefinition, ListManagementOptions, MessageTag, ScalingMode, SuppressionListReason, Tag, Topic, TopicPreference, VdmOptions } from "./models_0";
1
+ import { BehaviorOnMxFailure, BulkEmailContent, BulkEmailEntry, BulkEmailEntryResult, Destination, DkimSigningAttributes, DkimSigningAttributesOrigin, DkimStatus, DomainDeliverabilityTrackingOption, EmailContent, EmailTemplateContent, EventDestinationDefinition, HttpsPolicy, ListManagementOptions, MessageTag, ScalingMode, SuppressionListReason, Tag, Topic, TopicPreference, VdmOptions } from "./models_0";
2
+ /**
3
+ * <p>A request to change the account suppression list preferences for a specific
4
+ * configuration set.</p>
5
+ * @public
6
+ */
7
+ export interface PutConfigurationSetSuppressionOptionsRequest {
8
+ /**
9
+ * <p>The name of the configuration set to change the suppression list preferences
10
+ * for.</p>
11
+ * @public
12
+ */
13
+ ConfigurationSetName: string | undefined;
14
+ /**
15
+ * <p>A list that contains the reasons that email addresses are automatically added to the
16
+ * suppression list for your account. This list can contain any or all of the
17
+ * following:</p>
18
+ * <ul>
19
+ * <li>
20
+ * <p>
21
+ * <code>COMPLAINT</code> – Amazon SES adds an email address to the suppression
22
+ * list for your account when a message sent to that address results in a
23
+ * complaint.</p>
24
+ * </li>
25
+ * <li>
26
+ * <p>
27
+ * <code>BOUNCE</code> – Amazon SES adds an email address to the suppression
28
+ * list for your account when a message sent to that address results in a hard
29
+ * bounce.</p>
30
+ * </li>
31
+ * </ul>
32
+ * @public
33
+ */
34
+ SuppressedReasons?: SuppressionListReason[] | undefined;
35
+ }
36
+ /**
37
+ * <p>An HTTP 200 response if the request succeeds, or an error message if the request
38
+ * fails.</p>
39
+ * @public
40
+ */
41
+ export interface PutConfigurationSetSuppressionOptionsResponse {
42
+ }
43
+ /**
44
+ * <p>A request to add a custom domain for tracking open and click events to a configuration
45
+ * set.</p>
46
+ * @public
47
+ */
48
+ export interface PutConfigurationSetTrackingOptionsRequest {
49
+ /**
50
+ * <p>The name of the configuration set.</p>
51
+ * @public
52
+ */
53
+ ConfigurationSetName: string | undefined;
54
+ /**
55
+ * <p>The domain to use to track open and click events.</p>
56
+ * @public
57
+ */
58
+ CustomRedirectDomain?: string | undefined;
59
+ /**
60
+ * <p>The https policy to use for tracking open and click events. If the value is OPTIONAL or HttpsPolicy is not
61
+ * specified, the open trackers use HTTP and click tracker use the original protocol of the link.
62
+ * If the value is REQUIRE, both open and click tracker uses HTTPS and if the value is REQUIRE_OPEN_ONLY
63
+ * open tracker uses HTTPS and link tracker is same as original protocol of the link.
64
+ * </p>
65
+ * @public
66
+ */
67
+ HttpsPolicy?: HttpsPolicy | undefined;
68
+ }
2
69
  /**
3
70
  * <p>An HTTP 200 response if the request succeeds, or an error message if the request
4
71
  * fails.</p>
@@ -3,7 +3,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import {
4
4
  PutConfigurationSetSuppressionOptionsRequest,
5
5
  PutConfigurationSetSuppressionOptionsResponse,
6
- } from "../models/models_0";
6
+ } from "../models/models_1";
7
7
  import {
8
8
  ServiceInputTypes,
9
9
  ServiceOutputTypes,
@@ -1,7 +1,9 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { PutConfigurationSetTrackingOptionsRequest } from "../models/models_0";
4
- import { PutConfigurationSetTrackingOptionsResponse } from "../models/models_1";
3
+ import {
4
+ PutConfigurationSetTrackingOptionsRequest,
5
+ PutConfigurationSetTrackingOptionsResponse,
6
+ } from "../models/models_1";
5
7
  import {
6
8
  ServiceInputTypes,
7
9
  ServiceOutputTypes,
@@ -47,6 +47,28 @@ export declare class AlreadyExistsException extends __BaseException {
47
47
  export interface ArchivingOptions {
48
48
  ArchiveArn?: string | undefined;
49
49
  }
50
+ export declare const AttachmentContentDisposition: {
51
+ readonly ATTACHMENT: "ATTACHMENT";
52
+ readonly INLINE: "INLINE";
53
+ };
54
+ export type AttachmentContentDisposition =
55
+ (typeof AttachmentContentDisposition)[keyof typeof AttachmentContentDisposition];
56
+ export declare const AttachmentContentTransferEncoding: {
57
+ readonly BASE64: "BASE64";
58
+ readonly QUOTED_PRINTABLE: "QUOTED_PRINTABLE";
59
+ readonly SEVEN_BIT: "SEVEN_BIT";
60
+ };
61
+ export type AttachmentContentTransferEncoding =
62
+ (typeof AttachmentContentTransferEncoding)[keyof typeof AttachmentContentTransferEncoding];
63
+ export interface Attachment {
64
+ RawContent: Uint8Array | undefined;
65
+ ContentDisposition?: AttachmentContentDisposition | undefined;
66
+ FileName: string | undefined;
67
+ ContentDescription?: string | undefined;
68
+ ContentId?: string | undefined;
69
+ ContentTransferEncoding?: AttachmentContentTransferEncoding | undefined;
70
+ ContentType?: string | undefined;
71
+ }
50
72
  export declare class BadRequestException extends __BaseException {
51
73
  readonly name: "BadRequestException";
52
74
  readonly $fault: "client";
@@ -174,6 +196,7 @@ export interface Template {
174
196
  TemplateContent?: EmailTemplateContent | undefined;
175
197
  TemplateData?: string | undefined;
176
198
  Headers?: MessageHeader[] | undefined;
199
+ Attachments?: Attachment[] | undefined;
177
200
  }
178
201
  export interface BulkEmailContent {
179
202
  Template?: Template | undefined;
@@ -454,6 +477,7 @@ export interface Message {
454
477
  Subject: Content | undefined;
455
478
  Body: Body | undefined;
456
479
  Headers?: MessageHeader[] | undefined;
480
+ Attachments?: Attachment[] | undefined;
457
481
  }
458
482
  export interface EmailContent {
459
483
  Simple?: Message | undefined;
@@ -1459,16 +1483,6 @@ export interface PutConfigurationSetSendingOptionsRequest {
1459
1483
  SendingEnabled?: boolean | undefined;
1460
1484
  }
1461
1485
  export interface PutConfigurationSetSendingOptionsResponse {}
1462
- export interface PutConfigurationSetSuppressionOptionsRequest {
1463
- ConfigurationSetName: string | undefined;
1464
- SuppressedReasons?: SuppressionListReason[] | undefined;
1465
- }
1466
- export interface PutConfigurationSetSuppressionOptionsResponse {}
1467
- export interface PutConfigurationSetTrackingOptionsRequest {
1468
- ConfigurationSetName: string | undefined;
1469
- CustomRedirectDomain?: string | undefined;
1470
- HttpsPolicy?: HttpsPolicy | undefined;
1471
- }
1472
1486
  export declare const AccountDetailsFilterSensitiveLog: (
1473
1487
  obj: AccountDetails
1474
1488
  ) => any;
@@ -11,6 +11,7 @@ import {
11
11
  EmailContent,
12
12
  EmailTemplateContent,
13
13
  EventDestinationDefinition,
14
+ HttpsPolicy,
14
15
  ListManagementOptions,
15
16
  MessageTag,
16
17
  ScalingMode,
@@ -20,6 +21,16 @@ import {
20
21
  TopicPreference,
21
22
  VdmOptions,
22
23
  } from "./models_0";
24
+ export interface PutConfigurationSetSuppressionOptionsRequest {
25
+ ConfigurationSetName: string | undefined;
26
+ SuppressedReasons?: SuppressionListReason[] | undefined;
27
+ }
28
+ export interface PutConfigurationSetSuppressionOptionsResponse {}
29
+ export interface PutConfigurationSetTrackingOptionsRequest {
30
+ ConfigurationSetName: string | undefined;
31
+ CustomRedirectDomain?: string | undefined;
32
+ HttpsPolicy?: HttpsPolicy | undefined;
33
+ }
23
34
  export interface PutConfigurationSetTrackingOptionsResponse {}
24
35
  export interface PutConfigurationSetVdmOptionsRequest {
25
36
  ConfigurationSetName: string | undefined;
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.779.0",
4
+ "version": "3.787.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sesv2",
@@ -21,17 +21,17 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.775.0",
24
- "@aws-sdk/credential-provider-node": "3.777.0",
24
+ "@aws-sdk/credential-provider-node": "3.787.0",
25
25
  "@aws-sdk/middleware-host-header": "3.775.0",
26
26
  "@aws-sdk/middleware-logger": "3.775.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
- "@aws-sdk/middleware-user-agent": "3.775.0",
28
+ "@aws-sdk/middleware-user-agent": "3.787.0",
29
29
  "@aws-sdk/region-config-resolver": "3.775.0",
30
30
  "@aws-sdk/signature-v4-multi-region": "3.775.0",
31
31
  "@aws-sdk/types": "3.775.0",
32
- "@aws-sdk/util-endpoints": "3.775.0",
32
+ "@aws-sdk/util-endpoints": "3.787.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.775.0",
34
- "@aws-sdk/util-user-agent-node": "3.775.0",
34
+ "@aws-sdk/util-user-agent-node": "3.787.0",
35
35
  "@smithy/config-resolver": "^4.1.0",
36
36
  "@smithy/core": "^3.2.0",
37
37
  "@smithy/fetch-http-handler": "^5.0.2",