SageMakerFeatureStoreRuntime / Client / put_record
put_record#
- SageMakerFeatureStoreRuntime.Client.put_record(**kwargs)#
Used for data ingestion into the
FeatureStore. ThePutRecordAPI writes to both theOnlineStoreandOfflineStore. If the record is the latest record for therecordIdentifier, the record is written to both theOnlineStoreandOfflineStore. If the record is a historic record, it is written only to theOfflineStore.See also: AWS API Documentation
Request Syntax
response = client.put_record( FeatureGroupName='string', Record=[ { 'FeatureName': 'string', 'ValueAsString': 'string' }, ], TargetStores=[ 'OnlineStore'|'OfflineStore', ] )
- Parameters:
FeatureGroupName (string) –
[REQUIRED]
The name of the feature group that you want to insert the record into.
Record (list) –
[REQUIRED]
List of FeatureValues to be inserted. This will be a full over-write. If you only want to update few of the feature values, do the following:
Use
GetRecordto retrieve the latest record.Update the record returned from
GetRecord.Use
PutRecordto update feature values.
(dict) –
The value associated with a feature.
FeatureName (string) – [REQUIRED]
The name of a feature that a feature value corresponds to.
ValueAsString (string) – [REQUIRED]
The value associated with a feature, in string format. Note that features types can be String, Integral, or Fractional. This value represents all three types as a string.
TargetStores (list) –
A list of stores to which you’re adding the record. By default, Feature Store adds the record to all of the stores that you’re using for the
FeatureGroup.(string) –
- Returns:
None
Exceptions
SageMakerFeatureStoreRuntime.Client.exceptions.ValidationErrorSageMakerFeatureStoreRuntime.Client.exceptions.InternalFailureSageMakerFeatureStoreRuntime.Client.exceptions.ServiceUnavailableSageMakerFeatureStoreRuntime.Client.exceptions.AccessForbidden