aws-cdk-lib.aws_pinpoint.CfnCampaign.CampaignInAppMessageProperty

interface CampaignInAppMessageProperty

LanguageType name
.NETAmazon.CDK.AWS.Pinpoint.CfnCampaign.CampaignInAppMessageProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awspinpoint#CfnCampaign_CampaignInAppMessageProperty
Javasoftware.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignInAppMessageProperty
Pythonaws_cdk.aws_pinpoint.CfnCampaign.CampaignInAppMessageProperty
TypeScript aws-cdk-lib » aws_pinpoint » CfnCampaign » CampaignInAppMessageProperty

Specifies the appearance of an in-app message, including the message type, the title and body text, text and background colors, and the configurations of buttons that appear in the message.

Example

// 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';

declare const customConfig: any;
const campaignInAppMessageProperty: pinpoint.CfnCampaign.CampaignInAppMessageProperty = {
  content: [{
    backgroundColor: 'backgroundColor',
    bodyConfig: {
      alignment: 'alignment',
      body: 'body',
      textColor: 'textColor',
    },
    headerConfig: {
      alignment: 'alignment',
      header: 'header',
      textColor: 'textColor',
    },
    imageUrl: 'imageUrl',
    primaryBtn: {
      android: {
        buttonAction: 'buttonAction',
        link: 'link',
      },
      defaultConfig: {
        backgroundColor: 'backgroundColor',
        borderRadius: 123,
        buttonAction: 'buttonAction',
        link: 'link',
        text: 'text',
        textColor: 'textColor',
      },
      ios: {
        buttonAction: 'buttonAction',
        link: 'link',
      },
      web: {
        buttonAction: 'buttonAction',
        link: 'link',
      },
    },
    secondaryBtn: {
      android: {
        buttonAction: 'buttonAction',
        link: 'link',
      },
      defaultConfig: {
        backgroundColor: 'backgroundColor',
        borderRadius: 123,
        buttonAction: 'buttonAction',
        link: 'link',
        text: 'text',
        textColor: 'textColor',
      },
      ios: {
        buttonAction: 'buttonAction',
        link: 'link',
      },
      web: {
        buttonAction: 'buttonAction',
        link: 'link',
      },
    },
  }],
  customConfig: customConfig,
  layout: 'layout',
};

Properties

NameTypeDescription
content?IResolvable | IResolvable | InAppMessageContentProperty[]An array that contains configurtion information about the in-app message for the campaign, including title and body text, text colors, background colors, image URLs, and button configurations.
customConfig?anyCustom data, in the form of key-value pairs, that is included in an in-app messaging payload.
layout?stringA string that describes how the in-app message will appear. You can specify one of the following:.

content?

Type: IResolvable | IResolvable | InAppMessageContentProperty[] (optional)

An array that contains configurtion information about the in-app message for the campaign, including title and body text, text colors, background colors, image URLs, and button configurations.


customConfig?

Type: any (optional)

Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.


layout?

Type: string (optional)

A string that describes how the in-app message will appear. 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.