Class CfnCampaign.InAppMessageContentProperty
Specifies the configuration and contents of an in-app message.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Pinpoint
Assembly: Amazon.CDK.AWS.Pinpoint.dll
Syntax (csharp)
public class InAppMessageContentProperty : Object, CfnCampaign.IInAppMessageContentProperty
Syntax (vb)
Public Class InAppMessageContentProperty
Inherits Object
Implements CfnCampaign.IInAppMessageContentProperty
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 inAppMessageContentProperty = new InAppMessageContentProperty {
BackgroundColor = "backgroundColor",
BodyConfig = new InAppMessageBodyConfigProperty {
Alignment = "alignment",
Body = "body",
TextColor = "textColor"
},
HeaderConfig = new InAppMessageHeaderConfigProperty {
Alignment = "alignment",
Header = "header",
TextColor = "textColor"
},
ImageUrl = "imageUrl",
PrimaryBtn = new InAppMessageButtonProperty {
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 InAppMessageButtonProperty {
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"
}
}
};
Synopsis
Constructors
InAppMessageContentProperty() |
Properties
BackgroundColor | The background color for an in-app message banner, expressed as a hex color code (such as #000000 for black). |
BodyConfig | Specifies the configuration of main body text in an in-app message template. |
HeaderConfig | Specifies the configuration and content of the header or title text of the in-app message. |
ImageUrl | The URL of the image that appears on an in-app message banner. |
PrimaryBtn | An object that contains configuration information about the primary button in an in-app message. |
SecondaryBtn | An object that contains configuration information about the secondary button in an in-app message. |
Constructors
InAppMessageContentProperty()
public InAppMessageContentProperty()
Properties
BackgroundColor
The background color for an in-app message banner, expressed as a hex color code (such as #000000 for black).
public string BackgroundColor { get; set; }
Property Value
System.String
Remarks
BodyConfig
Specifies the configuration of main body text in an in-app message template.
public object BodyConfig { get; set; }
Property Value
System.Object
Remarks
HeaderConfig
Specifies the configuration and content of the header or title text of the in-app message.
public object HeaderConfig { get; set; }
Property Value
System.Object
Remarks
ImageUrl
The URL of the image that appears on an in-app message banner.
public string ImageUrl { get; set; }
Property Value
System.String
Remarks
PrimaryBtn
An object that contains configuration information about the primary button in an in-app message.
public object PrimaryBtn { get; set; }
Property Value
System.Object
Remarks
SecondaryBtn
An object that contains configuration information about the secondary button in an in-app message.
public object SecondaryBtn { get; set; }
Property Value
System.Object