interface CfnInAppTemplateProps
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.Pinpoint.CfnInAppTemplateProps | 
  Java | software.amazon.awscdk.services.pinpoint.CfnInAppTemplateProps | 
  Python | aws_cdk.aws_pinpoint.CfnInAppTemplateProps | 
  TypeScript  | @aws-cdk/aws-pinpoint » CfnInAppTemplateProps | 
Properties for defining a CfnInAppTemplate.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as pinpoint from '@aws-cdk/aws-pinpoint';
declare const customConfig: any;
declare const tags: any;
const cfnInAppTemplateProps: pinpoint.CfnInAppTemplateProps = {
  templateName: 'templateName',
  // the properties below are optional
  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',
  tags: tags,
  templateDescription: 'templateDescription',
};
Properties
| Name | Type | Description | 
|---|---|---|
| template | string | The name of the in-app message template. | 
| content? | IResolvable | IResolvable | In[] | 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. | 
| custom | any | Custom data, in the form of key-value pairs, that is included in an in-app messaging payload. | 
| layout? | string | A string that determines the appearance of the in-app message. You can specify one of the following:. | 
| tags? | any | An array of key-value pairs to apply to this resource. | 
| template | string | An optional description of the in-app template. | 
templateName
Type:
string
The name of the in-app message template.
content?
Type:
IResolvable | IResolvable | In[]
(optional)
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.
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 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.
tags?
Type:
any
(optional)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
templateDescription?
Type:
string
(optional)
An optional description of the in-app template.

 .NET
 Java
 Python
 TypeScript