Class: Aws::MediaLive::Waiters::SignalMapMonitorDeployed

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

Overview

Wait until a signal map’s monitor has been deployed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ SignalMapMonitorDeployed

Returns a new instance of SignalMapMonitorDeployed.

Parameters:

  • options (Hash)

Options Hash (options):

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


1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
# File 'lib/aws-sdk-medialive/waiters.rb', line 1149

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" => "DRY_RUN_DEPLOYMENT_COMPLETE"
        },
        {
          "matcher" => "path",
          "argument" => "monitor_deployment.status",
          "state" => "success",
          "expected" => "DEPLOYMENT_COMPLETE"
        },
        {
          "matcher" => "path",
          "argument" => "monitor_deployment.status",
          "state" => "retry",
          "expected" => "DRY_RUN_DEPLOYMENT_IN_PROGRESS"
        },
        {
          "matcher" => "path",
          "argument" => "monitor_deployment.status",
          "state" => "retry",
          "expected" => "DEPLOYMENT_IN_PROGRESS"
        },
        {
          "matcher" => "path",
          "argument" => "monitor_deployment.status",
          "state" => "failure",
          "expected" => "DRY_RUN_DEPLOYMENT_FAILED"
        },
        {
          "matcher" => "path",
          "argument" => "monitor_deployment.status",
          "state" => "failure",
          "expected" => "DEPLOYMENT_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.



1205
1206
1207
# File 'lib/aws-sdk-medialive/waiters.rb', line 1205

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:



1200
1201
1202
# File 'lib/aws-sdk-medialive/waiters.rb', line 1200

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