# DataPartitionStorageOptionsProperty

Size, time, and location options for the data partition.

- Source: Generated at build time
- Type last changed: v2.169.0 · 21 Nov 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotfleetwise as iotfleetwise } from 'aws-cdk-lib';
const dataPartitionStorageOptionsProperty: iotfleetwise.CfnCampaign.DataPartitionStorageOptionsProperty = {
  maximumSize: {
    unit: 'unit',
    value: 123,
  },
  minimumTimeToLive: {
    unit: 'unit',
    value: 123,
  },
  storageLocation: 'storageLocation',
};
```

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_iotfleetwise as iotfleetwise

data_partition_storage_options_property = iotfleetwise.CfnCampaign.DataPartitionStorageOptionsProperty(
    maximum_size=iotfleetwise.CfnCampaign.StorageMaximumSizeProperty(
        unit="unit",
        value=123
    ),
    minimum_time_to_live=iotfleetwise.CfnCampaign.StorageMinimumTimeToLiveProperty(
        unit="unit",
        value=123
    ),
    storage_location="storageLocation"
)
```

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.iotfleetwise.*;

DataPartitionStorageOptionsProperty dataPartitionStorageOptionsProperty = DataPartitionStorageOptionsProperty.builder()
        .maximumSize(StorageMaximumSizeProperty.builder()
                .unit("unit")
                .value(123)
                .build())
        .minimumTimeToLive(StorageMinimumTimeToLiveProperty.builder()
                .unit("unit")
                .value(123)
                .build())
        .storageLocation("storageLocation")
        .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.IoTFleetWise;

var dataPartitionStorageOptionsProperty = new DataPartitionStorageOptionsProperty {
    MaximumSize = new StorageMaximumSizeProperty {
        Unit = "unit",
        Value = 123
    },
    MinimumTimeToLive = new StorageMinimumTimeToLiveProperty {
        Unit = "unit",
        Value = 123
    },
    StorageLocation = "storageLocation"
};
```

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"

dataPartitionStorageOptionsProperty := &DataPartitionStorageOptionsProperty{
	MaximumSize: &StorageMaximumSizeProperty{
		Unit: jsii.String("unit"),
		Value: jsii.Number(123),
	},
	MinimumTimeToLive: &StorageMinimumTimeToLiveProperty{
		Unit: jsii.String("unit"),
		Value: jsii.Number(123),
	},
	StorageLocation: jsii.String("storageLocation"),
}
```

## Properties

- `maximumSize`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCampaign.StorageMaximumSizeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotfleetwise.CfnCampaign.StorageMaximumSizeProperty.html) (required) — The maximum storage size of the data stored in the data partition.

  > Newer data overwrites older data when the partition reaches the maximum size.

- `minimumTimeToLive`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCampaign.StorageMinimumTimeToLiveProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iotfleetwise.CfnCampaign.StorageMinimumTimeToLiveProperty.html) (required) — The amount of time that data in this partition will be kept on disk.

  - After the designated amount of time passes, the data can be removed, but it's not guaranteed to be removed.
  - Before the time expires, data in this partition can still be deleted if the partition reaches its configured maximum size.
  - Newer data will overwrite older data when the partition reaches the maximum size.

- `storageLocation`: string (required) — The folder name for the data partition under the campaign storage folder.
