Examples#
Index > SageMakerFeatureStoreRuntime > Examples
Auto-generated documentation for SageMakerFeatureStoreRuntime type annotations stubs module types-aiobotocore-sagemaker-featurestore-runtime.
Client#
Implicit type annotations#
Can be used with types-aioboto3[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 aioboto3.session import Session
session = Session()
async with session.client("sagemaker-featurestore-runtime") as client: # (1)
result = await client.batch_get_record() # (2)
- client: SageMakerFeatureStoreRuntimeClient
- result: BatchGetRecordResponseTypeDef
Explicit type annotations#
With types-aioboto3-lite[sagemaker-featurestore-runtime]
or a standalone types_aiobotocore_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 aioboto3.session import Session
from types_aiobotocore_sagemaker_featurestore_runtime.client import SageMakerFeatureStoreRuntimeClient
from types_aiobotocore_sagemaker_featurestore_runtime.type_defs import BatchGetRecordResponseTypeDef
from types_aiobotocore_sagemaker_featurestore_runtime.type_defs import BatchGetRecordRequestRequestTypeDef
session = Session()
client: SageMakerFeatureStoreRuntimeClient
async with session.client("sagemaker-featurestore-runtime") as client: # (1)
kwargs: BatchGetRecordRequestRequestTypeDef = {...} # (2)
result: BatchGetRecordResponseTypeDef = await client.batch_get_record(**kwargs) # (3)
- client: SageMakerFeatureStoreRuntimeClient
- kwargs: BatchGetRecordRequestRequestTypeDef
- result: BatchGetRecordResponseTypeDef