get_record(**kwargs)¶Use for OnlineStore serving from a FeatureStore . Only the latest records stored in the OnlineStore can be retrieved. If no Record with RecordIdentifierValue is found, then an empty result is returned.
See also: AWS API Documentation
Request Syntax
response = client.get_record(
FeatureGroupName='string',
RecordIdentifierValueAsString='string',
FeatureNames=[
'string',
]
)
[REQUIRED]
The name of the feature group from which you want to retrieve a record.
[REQUIRED]
The value that corresponds to RecordIdentifier type and uniquely identifies the record in the FeatureGroup .
List of names of Features to be retrieved. If not specified, the latest value for all the Features are returned.
dict
Response Syntax
{
'Record': [
{
'FeatureName': 'string',
'ValueAsString': 'string'
},
]
}
Response Structure
(dict) --
Record (list) --
The record you requested. A list of FeatureValues .
(dict) --
The value associated with a feature.
FeatureName (string) --
The name of a feature that a feature value corresponds to.
ValueAsString (string) --
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.
Exceptions
SageMakerFeatureStoreRuntime.Client.exceptions.ValidationErrorSageMakerFeatureStoreRuntime.Client.exceptions.ResourceNotFoundSageMakerFeatureStoreRuntime.Client.exceptions.InternalFailureSageMakerFeatureStoreRuntime.Client.exceptions.ServiceUnavailableSageMakerFeatureStoreRuntime.Client.exceptions.AccessForbidden