Skip to content

Typed dictionaries

Index > SagemakerEdgeManager > Typed dictionaries

Auto-generated documentation for SagemakerEdgeManager type annotations stubs module mypy-boto3-sagemaker-edge.

ChecksumTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import ChecksumTypeDef

def get_value() -> ChecksumTypeDef:
    return {
        "Type": ...,
    }
Definition
class ChecksumTypeDef(TypedDict):
    Type: NotRequired[ChecksumTypeType],  # (1)
    Sum: NotRequired[str],
  1. See ChecksumTypeType

DeploymentModelTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import DeploymentModelTypeDef

def get_value() -> DeploymentModelTypeDef:
    return {
        "ModelHandle": ...,
    }
Definition
class DeploymentModelTypeDef(TypedDict):
    ModelHandle: NotRequired[str],
    ModelName: NotRequired[str],
    ModelVersion: NotRequired[str],
    DesiredState: NotRequired[ModelStateType],  # (1)
    State: NotRequired[ModelStateType],  # (1)
    Status: NotRequired[DeploymentStatusType],  # (3)
    StatusReason: NotRequired[str],
    RollbackFailureReason: NotRequired[str],
  1. See ModelStateType
  2. See ModelStateType
  3. See DeploymentStatusType

EdgeMetricTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import EdgeMetricTypeDef

def get_value() -> EdgeMetricTypeDef:
    return {
        "Dimension": ...,
    }
Definition
class EdgeMetricTypeDef(TypedDict):
    Dimension: NotRequired[str],
    MetricName: NotRequired[str],
    Value: NotRequired[float],
    Timestamp: NotRequired[Union[datetime, str]],

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
Definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

GetDeploymentsRequestRequestTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import GetDeploymentsRequestRequestTypeDef

def get_value() -> GetDeploymentsRequestRequestTypeDef:
    return {
        "DeviceName": ...,
        "DeviceFleetName": ...,
    }
Definition
class GetDeploymentsRequestRequestTypeDef(TypedDict):
    DeviceName: str,
    DeviceFleetName: str,

GetDeviceRegistrationRequestRequestTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import GetDeviceRegistrationRequestRequestTypeDef

def get_value() -> GetDeviceRegistrationRequestRequestTypeDef:
    return {
        "DeviceName": ...,
        "DeviceFleetName": ...,
    }
Definition
class GetDeviceRegistrationRequestRequestTypeDef(TypedDict):
    DeviceName: str,
    DeviceFleetName: str,

DefinitionTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import DefinitionTypeDef

def get_value() -> DefinitionTypeDef:
    return {
        "ModelHandle": ...,
    }
Definition
class DefinitionTypeDef(TypedDict):
    ModelHandle: NotRequired[str],
    S3Url: NotRequired[str],
    Checksum: NotRequired[ChecksumTypeDef],  # (1)
    State: NotRequired[ModelStateType],  # (2)
  1. See ChecksumTypeDef
  2. See ModelStateType

DeploymentResultTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import DeploymentResultTypeDef

def get_value() -> DeploymentResultTypeDef:
    return {
        "DeploymentName": ...,
    }
Definition
class DeploymentResultTypeDef(TypedDict):
    DeploymentName: NotRequired[str],
    DeploymentStatus: NotRequired[str],
    DeploymentStatusMessage: NotRequired[str],
    DeploymentStartTime: NotRequired[Union[datetime, str]],
    DeploymentEndTime: NotRequired[Union[datetime, str]],
    DeploymentModels: NotRequired[Sequence[DeploymentModelTypeDef]],  # (1)
  1. See DeploymentModelTypeDef

ModelTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import ModelTypeDef

def get_value() -> ModelTypeDef:
    return {
        "ModelName": ...,
    }
Definition
class ModelTypeDef(TypedDict):
    ModelName: NotRequired[str],
    ModelVersion: NotRequired[str],
    LatestSampleTime: NotRequired[Union[datetime, str]],
    LatestInference: NotRequired[Union[datetime, str]],
    ModelMetrics: NotRequired[Sequence[EdgeMetricTypeDef]],  # (1)
  1. See EdgeMetricTypeDef

EmptyResponseMetadataTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import EmptyResponseMetadataTypeDef

def get_value() -> EmptyResponseMetadataTypeDef:
    return {
        "ResponseMetadata": ...,
    }
Definition
class EmptyResponseMetadataTypeDef(TypedDict):
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetDeviceRegistrationResultTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import GetDeviceRegistrationResultTypeDef

def get_value() -> GetDeviceRegistrationResultTypeDef:
    return {
        "DeviceRegistration": ...,
        "CacheTTL": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetDeviceRegistrationResultTypeDef(TypedDict):
    DeviceRegistration: str,
    CacheTTL: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

EdgeDeploymentTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import EdgeDeploymentTypeDef

def get_value() -> EdgeDeploymentTypeDef:
    return {
        "DeploymentName": ...,
    }
Definition
class EdgeDeploymentTypeDef(TypedDict):
    DeploymentName: NotRequired[str],
    Type: NotRequired[DeploymentTypeType],  # (1)
    FailureHandlingPolicy: NotRequired[FailureHandlingPolicyType],  # (2)
    Definitions: NotRequired[List[DefinitionTypeDef]],  # (3)
  1. See DeploymentTypeType
  2. See FailureHandlingPolicyType
  3. See DefinitionTypeDef

SendHeartbeatRequestRequestTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import SendHeartbeatRequestRequestTypeDef

def get_value() -> SendHeartbeatRequestRequestTypeDef:
    return {
        "AgentVersion": ...,
        "DeviceName": ...,
        "DeviceFleetName": ...,
    }
Definition
class SendHeartbeatRequestRequestTypeDef(TypedDict):
    AgentVersion: str,
    DeviceName: str,
    DeviceFleetName: str,
    AgentMetrics: NotRequired[Sequence[EdgeMetricTypeDef]],  # (1)
    Models: NotRequired[Sequence[ModelTypeDef]],  # (2)
    DeploymentResult: NotRequired[DeploymentResultTypeDef],  # (3)
  1. See EdgeMetricTypeDef
  2. See ModelTypeDef
  3. See DeploymentResultTypeDef

GetDeploymentsResultTypeDef

Usage Example
from mypy_boto3_sagemaker_edge.type_defs import GetDeploymentsResultTypeDef

def get_value() -> GetDeploymentsResultTypeDef:
    return {
        "Deployments": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetDeploymentsResultTypeDef(TypedDict):
    Deployments: List[EdgeDeploymentTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See EdgeDeploymentTypeDef
  2. See ResponseMetadataTypeDef