aws-sdk-sagemaker 1.18.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-sagemaker.rb +1 -1
- data/lib/aws-sdk-sagemaker/client.rb +12 -10
- data/lib/aws-sdk-sagemaker/waiters.rb +55 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eac950ddd857c530a0f738d83b6b030888d81e27
|
4
|
+
data.tar.gz: f65e9d8a5e186fcb78d0e758c3fe7c450da1b9f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c80f68f8ded859a6ddb0e3be585ab30d2d2389ffb148e3edb04a777f9535f2e254991c9d451d44570633216f8959302e67987888d94a04489c47ea59c43b45dd
|
7
|
+
data.tar.gz: b1806f46dae88f4de59dfc8d9e9bbb36f06daed40fb538640fc02d2751b315ecbfb4e8210b9c3d1ef95355e7706d47b74bc475b8e3e98e378e8023d7c6854e2d
|
data/lib/aws-sdk-sagemaker.rb
CHANGED
@@ -3056,7 +3056,7 @@ module Aws::SageMaker
|
|
3056
3056
|
params: params,
|
3057
3057
|
config: config)
|
3058
3058
|
context[:gem_name] = 'aws-sdk-sagemaker'
|
3059
|
-
context[:gem_version] = '1.
|
3059
|
+
context[:gem_version] = '1.19.0'
|
3060
3060
|
Seahorse::Client::Request.new(handlers, context)
|
3061
3061
|
end
|
3062
3062
|
|
@@ -3122,14 +3122,15 @@ module Aws::SageMaker
|
|
3122
3122
|
# The following table lists the valid waiter names, the operations they call,
|
3123
3123
|
# and the default `:delay` and `:max_attempts` values.
|
3124
3124
|
#
|
3125
|
-
# | waiter_name
|
3126
|
-
# |
|
3127
|
-
# | endpoint_deleted
|
3128
|
-
# | endpoint_in_service
|
3129
|
-
# | notebook_instance_deleted
|
3130
|
-
# | notebook_instance_in_service
|
3131
|
-
# | notebook_instance_stopped
|
3132
|
-
# | training_job_completed_or_stopped
|
3125
|
+
# | waiter_name | params | :delay | :max_attempts |
|
3126
|
+
# | ---------------------------------- | ----------------------------- | -------- | ------------- |
|
3127
|
+
# | endpoint_deleted | {#describe_endpoint} | 30 | 60 |
|
3128
|
+
# | endpoint_in_service | {#describe_endpoint} | 30 | 120 |
|
3129
|
+
# | notebook_instance_deleted | {#describe_notebook_instance} | 30 | 60 |
|
3130
|
+
# | notebook_instance_in_service | {#describe_notebook_instance} | 30 | 60 |
|
3131
|
+
# | notebook_instance_stopped | {#describe_notebook_instance} | 30 | 60 |
|
3132
|
+
# | training_job_completed_or_stopped | {#describe_training_job} | 120 | 180 |
|
3133
|
+
# | transform_job_completed_or_stopped | {#describe_transform_job} | 60 | 60 |
|
3133
3134
|
#
|
3134
3135
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
3135
3136
|
# because the waiter has entered a state that it will not transition
|
@@ -3185,7 +3186,8 @@ module Aws::SageMaker
|
|
3185
3186
|
notebook_instance_deleted: Waiters::NotebookInstanceDeleted,
|
3186
3187
|
notebook_instance_in_service: Waiters::NotebookInstanceInService,
|
3187
3188
|
notebook_instance_stopped: Waiters::NotebookInstanceStopped,
|
3188
|
-
training_job_completed_or_stopped: Waiters::TrainingJobCompletedOrStopped
|
3189
|
+
training_job_completed_or_stopped: Waiters::TrainingJobCompletedOrStopped,
|
3190
|
+
transform_job_completed_or_stopped: Waiters::TransformJobCompletedOrStopped
|
3189
3191
|
}
|
3190
3192
|
end
|
3191
3193
|
|
@@ -287,5 +287,60 @@ module Aws::SageMaker
|
|
287
287
|
attr_reader :waiter
|
288
288
|
|
289
289
|
end
|
290
|
+
|
291
|
+
class TransformJobCompletedOrStopped
|
292
|
+
|
293
|
+
# @param [Hash] options
|
294
|
+
# @option options [required, Client] :client
|
295
|
+
# @option options [Integer] :max_attempts (60)
|
296
|
+
# @option options [Integer] :delay (60)
|
297
|
+
# @option options [Proc] :before_attempt
|
298
|
+
# @option options [Proc] :before_wait
|
299
|
+
def initialize(options)
|
300
|
+
@client = options.fetch(:client)
|
301
|
+
@waiter = Aws::Waiters::Waiter.new({
|
302
|
+
max_attempts: 60,
|
303
|
+
delay: 60,
|
304
|
+
poller: Aws::Waiters::Poller.new(
|
305
|
+
operation_name: :describe_transform_job,
|
306
|
+
acceptors: [
|
307
|
+
{
|
308
|
+
"expected" => "Completed",
|
309
|
+
"matcher" => "path",
|
310
|
+
"state" => "success",
|
311
|
+
"argument" => "transform_job_status"
|
312
|
+
},
|
313
|
+
{
|
314
|
+
"expected" => "Stopped",
|
315
|
+
"matcher" => "path",
|
316
|
+
"state" => "success",
|
317
|
+
"argument" => "transform_job_status"
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"expected" => "Failed",
|
321
|
+
"matcher" => "path",
|
322
|
+
"state" => "failure",
|
323
|
+
"argument" => "transform_job_status"
|
324
|
+
},
|
325
|
+
{
|
326
|
+
"expected" => "ValidationException",
|
327
|
+
"matcher" => "error",
|
328
|
+
"state" => "failure"
|
329
|
+
}
|
330
|
+
]
|
331
|
+
)
|
332
|
+
}.merge(options))
|
333
|
+
end
|
334
|
+
|
335
|
+
# @option (see Client#describe_transform_job)
|
336
|
+
# @return (see Client#describe_transform_job)
|
337
|
+
def wait(params = {})
|
338
|
+
@waiter.wait(client: @client, params: params)
|
339
|
+
end
|
340
|
+
|
341
|
+
# @api private
|
342
|
+
attr_reader :waiter
|
343
|
+
|
344
|
+
end
|
290
345
|
end
|
291
346
|
end
|
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.19.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: 2018-
|
11
|
+
date: 2018-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|