aws-cdk-lib.aws_ec2.DestinationOptions

interface DestinationOptions

LanguageType name
.NETAmazon.CDK.AWS.EC2.DestinationOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#DestinationOptions
Javasoftware.amazon.awscdk.services.ec2.DestinationOptions
Pythonaws_cdk.aws_ec2.DestinationOptions
TypeScript (source)aws-cdk-lib » aws_ec2 » DestinationOptions

Options for writing logs to a destination.

TODO: there are other destination options, currently they are only for s3 destinations (not sure if that will change)

Example

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

Properties

NameTypeDescription
fileFormat?FlowLogFileFormatThe format for the flow log.
hiveCompatiblePartitions?booleanUse Hive-compatible prefixes for flow logs stored in Amazon S3.
perHourPartition?booleanPartition the flow log per hour.

fileFormat?

Type: FlowLogFileFormat (optional, default: FlowLogFileFormat.PLAIN_TEXT)

The format for the flow log.


hiveCompatiblePartitions?

Type: boolean (optional, default: false)

Use Hive-compatible prefixes for flow logs stored in Amazon S3.


perHourPartition?

Type: boolean (optional, default: false)

Partition the flow log per hour.