Type definitions#
Index > SageMakerRuntime > Type definitions
Auto-generated documentation for SageMakerRuntime type annotations stubs module types-aiobotocore-sagemaker-runtime.
BlobTypeDef#
# BlobTypeDef definition
BlobTypeDef = Union[
str,
bytes,
IO[Any],
StreamingBody,
]
InvokeEndpointAsyncInputRequestTypeDef#
# InvokeEndpointAsyncInputRequestTypeDef definition
class InvokeEndpointAsyncInputRequestTypeDef(TypedDict):
EndpointName: str,
InputLocation: str,
ContentType: NotRequired[str],
Accept: NotRequired[str],
CustomAttributes: NotRequired[str],
InferenceId: NotRequired[str],
RequestTTLSeconds: NotRequired[int],
InvocationTimeoutSeconds: NotRequired[int],
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HostId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
InvokeEndpointInputRequestTypeDef#
# InvokeEndpointInputRequestTypeDef definition
class InvokeEndpointInputRequestTypeDef(TypedDict):
EndpointName: str,
Body: Union[str, bytes, IO[Any], StreamingBody],
ContentType: NotRequired[str],
Accept: NotRequired[str],
CustomAttributes: NotRequired[str],
TargetModel: NotRequired[str],
TargetVariant: NotRequired[str],
TargetContainerHostname: NotRequired[str],
InferenceId: NotRequired[str],
EnableExplanations: NotRequired[str],
InvokeEndpointAsyncOutputTypeDef#
# InvokeEndpointAsyncOutputTypeDef definition
class InvokeEndpointAsyncOutputTypeDef(TypedDict):
InferenceId: str,
OutputLocation: str,
FailureLocation: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
InvokeEndpointOutputTypeDef#
# InvokeEndpointOutputTypeDef definition
class InvokeEndpointOutputTypeDef(TypedDict):
Body: StreamingBody,
ContentType: str,
InvokedProductionVariant: str,
CustomAttributes: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)