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.
# SageMakerFeatureStoreRuntimeClient usage example
from boto3.session import Session
session = Session()
client = session.client("sagemaker-featurestore-runtime") # (1)
result = client.batch_get_record() # (2)
- client: SageMakerFeatureStoreRuntimeClient
- 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.
# 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 BatchGetRecordRequestRequestTypeDef
session = Session()
client: SageMakerFeatureStoreRuntimeClient = session.client("sagemaker-featurestore-runtime")
kwargs: BatchGetRecordRequestRequestTypeDef = {...}
result: BatchGetRecordResponseTypeDef = client.batch_get_record(**kwargs)