# InAppMessageBodyConfigProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `alignment`: string — The text alignment of the main body text of the message.

  Acceptable values: `LEFT` , `CENTER` , `RIGHT` .

- `body`: string — The main body text of the message.

- `textColor`: string — The color of the body text, expressed as a string consisting of a hex color code (such as "#000000" for black).
