Class CfnInAppTemplateProps
Properties for defining a CfnInAppTemplate
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Pinpoint
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInAppTemplateProps : Object, ICfnInAppTemplateProps
Syntax (vb)
Public Class CfnInAppTemplateProps
Inherits Object
Implements ICfnInAppTemplateProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 customConfig;
var tags;
var cfnInAppTemplateProps = new CfnInAppTemplateProps {
TemplateName = "templateName",
// the properties below are optional
Content = new [] { new InAppMessageContentProperty {
BackgroundColor = "backgroundColor",
BodyConfig = new BodyConfigProperty {
Alignment = "alignment",
Body = "body",
TextColor = "textColor"
},
HeaderConfig = new HeaderConfigProperty {
Alignment = "alignment",
Header = "header",
TextColor = "textColor"
},
ImageUrl = "imageUrl",
PrimaryBtn = new ButtonConfigProperty {
Android = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
},
DefaultConfig = new DefaultButtonConfigurationProperty {
BackgroundColor = "backgroundColor",
BorderRadius = 123,
ButtonAction = "buttonAction",
Link = "link",
Text = "text",
TextColor = "textColor"
},
Ios = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
},
Web = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
}
},
SecondaryBtn = new ButtonConfigProperty {
Android = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
},
DefaultConfig = new DefaultButtonConfigurationProperty {
BackgroundColor = "backgroundColor",
BorderRadius = 123,
ButtonAction = "buttonAction",
Link = "link",
Text = "text",
TextColor = "textColor"
},
Ios = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
},
Web = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
}
}
} },
CustomConfig = customConfig,
Layout = "layout",
Tags = tags,
TemplateDescription = "templateDescription"
};
Synopsis
Constructors
CfnInAppTemplateProps() |
Properties
Content | 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 | Custom data, in the form of key-value pairs, that is included in an in-app messaging payload. |
Layout | A string that determines the appearance of the in-app message. You can specify one of the following:. |
Tags | An array of key-value pairs to apply to this resource. |
TemplateDescription | An optional description of the in-app template. |
TemplateName | The name of the in-app message template. |
Constructors
CfnInAppTemplateProps()
public CfnInAppTemplateProps()
Properties
Content
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.
public object Content { get; set; }
Property Value
System.Object
Remarks
CustomConfig
Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.
public object CustomConfig { get; set; }
Property Value
System.Object
Remarks
Layout
A string that determines the appearance of the in-app message. You can specify one of the following:.
public string Layout { get; set; }
Property Value
System.String
Remarks
Tags
An array of key-value pairs to apply to this resource.
public object Tags { get; set; }
Property Value
System.Object
Remarks
TemplateDescription
An optional description of the in-app template.
public string TemplateDescription { get; set; }
Property Value
System.String
Remarks
TemplateName
The name of the in-app message template.
public string TemplateName { get; set; }
Property Value
System.String