Skip to content
v2.278.0

OnlineStoreConfigProperty Struct ​

Use this to specify the AWS Key Management Service (KMS) Key ID, or KMSKeyId , for at rest data encryption.

You can turn OnlineStore on or off by specifying the EnableOnlineStore flag at General Assembly.

The default value is False .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const onlineStoreConfigProperty: sagemaker.CfnFeatureGroup.OnlineStoreConfigProperty = {
  enableOnlineStore: false,
  securityConfig: {
    kmsKeyId: 'kmsKeyId',
  },
  storageType: 'storageType',
  ttlDuration: {
    unit: 'unit',
    value: 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_sagemaker as sagemaker

online_store_config_property = sagemaker.CfnFeatureGroup.OnlineStoreConfigProperty(
    enable_online_store=False,
    security_config=sagemaker.CfnFeatureGroup.OnlineStoreSecurityConfigProperty(
        kms_key_id="kmsKeyId"
    ),
    storage_type="storageType",
    ttl_duration=sagemaker.CfnFeatureGroup.TtlDurationProperty(
        unit="unit",
        value=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.sagemaker.*;

OnlineStoreConfigProperty onlineStoreConfigProperty = OnlineStoreConfigProperty.builder()
        .enableOnlineStore(false)
        .securityConfig(OnlineStoreSecurityConfigProperty.builder()
                .kmsKeyId("kmsKeyId")
                .build())
        .storageType("storageType")
        .ttlDuration(TtlDurationProperty.builder()
                .unit("unit")
                .value(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.Sagemaker;

var onlineStoreConfigProperty = new OnlineStoreConfigProperty {
    EnableOnlineStore = false,
    SecurityConfig = new OnlineStoreSecurityConfigProperty {
        KmsKeyId = "kmsKeyId"
    },
    StorageType = "storageType",
    TtlDuration = new TtlDurationProperty {
        Unit = "unit",
        Value = 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"

onlineStoreConfigProperty := &OnlineStoreConfigProperty{
	EnableOnlineStore: jsii.Boolean(false),
	SecurityConfig: &OnlineStoreSecurityConfigProperty{
		KmsKeyId: jsii.String("kmsKeyId"),
	},
	StorageType: jsii.String("storageType"),
	TtlDuration: &TtlDurationProperty{
		Unit: jsii.String("unit"),
		Value: jsii.Number(123),
	},
}

Properties ​

enableOnlineStoreoptionalboolean | IResolvableenable_online_storeoptionaltyping.Union[bool, IResolvable]enableOnlineStoreoptionalBooleanEnableOnlineStoreoptionalboolEnableOnlineStoreoptionalinterface{} #
Turn `OnlineStore` off by specifying `False` for the `EnableOnlineStore` flag.

Turn OnlineStore on by specifying True for the EnableOnlineStore flag.

The default value is False .

securityConfigoptionalIResolvable | CfnFeatureGroup.OnlineStoreSecurityConfigPropertysecurity_configoptionaltyping.Union[IResolvable, OnlineStoreSecurityConfigProperty]securityConfigoptionalIResolvableSecurityConfigoptionalIResolvableSecurityConfigoptionalinterface{} #
Use to specify KMS Key ID ( `KMSKeyId` ) for at-rest encryption of your `OnlineStore` .
storageTypeoptionalstringstorage_typeoptionalstrstorageTypeoptionalStringStorageTypeoptionalstringStorageTypeoptional*string #
Option for different tiers of low latency storage for real-time data retrieval.
  • Standard : A managed low latency data store for feature groups.
  • InMemory : A managed data store for feature groups that supports very low latency retrieval.
ttlDurationoptionalIResolvable | CfnFeatureGroup.TtlDurationPropertyttl_durationoptionaltyping.Union[IResolvable, TtlDurationProperty]ttlDurationoptionalIResolvableTtlDurationoptionalIResolvableTtlDurationoptionalinterface{} #
Time to live duration, where the record is hard deleted after the expiration time is reached;
notes

ExpiresAt = EventTime + TtlDuration . For information on HardDelete, see the DeleteRecord API in the Amazon SageMaker API Reference guide.