# UpsolverS3OutputFormatConfigProperty

The configuration that determines how Amazon AppFlow formats the flow output data when Upsolver 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 upsolverS3OutputFormatConfigProperty: appflow.CfnFlow.UpsolverS3OutputFormatConfigProperty = {
  prefixConfig: {
    pathPrefixHierarchy: ['pathPrefixHierarchy'],
    prefixFormat: 'prefixFormat',
    prefixType: 'prefixType',
  },

  // the properties below are optional
  aggregationConfig: {
    aggregationType: 'aggregationType',
    targetFileSize: 123,
  },
  fileType: 'fileType',
};
```

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

upsolver_s3_output_format_config_property = appflow.CfnFlow.UpsolverS3OutputFormatConfigProperty(
    prefix_config=appflow.CfnFlow.PrefixConfigProperty(
        path_prefix_hierarchy=["pathPrefixHierarchy"],
        prefix_format="prefixFormat",
        prefix_type="prefixType"
    ),

    # the properties below are optional
    aggregation_config=appflow.CfnFlow.AggregationConfigProperty(
        aggregation_type="aggregationType",
        target_file_size=123
    ),
    file_type="fileType"
)
```

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

UpsolverS3OutputFormatConfigProperty upsolverS3OutputFormatConfigProperty = UpsolverS3OutputFormatConfigProperty.builder()
        .prefixConfig(PrefixConfigProperty.builder()
                .pathPrefixHierarchy(List.of("pathPrefixHierarchy"))
                .prefixFormat("prefixFormat")
                .prefixType("prefixType")
                .build())

        // the properties below are optional
        .aggregationConfig(AggregationConfigProperty.builder()
                .aggregationType("aggregationType")
                .targetFileSize(123)
                .build())
        .fileType("fileType")
        .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 upsolverS3OutputFormatConfigProperty = new UpsolverS3OutputFormatConfigProperty {
    PrefixConfig = new PrefixConfigProperty {
        PathPrefixHierarchy = new [] { "pathPrefixHierarchy" },
        PrefixFormat = "prefixFormat",
        PrefixType = "prefixType"
    },

    // the properties below are optional
    AggregationConfig = new AggregationConfigProperty {
        AggregationType = "aggregationType",
        TargetFileSize = 123
    },
    FileType = "fileType"
};
```

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"

upsolverS3OutputFormatConfigProperty := &UpsolverS3OutputFormatConfigProperty{
	PrefixConfig: &PrefixConfigProperty{
		PathPrefixHierarchy: []*string{
			jsii.String("pathPrefixHierarchy"),
		},
		PrefixFormat: jsii.String("prefixFormat"),
		PrefixType: jsii.String("prefixType"),
	},

	// the properties below are optional
	AggregationConfig: &AggregationConfigProperty{
		AggregationType: jsii.String("aggregationType"),
		TargetFileSize: jsii.Number(123),
	},
	FileType: jsii.String("fileType"),
}
```

## 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 Upsolver 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) (required) — Specifies elements that Amazon AppFlow includes in the file and folder names in the flow destination.
