AWS::Pinpoint::InAppTemplateCreates a message template that you can use to send in-app messages. A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
import { CfnInAppTemplate } from 'aws-cdk-lib/aws-pinpoint';Or use the module namespace:
import * as pinpoint from 'aws-cdk-lib/aws-pinpoint';
// pinpoint.CfnInAppTemplateConfiguration passed to the constructor as CfnInAppTemplateProps.
templateNameRequiredstringThe name of the in-app message template.
contentOptionalIResolvable | IResolvable | InAppMessageContentProperty[]An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
customConfigOptionalanyCustom data, in the form of key-value pairs, that is included in an in-app messaging payload.
layoutOptionalstringA string that determines the appearance of the in-app message. You can specify one of the following:. - `BOTTOM_BANNER` – a message that appears as a banner at the bottom of the page. - `TOP_BANNER` – a message that appears as a banner at the top of the page. - `OVERLAYS` – a message that covers entire screen. - `MOBILE_FEED` – a message that appears in a window in front of the page. - `MIDDLE_BANNER` – a message that appears as a banner in the middle of the page. - `CAROUSEL` – a scrollable layout of up to five unique messages.
tagsOptionalanyAn array of key-value pairs to apply to this resource. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
templateDescriptionOptionalstringAn optional description of the in-app template.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-pinpointAWS::Pinpoint::InAppTemplate