Class: Aws::MachineLearning::Waiters::MLModelAvailable
- Inherits:
-
Object
- Object
- Aws::MachineLearning::Waiters::MLModelAvailable
- Defined in:
- gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/waiters.rb
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 'gems/aws-sdk-machinelearning/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 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 'gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/waiters.rb', line 246 def wait(params = {}) @waiter.wait(client: @client, params: params) end |