Skip to content

Commit 9dac593

Browse files
author
awstools
committed
feat(client-sesv2): Adds support for specifying replacement headers per BulkEmailEntry in SendBulkEmail in SESv2.
1 parent 89b45ab commit 9dac593

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

clients/client-sesv2/src/commands/SendBulkEmailCommand.ts

+6
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ export interface SendBulkEmailCommandOutput extends SendBulkEmailResponse, __Met
8585
* ReplacementTemplateData: "STRING_VALUE",
8686
* },
8787
* },
88+
* ReplacementHeaders: [
89+
* {
90+
* Name: "STRING_VALUE", // required
91+
* Value: "STRING_VALUE", // required
92+
* },
93+
* ],
8894
* },
8995
* ],
9096
* ConfigurationSetName: "STRING_VALUE",

clients/client-sesv2/src/models/models_0.ts

+34
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,40 @@ export interface BulkEmailEntry {
880880
* @public
881881
*/
882882
ReplacementEmailContent?: ReplacementEmailContent;
883+
884+
/**
885+
* <p>The list of message headers associated with the <code>BulkEmailEntry</code> data type.</p>
886+
* <ul>
887+
* <li>
888+
* <p>Headers Not Present in <code>BulkEmailEntry</code>: If a header is specified in
889+
* <a href="https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_Template.html">
890+
* <code>Template</code>
891+
* </a> but not in <code>BulkEmailEntry</code>, the header
892+
* from <code>Template</code> will be added to the outgoing email.</p>
893+
* </li>
894+
* <li>
895+
* <p>Headers Present in <code>BulkEmailEntry</code>: If a header is specified in
896+
* <code>BulkEmailEntry</code>, it takes precedence over any header of the same name specified
897+
* in <a href="https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_Template.html">
898+
* <code>Template</code>
899+
* </a>:</p>
900+
* <ul>
901+
* <li>
902+
* <p>If the header is also defined within <code>Template</code>,
903+
* the value from <code>BulkEmailEntry</code> will replace the header's
904+
* value in the email.</p>
905+
* </li>
906+
* <li>
907+
* <p>If the header is not defined within <code>Template</code>,
908+
* it will simply be added to the email as specified in
909+
* <code>BulkEmailEntry</code>.</p>
910+
* </li>
911+
* </ul>
912+
* </li>
913+
* </ul>
914+
* @public
915+
*/
916+
ReplacementHeaders?: MessageHeader[];
883917
}
884918

885919
/**

codegen/sdk-codegen/aws-models/sesv2.json

+6
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,12 @@
460460
"traits": {
461461
"smithy.api#documentation": "<p>The <code>ReplacementEmailContent</code> associated with a\n <code>BulkEmailEntry</code>.</p>"
462462
}
463+
},
464+
"ReplacementHeaders": {
465+
"target": "com.amazonaws.sesv2#MessageHeaderList",
466+
"traits": {
467+
"smithy.api#documentation": "<p>The list of message headers associated with the <code>BulkEmailEntry</code> data type.</p>\n <ul>\n <li>\n <p>Headers Not Present in <code>BulkEmailEntry</code>: If a header is specified in\n <a href=\"https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_Template.html\">\n <code>Template</code>\n </a> but not in <code>BulkEmailEntry</code>, the header\n from <code>Template</code> will be added to the outgoing email.</p>\n </li>\n <li>\n <p>Headers Present in <code>BulkEmailEntry</code>: If a header is specified in\n <code>BulkEmailEntry</code>, it takes precedence over any header of the same name specified\n in <a href=\"https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_Template.html\">\n <code>Template</code>\n </a>:</p>\n <ul>\n <li>\n <p>If the header is also defined within <code>Template</code>,\n the value from <code>BulkEmailEntry</code> will replace the header's\n value in the email.</p>\n </li>\n <li>\n <p>If the header is not defined within <code>Template</code>,\n it will simply be added to the email as specified in\n <code>BulkEmailEntry</code>.</p>\n </li>\n </ul>\n </li>\n </ul>"
468+
}
463469
}
464470
}
465471
},

0 commit comments

Comments
 (0)