Skip to content
v2.278.0

DataPartitionProperty Struct ​

The configuration for signal data storage and upload options.

You can only specify these options when the campaign's spooling mode is TO_DISK .

Access to certain AWS IoT FleetWise features is currently gated. For more information, see AWS Region and feature availability in the AWS IoT FleetWise Developer Guide .

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 dataPartitionProperty: iotfleetwise.CfnCampaign.DataPartitionProperty = {
  id: 'id',
  storageOptions: {
    maximumSize: {
      unit: 'unit',
      value: 123,
    },
    minimumTimeToLive: {
      unit: 'unit',
      value: 123,
    },
    storageLocation: 'storageLocation',
  },

  // the properties below are optional
  uploadOptions: {
    expression: 'expression',

    // the properties below are optional
    conditionLanguageVersion: 123,
  },
};
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_property = iotfleetwise.CfnCampaign.DataPartitionProperty(
    id="id",
    storage_options=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"
    ),

    # the properties below are optional
    upload_options=iotfleetwise.CfnCampaign.DataPartitionUploadOptionsProperty(
        expression="expression",

        # the properties below are optional
        condition_language_version=123
    )
)
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.*;

DataPartitionProperty dataPartitionProperty = DataPartitionProperty.builder()
        .id("id")
        .storageOptions(DataPartitionStorageOptionsProperty.builder()
                .maximumSize(StorageMaximumSizeProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .minimumTimeToLive(StorageMinimumTimeToLiveProperty.builder()
                        .unit("unit")
                        .value(123)
                        .build())
                .storageLocation("storageLocation")
                .build())

        // the properties below are optional
        .uploadOptions(DataPartitionUploadOptionsProperty.builder()
                .expression("expression")

                // the properties below are optional
                .conditionLanguageVersion(123)
                .build())
        .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 dataPartitionProperty = new DataPartitionProperty {
    Id = "id",
    StorageOptions = new DataPartitionStorageOptionsProperty {
        MaximumSize = new StorageMaximumSizeProperty {
            Unit = "unit",
            Value = 123
        },
        MinimumTimeToLive = new StorageMinimumTimeToLiveProperty {
            Unit = "unit",
            Value = 123
        },
        StorageLocation = "storageLocation"
    },

    // the properties below are optional
    UploadOptions = new DataPartitionUploadOptionsProperty {
        Expression = "expression",

        // the properties below are optional
        ConditionLanguageVersion = 123
    }
};
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"

dataPartitionProperty := &DataPartitionProperty{
	Id: jsii.String("id"),
	StorageOptions: &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"),
	},

	// the properties below are optional
	UploadOptions: &DataPartitionUploadOptionsProperty{
		Expression: jsii.String("expression"),

		// the properties below are optional
		ConditionLanguageVersion: jsii.Number(123),
	},
}

Properties ​

idstringidstridStringIdstringId*string required #
The ID of the data partition.

The data partition ID must be unique within a campaign. You can establish a data partition as the default partition for a campaign by using default as the ID.

storageOptionsIResolvable | CfnCampaign.DataPartitionStorageOptionsPropertystorage_optionstyping.Union[IResolvable, DataPartitionStorageOptionsProperty]storageOptionsIResolvableStorageOptionsIResolvableStorageOptionsinterface{} required #
The storage options for a data partition.
uploadOptionsoptionalIResolvable | CfnCampaign.DataPartitionUploadOptionsPropertyupload_optionsoptionaltyping.Union[IResolvable, DataPartitionUploadOptionsProperty]uploadOptionsoptionalIResolvableUploadOptionsoptionalIResolvableUploadOptionsoptionalinterface{} #
The upload options for the data partition.