{ "version": "2.0", "metadata": { "apiVersion": "2020-09-23", "endpointPrefix": "edge.sagemaker", "jsonVersion": "1.1", "protocol": "rest-json", "serviceFullName": "Amazon Sagemaker Edge Manager", "serviceId": "Sagemaker Edge", "signatureVersion": "v4", "signingName": "sagemaker", "uid": "sagemaker-edge-2020-09-23" }, "operations": { "GetDeployments": { "name": "GetDeployments", "http": { "method": "POST", "requestUri": "/GetDeployments" }, "input": { "shape": "GetDeploymentsRequest" }, "output": { "shape": "GetDeploymentsResult" }, "errors": [ { "shape": "InternalServiceException" } ], "documentation": "
Use to get the active deployments from a device.
" }, "GetDeviceRegistration": { "name": "GetDeviceRegistration", "http": { "method": "POST", "requestUri": "/GetDeviceRegistration" }, "input": { "shape": "GetDeviceRegistrationRequest" }, "output": { "shape": "GetDeviceRegistrationResult" }, "errors": [ { "shape": "InternalServiceException" } ], "documentation": "Use to check if a device is registered with SageMaker Edge Manager.
" }, "SendHeartbeat": { "name": "SendHeartbeat", "http": { "method": "POST", "requestUri": "/SendHeartbeat" }, "input": { "shape": "SendHeartbeatRequest" }, "errors": [ { "shape": "InternalServiceException" } ], "documentation": "Use to get the current status of devices registered on SageMaker Edge Manager.
" } }, "shapes": { "CacheTTLSeconds": { "type": "string", "max": 1000, "min": 1 }, "Checksum": { "type": "structure", "members": { "Type": { "shape": "ChecksumType", "documentation": "The type of the checksum.
" }, "Sum": { "shape": "ChecksumString", "documentation": "The checksum of the model.
" } }, "documentation": "Information about the checksum of a model deployed on a device.
" }, "ChecksumString": { "type": "string", "max": 63, "min": 1, "pattern": "^[a-z0-9](-*[a-z0-9])*$" }, "ChecksumType": { "type": "string", "enum": [ "SHA1" ] }, "Definition": { "type": "structure", "members": { "ModelHandle": { "shape": "EntityName", "documentation": "The unique model handle.
" }, "S3Url": { "shape": "S3Uri", "documentation": "The absolute S3 location of the model.
" }, "Checksum": { "shape": "Checksum", "documentation": "The checksum information of the model.
" }, "State": { "shape": "ModelState", "documentation": "The desired state of the model.
" } }, "documentation": "" }, "Definitions": { "type": "list", "member": { "shape": "Definition" } }, "DeploymentModel": { "type": "structure", "members": { "ModelHandle": { "shape": "EntityName", "documentation": "The unique handle of the model.
" }, "ModelName": { "shape": "ModelName", "documentation": "The name of the model.
" }, "ModelVersion": { "shape": "Version", "documentation": "The version of the model.
" }, "DesiredState": { "shape": "ModelState", "documentation": "The desired state of the model.
" }, "State": { "shape": "ModelState", "documentation": "Returns the current state of the model.
" }, "Status": { "shape": "DeploymentStatus", "documentation": "Returns the deployment status of the model.
" }, "StatusReason": { "shape": "String", "documentation": "Returns the error message for the deployment status result.
" }, "RollbackFailureReason": { "shape": "String", "documentation": "Returns the error message if there is a rollback.
" } }, "documentation": "" }, "DeploymentModels": { "type": "list", "member": { "shape": "DeploymentModel" } }, "DeploymentResult": { "type": "structure", "members": { "DeploymentName": { "shape": "EntityName", "documentation": "The name and unique ID of the deployment.
" }, "DeploymentStatus": { "shape": "EntityName", "documentation": "Returns the bucket error code.
" }, "DeploymentStatusMessage": { "shape": "String", "documentation": "Returns the detailed error message.
" }, "DeploymentStartTime": { "shape": "Timestamp", "documentation": "The timestamp of when the deployment was started on the agent.
" }, "DeploymentEndTime": { "shape": "Timestamp", "documentation": "The timestamp of when the deployment was ended, and the agent got the deployment results.
" }, "DeploymentModels": { "shape": "DeploymentModels", "documentation": "Returns a list of models deployed on the agent.
" } }, "documentation": "Information about the result of a deployment on an edge device that is registered with SageMaker Edge Manager.
" }, "DeploymentStatus": { "type": "string", "enum": [ "SUCCESS", "FAIL" ] }, "DeploymentType": { "type": "string", "enum": [ "Model" ] }, "DeviceFleetName": { "type": "string", "max": 63, "min": 1, "pattern": "^[a-zA-Z0-9](-*_*[a-zA-Z0-9])*$" }, "DeviceName": { "type": "string", "max": 63, "min": 1, "pattern": "^[a-zA-Z0-9](-*_*[a-zA-Z0-9])*$" }, "DeviceRegistration": { "type": "string", "max": 1000, "min": 1 }, "Dimension": { "type": "string", "max": 1000, "min": 1, "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9\\/])*$" }, "EdgeDeployment": { "type": "structure", "members": { "DeploymentName": { "shape": "EntityName", "documentation": "The name and unique ID of the deployment.
" }, "Type": { "shape": "DeploymentType", "documentation": "The type of the deployment.
" }, "FailureHandlingPolicy": { "shape": "FailureHandlingPolicy", "documentation": "Determines whether to rollback to previous configuration if deployment fails.
" }, "Definitions": { "shape": "Definitions", "documentation": "Returns a list of Definition objects.
" } }, "documentation": "Information about a deployment on an edge device that is registered with SageMaker Edge Manager.
" }, "EdgeDeployments": { "type": "list", "member": { "shape": "EdgeDeployment" } }, "EdgeMetric": { "type": "structure", "members": { "Dimension": { "shape": "Dimension", "documentation": "The dimension of metrics published.
" }, "MetricName": { "shape": "Metric", "documentation": "Returns the name of the metric.
" }, "Value": { "shape": "Value", "documentation": "Returns the value of the metric.
" }, "Timestamp": { "shape": "Timestamp", "documentation": "Timestamp of when the metric was requested.
" } }, "documentation": "Information required for edge device metrics.
" }, "EdgeMetrics": { "type": "list", "member": { "shape": "EdgeMetric" } }, "EntityName": { "type": "string", "max": 63, "min": 1, "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9])*$" }, "FailureHandlingPolicy": { "type": "string", "enum": [ "ROLLBACK_ON_FAILURE", "DO_NOTHING" ] }, "GetDeploymentsRequest": { "type": "structure", "required": [ "DeviceName", "DeviceFleetName" ], "members": { "DeviceName": { "shape": "DeviceName", "documentation": "The unique name of the device you want to get the configuration of active deployments from.
" }, "DeviceFleetName": { "shape": "DeviceFleetName", "documentation": "The name of the fleet that the device belongs to.
" } } }, "GetDeploymentsResult": { "type": "structure", "members": { "Deployments": { "shape": "EdgeDeployments", "documentation": "Returns a list of the configurations of the active deployments on the device.
" } } }, "GetDeviceRegistrationRequest": { "type": "structure", "required": [ "DeviceName", "DeviceFleetName" ], "members": { "DeviceName": { "shape": "DeviceName", "documentation": "The unique name of the device you want to get the registration status from.
" }, "DeviceFleetName": { "shape": "DeviceFleetName", "documentation": "The name of the fleet that the device belongs to.
" } } }, "GetDeviceRegistrationResult": { "type": "structure", "members": { "DeviceRegistration": { "shape": "DeviceRegistration", "documentation": "Describes if the device is currently registered with SageMaker Edge Manager.
" }, "CacheTTL": { "shape": "CacheTTLSeconds", "documentation": "The amount of time, in seconds, that the registration status is stored on the device’s cache before it is refreshed.
" } } }, "Metric": { "type": "string", "max": 100, "min": 4, "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9])*$" }, "Model": { "type": "structure", "members": { "ModelName": { "shape": "ModelName", "documentation": "The name of the model.
" }, "ModelVersion": { "shape": "Version", "documentation": "The version of the model.
" }, "LatestSampleTime": { "shape": "Timestamp", "documentation": "The timestamp of the last data sample taken.
" }, "LatestInference": { "shape": "Timestamp", "documentation": "The timestamp of the last inference that was made.
" }, "ModelMetrics": { "shape": "EdgeMetrics", "documentation": "Information required for model metrics.
" } }, "documentation": "Information about a model deployed on an edge device that is registered with SageMaker Edge Manager.
" }, "ModelName": { "type": "string", "max": 255, "min": 4, "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9])*$" }, "ModelState": { "type": "string", "enum": [ "DEPLOY", "UNDEPLOY" ] }, "Models": { "type": "list", "member": { "shape": "Model" } }, "S3Uri": { "type": "string", "max": 1024, "pattern": "^s3://([^/]+)/?(.*)$" }, "SendHeartbeatRequest": { "type": "structure", "required": [ "AgentVersion", "DeviceName", "DeviceFleetName" ], "members": { "AgentMetrics": { "shape": "EdgeMetrics", "documentation": "For internal use. Returns a list of SageMaker Edge Manager agent operating metrics.
" }, "Models": { "shape": "Models", "documentation": "Returns a list of models deployed on the the device.
" }, "AgentVersion": { "shape": "Version", "documentation": "Returns the version of the agent.
" }, "DeviceName": { "shape": "DeviceName", "documentation": "The unique name of the device.
" }, "DeviceFleetName": { "shape": "DeviceFleetName", "documentation": "The name of the fleet that the device belongs to.
" }, "DeploymentResult": { "shape": "DeploymentResult", "documentation": "Returns the result of a deployment on the device.
" } } }, "String": { "type": "string" }, "Timestamp": { "type": "timestamp" }, "Value": { "type": "double" }, "Version": { "type": "string", "max": 64, "min": 1, "pattern": "[a-zA-Z0-9\\ \\_\\.]+" } }, "documentation": "SageMaker Edge Manager dataplane service for communicating with active agents.
" }