Class: Aws::MediaLive::Waiters::SignalMapUpdated

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

Overview

Wait until a signal map has been updated

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ SignalMapUpdated

Returns a new instance of SignalMapUpdated.

Parameters:

  • options (Hash)

Options Hash (options):

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


838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
# File 'lib/aws-sdk-medialive/waiters.rb', line 838

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" => "UPDATE_COMPLETE"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "retry",
          "expected" => "UPDATE_IN_PROGRESS"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "failure",
          "expected" => "UPDATE_FAILED"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "failure",
          "expected" => "UPDATE_REVERTED"
        }
      ]
    )
  }.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.



882
883
884
# File 'lib/aws-sdk-medialive/waiters.rb', line 882

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:



877
878
879
# File 'lib/aws-sdk-medialive/waiters.rb', line 877

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