Interface ICfnInAppTemplateProps
Properties for defining a CfnInAppTemplate
.
Namespace: Amazon.CDK.AWS.Pinpoint
Assembly: Amazon.CDK.AWS.Pinpoint.dll
Syntax (csharp)
public interface ICfnInAppTemplateProps
Syntax (vb)
Public Interface 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
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. |
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.
virtual object Content { get; }
Property Value
System.Object
Remarks
CustomConfig
Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.
virtual object CustomConfig { get; }
Property Value
System.Object
Remarks
Layout
A string that determines the appearance of the in-app message. You can specify one of the following:.
virtual string Layout { get; }
Property Value
System.String
Remarks
Tags
An array of key-value pairs to apply to this resource.
virtual object Tags { get; }
Property Value
System.Object
Remarks
For more information, see Tag .
TemplateDescription
An optional description of the in-app template.
virtual string TemplateDescription { get; }
Property Value
System.String
Remarks
TemplateName
The name of the in-app message template.
string TemplateName { get; }
Property Value
System.String