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)


1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
# File 'lib/aws-sdk-medialive/waiters.rb', line 1098

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.



1136
1137
1138
# File 'lib/aws-sdk-medialive/waiters.rb', line 1136

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:



1131
1132
1133
# File 'lib/aws-sdk-medialive/waiters.rb', line 1131

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