# DestinationOptionsProperty

Describes the destination options for a flow log.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `fileFormat`: string (required) — The format for the flow log.

  The default is `plain-text` .

- `hiveCompatiblePartitions`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3.

  The default is `false` .

- `perHourPartition`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Indicates whether to partition the flow log per hour.

  This reduces the cost and response time for queries. The default is `false` .
