Class: Aws::MediaLive::Waiters::SignalMapCreated

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

Overview

Wait until a signal map has been created

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ SignalMapCreated

Returns a new instance of SignalMapCreated.

Parameters:

  • options (Hash)

Options Hash (options):

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


667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
# File 'lib/aws-sdk-medialive/waiters.rb', line 667

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 60,
    delay: 5,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_signal_map,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "success",
          "expected" => "CREATE_COMPLETE"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "retry",
          "expected" => "CREATE_IN_PROGRESS"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "failure",
          "expected" => "CREATE_FAILED"
        }
      ]
    )
  }.merge(options))
end

Instance Attribute Details

#waiterObject (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.



705
706
707
# File 'lib/aws-sdk-medialive/waiters.rb', line 705

def waiter
  @waiter
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Options Hash (params):

  • :identifier (required, String)

Returns:



700
701
702
# File 'lib/aws-sdk-medialive/waiters.rb', line 700

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