RetentionPropertiesProperty Struct
Retention properties contain the duration for which your time-series data must be stored in the magnetic store and the memory store.
| 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_timestream as timestream } from 'aws-cdk-lib';
const retentionPropertiesProperty: timestream.CfnTable.RetentionPropertiesProperty = {
magneticStoreRetentionPeriodInDays: 'magneticStoreRetentionPeriodInDays',
memoryStoreRetentionPeriodInHours: 'memoryStoreRetentionPeriodInHours',
};
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_timestream as timestream
retention_properties_property = timestream.CfnTable.RetentionPropertiesProperty(
magnetic_store_retention_period_in_days="magneticStoreRetentionPeriodInDays",
memory_store_retention_period_in_hours="memoryStoreRetentionPeriodInHours"
)
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.timestream.*;
RetentionPropertiesProperty retentionPropertiesProperty = RetentionPropertiesProperty.builder()
.magneticStoreRetentionPeriodInDays("magneticStoreRetentionPeriodInDays")
.memoryStoreRetentionPeriodInHours("memoryStoreRetentionPeriodInHours")
.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.Timestream;
var retentionPropertiesProperty = new RetentionPropertiesProperty {
MagneticStoreRetentionPeriodInDays = "magneticStoreRetentionPeriodInDays",
MemoryStoreRetentionPeriodInHours = "memoryStoreRetentionPeriodInHours"
};
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"
retentionPropertiesProperty := &RetentionPropertiesProperty{
MagneticStoreRetentionPeriodInDays: jsii.String("magneticStoreRetentionPeriodInDays"),
MemoryStoreRetentionPeriodInHours: jsii.String("memoryStoreRetentionPeriodInHours"),
}
Properties
magneticStoreRetentionPeriodInDaysoptionalstringmagnetic_store_retention_period_in_daysoptionalstrmagneticStoreRetentionPeriodInDaysoptionalStringMagneticStoreRetentionPeriodInDaysoptionalstringMagneticStoreRetentionPeriodInDaysoptional*string #The duration for which data must be stored in the magnetic store.
memoryStoreRetentionPeriodInHoursoptionalstringmemory_store_retention_period_in_hoursoptionalstrmemoryStoreRetentionPeriodInHoursoptionalStringMemoryStoreRetentionPeriodInHoursoptionalstringMemoryStoreRetentionPeriodInHoursoptional*string #The duration for which data must be stored in the memory store.