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

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 deployed

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)


769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
# File 'gems/aws-sdk-medialive/lib/aws-sdk-medialive/waiters.rb', line 769

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 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:



820
821
822
# File 'gems/aws-sdk-medialive/lib/aws-sdk-medialive/waiters.rb', line 820

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