get_record
async
¶
get_record(
feature_group_name: FeatureGroupNameOrArn,
*,
config_overrides: Optional[AsyncSageMakerFeatureStoreRuntimeClientConfig] = None,
record_identifier_value_as_string: Optional[ValueAsString] = None,
feature_names: Optional[FeatureNames] = None,
expiration_time_response: Optional[ExpirationTimeResponse] = None,
) -> GetRecordResponse
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.
Parameters:
-
feature_group_name(FeatureGroupNameOrArn) –The name or Amazon Resource Name (ARN) of the feature group from which you want to retrieve a record.
-
record_identifier_value_as_string(Optional[ValueAsString], default:None) –The value that corresponds to
RecordIdentifiertype and uniquely identifies the record in theFeatureGroup. -
feature_names(Optional[FeatureNames], default:None) –List of names of Features to be retrieved. If not specified, the latest value for all the Features are returned.
-
expiration_time_response(Optional[ExpirationTimeResponse], default:None) –Parameter to request
ExpiresAtin response. IfEnabled,GetRecordwill return the value ofExpiresAt, if it is not null. IfDisabledand null,GetRecordwill return null.
Raises:
-
AccessForbidden–You do not have permission to perform an action.
-
InternalFailure–An internal failure occurred. Try your request again. If the problem persists, contact Amazon Web Services customer support.
-
ResourceNotFound–A resource that is required to perform an action was not found.
-
ServiceUnavailable–The service is currently unavailable.
-
ValidationError–There was an error validating your request.
-
UnknownServiceError–The service returned an error code this client does not model.