Skip to content

Examples#

Index > SageMakerFeatureStoreRuntime > Examples

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

Client#

Implicit type annotations#

Can be used with boto3-stubs[sagemaker-featurestore-runtime] package installed.

Write your SageMakerFeatureStoreRuntime code as usual, type checking and code completion should work out of the box.

Client method usage example#

# SageMakerFeatureStoreRuntimeClient usage example

from boto3.session import Session


session = Session()

client = session.client("sagemaker-featurestore-runtime")  # (1)
result = client.batch_get_record()  # (2)
  1. client: SageMakerFeatureStoreRuntimeClient
  2. result: BatchGetRecordResponseTypeDef

Explicit type annotations#

With boto3-stubs-lite[sagemaker-featurestore-runtime] or a standalone mypy_boto3_sagemaker_featurestore_runtime package, you have to explicitly specify client: SageMakerFeatureStoreRuntimeClient type annotation.

All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your functions and methods.

Client method usage example#

# SageMakerFeatureStoreRuntimeClient usage example with type annotations

from boto3.session import Session

from mypy_boto3_sagemaker_featurestore_runtime.client import SageMakerFeatureStoreRuntimeClient
from mypy_boto3_sagemaker_featurestore_runtime.type_defs import BatchGetRecordResponseTypeDef
from mypy_boto3_sagemaker_featurestore_runtime.type_defs import BatchGetRecordRequestTypeDef


session = Session()

client: SageMakerFeatureStoreRuntimeClient = session.client("sagemaker-featurestore-runtime")

kwargs: BatchGetRecordRequestTypeDef = {...}
result: BatchGetRecordResponseTypeDef = client.batch_get_record(**kwargs)