Skip to content
v2.275.0

S3DestinationOptions Struct ​

Options for writing logs to a S3 destination.

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 s3DestinationOptions: ec2.S3DestinationOptions = {
  fileFormat: ec2.FlowLogFileFormat.PLAIN_TEXT,
  hiveCompatiblePartitions: false,
  perHourPartition: false,
};

Properties ​

fileFormatoptionalFlowLogFileFormatfile_formatoptionalFlowLogFileFormatfileFormatoptionalFlowLogFileFormatFileFormatoptionalFlowLogFileFormatFileFormatoptionalFlowLogFileFormat= FlowLogFileFormat.PLAIN_TEXT#
The format for the flow log.
hiveCompatiblePartitionsoptionalbooleanhive_compatible_partitionsoptionalboolhiveCompatiblePartitionsoptionalBooleanHiveCompatiblePartitionsoptionalboolHiveCompatiblePartitionsoptional*bool= false#
Use Hive-compatible prefixes for flow logs stored in Amazon S3.
perHourPartitionoptionalbooleanper_hour_partitionoptionalboolperHourPartitionoptionalBooleanPerHourPartitionoptionalboolPerHourPartitionoptional*bool= false#
Partition the flow log per hour.