interface S3DestinationOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.S3DestinationOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#S3DestinationOptions |
Java | software.amazon.awscdk.services.ec2.S3DestinationOptions |
Python | aws_cdk.aws_ec2.S3DestinationOptions |
TypeScript (source) | aws-cdk-lib » aws_ec2 » S3DestinationOptions |
Options for writing logs to a S3 destination.
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 s3DestinationOptions: ec2.S3DestinationOptions = {
fileFormat: ec2.FlowLogFileFormat.PLAIN_TEXT,
hiveCompatiblePartitions: false,
perHourPartition: false,
};
Properties
Name | Type | Description |
---|---|---|
file | Flow | The format for the flow log. |
hive | boolean | Use Hive-compatible prefixes for flow logs stored in Amazon S3. |
per | boolean | Partition the flow log per hour. |
fileFormat?
Type:
Flow
(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.