# OnlineStoreConfigProperty

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` .

- Source: Generated at build time
- Type last changed: v2.129.0 · 21 Feb 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_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:

```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:

```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();
```

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.Sagemaker;

var onlineStoreConfigProperty = new OnlineStoreConfigProperty {
    EnableOnlineStore = false,
    SecurityConfig = new OnlineStoreSecurityConfigProperty {
        KmsKeyId = "kmsKeyId"
    },
    StorageType = "storageType",
    TtlDuration = new TtlDurationProperty {
        Unit = "unit",
        Value = 123
    }
};
```

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"

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

- `enableOnlineStore`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — 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` .

- `securityConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFeatureGroup.OnlineStoreSecurityConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnFeatureGroup.OnlineStoreSecurityConfigProperty.html) — Use to specify KMS Key ID ( `KMSKeyId` ) for at-rest encryption of your `OnlineStore` .

- `storageType`: 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.

- `ttlDuration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFeatureGroup.TtlDurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnFeatureGroup.TtlDurationProperty.html) — Time to live duration, where the record is hard deleted after the expiration time is reached;

  `ExpiresAt` = `EventTime` + `TtlDuration` . For information on HardDelete, see the [DeleteRecord](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_feature_store_DeleteRecord.html) API in the Amazon SageMaker API Reference guide.
