class Aws::CodeDeploy::Waiters::DeploymentSuccessful
Attributes
waiter[R]
@api private
Public Class Methods
new(options)
click to toggle source
@param [Hash] options @option options [required, Client] :client @option options [Integer] :max_attempts (120) @option options [Integer] :delay (15) @option options [Proc] :before_attempt @option options [Proc] :before_wait
# File lib/aws-sdk-codedeploy/waiters.rb, line 84 def initialize(options) @client = options.fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 120, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :get_deployment, acceptors: [ { "expected" => "Succeeded", "matcher" => "path", "state" => "success", "argument" => "deployment_info.status" }, { "expected" => "Failed", "matcher" => "path", "state" => "failure", "argument" => "deployment_info.status" }, { "expected" => "Stopped", "matcher" => "path", "state" => "failure", "argument" => "deployment_info.status" } ] ) }.merge(options)) end
Public Instance Methods
wait(params = {})
click to toggle source
@option (see Client#get_deployment
) @return (see Client#get_deployment
)
# File lib/aws-sdk-codedeploy/waiters.rb, line 117 def wait(params = {}) @waiter.wait(client: @client, params: params) end