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

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

Overview

Wait until a signal map's monitor has been deleted

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 'gems/aws-sdk-medialive/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 Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :identifier (required, String)

Returns:



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

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