Class: Aws::MachineLearning::Waiters::MLModelAvailable
- Inherits:
-
Object
- Object
- Aws::MachineLearning::Waiters::MLModelAvailable
- Defined in:
- lib/aws-sdk-machinelearning/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ MLModelAvailable
constructor
A new instance of MLModelAvailable.
-
#wait(params = {}) ⇒ Types::DescribeMLModelsOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ MLModelAvailable
Returns a new instance of MLModelAvailable.
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 |
# File 'lib/aws-sdk-machinelearning/waiters.rb', line 219 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 30, poller: Aws::Waiters::Poller.new( operation_name: :describe_ml_models, acceptors: [ { "expected" => "COMPLETED", "matcher" => "pathAll", "state" => "success", "argument" => "results[].status" }, { "expected" => "FAILED", "matcher" => "pathAny", "state" => "failure", "argument" => "results[].status" } ] ) }.merge()) end |
Instance Attribute Details
#waiter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
251 252 253 |
# File 'lib/aws-sdk-machinelearning/waiters.rb', line 251 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeMLModelsOutput
Returns a response object which responds to the following methods:
-
#results => Array<Types::MLModel>
-
#next_token => String
246 247 248 |
# File 'lib/aws-sdk-machinelearning/waiters.rb', line 246 def wait(params = {}) @waiter.wait(client: @client, params: params) end |