Skip to content

Commit

Permalink
feat(client-pinpoint): This release adds support for specifying email…
Browse files Browse the repository at this point in the history
… message headers for Email Templates, Campaigns, Journeys and Send Messages.
  • Loading branch information
awstools committed May 9, 2024
1 parent 98edd48 commit efa9f25
Show file tree
Hide file tree
Showing 16 changed files with 265 additions and 25 deletions.
24 changes: 24 additions & 0 deletions clients/client-pinpoint/src/commands/CreateCampaignCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ export interface CreateCampaignCommandOutput extends CreateCampaignResponse, __M
* EmailMessage: { // CampaignEmailMessage
* Body: "STRING_VALUE",
* FromAddress: "STRING_VALUE",
* Headers: [ // ListOfMessageHeader
* { // MessageHeader
* Name: "STRING_VALUE",
* Value: "STRING_VALUE",
* },
* ],
* HtmlBody: "STRING_VALUE",
* Title: "STRING_VALUE",
* },
Expand Down Expand Up @@ -293,6 +299,12 @@ export interface CreateCampaignCommandOutput extends CreateCampaignResponse, __M
* EmailMessage: {
* Body: "STRING_VALUE",
* FromAddress: "STRING_VALUE",
* Headers: [
* {
* Name: "STRING_VALUE",
* Value: "STRING_VALUE",
* },
* ],
* HtmlBody: "STRING_VALUE",
* Title: "STRING_VALUE",
* },
Expand Down Expand Up @@ -479,6 +491,12 @@ export interface CreateCampaignCommandOutput extends CreateCampaignResponse, __M
* // EmailMessage: { // CampaignEmailMessage
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [ // ListOfMessageHeader
* // { // MessageHeader
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -675,6 +693,12 @@ export interface CreateCampaignCommandOutput extends CreateCampaignResponse, __M
* // EmailMessage: {
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [
* // {
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export interface CreateEmailTemplateCommandOutput extends CreateEmailTemplateRes
* HtmlPart: "STRING_VALUE",
* RecommenderId: "STRING_VALUE",
* Subject: "STRING_VALUE",
* Headers: [ // ListOfMessageHeader
* { // MessageHeader
* Name: "STRING_VALUE",
* Value: "STRING_VALUE",
* },
* ],
* tags: { // MapOf__string
* "<keys>": "STRING_VALUE",
* },
Expand Down
12 changes: 12 additions & 0 deletions clients/client-pinpoint/src/commands/DeleteCampaignCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ export interface DeleteCampaignCommandOutput extends DeleteCampaignResponse, __M
* // EmailMessage: { // CampaignEmailMessage
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [ // ListOfMessageHeader
* // { // MessageHeader
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -310,6 +316,12 @@ export interface DeleteCampaignCommandOutput extends DeleteCampaignResponse, __M
* // EmailMessage: {
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [
* // {
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down
12 changes: 12 additions & 0 deletions clients/client-pinpoint/src/commands/GetCampaignCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ export interface GetCampaignCommandOutput extends GetCampaignResponse, __Metadat
* // EmailMessage: { // CampaignEmailMessage
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [ // ListOfMessageHeader
* // { // MessageHeader
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -310,6 +316,12 @@ export interface GetCampaignCommandOutput extends GetCampaignResponse, __Metadat
* // EmailMessage: {
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [
* // {
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down
15 changes: 13 additions & 2 deletions clients/client-pinpoint/src/commands/GetCampaignVersionCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { GetCampaignVersionRequest } from "../models/models_0";
import { GetCampaignVersionResponse } from "../models/models_1";
import { GetCampaignVersionRequest, GetCampaignVersionResponse } from "../models/models_1";
import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
import { de_GetCampaignVersionCommand, se_GetCampaignVersionCommand } from "../protocols/Aws_restJson1";

Expand Down Expand Up @@ -116,6 +115,12 @@ export interface GetCampaignVersionCommandOutput extends GetCampaignVersionRespo
* // EmailMessage: { // CampaignEmailMessage
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [ // ListOfMessageHeader
* // { // MessageHeader
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -312,6 +317,12 @@ export interface GetCampaignVersionCommandOutput extends GetCampaignVersionRespo
* // EmailMessage: {
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [
* // {
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down
12 changes: 12 additions & 0 deletions clients/client-pinpoint/src/commands/GetCampaignVersionsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ export interface GetCampaignVersionsCommandOutput extends GetCampaignVersionsRes
* // EmailMessage: { // CampaignEmailMessage
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [ // ListOfMessageHeader
* // { // MessageHeader
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -314,6 +320,12 @@ export interface GetCampaignVersionsCommandOutput extends GetCampaignVersionsRes
* // EmailMessage: {
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [
* // {
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down
12 changes: 12 additions & 0 deletions clients/client-pinpoint/src/commands/GetCampaignsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ export interface GetCampaignsCommandOutput extends GetCampaignsResponse, __Metad
* // EmailMessage: { // CampaignEmailMessage
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [ // ListOfMessageHeader
* // { // MessageHeader
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -313,6 +319,12 @@ export interface GetCampaignsCommandOutput extends GetCampaignsResponse, __Metad
* // EmailMessage: {
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [
* // {
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ export interface GetEmailTemplateCommandOutput extends GetEmailTemplateResponse,
* // LastModifiedDate: "STRING_VALUE", // required
* // RecommenderId: "STRING_VALUE",
* // Subject: "STRING_VALUE",
* // Headers: [ // ListOfMessageHeader
* // { // MessageHeader
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // tags: { // MapOf__string
* // "<keys>": "STRING_VALUE",
* // },
Expand Down
6 changes: 6 additions & 0 deletions clients/client-pinpoint/src/commands/SendMessagesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ export interface SendMessagesCommandOutput extends SendMessagesResponse, __Metad
* Charset: "STRING_VALUE",
* Data: "STRING_VALUE",
* },
* Headers: [ // ListOfMessageHeader
* { // MessageHeader
* Name: "STRING_VALUE",
* Value: "STRING_VALUE",
* },
* ],
* },
* Substitutions: "<MapOfListOf__string>",
* },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ export interface SendUsersMessagesCommandOutput extends SendUsersMessagesRespons
* Charset: "STRING_VALUE",
* Data: "STRING_VALUE",
* },
* Headers: [ // ListOfMessageHeader
* { // MessageHeader
* Name: "STRING_VALUE",
* Value: "STRING_VALUE",
* },
* ],
* },
* Substitutions: "<MapOfListOf__string>",
* },
Expand Down
24 changes: 24 additions & 0 deletions clients/client-pinpoint/src/commands/UpdateCampaignCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ export interface UpdateCampaignCommandOutput extends UpdateCampaignResponse, __M
* EmailMessage: { // CampaignEmailMessage
* Body: "STRING_VALUE",
* FromAddress: "STRING_VALUE",
* Headers: [ // ListOfMessageHeader
* { // MessageHeader
* Name: "STRING_VALUE",
* Value: "STRING_VALUE",
* },
* ],
* HtmlBody: "STRING_VALUE",
* Title: "STRING_VALUE",
* },
Expand Down Expand Up @@ -294,6 +300,12 @@ export interface UpdateCampaignCommandOutput extends UpdateCampaignResponse, __M
* EmailMessage: {
* Body: "STRING_VALUE",
* FromAddress: "STRING_VALUE",
* Headers: [
* {
* Name: "STRING_VALUE",
* Value: "STRING_VALUE",
* },
* ],
* HtmlBody: "STRING_VALUE",
* Title: "STRING_VALUE",
* },
Expand Down Expand Up @@ -480,6 +492,12 @@ export interface UpdateCampaignCommandOutput extends UpdateCampaignResponse, __M
* // EmailMessage: { // CampaignEmailMessage
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [ // ListOfMessageHeader
* // { // MessageHeader
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down Expand Up @@ -676,6 +694,12 @@ export interface UpdateCampaignCommandOutput extends UpdateCampaignResponse, __M
* // EmailMessage: {
* // Body: "STRING_VALUE",
* // FromAddress: "STRING_VALUE",
* // Headers: [
* // {
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // },
* // ],
* // HtmlBody: "STRING_VALUE",
* // Title: "STRING_VALUE",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ export interface UpdateEmailTemplateCommandOutput extends UpdateEmailTemplateRes
* HtmlPart: "STRING_VALUE",
* RecommenderId: "STRING_VALUE",
* Subject: "STRING_VALUE",
* Headers: [ // ListOfMessageHeader
* { // MessageHeader
* Name: "STRING_VALUE",
* Value: "STRING_VALUE",
* },
* ],
* tags: { // MapOf__string
* "<keys>": "STRING_VALUE",
* },
Expand Down
Loading

0 comments on commit efa9f25

Please sign in to comment.