aws-sdk-sagemaker 1.47.0 → 1.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-sagemaker.rb +1 -1
- data/lib/aws-sdk-sagemaker/client.rb +4200 -191
- data/lib/aws-sdk-sagemaker/client_api.rb +2231 -0
- data/lib/aws-sdk-sagemaker/errors.rb +16 -0
- data/lib/aws-sdk-sagemaker/types.rb +16439 -8321
- data/lib/aws-sdk-sagemaker/waiters.rb +55 -0
- metadata +2 -2
@@ -233,6 +233,61 @@ module Aws::SageMaker
|
|
233
233
|
|
234
234
|
end
|
235
235
|
|
236
|
+
class ProcessingJobCompletedOrStopped
|
237
|
+
|
238
|
+
# @param [Hash] options
|
239
|
+
# @option options [required, Client] :client
|
240
|
+
# @option options [Integer] :max_attempts (60)
|
241
|
+
# @option options [Integer] :delay (60)
|
242
|
+
# @option options [Proc] :before_attempt
|
243
|
+
# @option options [Proc] :before_wait
|
244
|
+
def initialize(options)
|
245
|
+
@client = options.fetch(:client)
|
246
|
+
@waiter = Aws::Waiters::Waiter.new({
|
247
|
+
max_attempts: 60,
|
248
|
+
delay: 60,
|
249
|
+
poller: Aws::Waiters::Poller.new(
|
250
|
+
operation_name: :describe_processing_job,
|
251
|
+
acceptors: [
|
252
|
+
{
|
253
|
+
"expected" => "Completed",
|
254
|
+
"matcher" => "path",
|
255
|
+
"state" => "success",
|
256
|
+
"argument" => "processing_job_status"
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"expected" => "Stopped",
|
260
|
+
"matcher" => "path",
|
261
|
+
"state" => "success",
|
262
|
+
"argument" => "processing_job_status"
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"expected" => "Failed",
|
266
|
+
"matcher" => "path",
|
267
|
+
"state" => "failure",
|
268
|
+
"argument" => "processing_job_status"
|
269
|
+
},
|
270
|
+
{
|
271
|
+
"expected" => "ValidationException",
|
272
|
+
"matcher" => "error",
|
273
|
+
"state" => "failure"
|
274
|
+
}
|
275
|
+
]
|
276
|
+
)
|
277
|
+
}.merge(options))
|
278
|
+
end
|
279
|
+
|
280
|
+
# @option (see Client#describe_processing_job)
|
281
|
+
# @return (see Client#describe_processing_job)
|
282
|
+
def wait(params = {})
|
283
|
+
@waiter.wait(client: @client, params: params)
|
284
|
+
end
|
285
|
+
|
286
|
+
# @api private
|
287
|
+
attr_reader :waiter
|
288
|
+
|
289
|
+
end
|
290
|
+
|
236
291
|
class TrainingJobCompletedOrStopped
|
237
292
|
|
238
293
|
# @param [Hash] options
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-sagemaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.48.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: 2019-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|