# S3OutputFormatConfigProperty

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

- 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_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,
};
```

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_appflow as appflow

s3_output_format_config_property = appflow.CfnFlow.S3OutputFormatConfigProperty(
    aggregation_config=appflow.CfnFlow.AggregationConfigProperty(
        aggregation_type="aggregationType",
        target_file_size=123
    ),
    file_type="fileType",
    prefix_config=appflow.CfnFlow.PrefixConfigProperty(
        path_prefix_hierarchy=["pathPrefixHierarchy"],
        prefix_format="prefixFormat",
        prefix_type="prefixType"
    ),
    preserve_source_data_typing=False
)
```

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.appflow.*;

S3OutputFormatConfigProperty s3OutputFormatConfigProperty = S3OutputFormatConfigProperty.builder()
        .aggregationConfig(AggregationConfigProperty.builder()
                .aggregationType("aggregationType")
                .targetFileSize(123)
                .build())
        .fileType("fileType")
        .prefixConfig(PrefixConfigProperty.builder()
                .pathPrefixHierarchy(List.of("pathPrefixHierarchy"))
                .prefixFormat("prefixFormat")
                .prefixType("prefixType")
                .build())
        .preserveSourceDataTyping(false)
        .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.AppFlow;

var s3OutputFormatConfigProperty = new S3OutputFormatConfigProperty {
    AggregationConfig = new AggregationConfigProperty {
        AggregationType = "aggregationType",
        TargetFileSize = 123
    },
    FileType = "fileType",
    PrefixConfig = new PrefixConfigProperty {
        PathPrefixHierarchy = new [] { "pathPrefixHierarchy" },
        PrefixFormat = "prefixFormat",
        PrefixType = "prefixType"
    },
    PreserveSourceDataTyping = false
};
```

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"

s3OutputFormatConfigProperty := &S3OutputFormatConfigProperty{
	AggregationConfig: &AggregationConfigProperty{
		AggregationType: jsii.String("aggregationType"),
		TargetFileSize: jsii.Number(123),
	},
	FileType: jsii.String("fileType"),
	PrefixConfig: &PrefixConfigProperty{
		PathPrefixHierarchy: []*string{
			jsii.String("pathPrefixHierarchy"),
		},
		PrefixFormat: jsii.String("prefixFormat"),
		PrefixType: jsii.String("prefixType"),
	},
	PreserveSourceDataTyping: jsii.Boolean(false),
}
```

## Properties

- `aggregationConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlow.AggregationConfigProperty](https://docs.aws.amazon.com/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](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlow.PrefixConfigProperty](https://docs.aws.amazon.com/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](https://docs.aws.amazon.com/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.
