Skip to content

SageMakerFeatureStoreRuntimeClient

Index > SageMakerFeatureStoreRuntime > SageMakerFeatureStoreRuntimeClient

Auto-generated documentation for SageMakerFeatureStoreRuntime type annotations stubs module mypy-boto3-sagemaker-featurestore-runtime.

SageMakerFeatureStoreRuntimeClient

Type annotations and code completion for boto3.client("sagemaker-featurestore-runtime"). boto3 documentation

Usage example
from boto3.session import Session
from mypy_boto3_sagemaker_featurestore_runtime.client import SageMakerFeatureStoreRuntimeClient

def get_sagemaker-featurestore-runtime_client() -> SageMakerFeatureStoreRuntimeClient:
    return Session().client("sagemaker-featurestore-runtime")

Exceptions

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("sagemaker-featurestore-runtime").exceptions structure.

Usage example
client = boto3.client("sagemaker-featurestore-runtime")

try:
    do_something(client)
except (
    client.AccessForbidden,
    client.ClientError,
    client.InternalFailure,
    client.ResourceNotFound,
    client.ServiceUnavailable,
    client.ValidationError,
) as e:
    print(e)
Type checking example
from mypy_boto3_sagemaker_featurestore_runtime.client import Exceptions

def handle_error(exc: Exceptions.AccessForbidden) -> None:
    ...

Methods

batch_get_record

Retrieves a batch of Records from a FeatureGroup .

Type annotations and code completion for boto3.client("sagemaker-featurestore-runtime").batch_get_record method. boto3 documentation

Method definition
def batch_get_record(
    self,
    *,
    Identifiers: Sequence[BatchGetRecordIdentifierTypeDef],  # (1)
) -> BatchGetRecordResponseTypeDef:  # (2)
    ...
  1. See BatchGetRecordIdentifierTypeDef
  2. See BatchGetRecordResponseTypeDef
Usage example with kwargs
kwargs: BatchGetRecordRequestRequestTypeDef = {  # (1)
    "Identifiers": ...,
}

parent.batch_get_record(**kwargs)
  1. See BatchGetRecordRequestRequestTypeDef

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("sagemaker-featurestore-runtime").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("sagemaker-featurestore-runtime").close method. boto3 documentation

Method definition
def close(
    self,
) -> None:
    ...

delete_record

Deletes a Record from a FeatureGroup.

Type annotations and code completion for boto3.client("sagemaker-featurestore-runtime").delete_record method. boto3 documentation

Method definition
def delete_record(
    self,
    *,
    FeatureGroupName: str,
    RecordIdentifierValueAsString: str,
    EventTime: str,
    TargetStores: Sequence[TargetStoreType] = ...,  # (1)
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See TargetStoreType
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteRecordRequestRequestTypeDef = {  # (1)
    "FeatureGroupName": ...,
    "RecordIdentifierValueAsString": ...,
    "EventTime": ...,
}

parent.delete_record(**kwargs)
  1. See DeleteRecordRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("sagemaker-featurestore-runtime").generate_presigned_url method. boto3 documentation

Method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_record

Use for OnlineStore serving from a FeatureStore.

Type annotations and code completion for boto3.client("sagemaker-featurestore-runtime").get_record method. boto3 documentation

Method definition
def get_record(
    self,
    *,
    FeatureGroupName: str,
    RecordIdentifierValueAsString: str,
    FeatureNames: Sequence[str] = ...,
) -> GetRecordResponseTypeDef:  # (1)
    ...
  1. See GetRecordResponseTypeDef
Usage example with kwargs
kwargs: GetRecordRequestRequestTypeDef = {  # (1)
    "FeatureGroupName": ...,
    "RecordIdentifierValueAsString": ...,
}

parent.get_record(**kwargs)
  1. See GetRecordRequestRequestTypeDef

put_record

Used for data ingestion into the FeatureStore.

Type annotations and code completion for boto3.client("sagemaker-featurestore-runtime").put_record method. boto3 documentation

Method definition
def put_record(
    self,
    *,
    FeatureGroupName: str,
    Record: Sequence[FeatureValueTypeDef],  # (1)
    TargetStores: Sequence[TargetStoreType] = ...,  # (2)
) -> EmptyResponseMetadataTypeDef:  # (3)
    ...
  1. See FeatureValueTypeDef
  2. See TargetStoreType
  3. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: PutRecordRequestRequestTypeDef = {  # (1)
    "FeatureGroupName": ...,
    "Record": ...,
}

parent.put_record(**kwargs)
  1. See PutRecordRequestRequestTypeDef