Interface CfnInAppTemplatePropsMixin.IInAppMessageContentProperty
Specifies the configuration of an in-app message, including its header, body, buttons, colors, and images.
Namespace: Amazon.CDK.Mixins.Preview.AWS.Pinpoint.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public interface CfnInAppTemplatePropsMixin.IInAppMessageContentProperty
Syntax (vb)
Public Interface CfnInAppTemplatePropsMixin.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.Mixins.Preview.AWS.Pinpoint.Mixins;
var inAppMessageContentProperty = 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"
}
}
};
Synopsis
Properties
| BackgroundColor | The background color for an in-app message banner, expressed as a hex color code (such as #000000 for black). |
| BodyConfig | An object that contains configuration information about the header or title text of the in-app message. |
| HeaderConfig | An object that contains configuration information about 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. |
Properties
BackgroundColor
The background color for an in-app message banner, expressed as a hex color code (such as #000000 for black).
string? BackgroundColor { get; }
Property Value
Remarks
BodyConfig
An object that contains configuration information about the header or title text of the in-app message.
object? BodyConfig { get; }
Property Value
Remarks
HeaderConfig
An object that contains configuration information about the header or title text of the in-app message.
object? HeaderConfig { get; }
Property Value
Remarks
ImageUrl
The URL of the image that appears on an in-app message banner.
string? ImageUrl { get; }
Property Value
Remarks
PrimaryBtn
An object that contains configuration information about the primary button in an in-app message.
object? PrimaryBtn { get; }
Property Value
Remarks
SecondaryBtn
An object that contains configuration information about the secondary button in an in-app message.
object? SecondaryBtn { get; }