# MultipartBodyOptions

Options when creating `MultipartBody`.

- Source: [`aws-ec2/lib/user-data.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ec2/lib/user-data.ts#L308)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const multipartBodyOptions: ec2.MultipartBodyOptions = {
  contentType: 'contentType',

  // the properties below are optional
  body: 'body',
  transferEncoding: 'transferEncoding',
};
```

## Properties

- `body`: string — The body of message.

  **Default:** undefined - body will not be added to part

- `contentType`: string (required) — `Content-Type` header of this part.

  Some examples of content types:
  * `text/x-shellscript; charset="utf-8"` (shell script)
  * `text/cloud-boothook; charset="utf-8"` (shell script executed during boot phase)

  For Linux shell scripts use `text/x-shellscript`.

- `transferEncoding`: string — `Content-Transfer-Encoding` header specifying part encoding.

  **Default:** undefined - body is not encoded
