DestinationOptionsProperty Struct
Describes the destination options for a flow log.
| Source | |
|---|---|
| Type last changed |
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 destinationOptionsProperty: ec2.CfnFlowLog.DestinationOptionsProperty = {
fileFormat: 'fileFormat',
hiveCompatiblePartitions: false,
perHourPartition: false,
};
python
# 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_property = ec2.CfnFlowLog.DestinationOptionsProperty(
file_format="fileFormat",
hive_compatible_partitions=False,
per_hour_partition=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
DestinationOptionsProperty destinationOptionsProperty = DestinationOptionsProperty.builder()
.fileFormat("fileFormat")
.hiveCompatiblePartitions(false)
.perHourPartition(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var destinationOptionsProperty = new DestinationOptionsProperty {
FileFormat = "fileFormat",
HiveCompatiblePartitions = false,
PerHourPartition = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
destinationOptionsProperty := &DestinationOptionsProperty{
FileFormat: jsii.String("fileFormat"),
HiveCompatiblePartitions: jsii.Boolean(false),
PerHourPartition: jsii.Boolean(false),
}
Properties
The format for the flow log.
The default is plain-text .
hiveCompatiblePartitionsboolean | IResolvablehive_compatible_partitionstyping.Union[bool, IResolvable]hiveCompatiblePartitionsBooleanHiveCompatiblePartitionsboolHiveCompatiblePartitionsinterface{} required #Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3.
The default is false .
perHourPartitionboolean | IResolvableper_hour_partitiontyping.Union[bool, IResolvable]perHourPartitionBooleanPerHourPartitionboolPerHourPartitioninterface{} required #Indicates whether to partition the flow log per hour.
This reduces the cost and response time for queries. The default is false .