aws-sdk-sagemakeredgemanager 1.11.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76194a627e04f9484bf9cc4f6950d7ff46062697bf75d95339501ce3efd9a8ec
4
- data.tar.gz: b0b424c270aeed11996b14c0beba929c724d36526c701adb14943e38cfd71ca2
3
+ metadata.gz: 45cf3bc5ce8873871e73098ebc1684a8a444f2056fb8d1f1aa36f53cecd072ac
4
+ data.tar.gz: a80065017812807eba63857042e001c80fcc5aca03cf87c1bdf7334995e6f5bc
5
5
  SHA512:
6
- metadata.gz: dda46646e2af1ab19b93e89849e223aca9c93cf112ad5201c2ff7378d310d5c98dd8ee9eb3a7c7ea9168216676d39916f73faf4fc72e5405bc9b7788cdaae932
7
- data.tar.gz: 758f368e7b577d69a0a35b31689c45d97938fb5d3958a2fcd4680c821046c51c9422728cd03fa0dbb1cf4cfd9884a7f7e5e165e9de0db18853dfb69873d84efe
6
+ metadata.gz: 17d04aedfa30462409c76a0a2cb6f2e9ddb2a2d265cff3b2335e627ca2ca5a135b788bba3996989c014b87d81e3c854c3f12077c6168984aa82e9523e88b6376
7
+ data.tar.gz: 5135aca41f867ea72511339035a4c1d6f4daabd0fb6ca03ad80ec9a810cf93fbef75b1b48b34a5aa4077ac82f019f18c924cd610c8b749924b6e5ed216e77e0f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.13.0 (2022-10-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.12.0 (2022-07-19)
10
+ ------------------
11
+
12
+ * Feature - Amazon SageMaker Edge Manager provides lightweight model deployment feature to deploy machine learning models on requested devices.
13
+
4
14
  1.11.0 (2022-02-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.11.0
1
+ 1.13.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:sagemakeredgemanager)
@@ -79,8 +79,9 @@ module Aws::SagemakerEdgeManager
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::SagemakerEdgeManager::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::SagemakerEdgeManager
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::SagemakerEdgeManager
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::SagemakerEdgeManager::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::SagemakerEdgeManager::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -351,6 +368,48 @@ module Aws::SagemakerEdgeManager
351
368
 
352
369
  # @!group API Operations
353
370
 
371
+ # Use to get the active deployments from a device.
372
+ #
373
+ # @option params [required, String] :device_name
374
+ # The unique name of the device you want to get the configuration of
375
+ # active deployments from.
376
+ #
377
+ # @option params [required, String] :device_fleet_name
378
+ # The name of the fleet that the device belongs to.
379
+ #
380
+ # @return [Types::GetDeploymentsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
381
+ #
382
+ # * {Types::GetDeploymentsResult#deployments #deployments} => Array<Types::EdgeDeployment>
383
+ #
384
+ # @example Request syntax with placeholder values
385
+ #
386
+ # resp = client.get_deployments({
387
+ # device_name: "DeviceName", # required
388
+ # device_fleet_name: "DeviceFleetName", # required
389
+ # })
390
+ #
391
+ # @example Response structure
392
+ #
393
+ # resp.deployments #=> Array
394
+ # resp.deployments[0].deployment_name #=> String
395
+ # resp.deployments[0].type #=> String, one of "Model"
396
+ # resp.deployments[0].failure_handling_policy #=> String, one of "ROLLBACK_ON_FAILURE", "DO_NOTHING"
397
+ # resp.deployments[0].definitions #=> Array
398
+ # resp.deployments[0].definitions[0].model_handle #=> String
399
+ # resp.deployments[0].definitions[0].s3_url #=> String
400
+ # resp.deployments[0].definitions[0].checksum.type #=> String, one of "SHA1"
401
+ # resp.deployments[0].definitions[0].checksum.sum #=> String
402
+ # resp.deployments[0].definitions[0].state #=> String, one of "DEPLOY", "UNDEPLOY"
403
+ #
404
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/GetDeployments AWS API Documentation
405
+ #
406
+ # @overload get_deployments(params = {})
407
+ # @param [Hash] params ({})
408
+ def get_deployments(params = {}, options = {})
409
+ req = build_request(:get_deployments, params)
410
+ req.send_request(options)
411
+ end
412
+
354
413
  # Use to check if a device is registered with SageMaker Edge Manager.
355
414
  #
356
415
  # @option params [required, String] :device_name
@@ -405,6 +464,9 @@ module Aws::SagemakerEdgeManager
405
464
  # @option params [required, String] :device_fleet_name
406
465
  # The name of the fleet that the device belongs to.
407
466
  #
467
+ # @option params [Types::DeploymentResult] :deployment_result
468
+ # Returns the result of a deployment on the device.
469
+ #
408
470
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
409
471
  #
410
472
  # @example Request syntax with placeholder values
@@ -437,6 +499,25 @@ module Aws::SagemakerEdgeManager
437
499
  # agent_version: "Version", # required
438
500
  # device_name: "DeviceName", # required
439
501
  # device_fleet_name: "DeviceFleetName", # required
502
+ # deployment_result: {
503
+ # deployment_name: "EntityName",
504
+ # deployment_status: "EntityName",
505
+ # deployment_status_message: "String",
506
+ # deployment_start_time: Time.now,
507
+ # deployment_end_time: Time.now,
508
+ # deployment_models: [
509
+ # {
510
+ # model_handle: "EntityName",
511
+ # model_name: "ModelName",
512
+ # model_version: "Version",
513
+ # desired_state: "DEPLOY", # accepts DEPLOY, UNDEPLOY
514
+ # state: "DEPLOY", # accepts DEPLOY, UNDEPLOY
515
+ # status: "SUCCESS", # accepts SUCCESS, FAIL
516
+ # status_reason: "String",
517
+ # rollback_failure_reason: "String",
518
+ # },
519
+ # ],
520
+ # },
440
521
  # })
441
522
  #
442
523
  # @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-edge-2020-09-23/SendHeartbeat AWS API Documentation
@@ -461,7 +542,7 @@ module Aws::SagemakerEdgeManager
461
542
  params: params,
462
543
  config: config)
