DestinationOptions
- class aws_cdk.aws_ec2.DestinationOptions(*, file_format=None, hive_compatible_partitions=None, per_hour_partition=None)
Bases:
S3DestinationOptions
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)
- Parameters:
file_format (
Optional
[FlowLogFileFormat
]) – The format for the flow log. Default: FlowLogFileFormat.PLAIN_TEXThive_compatible_partitions (
Optional
[bool
]) – Use Hive-compatible prefixes for flow logs stored in Amazon S3. Default: falseper_hour_partition (
Optional
[bool
]) – Partition the flow log per hour. Default: false
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ec2 as ec2 destination_options = ec2.DestinationOptions( file_format=ec2.FlowLogFileFormat.PLAIN_TEXT, hive_compatible_partitions=False, per_hour_partition=False )
Attributes
- file_format
The format for the flow log.
- Default:
FlowLogFileFormat.PLAIN_TEXT
- hive_compatible_partitions
Use Hive-compatible prefixes for flow logs stored in Amazon S3.
- Default:
false
- per_hour_partition
Partition the flow log per hour.
- Default:
false