# S3OutputFormatConfigProperty

The configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appflow as appflow } from 'aws-cdk-lib';
const s3OutputFormatConfigProperty: appflow.CfnFlow.S3OutputFormatConfigProperty = {
  aggregationConfig: {
    aggregationType: 'aggregationType',
    targetFileSize: 123,
  },
  fileType: 'fileType',
  prefixConfig: {
    pathPrefixHierarchy: ['pathPrefixHierarchy'],
    prefixFormat: 'prefixFormat',
    prefixType: 'prefixType',
  },
  preserveSourceDataTyping: false,
};
```

## Properties

- `aggregationConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlow.AggregationConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appflow.CfnFlow.AggregationConfigProperty.html) — The aggregation settings that you can use to customize the output format of your flow data.

- `fileType`: string — Indicates the file type that Amazon AppFlow places in the Amazon S3 bucket.

- `prefixConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlow.PrefixConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appflow.CfnFlow.PrefixConfigProperty.html) — Determines the prefix that Amazon AppFlow applies to the folder name in the Amazon S3 bucket.

  You can name folders according to the flow frequency and date.

- `preserveSourceDataTyping`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — If your file output format is Parquet, use this parameter to set whether Amazon AppFlow preserves the data types in your source data when it writes the output to Amazon S3.

  - `true` : Amazon AppFlow preserves the data types when it writes to Amazon S3. For example, an integer or `1` in your source data is still an integer in your output.
  - `false` : Amazon AppFlow converts all of the source data into strings when it writes to Amazon S3. For example, an integer of `1` in your source data becomes the string `"1"` in the output.
