Skip to content
v2.278.0

CampaignEmailMessageProperty Struct ​

Specifies the content and "From" address for an email message that's sent to recipients of a campaign.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pinpoint as pinpoint } from 'aws-cdk-lib';
const campaignEmailMessageProperty: pinpoint.CfnCampaign.CampaignEmailMessageProperty = {
  body: 'body',
  fromAddress: 'fromAddress',
  htmlBody: 'htmlBody',
  title: 'title',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pinpoint as pinpoint

campaign_email_message_property = pinpoint.CfnCampaign.CampaignEmailMessageProperty(
    body="body",
    from_address="fromAddress",
    html_body="htmlBody",
    title="title"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pinpoint.*;

CampaignEmailMessageProperty campaignEmailMessageProperty = CampaignEmailMessageProperty.builder()
        .body("body")
        .fromAddress("fromAddress")
        .htmlBody("htmlBody")
        .title("title")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pinpoint;

var campaignEmailMessageProperty = new CampaignEmailMessageProperty {
    Body = "body",
    FromAddress = "fromAddress",
    HtmlBody = "htmlBody",
    Title = "title"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

campaignEmailMessageProperty := &CampaignEmailMessageProperty{
	Body: jsii.String("body"),
	FromAddress: jsii.String("fromAddress"),
	HtmlBody: jsii.String("htmlBody"),
	Title: jsii.String("title"),
}

Properties ​

bodyoptionalstringbodyoptionalstrbodyoptionalStringBodyoptionalstringBodyoptional*string #
The body of the email for recipients whose email clients don't render HTML content.
fromAddressoptionalstringfrom_addressoptionalstrfromAddressoptionalStringFromAddressoptionalstringFromAddressoptional*string #
The verified email address to send the email from.

The default address is the FromAddress specified for the email channel for the application.

htmlBodyoptionalstringhtml_bodyoptionalstrhtmlBodyoptionalStringHtmlBodyoptionalstringHtmlBodyoptional*string #
The body of the email, in HTML format, for recipients whose email clients render HTML content.
titleoptionalstringtitleoptionalstrtitleoptionalStringTitleoptionalstringTitleoptional*string #
The subject line, or title, of the email.