# WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE require 'aws-sdk-core/waiters' module Aws::SageMaker module Waiters class EndpointDeleted # @param [Hash] options # @option options [required, Client] :client # @option options [Integer] :max_attempts (60) # @option options [Integer] :delay (30) # @option options [Proc] :before_attempt # @option options [Proc] :before_wait def initialize(options) @client = options.fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 30, poller: Aws::Waiters::Poller.new( operation_name: :describe_endpoint, acceptors: [ { "expected" => "ValidationException", "matcher" => "error", "state" => "success" }, { "expected" => "Failed", "matcher" => "path", "state" => "failure", "argument" => "endpoint_status" } ] ) }.merge(options)) end # @option (see Client#describe_endpoint) # @return (see Client#describe_endpoint) def wait(params = {}) @waiter.wait(client: @client, params: params) end # @api private attr_reader :waiter end class EndpointInService # @param [Hash] options # @option options [required, Client] :client # @option options [Integer] :max_attempts (120) # @option options [Integer] :delay (30) # @option options [Proc] :before_attempt # @option options [Proc] :before_wait def initialize(options) @client = options.fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 120, delay: 30, poller: Aws::Waiters::Poller.new( operation_name: :describe_endpoint, acceptors: [ { "expected" => "InService", "matcher" => "path", "state" => "success", "argument" => "endpoint_status" }, { "expected" => "Failed", "matcher" => "path", "state" => "failure", "argument" => "endpoint_status" }, { "expected" => "ValidationException", "matcher" => "error", "state" => "failure" } ] ) }.merge(options)) end # @option (see Client#describe_endpoint) # @return (see Client#describe_endpoint) def wait(params = {}) @waiter.wait(client: @client, params: params) end # @api private attr_reader :waiter end class NotebookInstanceDeleted # @param [Hash] options # @option options [required, Client] :client # @option options [Integer] :max_attempts (60) # @option options [Integer] :delay (30) # @option options [Proc] :before_attempt # @option options [Proc] :before_wait def initialize(options) @client = options.fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 30, poller: Aws::Waiters::Poller.new( operation_name: :describe_notebook_instance, acceptors: [ { "expected" => "ValidationException", "matcher" => "error", "state" => "success" }, { "expected" => "Failed", "matcher" => "path", "state" => "failure", "argument" => "notebook_instance_status" } ] ) }.merge(options)) end # @option (see Client#describe_notebook_instance) # @return (see Client#describe_notebook_instance) def wait(params = {}) @waiter.wait(client: @client, params: params) end # @api private attr_reader :waiter end class NotebookInstanceInService # @param [Hash] options # @option options [required, Client] :client # @option options [Integer] :max_attempts (60) # @option options [Integer] :delay (30) # @option options [Proc] :before_attempt # @option options [Proc] :before_wait def initialize(options) @client = options.fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 30, poller: Aws::Waiters::Poller.new( operation_name: :describe_notebook_instance, acceptors: [ { "expected" => "InService", "matcher" => "path", "state" => "success", "argument" => "notebook_instance_status" }, { "expected" => "Failed", "matcher" => "path", "state" => "failure", "argument" => "notebook_instance_status" } ] ) }.merge(options)) end # @option (see Client#describe_notebook_instance) # @return (see Client#describe_notebook_instance) def wait(params = {}) @waiter.wait(client: @client, params: params) end # @api private attr_reader :waiter end class NotebookInstanceStopped # @param [Hash] options # @option options [required, Client] :client # @option options [Integer] :max_attempts (60) # @option options [Integer] :delay (30) # @option options [Proc] :before_attempt # @option options [Proc] :before_wait def initialize(options) @client = options.fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 30, poller: Aws::Waiters::Poller.new( operation_name: :describe_notebook_instance, acceptors: [ { "expected" => "Stopped", "matcher" => "path", "state" => "success", "argument" => "notebook_instance_status" }, { "expected" => "Failed", "matcher" => "path", "state" => "failure", "argument" => "notebook_instance_status" } ] ) }.merge(options)) end # @option (see Client#describe_notebook_instance) # @return (see Client#describe_notebook_instance) def wait(params = {}) @waiter.wait(client: @client, params: params) end # @api private attr_reader :waiter end class ProcessingJobCompletedOrStopped # @param [Hash] options # @option options [required, Client] :client # @option options [Integer] :max_attempts (60) # @option options [Integer] :delay (60) # @option options [Proc] :before_attempt # @option options [Proc] :before_wait def initialize(options) @client = options.fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 60, poller: Aws::Waiters::Poller.new( operation_name: :describe_processing_job, acceptors: [ { "expected" => "Completed", "matcher" => "path", "state" => "success", "argument" => "processing_job_status" }, { "expected" => "Stopped", "matcher" => "path", "state" => "success", "argument" => "processing_job_status" }, { "expected" => "Failed", "matcher" => "path", "state" => "failure", "argument" => "processing_job_status" }, { "expected" => "ValidationException", "matcher" => "error", "state" => "failure" } ] ) }.merge(options)) end # @option (see Client#describe_processing_job) # @return (see Client#describe_processing_job) def wait(params = {}) @waiter.wait(client: @client, params: params) end # @api private attr_reader :waiter end class TrainingJobCompletedOrStopped # @param [Hash] options # @option options [required, Client] :client # @option options [Integer] :max_attempts (180) # @option options [Integer] :delay (120) # @option options [Proc] :before_attempt # @option options [Proc] :before_wait def initialize(options) @client = options.fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 180, delay: 120, poller: Aws::Waiters::Poller.new( operation_name: :describe_training_job, acceptors: [ { "expected" => "Completed", "matcher" => "path", "state" => "success", "argument" => "training_job_status" }, { "expected" => "Stopped", "matcher" => "path", "state" => "success", "argument" => "training_job_status" }, { "expected" => "Failed", "matcher" => "path", "state" => "failure", "argument" => "training_job_status" }, { "expected" => "ValidationException", "matcher" => "error", "state" => "failure" } ] ) }.merge(options)) end # @option (see Client#describe_training_job) # @return (see Client#describe_training_job) def wait(params = {}) @waiter.wait(client: @client, params: params) end # @api private attr_reader :waiter end class TransformJobCompletedOrStopped # @param [Hash] options # @option options [required, Client] :client # @option options [Integer] :max_attempts (60) # @option options [Integer] :delay (60) # @option options [Proc] :before_attempt # @option options [Proc] :before_wait def initialize(options) @client = options.fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 60, poller: Aws::Waiters::Poller.new( operation_name: :describe_transform_job, acceptors: [ { "expected" => "Completed", "matcher" => "path", "state" => "success", "argument" => "transform_job_status" }, { "expected" => "Stopped", "matcher" => "path", "state" => "success", "argument" => "transform_job_status" }, { "expected" => "Failed", "matcher" => "path", "state" => "failure", "argument" => "transform_job_status" }, { "expected" => "ValidationException", "matcher" => "error", "state" => "failure" } ] ) }.merge(options)) end # @option (see Client#describe_transform_job) # @return (see Client#describe_transform_job) def wait(params = {}) @waiter.wait(client: @client, params: params) end # @api private attr_reader :waiter end end end