Amazon DynamoDB Online Store Spec | Databricks on AWS
Bases: databricks.feature_store.online_store_spec.online_store_spec.OnlineStoreSpec
This OnlineStoreSpec
implementation is intended for publishing features to Amazon DynamoDB.
If table_name
is not provided,
FeatureStoreClient.publish_table
will use the offline store’s database and table name combined as the online table name.
To use a different table name in the online store, provide a value for the table_name
argument.
The expected read or write secrets for DynamoDB for a given {prefix}
string are
${prefix}-access-key-id
, ${prefix}-secret-access-key
, and ${prefix}-session-token
.
If none of the access_key_id, secret_access_key, and write_secret_prefix are passed,
the instance profile attached to the cluster will be used to write to DynamoDB.
Note
AmazonDynamoDBSpec is available starting with Databricks Runtime 10.4 for ML.
Instance profile based writes are available starting with Databricks Runtime 10.5 for ML.
- Parameters
-
-
region – Region to access online store.
-
access_key_id – Access key ID that has access to the online store.
-
secret_access_key – Secret access key to access the online store.
-
session_token – Session token to access the online store.
-
table_name – Table name.
-
read_secret_prefix – Prefix for read secret.
-
write_secret_prefix – Prefix for write secret.
-
ttl – The time to live for data published to the online store. This attribute is only applicable when
publishing time series feature tables. If the time to live is specified for a time series table,
FeatureStoreClient.publish_table()
will publish a window of data instead of the latest snapshot.
-
Methods
-
auth_type
(
)
-
Publish Auth type.
Properties
-
access_key_id
-
Access key ID that has access to the online store.
Property will be empty ifwrite_secret_prefix
or the
instance profile attached to the cluster are intended to be used.
-
secret_access_key
-
Secret access key to access the online store.
Property will be empty ifwrite_secret_prefix
or the
instance profile attached to the cluster are intended to be used.
-
session_token
-
Session token to access the online store.
Property will be empty ifwrite_secret_prefix
or the
instance profile attached to the cluster are intended to be used.
-
cloud
-
Define the cloud property for the data store.
-
store_type
-
Define the data store type.
-
region
-
Region to access the online store.
-
ttl
-
Time to live attribute for the online store.
-
property
access_key_id
-
Access key ID that has access to the online store.
Property will be empty ifwrite_secret_prefix
or the
instance profile attached to the cluster are intended to be used.
-
property
secret_access_key
-
Secret access key to access the online store.
Property will be empty ifwrite_secret_prefix
or the
instance profile attached to the cluster are intended to be used.
-
property
session_token
-
Session token to access the online store.
Property will be empty ifwrite_secret_prefix
or the
instance profile attached to the cluster are intended to be used.
-
property
region
-
Region to access the online store.
-
property
ttl
-
Time to live attribute for the online store.
-
auth_type
(
)
-
Publish Auth type.