Skip to content
v2.278.0

S3DestinationPropertiesProperty Struct ​

The properties that are applied when Amazon S3 is used as a destination.

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 s3DestinationPropertiesProperty: appflow.CfnFlow.S3DestinationPropertiesProperty = {
  bucketName: 'bucketName',

  // the properties below are optional
  bucketPrefix: 'bucketPrefix',
  s3OutputFormatConfig: {
    aggregationConfig: {
      aggregationType: 'aggregationType',
      targetFileSize: 123,
    },
    fileType: 'fileType',
    prefixConfig: {
      pathPrefixHierarchy: ['pathPrefixHierarchy'],
      prefixFormat: 'prefixFormat',
      prefixType: 'prefixType',
    },
    preserveSourceDataTyping: false,
  },
};
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_destination_properties_property = appflow.CfnFlow.S3DestinationPropertiesProperty(
    bucket_name="bucketName",

    # the properties below are optional
    bucket_prefix="bucketPrefix",
    s3_output_format_config=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
// 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.*;

S3DestinationPropertiesProperty s3DestinationPropertiesProperty = S3DestinationPropertiesProperty.builder()
        .bucketName("bucketName")

        // the properties below are optional
        .bucketPrefix("bucketPrefix")
        .s3OutputFormatConfig(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())
        .build();
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 s3DestinationPropertiesProperty = new S3DestinationPropertiesProperty {
    BucketName = "bucketName",

    // the properties below are optional
    BucketPrefix = "bucketPrefix",
    S3OutputFormatConfig = new S3OutputFormatConfigProperty {
        AggregationConfig = new AggregationConfigProperty {
            AggregationType = "aggregationType",
            TargetFileSize = 123
        },
        FileType = "fileType",
        PrefixConfig = new PrefixConfigProperty {
            PathPrefixHierarchy = new [] { "pathPrefixHierarchy" },
            PrefixFormat = "prefixFormat",
            PrefixType = "prefixType"
        },
        PreserveSourceDataTyping = false
    }
};
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"

s3DestinationPropertiesProperty := &S3DestinationPropertiesProperty{
	BucketName: jsii.String("bucketName"),

	// the properties below are optional
	BucketPrefix: jsii.String("bucketPrefix"),
	S3OutputFormatConfig: &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 ​

bucketNamestringbucket_namestrbucketNameStringBucketNamestringBucketName*string required #
The Amazon S3 bucket name in which Amazon AppFlow places the transferred data.
bucketPrefixoptionalstringbucket_prefixoptionalstrbucketPrefixoptionalStringBucketPrefixoptionalstringBucketPrefixoptional*string #
The object key for the destination bucket in which Amazon AppFlow places the files.
s3OutputFormatConfigoptionalIResolvable | CfnFlow.S3OutputFormatConfigPropertys3_output_format_configoptionaltyping.Union[IResolvable, S3OutputFormatConfigProperty]s3OutputFormatConfigoptionalIResolvableS3OutputFormatConfigoptionalIResolvableS3OutputFormatConfigoptionalinterface{} #
The configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination.