Skip to content
v2.275.0

InAppMessageContentProperty Struct ​

Specifies the configuration of an in-app message, including its header, body, buttons, colors, and images.

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 inAppMessageContentProperty: pinpoint.CfnInAppTemplate.InAppMessageContentProperty = {
  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',
    },
  },
};

Properties ​

backgroundColoroptionalstringbackground_coloroptionalstrbackgroundColoroptionalStringBackgroundColoroptionalstringBackgroundColoroptional*string#
The background color for an in-app message banner, expressed as a hex color code (such as #000000 for black).
bodyConfigoptionalIResolvable | CfnInAppTemplate.BodyConfigPropertybody_configoptionaltyping.Union[IResolvable, BodyConfigProperty]bodyConfigoptionalIResolvableBodyConfigoptionalIResolvableBodyConfigoptionalinterface{}#
An object that contains configuration information about the header or title text of the in-app message.
headerConfigoptionalIResolvable | CfnInAppTemplate.HeaderConfigPropertyheader_configoptionaltyping.Union[IResolvable, HeaderConfigProperty]headerConfigoptionalIResolvableHeaderConfigoptionalIResolvableHeaderConfigoptionalinterface{}#
An object that contains configuration information about the header or title text of the in-app message.
imageUrloptionalstringimage_urloptionalstrimageUrloptionalStringImageUrloptionalstringImageUrloptional*string#
The URL of the image that appears on an in-app message banner.
primaryBtnoptionalIResolvable | CfnInAppTemplate.ButtonConfigPropertyprimary_btnoptionaltyping.Union[IResolvable, ButtonConfigProperty]primaryBtnoptionalIResolvablePrimaryBtnoptionalIResolvablePrimaryBtnoptionalinterface{}#
An object that contains configuration information about the primary button in an in-app message.
secondaryBtnoptionalIResolvable | CfnInAppTemplate.ButtonConfigPropertysecondary_btnoptionaltyping.Union[IResolvable, ButtonConfigProperty]secondaryBtnoptionalIResolvableSecondaryBtnoptionalIResolvableSecondaryBtnoptionalinterface{}#
An object that contains configuration information about the secondary button in an in-app message.