SageMakerFeatureStoreRuntimeClient#
Index > SageMakerFeatureStoreRuntime > SageMakerFeatureStoreRuntimeClient
Auto-generated documentation for SageMakerFeatureStoreRuntime type annotations stubs module types-aiobotocore-sagemaker-featurestore-runtime.
SageMakerFeatureStoreRuntimeClient#
Type annotations and code completion for session.create_client("sagemaker-featurestore-runtime")
boto3 documentation
SageMakerFeatureStoreRuntimeClient usage example
from aiobotocore.session import get_session
from types_aiobotocore_sagemaker_featurestore_runtime.client import SageMakerFeatureStoreRuntimeClient
session = get_session()
async with session.create_client("sagemaker-featurestore-runtime") as client:
client: SageMakerFeatureStoreRuntimeClient
Exceptions#
aiobotocore
client exceptions are generated in runtime.
This class provides code completion for session.create_client("sagemaker-featurestore-runtime").exceptions
structure.
SageMakerFeatureStoreRuntimeClient.exceptions usage example
async with session.create_client("sagemaker-featurestore-runtime") as client:
try:
do_something(client)
except (
client.AccessForbidden,
client.ClientError,
client.InternalFailure,
client.ResourceNotFound,
client.ServiceUnavailable,
client.ValidationError,
) as e:
print(e)
SageMakerFeatureStoreRuntimeClient usage type checking example
from types_aiobotocore_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 session.create_client("sagemaker-featurestore-runtime").batch_get_record
method.
boto3 documentation
# batch_get_record method definition
await def batch_get_record(
self,
*,
Identifiers: Sequence[BatchGetRecordIdentifierTypeDef], # (1)
ExpirationTimeResponse: ExpirationTimeResponseType = ..., # (2)
) -> BatchGetRecordResponseTypeDef: # (3)
...
- See BatchGetRecordIdentifierTypeDef
- See ExpirationTimeResponseType
- See BatchGetRecordResponseTypeDef
# batch_get_record method usage example with argument unpacking
kwargs: BatchGetRecordRequestRequestTypeDef = { # (1)
"Identifiers": ...,
}
parent.batch_get_record(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for session.create_client("sagemaker-featurestore-runtime").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for session.create_client("sagemaker-featurestore-runtime").close
method.
boto3 documentation
# close method definition
await def close(
self,
) -> None:
...
delete_record#
Deletes a Record
from a FeatureGroup
in the OnlineStore
.
Type annotations and code completion for session.create_client("sagemaker-featurestore-runtime").delete_record
method.
boto3 documentation
# delete_record method definition
await def delete_record(
self,
*,
FeatureGroupName: str,
RecordIdentifierValueAsString: str,
EventTime: str,
TargetStores: Sequence[TargetStoreType] = ..., # (1)
DeletionMode: DeletionModeType = ..., # (2)
) -> EmptyResponseMetadataTypeDef: # (3)
...
# delete_record method usage example with argument unpacking
kwargs: DeleteRecordRequestRequestTypeDef = { # (1)
"FeatureGroupName": ...,
"RecordIdentifierValueAsString": ...,
"EventTime": ...,
}
parent.delete_record(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.create_client("sagemaker-featurestore-runtime").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
await 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 session.create_client("sagemaker-featurestore-runtime").get_record
method.
boto3 documentation
# get_record method definition
await def get_record(
self,
*,
FeatureGroupName: str,
RecordIdentifierValueAsString: str,
FeatureNames: Sequence[str] = ...,
ExpirationTimeResponse: ExpirationTimeResponseType = ..., # (1)
) -> GetRecordResponseTypeDef: # (2)
...
# get_record method usage example with argument unpacking
kwargs: GetRecordRequestRequestTypeDef = { # (1)
"FeatureGroupName": ...,
"RecordIdentifierValueAsString": ...,
}
parent.get_record(**kwargs)
put_record#
The PutRecord
API is used to ingest a list of Records
into your feature
group.
Type annotations and code completion for session.create_client("sagemaker-featurestore-runtime").put_record
method.
boto3 documentation
# put_record method definition
await def put_record(
self,
*,
FeatureGroupName: str,
Record: Sequence[FeatureValueTypeDef], # (1)
TargetStores: Sequence[TargetStoreType] = ..., # (2)
TtlDuration: TtlDurationTypeDef = ..., # (3)
) -> EmptyResponseMetadataTypeDef: # (4)
...
# put_record method usage example with argument unpacking
kwargs: PutRecordRequestRequestTypeDef = { # (1)
"FeatureGroupName": ...,
"Record": ...,
}
parent.put_record(**kwargs)
__aenter__#
Type annotations and code completion for session.create_client("sagemaker-featurestore-runtime").__aenter__
method.
boto3 documentation
# __aenter__ method definition
await def __aenter__(
self,
) -> SageMakerFeatureStoreRuntimeClient:
...
__aexit__#
Type annotations and code completion for session.create_client("sagemaker-featurestore-runtime").__aexit__
method.
boto3 documentation
# __aexit__ method definition
await def __aexit__(
self,
exc_type: Any,
exc_val: Any,
exc_tb: Any,
) -> Any:
...