DataPartitionStorageOptionsProperty Struct
Size, time, and location options for the data partition.
| 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_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
# 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
// 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();
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"
};
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
maximumSizeIResolvable | CfnCampaign.maximum_sizetyping.Union[IResolvable, StorageMaximumSizeProperty]maximumSizeIResolvableMaximumSizeIResolvableMaximumSizeinterface{} 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.
minimumTimeToLiveIResolvable | CfnCampaign.minimum_time_to_livetyping.Union[IResolvable, StorageMinimumTimeToLiveProperty]minimumTimeToLiveIResolvableMinimumTimeToLiveIResolvableMinimumTimeToLiveinterface{} required #The amount of time that data in this partition will be kept on disk.
notes
- 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.
storageLocationstringstorage_locationstrstorageLocationStringStorageLocationstringStorageLocation*string required #The folder name for the data partition under the campaign storage folder.