463
544
  context[:gem_name] = 'aws-sdk-sagemakeredgemanager'
464
- context[:gem_version] = '1.11.0'
545
+ context[:gem_version] = '1.13.0'
465
546
  Seahorse::Client::Request.new(handlers, context)
466
547
  end
467
548
 
@@ -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"
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::SagemakerEdgeManager
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,112 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::SagemakerEdgeManager
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES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4iOiJib29sZWFuRXF1YWxzIiwiYXJndiI6W3RydWUs
97
+ eyJmbiI6ImdldEF0dHIiLCJhcmd2IjpbeyJyZWYiOiJQYXJ0aXRpb25SZXN1
98
+ bHQifSwic3VwcG9ydHNEdWFsU3RhY2siXX1dfV0sInR5cGUiOiJ0cmVlIiwi
99
+ cnVsZXMiOlt7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJo
100
+ dHRwczovL2VkZ2Uuc2FnZW1ha2VyLntSZWdpb259LntQYXJ0aXRpb25SZXN1
101
+ bHQjZHVhbFN0YWNrRG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFk
102
+ ZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpb
103
+ XSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0
104
+ aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJy
105
+ b3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0
106
+ dHBzOi8vZWRnZS5zYWdlbWFrZXIue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3Vs
107
+ dCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwi
108
+ dHlwZSI6ImVuZHBvaW50In1dfV19
109
+
110
+ JSON
111
+ end
112
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::SagemakerEdgeManager
12
+ module Endpoints
13
+
14
+ class GetDeployments
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::SagemakerEdgeManager::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class GetDeviceRegistration
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::SagemakerEdgeManager::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class SendHeartbeat
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::SagemakerEdgeManager::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ end
57
+ end
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::SagemakerEdgeManager
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::SagemakerEdgeManager::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::SagemakerEdgeManager::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::SagemakerEdgeManager::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :get_deployments
60
+ Aws::SagemakerEdgeManager::Endpoints::GetDeployments.build(context)
61
+ when :get_device_registration
62
+ Aws::SagemakerEdgeManager::Endpoints::GetDeviceRegistration.build(context)
63
+ when :send_heartbeat
64
+ Aws::SagemakerEdgeManager::Endpoints::SendHeartbeat.build(context)
65
+ end
66
+ end
67
+ end
68
+
69
+ def add_handlers(handlers, _config)
70
+ handlers.add(Handler, step: :build, priority: 75)
71
+ end
72
+ end
73
+ end
74
+ end
@@ -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 AWS customer support.
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
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-sagemakeredgemanager/types'
15
15
  require_relative 'aws-sdk-sagemakeredgemanager/client_api'
16
+ require_relative 'aws-sdk-sagemakeredgemanager/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-sagemakeredgemanager/client'
17
18
  require_relative 'aws-sdk-sagemakeredgemanager/errors'
18
19
  require_relative 'aws-sdk-sagemakeredgemanager/resource'
20
+ require_relative 'aws-sdk-sagemakeredgemanager/endpoint_parameters'
21
+ require_relative 'aws-sdk-sagemakeredgemanager/endpoint_provider'
22
+ require_relative 'aws-sdk-sagemakeredgemanager/endpoints'
19
23
  require_relative 'aws-sdk-sagemakeredgemanager/customizations'
20
24
 
21
25
  # This module provides support for Amazon Sagemaker Edge Manager. This module is available in the
@@ -28,7 +32,7 @@ require_relative 'aws-sdk-sagemakeredgemanager/customizations'
28
32
  # structure.
29
33
  #
30
34
  # sagemaker_edge_manager = Aws::SagemakerEdgeManager::Client.new
31
- # resp = sagemaker_edge_manager.get_device_registration(params)
35
+ # resp = sagemaker_edge_manager.get_deployments(params)
32
36
  #
33
37
  # See {Client} for more information.
34
38
  #
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-sagemakeredgemanager/customizations'
48
52
  # @!group service
49
53
  module Aws::SagemakerEdgeManager
50
54
 
51
- GEM_VERSION = '1.11.0'
55
+ GEM_VERSION = '1.13.0'
52
56
 
53
57
  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.11.0
4
+ version: 1.13.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-02-24 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-sagemakeredgemanager/client.rb
60
60
  - lib/aws-sdk-sagemakeredgemanager/client_api.rb
61
61
  - lib/aws-sdk-sagemakeredgemanager/customizations.rb
62
+ - lib/aws-sdk-sagemakeredgemanager/endpoint_parameters.rb
63
+ - lib/aws-sdk-sagemakeredgemanager/endpoint_provider.rb
64
+ - lib/aws-sdk-sagemakeredgemanager/endpoints.rb
62
65
  - lib/aws-sdk-sagemakeredgemanager/errors.rb
66
+ - lib/aws-sdk-sagemakeredgemanager/plugins/endpoints.rb
63
67
  - lib/aws-sdk-sagemakeredgemanager/resource.rb
64
68
  - lib/aws-sdk-sagemakeredgemanager/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby