Class: Aws::Proton::Waiters::ServicePipelineDeployed

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-proton/lib/aws-sdk-proton/waiters.rb

Overview

Wait until an ServicePipeline is deployed. Use this after invoking CreateService or UpdateServicePipeline

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ServicePipelineDeployed

Returns a new instance of ServicePipelineDeployed.

Parameters:

  • options (Hash)

Options Hash (options):

  • :client (required, Client)
  • :max_attempts (Integer) — default: 360
  • :delay (Integer) — default: 10
  • :before_attempt (Proc)
  • :before_wait (Proc)


425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
# File 'gems/aws-sdk-proton/lib/aws-sdk-proton/waiters.rb', line 425

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 360,
    delay: 10,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_service,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "service.pipeline.deployment_status",
          "state" => "success",
          "expected" => "SUCCEEDED"
        },
        {
          "matcher" => "path",
          "argument" => "service.pipeline.deployment_status",
          "state" => "failure",
          "expected" => "FAILED"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

#wait(params = {}) ⇒ Types::GetServiceOutput

Returns a response object which responds to the following methods:

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :name (required, String)

    The name of the service that you want to get the detailed data for.

Returns:



452
453
454
# File 'gems/aws-sdk-proton/lib/aws-sdk-proton/waiters.rb', line 452

def wait(params = {})
  @waiter.wait(client: @client, params: params)
end