Class: Aws::MediaLive::Waiters::SignalMapMonitorDeleted

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

Overview

Wait until a signal map’s monitor has been deleted

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ SignalMapMonitorDeleted

Returns a new instance of SignalMapMonitorDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
# File 'lib/aws-sdk-medialive/waiters.rb', line 718

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 120,
    delay: 5,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_signal_map,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "monitor_deployment.status",
          "state" => "success",
          "expected" => "DELETE_COMPLETE"
        },
        {
          "matcher" => "path",
          "argument" => "monitor_deployment.status",
          "state" => "retry",
          "expected" => "DELETE_IN_PROGRESS"
        },
        {
          "matcher" => "path",
          "argument" => "monitor_deployment.status",
          "state" => "failure",
          "expected" => "DELETE_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.



756
757
758
# File 'lib/aws-sdk-medialive/waiters.rb', line 756

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:



751
752
753
# File 'lib/aws-sdk-medialive/waiters.rb', line 751

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