Skip to content
v2.278.0

BodyConfigProperty Struct ​

Specifies the configuration of the 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 bodyConfigProperty: pinpoint.CfnInAppTemplate.BodyConfigProperty = {
  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

body_config_property = pinpoint.CfnInAppTemplate.BodyConfigProperty(
    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.*;

BodyConfigProperty bodyConfigProperty = BodyConfigProperty.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 bodyConfigProperty = new BodyConfigProperty {
    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"

bodyConfigProperty := &BodyConfigProperty{
	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 hex color code (such as #000000 for black).