# BodyConfigProperty

Struct · External

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

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

BodyConfigProperty bodyConfigProperty = BodyConfigProperty.builder()
        .alignment("alignment")
        .body("body")
        .textColor("textColor")
        .build();
```

C#:

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

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

- `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 hex color code (such as #000000 for black).
