@aws-sdk/client-sesv2 3.682.0 → 3.684.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 CHANGED
@@ -17,7 +17,7 @@ and code samples that demonstrate how to use Amazon SES API v2 features programm
17
17
 
18
18
  ## Installing
19
19
 
20
- To install the this package, simply type add or install @aws-sdk/client-sesv2
20
+ To install this package, simply type add or install @aws-sdk/client-sesv2
21
21
  using your favorite package manager:
22
22
 
23
23
  - `npm install @aws-sdk/client-sesv2`
@@ -72,6 +72,11 @@ declare const CreateDeliverabilityTestReportCommand_base: {
72
72
  * Template: { // Template
73
73
  * TemplateName: "STRING_VALUE",
74
74
  * TemplateArn: "STRING_VALUE",
75
+ * TemplateContent: { // EmailTemplateContent
76
+ * Subject: "STRING_VALUE",
77
+ * Text: "STRING_VALUE",
78
+ * Html: "STRING_VALUE",
79
+ * },
75
80
  * TemplateData: "STRING_VALUE",
76
81
  * Headers: [
77
82
  * {
@@ -52,6 +52,11 @@ declare const SendBulkEmailCommand_base: {
52
52
  * Template: { // Template
53
53
  * TemplateName: "STRING_VALUE",
54
54
  * TemplateArn: "STRING_VALUE",
55
+ * TemplateContent: { // EmailTemplateContent
56
+ * Subject: "STRING_VALUE",
57
+ * Text: "STRING_VALUE",
58
+ * Html: "STRING_VALUE",
59
+ * },
55
60
  * TemplateData: "STRING_VALUE",
56
61
  * Headers: [ // MessageHeaderList
57
62
  * { // MessageHeader
@@ -105,6 +105,11 @@ declare const SendEmailCommand_base: {
105
105
  * Template: { // Template
106
106
  * TemplateName: "STRING_VALUE",
107
107
  * TemplateArn: "STRING_VALUE",
108
+ * TemplateContent: { // EmailTemplateContent
109
+ * Subject: "STRING_VALUE",
110
+ * Text: "STRING_VALUE",
111
+ * Html: "STRING_VALUE",
112
+ * },
108
113
  * TemplateData: "STRING_VALUE",
109
114
  * Headers: [
110
115
  * {
@@ -589,11 +589,36 @@ export interface MessageHeader {
589
589
  */
590
590
  Value: string | undefined;
591
591
  }
592
+ /**
593
+ * <p>The content of the email, composed of a subject line, an HTML part, and a text-only
594
+ * part.</p>
595
+ * @public
596
+ */
597
+ export interface EmailTemplateContent {
598
+ /**
599
+ * <p>The subject line of the email.</p>
600
+ * @public
601
+ */
602
+ Subject?: string;
603
+ /**
604
+ * <p>The email body that will be visible to recipients whose email clients do not display
605
+ * HTML.</p>
606
+ * @public
607
+ */
608
+ Text?: string;
609
+ /**
610
+ * <p>The HTML body of the email.</p>
611
+ * @public
612
+ */
613
+ Html?: string;
614
+ }
592
615
  /**
593
616
  * <p>An object that defines the email template to use for an email message, and the values
594
617
  * to use for any message variables in that template. An <i>email
595
618
  * template</i> is a type of message template that contains content that you
596
- * want to define, save, and reuse in email messages that you send.</p>
619
+ * want to reuse in email messages that you send. You can specifiy the email template by providing
620
+ * the name or ARN of an <i>email template</i>
621
+ * previously saved in your Amazon SES account or by providing the full template content.</p>
597
622
  * @public
598
623
  */
599
624
  export interface Template {
@@ -609,6 +634,16 @@ export interface Template {
609
634
  * @public
610
635
  */
611
636
  TemplateArn?: string;
637
+ /**
638
+ * <p>The content of the template.</p>
639
+ * <note>
640
+ * <p>Amazon SES supports only simple substitions when you send email using the
641
+ * <code>SendEmail</code> or <code>SendBulkEmail</code> operations and
642
+ * you provide the full template content in the request.</p>
643
+ * </note>
644
+ * @public
645
+ */
646
+ TemplateContent?: EmailTemplateContent;
612
647
  /**
613
648
  * <p>An object that defines the values to use for message variables in the template. This
614
649
  * object is a set of key-value pairs. Each key defines a message variable in the template.
@@ -2357,29 +2392,6 @@ export interface CreateEmailIdentityPolicyRequest {
2357
2392
  */
2358
2393
  export interface CreateEmailIdentityPolicyResponse {
2359
2394
  }
2360
- /**
2361
- * <p>The content of the email, composed of a subject line, an HTML part, and a text-only
2362
- * part.</p>
2363
- * @public
2364
- */
2365
- export interface EmailTemplateContent {
2366
- /**
2367
- * <p>The subject line of the email.</p>
2368
- * @public
2369
- */
2370
- Subject?: string;
2371
- /**
2372
- * <p>The email body that will be visible to recipients whose email clients do not display
2373
- * HTML.</p>
2374
- * @public
2375
- */
2376
- Text?: string;
2377
- /**
2378
- * <p>The HTML body of the email.</p>
2379
- * @public
2380
- */
2381
- Html?: string;
2382
- }
2383
2395
  /**
2384
2396
  * <p>Represents a request to create an email template. For more information, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-personalized-email-api.html">Amazon SES
2385
2397
  * Developer Guide</a>.</p>
@@ -160,9 +160,15 @@ export interface MessageHeader {
160
160
  Name: string | undefined;
161
161
  Value: string | undefined;
162
162
  }
163
+ export interface EmailTemplateContent {
164
+ Subject?: string;
165
+ Text?: string;
166
+ Html?: string;
167
+ }
163
168
  export interface Template {
164
169
  TemplateName?: string;
165
170
  TemplateArn?: string;
171
+ TemplateContent?: EmailTemplateContent;
166
172
  TemplateData?: string;
167
173
  Headers?: MessageHeader[];
168
174
  }
@@ -545,11 +551,6 @@ export interface CreateEmailIdentityPolicyRequest {
545
551
  Policy: string | undefined;
546
552
  }
547
553
  export interface CreateEmailIdentityPolicyResponse {}
548
- export interface EmailTemplateContent {
549
- Subject?: string;
550
- Text?: string;
551
- Html?: string;
552
- }
553
554
  export interface CreateEmailTemplateRequest {
554
555
  TemplateName: string | undefined;
555
556
  TemplateContent: EmailTemplateContent | 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.682.0",
4
+ "version": "3.684.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",