aws-sdk-sagemakeredgemanager 1.11.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sagemakeredgemanager/client.rb +65 -1
- data/lib/aws-sdk-sagemakeredgemanager/client_api.rb +76 -0
- data/lib/aws-sdk-sagemakeredgemanager/types.rb +267 -2
- data/lib/aws-sdk-sagemakeredgemanager.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15848b8d352cd9bebb4ba8e70042f999210879d003c2ae5fac2e4de544a0bdec
|
4
|
+
data.tar.gz: faf5ef00946a3546842b7b30ae3e96cc05f64c2bab201e55fed3e1a77355aa38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c653ab20d3fe04f4d095fcd70dfd3ef79c34a375de920a9649d5356e25752b9a2596e78fc99dc7ccf7188caac851f3dc2bb0a600ee64226596ad7c34a2e7883
|
7
|
+
data.tar.gz: af770a736979aba0a8ff4e99874055be12bf101c567c9d3fcfa36aa854e9c3f79a88b62990969afbce358872ad2d588dcfe0d084b18769f1859d5adfe7689d7b
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.12.0 (2022-07-19)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon SageMaker Edge Manager provides lightweight model deployment feature to deploy machine learning models on requested devices.
|
8
|
+
|
4
9
|
1.11.0 (2022-02-24)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.12.0
|
@@ -351,6 +351,48 @@ module Aws::SagemakerEdgeManager
|
|
351
351
|
|
352
352
|
# @!group API Operations
|
353
353
|
|
354
|
+
# Use to get the active deployments from a device.
|
355
|
+
#
|
356
|
+
# @option params [required, String] :device_name
|
357
|
+
# The unique name of the device you want to get the configuration of
|
358
|
+
# active deployments from.
|
359
|
+
#
|
360
|
+
# @option params [required, String] :device_fleet_name
|
361
|
+
# The name of the fleet that the device belongs to.
|
362
|
+
#
|
363
|
+
# @return [Types::GetDeploymentsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
364
|
+
#
|
365
|
+
# * {Types::GetDeploymentsResult#deployments #deployments} => Array<Types::EdgeDeployment>
|
366
|
+
#
|
367
|
+
# @example Request syntax with placeholder values
|
368
|
+
#
|
369
|
+
# resp = client.get_deployments({
|
370
|
+
# device_name: "DeviceName", # required
|
371
|
+
# device_fleet_name: "DeviceFleetName", # required
|
372
|
+
# })
|
373
|
+
#
|
374
|
+
# @example Response structure
|
375
|
+
#
|
376
|
+
# resp.deployments #=> Array
|
377
|
+
# resp.deployments[0].deployment_name #=> String
|
378
|
+
# resp.deployments[0].type #=> String, one of "Model"
|
379
|
+
# resp.deployments[0].failure_handling_policy #=> String, one of "ROLLBACK_ON_FAILURE", "DO_NOTHING"
|
380
|
+
# resp.deployments[0].definitions #=> Array
|
381
|
+
# resp.deployments[0].definitions[0].model_handle #=> String
|
382
|
+
# resp.deployments[0].definitions[0].s3_url #=> String
|
383
|
+
# resp.deployments[0].definitions[0].checksum.type #=> String, one of "SHA1"
|
384
|
+
# resp.deployments[0].definitions[0].checksum.sum #=> String
|
385
|
+
# resp.deployments[0].definitions[0].state #=> String, one of "DEPLOY", "UNDEPLOY"
|
386
|
+
#
|
387
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/GetDeployments AWS API Documentation
|
388
|
+
#
|
389
|
+
# @overload get_deployments(params = {})
|
390
|
+
# @param [Hash] params ({})
|
391
|
+
def get_deployments(params = {}, options = {})
|
392
|
+
req = build_request(:get_deployments, params)
|
393
|
+
req.send_request(options)
|
394
|
+
end
|
395
|
+
|
354
396
|
# Use to check if a device is registered with SageMaker Edge Manager.
|
355
397
|
#
|
356
398
|
# @option params [required, String] :device_name
|
@@ -405,6 +447,9 @@ module Aws::SagemakerEdgeManager
|
|
405
447
|
# @option params [required, String] :device_fleet_name
|
406
448
|
# The name of the fleet that the device belongs to.
|
407
449
|
#
|
450
|
+
# @option params [Types::DeploymentResult] :deployment_result
|
451
|
+
# Returns the result of a deployment on the device.
|
452
|
+
#
|
408
453
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
409
454
|
#
|
410
455
|
# @example Request syntax with placeholder values
|
@@ -437,6 +482,25 @@ module Aws::SagemakerEdgeManager
|
|
437
482
|
# agent_version: "Version", # required
|
438
483
|
# device_name: "DeviceName", # required
|
439
484
|
# device_fleet_name: "DeviceFleetName", # required
|
485
|
+
# deployment_result: {
|
486
|
+
# deployment_name: "EntityName",
|
487
|
+
# deployment_status: "EntityName",
|
488
|
+
# deployment_status_message: "String",
|
489
|
+
# deployment_start_time: Time.now,
|
490
|
+
# deployment_end_time: Time.now,
|
491
|
+
# deployment_models: [
|
492
|
+
# {
|
493
|
+
# model_handle: "EntityName",
|
494
|
+
# model_name: "ModelName",
|
495
|
+
# model_version: "Version",
|
496
|
+
# desired_state: "DEPLOY", # accepts DEPLOY, UNDEPLOY
|
497
|
+
# state: "DEPLOY", # accepts DEPLOY, UNDEPLOY
|
498
|
+
# status: "SUCCESS", # accepts SUCCESS, FAIL
|
499
|
+
# status_reason: "String",
|
500
|
+
# rollback_failure_reason: "String",
|
501
|
+
# },
|
502
|
+
# ],
|
503
|
+
# },
|
440
504
|
# })
|
441
505
|
#
|
442
506
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/SendHeartbeat AWS API Documentation
|
@@ -461,7 +525,7 @@ module Aws::SagemakerEdgeManager
|
|
461
525
|
params: params,
|
462
526
|
config: config)
|
463
527
|
context[:gem_name] = 'aws-sdk-sagemakeredgemanager'
|
464
|
-
context[:gem_version] = '1.
|
528
|
+
context[:gem_version] = '1.12.0'
|
465
529
|
Seahorse::Client::Request.new(handlers, context)
|
466
530
|
end
|
467
531
|
|
@@ -14,25 +14,84 @@ module Aws::SagemakerEdgeManager
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
16
|
CacheTTLSeconds = Shapes::StringShape.new(name: 'CacheTTLSeconds')
|
17
|
+
Checksum = Shapes::StructureShape.new(name: 'Checksum')
|
18
|
+
ChecksumString = Shapes::StringShape.new(name: 'ChecksumString')
|
19
|
+
ChecksumType = Shapes::StringShape.new(name: 'ChecksumType')
|
20
|
+
Definition = Shapes::StructureShape.new(name: 'Definition')
|
21
|
+
Definitions = Shapes::ListShape.new(name: 'Definitions')
|
22
|
+
DeploymentModel = Shapes::StructureShape.new(name: 'DeploymentModel')
|
23
|
+
DeploymentModels = Shapes::ListShape.new(name: 'DeploymentModels')
|
24
|
+
DeploymentResult = Shapes::StructureShape.new(name: 'DeploymentResult')
|
25
|
+
DeploymentStatus = Shapes::StringShape.new(name: 'DeploymentStatus')
|
26
|
+
DeploymentType = Shapes::StringShape.new(name: 'DeploymentType')
|
17
27
|
DeviceFleetName = Shapes::StringShape.new(name: 'DeviceFleetName')
|
18
28
|
DeviceName = Shapes::StringShape.new(name: 'DeviceName')
|
19
29
|
DeviceRegistration = Shapes::StringShape.new(name: 'DeviceRegistration')
|
20
30
|
Dimension = Shapes::StringShape.new(name: 'Dimension')
|
31
|
+
EdgeDeployment = Shapes::StructureShape.new(name: 'EdgeDeployment')
|
32
|
+
EdgeDeployments = Shapes::ListShape.new(name: 'EdgeDeployments')
|
21
33
|
EdgeMetric = Shapes::StructureShape.new(name: 'EdgeMetric')
|
22
34
|
EdgeMetrics = Shapes::ListShape.new(name: 'EdgeMetrics')
|
35
|
+
EntityName = Shapes::StringShape.new(name: 'EntityName')
|
23
36
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
37
|
+
FailureHandlingPolicy = Shapes::StringShape.new(name: 'FailureHandlingPolicy')
|
38
|
+
GetDeploymentsRequest = Shapes::StructureShape.new(name: 'GetDeploymentsRequest')
|
39
|
+
GetDeploymentsResult = Shapes::StructureShape.new(name: 'GetDeploymentsResult')
|
24
40
|
GetDeviceRegistrationRequest = Shapes::StructureShape.new(name: 'GetDeviceRegistrationRequest')
|
25
41
|
GetDeviceRegistrationResult = Shapes::StructureShape.new(name: 'GetDeviceRegistrationResult')
|
26
42
|
InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
|
27
43
|
Metric = Shapes::StringShape.new(name: 'Metric')
|
28
44
|
Model = Shapes::StructureShape.new(name: 'Model')
|
29
45
|
ModelName = Shapes::StringShape.new(name: 'ModelName')
|
46
|
+
ModelState = Shapes::StringShape.new(name: 'ModelState')
|
30
47
|
Models = Shapes::ListShape.new(name: 'Models')
|
48
|
+
S3Uri = Shapes::StringShape.new(name: 'S3Uri')
|
31
49
|
SendHeartbeatRequest = Shapes::StructureShape.new(name: 'SendHeartbeatRequest')
|
50
|
+
String = Shapes::StringShape.new(name: 'String')
|
32
51
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
33
52
|
Value = Shapes::FloatShape.new(name: 'Value')
|
34
53
|
Version = Shapes::StringShape.new(name: 'Version')
|
35
54
|
|
55
|
+
Checksum.add_member(:type, Shapes::ShapeRef.new(shape: ChecksumType, location_name: "Type"))
|
56
|
+
Checksum.add_member(:sum, Shapes::ShapeRef.new(shape: ChecksumString, location_name: "Sum"))
|
57
|
+
Checksum.struct_class = Types::Checksum
|
58
|
+
|
59
|
+
Definition.add_member(:model_handle, Shapes::ShapeRef.new(shape: EntityName, location_name: "ModelHandle"))
|
60
|
+
Definition.add_member(:s3_url, Shapes::ShapeRef.new(shape: S3Uri, location_name: "S3Url"))
|
61
|
+
Definition.add_member(:checksum, Shapes::ShapeRef.new(shape: Checksum, location_name: "Checksum"))
|
62
|
+
Definition.add_member(:state, Shapes::ShapeRef.new(shape: ModelState, location_name: "State"))
|
63
|
+
Definition.struct_class = Types::Definition
|
64
|
+
|
65
|
+
Definitions.member = Shapes::ShapeRef.new(shape: Definition)
|
66
|
+
|
67
|
+
DeploymentModel.add_member(:model_handle, Shapes::ShapeRef.new(shape: EntityName, location_name: "ModelHandle"))
|
68
|
+
DeploymentModel.add_member(:model_name, Shapes::ShapeRef.new(shape: ModelName, location_name: "ModelName"))
|
69
|
+
DeploymentModel.add_member(:model_version, Shapes::ShapeRef.new(shape: Version, location_name: "ModelVersion"))
|
70
|
+
DeploymentModel.add_member(:desired_state, Shapes::ShapeRef.new(shape: ModelState, location_name: "DesiredState"))
|
71
|
+
DeploymentModel.add_member(:state, Shapes::ShapeRef.new(shape: ModelState, location_name: "State"))
|
72
|
+
DeploymentModel.add_member(:status, Shapes::ShapeRef.new(shape: DeploymentStatus, location_name: "Status"))
|
73
|
+
DeploymentModel.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "StatusReason"))
|
74
|
+
DeploymentModel.add_member(:rollback_failure_reason, Shapes::ShapeRef.new(shape: String, location_name: "RollbackFailureReason"))
|
75
|
+
DeploymentModel.struct_class = Types::DeploymentModel
|
76
|
+
|
77
|
+
DeploymentModels.member = Shapes::ShapeRef.new(shape: DeploymentModel)
|
78
|
+
|
79
|
+
DeploymentResult.add_member(:deployment_name, Shapes::ShapeRef.new(shape: EntityName, location_name: "DeploymentName"))
|
80
|
+
DeploymentResult.add_member(:deployment_status, Shapes::ShapeRef.new(shape: EntityName, location_name: "DeploymentStatus"))
|
81
|
+
DeploymentResult.add_member(:deployment_status_message, Shapes::ShapeRef.new(shape: String, location_name: "DeploymentStatusMessage"))
|
82
|
+
DeploymentResult.add_member(:deployment_start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DeploymentStartTime"))
|
83
|
+
DeploymentResult.add_member(:deployment_end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DeploymentEndTime"))
|
84
|
+
DeploymentResult.add_member(:deployment_models, Shapes::ShapeRef.new(shape: DeploymentModels, location_name: "DeploymentModels"))
|
85
|
+
DeploymentResult.struct_class = Types::DeploymentResult
|
86
|
+
|
87
|
+
EdgeDeployment.add_member(:deployment_name, Shapes::ShapeRef.new(shape: EntityName, location_name: "DeploymentName"))
|
88
|
+
EdgeDeployment.add_member(:type, Shapes::ShapeRef.new(shape: DeploymentType, location_name: "Type"))
|
89
|
+
EdgeDeployment.add_member(:failure_handling_policy, Shapes::ShapeRef.new(shape: FailureHandlingPolicy, location_name: "FailureHandlingPolicy"))
|
90
|
+
EdgeDeployment.add_member(:definitions, Shapes::ShapeRef.new(shape: Definitions, location_name: "Definitions"))
|
91
|
+
EdgeDeployment.struct_class = Types::EdgeDeployment
|
92
|
+
|
93
|
+
EdgeDeployments.member = Shapes::ShapeRef.new(shape: EdgeDeployment)
|
94
|
+
|
36
95
|
EdgeMetric.add_member(:dimension, Shapes::ShapeRef.new(shape: Dimension, location_name: "Dimension"))
|
37
96
|
EdgeMetric.add_member(:metric_name, Shapes::ShapeRef.new(shape: Metric, location_name: "MetricName"))
|
38
97
|
EdgeMetric.add_member(:value, Shapes::ShapeRef.new(shape: Value, location_name: "Value"))
|
@@ -41,6 +100,13 @@ module Aws::SagemakerEdgeManager
|
|
41
100
|
|
42
101
|
EdgeMetrics.member = Shapes::ShapeRef.new(shape: EdgeMetric)
|
43
102
|
|
103
|
+
GetDeploymentsRequest.add_member(:device_name, Shapes::ShapeRef.new(shape: DeviceName, required: true, location_name: "DeviceName"))
|
104
|
+
GetDeploymentsRequest.add_member(:device_fleet_name, Shapes::ShapeRef.new(shape: DeviceFleetName, required: true, location_name: "DeviceFleetName"))
|
105
|
+
GetDeploymentsRequest.struct_class = Types::GetDeploymentsRequest
|
106
|
+
|
107
|
+
GetDeploymentsResult.add_member(:deployments, Shapes::ShapeRef.new(shape: EdgeDeployments, location_name: "Deployments"))
|
108
|
+
GetDeploymentsResult.struct_class = Types::GetDeploymentsResult
|
109
|
+
|
44
110
|
GetDeviceRegistrationRequest.add_member(:device_name, Shapes::ShapeRef.new(shape: DeviceName, required: true, location_name: "DeviceName"))
|
45
111
|
GetDeviceRegistrationRequest.add_member(:device_fleet_name, Shapes::ShapeRef.new(shape: DeviceFleetName, required: true, location_name: "DeviceFleetName"))
|
46
112
|
GetDeviceRegistrationRequest.struct_class = Types::GetDeviceRegistrationRequest
|
@@ -66,6 +132,7 @@ module Aws::SagemakerEdgeManager
|
|
66
132
|
SendHeartbeatRequest.add_member(:agent_version, Shapes::ShapeRef.new(shape: Version, required: true, location_name: "AgentVersion"))
|
67
133
|
SendHeartbeatRequest.add_member(:device_name, Shapes::ShapeRef.new(shape: DeviceName, required: true, location_name: "DeviceName"))
|
68
134
|
SendHeartbeatRequest.add_member(:device_fleet_name, Shapes::ShapeRef.new(shape: DeviceFleetName, required: true, location_name: "DeviceFleetName"))
|
135
|
+
SendHeartbeatRequest.add_member(:deployment_result, Shapes::ShapeRef.new(shape: DeploymentResult, location_name: "DeploymentResult"))
|
69
136
|
SendHeartbeatRequest.struct_class = Types::SendHeartbeatRequest
|
70
137
|
|
71
138
|
|
@@ -86,6 +153,15 @@ module Aws::SagemakerEdgeManager
|
|
86
153
|
"uid" => "sagemaker-edge-2020-09-23",
|
87
154
|
}
|
88
155
|
|
156
|
+
api.add_operation(:get_deployments, Seahorse::Model::Operation.new.tap do |o|
|
157
|
+
o.name = "GetDeployments"
|
158
|
+
o.http_method = "POST"
|
159
|
+
o.http_request_uri = "/GetDeployments"
|
160
|
+
o.input = Shapes::ShapeRef.new(shape: GetDeploymentsRequest)
|
161
|
+
o.output = Shapes::ShapeRef.new(shape: GetDeploymentsResult)
|
162
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
|
163
|
+
end)
|
164
|
+
|
89
165
|
api.add_operation(:get_device_registration, Seahorse::Model::Operation.new.tap do |o|
|
90
166
|
o.name = "GetDeviceRegistration"
|
91
167
|
o.http_method = "POST"
|
@@ -10,6 +10,208 @@
|
|
10
10
|
module Aws::SagemakerEdgeManager
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# Information about the checksum of a model deployed on a device.
|
14
|
+
#
|
15
|
+
# @!attribute [rw] type
|
16
|
+
# The type of the checksum.
|
17
|
+
# @return [String]
|
18
|
+
#
|
19
|
+
# @!attribute [rw] sum
|
20
|
+
# The checksum of the model.
|
21
|
+
# @return [String]
|
22
|
+
#
|
23
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/Checksum AWS API Documentation
|
24
|
+
#
|
25
|
+
class Checksum < Struct.new(
|
26
|
+
:type,
|
27
|
+
:sum)
|
28
|
+
SENSITIVE = []
|
29
|
+
include Aws::Structure
|
30
|
+
end
|
31
|
+
|
32
|
+
# @!attribute [rw] model_handle
|
33
|
+
# The unique model handle.
|
34
|
+
# @return [String]
|
35
|
+
#
|
36
|
+
# @!attribute [rw] s3_url
|
37
|
+
# The absolute S3 location of the model.
|
38
|
+
# @return [String]
|
39
|
+
#
|
40
|
+
# @!attribute [rw] checksum
|
41
|
+
# The checksum information of the model.
|
42
|
+
# @return [Types::Checksum]
|
43
|
+
#
|
44
|
+
# @!attribute [rw] state
|
45
|
+
# The desired state of the model.
|
46
|
+
# @return [String]
|
47
|
+
#
|
48
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/Definition AWS API Documentation
|
49
|
+
#
|
50
|
+
class Definition < Struct.new(
|
51
|
+
:model_handle,
|
52
|
+
:s3_url,
|
53
|
+
:checksum,
|
54
|
+
:state)
|
55
|
+
SENSITIVE = []
|
56
|
+
include Aws::Structure
|
57
|
+
end
|
58
|
+
|
59
|
+
# @note When making an API call, you may pass DeploymentModel
|
60
|
+
# data as a hash:
|
61
|
+
#
|
62
|
+
# {
|
63
|
+
# model_handle: "EntityName",
|
64
|
+
# model_name: "ModelName",
|
65
|
+
# model_version: "Version",
|
66
|
+
# desired_state: "DEPLOY", # accepts DEPLOY, UNDEPLOY
|
67
|
+
# state: "DEPLOY", # accepts DEPLOY, UNDEPLOY
|
68
|
+
# status: "SUCCESS", # accepts SUCCESS, FAIL
|
69
|
+
# status_reason: "String",
|
70
|
+
# rollback_failure_reason: "String",
|
71
|
+
# }
|
72
|
+
#
|
73
|
+
# @!attribute [rw] model_handle
|
74
|
+
# The unique handle of the model.
|
75
|
+
# @return [String]
|
76
|
+
#
|
77
|
+
# @!attribute [rw] model_name
|
78
|
+
# The name of the model.
|
79
|
+
# @return [String]
|
80
|
+
#
|
81
|
+
# @!attribute [rw] model_version
|
82
|
+
# The version of the model.
|
83
|
+
# @return [String]
|
84
|
+
#
|
85
|
+
# @!attribute [rw] desired_state
|
86
|
+
# The desired state of the model.
|
87
|
+
# @return [String]
|
88
|
+
#
|
89
|
+
# @!attribute [rw] state
|
90
|
+
# Returns the current state of the model.
|
91
|
+
# @return [String]
|
92
|
+
#
|
93
|
+
# @!attribute [rw] status
|
94
|
+
# Returns the deployment status of the model.
|
95
|
+
# @return [String]
|
96
|
+
#
|
97
|
+
# @!attribute [rw] status_reason
|
98
|
+
# Returns the error message for the deployment status result.
|
99
|
+
# @return [String]
|
100
|
+
#
|
101
|
+
# @!attribute [rw] rollback_failure_reason
|
102
|
+
# Returns the error message if there is a rollback.
|
103
|
+
# @return [String]
|
104
|
+
#
|
105
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/DeploymentModel AWS API Documentation
|
106
|
+
#
|
107
|
+
class DeploymentModel < Struct.new(
|
108
|
+
:model_handle,
|
109
|
+
:model_name,
|
110
|
+
:model_version,
|
111
|
+
:desired_state,
|
112
|
+
:state,
|
113
|
+
:status,
|
114
|
+
:status_reason,
|
115
|
+
:rollback_failure_reason)
|
116
|
+
SENSITIVE = []
|
117
|
+
include Aws::Structure
|
118
|
+
end
|
119
|
+
|
120
|
+
# Information about the result of a deployment on an edge device that is
|
121
|
+
# registered with SageMaker Edge Manager.
|
122
|
+
#
|
123
|
+
# @note When making an API call, you may pass DeploymentResult
|
124
|
+
# data as a hash:
|
125
|
+
#
|
126
|
+
# {
|
127
|
+
# deployment_name: "EntityName",
|
128
|
+
# deployment_status: "EntityName",
|
129
|
+
# deployment_status_message: "String",
|
130
|
+
# deployment_start_time: Time.now,
|
131
|
+
# deployment_end_time: Time.now,
|
132
|
+
# deployment_models: [
|
133
|
+
# {
|
134
|
+
# model_handle: "EntityName",
|
135
|
+
# model_name: "ModelName",
|
136
|
+
# model_version: "Version",
|
137
|
+
# desired_state: "DEPLOY", # accepts DEPLOY, UNDEPLOY
|
138
|
+
# state: "DEPLOY", # accepts DEPLOY, UNDEPLOY
|
139
|
+
# status: "SUCCESS", # accepts SUCCESS, FAIL
|
140
|
+
# status_reason: "String",
|
141
|
+
# rollback_failure_reason: "String",
|
142
|
+
# },
|
143
|
+
# ],
|
144
|
+
# }
|
145
|
+
#
|
146
|
+
# @!attribute [rw] deployment_name
|
147
|
+
# The name and unique ID of the deployment.
|
148
|
+
# @return [String]
|
149
|
+
#
|
150
|
+
# @!attribute [rw] deployment_status
|
151
|
+
# Returns the bucket error code.
|
152
|
+
# @return [String]
|
153
|
+
#
|
154
|
+
# @!attribute [rw] deployment_status_message
|
155
|
+
# Returns the detailed error message.
|
156
|
+
# @return [String]
|
157
|
+
#
|
158
|
+
# @!attribute [rw] deployment_start_time
|
159
|
+
# The timestamp of when the deployment was started on the agent.
|
160
|
+
# @return [Time]
|
161
|
+
#
|
162
|
+
# @!attribute [rw] deployment_end_time
|
163
|
+
# The timestamp of when the deployment was ended, and the agent got
|
164
|
+
# the deployment results.
|
165
|
+
# @return [Time]
|
166
|
+
#
|
167
|
+
# @!attribute [rw] deployment_models
|
168
|
+
# Returns a list of models deployed on the agent.
|
169
|
+
# @return [Array<Types::DeploymentModel>]
|
170
|
+
#
|
171
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/DeploymentResult AWS API Documentation
|
172
|
+
#
|
173
|
+
class DeploymentResult < Struct.new(
|
174
|
+
:deployment_name,
|
175
|
+
:deployment_status,
|
176
|
+
:deployment_status_message,
|
177
|
+
:deployment_start_time,
|
178
|
+
:deployment_end_time,
|
179
|
+
:deployment_models)
|
180
|
+
SENSITIVE = []
|
181
|
+
include Aws::Structure
|
182
|
+
end
|
183
|
+
|
184
|
+
# Information about a deployment on an edge device that is registered
|
185
|
+
# with SageMaker Edge Manager.
|
186
|
+
#
|
187
|
+
# @!attribute [rw] deployment_name
|
188
|
+
# The name and unique ID of the deployment.
|
189
|
+
# @return [String]
|
190
|
+
#
|
191
|
+
# @!attribute [rw] type
|
192
|
+
# The type of the deployment.
|
193
|
+
# @return [String]
|
194
|
+
#
|
195
|
+
# @!attribute [rw] failure_handling_policy
|
196
|
+
# Determines whether to rollback to previous configuration if
|
197
|
+
# deployment fails.
|
198
|
+
# @return [String]
|
199
|
+
#
|
200
|
+
# @!attribute [rw] definitions
|
201
|
+
# Returns a list of Definition objects.
|
202
|
+
# @return [Array<Types::Definition>]
|
203
|
+
#
|
204
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/EdgeDeployment AWS API Documentation
|
205
|
+
#
|
206
|
+
class EdgeDeployment < Struct.new(
|
207
|
+
:deployment_name,
|
208
|
+
:type,
|
209
|
+
:failure_handling_policy,
|
210
|
+
:definitions)
|
211
|
+
SENSITIVE = []
|
212
|
+
include Aws::Structure
|
213
|
+
end
|
214
|
+
|
13
215
|
# Information required for edge device metrics.
|
14
216
|
#
|
15
217
|
# @note When making an API call, you may pass EdgeMetric
|
@@ -49,6 +251,45 @@ module Aws::SagemakerEdgeManager
|
|
49
251
|
include Aws::Structure
|
50
252
|
end
|
51
253
|
|
254
|
+
# @note When making an API call, you may pass GetDeploymentsRequest
|
255
|
+
# data as a hash:
|
256
|
+
#
|
257
|
+
# {
|
258
|
+
# device_name: "DeviceName", # required
|
259
|
+
# device_fleet_name: "DeviceFleetName", # required
|
260
|
+
# }
|
261
|
+
#
|
262
|
+
# @!attribute [rw] device_name
|
263
|
+
# The unique name of the device you want to get the configuration of
|
264
|
+
# active deployments from.
|
265
|
+
# @return [String]
|
266
|
+
#
|
267
|
+
# @!attribute [rw] device_fleet_name
|
268
|
+
# The name of the fleet that the device belongs to.
|
269
|
+
# @return [String]
|
270
|
+
#
|
271
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/GetDeploymentsRequest AWS API Documentation
|
272
|
+
#
|
273
|
+
class GetDeploymentsRequest < Struct.new(
|
274
|
+
:device_name,
|
275
|
+
:device_fleet_name)
|
276
|
+
SENSITIVE = []
|
277
|
+
include Aws::Structure
|
278
|
+
end
|
279
|
+
|
280
|
+
# @!attribute [rw] deployments
|
281
|
+
# Returns a list of the configurations of the active deployments on
|
282
|
+
# the device.
|
283
|
+
# @return [Array<Types::EdgeDeployment>]
|
284
|
+
#
|
285
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/GetDeploymentsResult AWS API Documentation
|
286
|
+
#
|
287
|
+
class GetDeploymentsResult < Struct.new(
|
288
|
+
:deployments)
|
289
|
+
SENSITIVE = []
|
290
|
+
include Aws::Structure
|
291
|
+
end
|
292
|
+
|
52
293
|
# @note When making an API call, you may pass GetDeviceRegistrationRequest
|
53
294
|
# data as a hash:
|
54
295
|
#
|
@@ -95,7 +336,7 @@ module Aws::SagemakerEdgeManager
|
|
95
336
|
end
|
96
337
|
|
97
338
|
# An internal failure occurred. Try your request again. If the problem
|
98
|
-
# persists, contact
|
339
|
+
# persists, contact Amazon Web Services customer support.
|
99
340
|
#
|
100
341
|
# @!attribute [rw] message
|
101
342
|
# @return [String]
|
@@ -192,6 +433,25 @@ module Aws::SagemakerEdgeManager
|
|
192
433
|
# agent_version: "Version", # required
|
193
434
|
# device_name: "DeviceName", # required
|
194
435
|
# device_fleet_name: "DeviceFleetName", # required
|
436
|
+
# deployment_result: {
|
437
|
+
# deployment_name: "EntityName",
|
438
|
+
# deployment_status: "EntityName",
|
439
|
+
# deployment_status_message: "String",
|
440
|
+
# deployment_start_time: Time.now,
|
441
|
+
# deployment_end_time: Time.now,
|
442
|
+
# deployment_models: [
|
443
|
+
# {
|
444
|
+
# model_handle: "EntityName",
|
445
|
+
# model_name: "ModelName",
|
446
|
+
# model_version: "Version",
|
447
|
+
# desired_state: "DEPLOY", # accepts DEPLOY, UNDEPLOY
|
448
|
+
# state: "DEPLOY", # accepts DEPLOY, UNDEPLOY
|
449
|
+
# status: "SUCCESS", # accepts SUCCESS, FAIL
|
450
|
+
# status_reason: "String",
|
451
|
+
# rollback_failure_reason: "String",
|
452
|
+
# },
|
453
|
+
# ],
|
454
|
+
# },
|
195
455
|
# }
|
196
456
|
#
|
197
457
|
# @!attribute [rw] agent_metrics
|
@@ -215,6 +475,10 @@ module Aws::SagemakerEdgeManager
|
|
215
475
|
# The name of the fleet that the device belongs to.
|
216
476
|
# @return [String]
|
217
477
|
#
|
478
|
+
# @!attribute [rw] deployment_result
|
479
|
+
# Returns the result of a deployment on the device.
|
480
|
+
# @return [Types::DeploymentResult]
|
481
|
+
#
|
218
482
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/SendHeartbeatRequest AWS API Documentation
|
219
483
|
#
|
220
484
|
class SendHeartbeatRequest < Struct.new(
|
@@ -222,7 +486,8 @@ module Aws::SagemakerEdgeManager
|
|
222
486
|
:models,
|
223
487
|
:agent_version,
|
224
488
|
:device_name,
|
225
|
-
:device_fleet_name
|
489
|
+
:device_fleet_name,
|
490
|
+
:deployment_result)
|
226
491
|
SENSITIVE = []
|
227
492
|
include Aws::Structure
|
228
493
|
end
|
@@ -28,7 +28,7 @@ require_relative 'aws-sdk-sagemakeredgemanager/customizations'
|
|
28
28
|
# structure.
|
29
29
|
#
|
30
30
|
# sagemaker_edge_manager = Aws::SagemakerEdgeManager::Client.new
|
31
|
-
# resp = sagemaker_edge_manager.
|
31
|
+
# resp = sagemaker_edge_manager.get_deployments(params)
|
32
32
|
#
|
33
33
|
# See {Client} for more information.
|
34
34
|
#
|
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-sagemakeredgemanager/customizations'
|
|
48
48
|
# @!group service
|
49
49
|
module Aws::SagemakerEdgeManager
|
50
50
|
|
51
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.12.0'
|
52
52
|
|
53
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-sagemakeredgemanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|