Skip to content
v2.278.0

InAppMessageBodyConfigProperty Struct ​

Specifies the configuration of main body text of the in-app message.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pinpoint as pinpoint } from 'aws-cdk-lib';
const inAppMessageBodyConfigProperty: pinpoint.CfnCampaign.InAppMessageBodyConfigProperty = {
  alignment: 'alignment',
  body: 'body',
  textColor: 'textColor',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pinpoint as pinpoint

in_app_message_body_config_property = pinpoint.CfnCampaign.InAppMessageBodyConfigProperty(
    alignment="alignment",
    body="body",
    text_color="textColor"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pinpoint.*;

InAppMessageBodyConfigProperty inAppMessageBodyConfigProperty = InAppMessageBodyConfigProperty.builder()
        .alignment("alignment")
        .body("body")
        .textColor("textColor")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 inAppMessageBodyConfigProperty = new InAppMessageBodyConfigProperty {
    Alignment = "alignment",
    Body = "body",
    TextColor = "textColor"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

inAppMessageBodyConfigProperty := &InAppMessageBodyConfigProperty{
	Alignment: jsii.String("alignment"),
	Body: jsii.String("body"),
	TextColor: jsii.String("textColor"),
}

Properties ​

alignmentoptionalstringalignmentoptionalstralignmentoptionalStringAlignmentoptionalstringAlignmentoptional*string #
The text alignment of the main body text of the message.

Acceptable values: LEFT , CENTER , RIGHT .

bodyoptionalstringbodyoptionalstrbodyoptionalStringBodyoptionalstringBodyoptional*string #
The main body text of the message.
textColoroptionalstringtext_coloroptionalstrtextColoroptionalStringTextColoroptionalstringTextColoroptional*string #
The color of the body text, expressed as a string consisting of a hex color code (such as "#000000" for black).