Skip to content

Commit

Permalink
feat(client-sesv2): Adds support for specifying replacement headers p…
Browse files Browse the repository at this point in the history
…er BulkEmailEntry in SendBulkEmail in SESv2.
  • Loading branch information
awstools committed May 3, 2024
1 parent 89b45ab commit 9dac593
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clients/client-sesv2/src/commands/SendBulkEmailCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ export interface SendBulkEmailCommandOutput extends SendBulkEmailResponse, __Met
* ReplacementTemplateData: "STRING_VALUE",
* },
* },
* ReplacementHeaders: [
* {
* Name: "STRING_VALUE", // required
* Value: "STRING_VALUE", // required
* },
* ],
* },
* ],
* ConfigurationSetName: "STRING_VALUE",
Expand Down
34 changes: 34 additions & 0 deletions clients/client-sesv2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,40 @@ export interface BulkEmailEntry {
* @public
*/
ReplacementEmailContent?: ReplacementEmailContent;

/**
* <p>The list of message headers associated with the <code>BulkEmailEntry</code> data type.</p>
* <ul>
* <li>
* <p>Headers Not Present in <code>BulkEmailEntry</code>: If a header is specified in
* <a href="https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_Template.html">
* <code>Template</code>
* </a> but not in <code>BulkEmailEntry</code>, the header
* from <code>Template</code> will be added to the outgoing email.</p>
* </li>
* <li>
* <p>Headers Present in <code>BulkEmailEntry</code>: If a header is specified in
* <code>BulkEmailEntry</code>, it takes precedence over any header of the same name specified
* in <a href="https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_Template.html">
* <code>Template</code>
* </a>:</p>
* <ul>
* <li>
* <p>If the header is also defined within <code>Template</code>,
* the value from <code>BulkEmailEntry</code> will replace the header's
* value in the email.</p>
* </li>
* <li>
* <p>If the header is not defined within <code>Template</code>,
* it will simply be added to the email as specified in
* <code>BulkEmailEntry</code>.</p>
* </li>
* </ul>
* </li>
* </ul>
* @public
*/
ReplacementHeaders?: MessageHeader[];
}

/**
Expand Down
6 changes: 6 additions & 0 deletions codegen/sdk-codegen/aws-models/sesv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@
"traits": {
"smithy.api#documentation": "<p>The <code>ReplacementEmailContent</code> associated with a\n <code>BulkEmailEntry</code>.</p>"
}
},
"ReplacementHeaders": {
"target": "com.amazonaws.sesv2#MessageHeaderList",
"traits": {
"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>"
}
}
}
},
Expand Down

0 comments on commit 9dac593

Please sign in to comment.