Class: Aws::MediaLive::Waiters::NodeDeregistered

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

Overview

Wait until a node has been deregistered

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ NodeDeregistered

Returns a new instance of NodeDeregistered.

Parameters:

  • options (Hash)

Options Hash (options):

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


930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
# File 'lib/aws-sdk-medialive/waiters.rb', line 930

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 20,
    delay: 5,
    poller: Aws::Waiters::Poller.new(
      operation_name: :describe_node,
      acceptors: [
        {
          "state" => "success",
          "matcher" => "path",
          "argument" => "state",
          "expected" => "DEREGISTERED"
        },
        {
          "state" => "retry",
          "matcher" => "path",
          "argument" => "state",
          "expected" => "DEREGISTERING"
        },
        {
          "state" => "retry",
          "matcher" => "path",
          "argument" => "state",
          "expected" => "DRAINING"
        },
        {
          "state" => "retry",
          "matcher" => "status",
          "expected" => 500
        }
      ]
    )
  }.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.



973
974
975
# File 'lib/aws-sdk-medialive/waiters.rb', line 973

def waiter
  @waiter
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Options Hash (params):

  • :cluster_id (required, String)
  • :node_id (required, String)

Returns:



968
969
970
# File 'lib/aws-sdk-medialive/waiters.rb', line 968

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