S3DestinationOptions

class aws_cdk.aws_ec2.S3DestinationOptions(*, file_format=None, hive_compatible_partitions=None, per_hour_partition=None)

Bases: object

Options for writing logs to a S3 destination.

Parameters
  • file_format (Optional[FlowLogFileFormat]) – The format for the flow log. Default: FlowLogFileFormat.PLAIN_TEXT

  • hive_compatible_partitions (Optional[bool]) – Use Hive-compatible prefixes for flow logs stored in Amazon S3. Default: false

  • per_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

s3_destination_options = ec2.S3DestinationOptions(
    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

Return type

Optional[FlowLogFileFormat]

hive_compatible_partitions

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

Default

false

Return type

Optional[bool]

per_hour_partition

Partition the flow log per hour.

Default

false

Return type

Optional[bool]