Class: Aws::MediaLive::Waiters::ChannelPlacementGroupAssigned

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

Overview

Wait until the channel placement group has been assigned

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ChannelPlacementGroupAssigned

Returns a new instance of ChannelPlacementGroupAssigned.

Parameters:

  • options (Hash)

Options Hash (options):

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


212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
# File 'lib/aws-sdk-medialive/waiters.rb', line 212

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 5,
    delay: 3,
    poller: Aws::Waiters::Poller.new(
      operation_name: :describe_channel_placement_group,
      acceptors: [
        {
          "state" => "success",
          "matcher" => "path",
          "argument" => "state",
          "expected" => "ASSIGNED"
        },
        {
          "state" => "retry",
          "matcher" => "path",
          "argument" => "state",
          "expected" => "ASSIGNING"
        },
        {
          "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.



249
250
251
# File 'lib/aws-sdk-medialive/waiters.rb', line 249

def waiter
  @waiter
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Options Hash (params):

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

Returns:



244
245
246
# File 'lib/aws-sdk-medialive/waiters.rb', line 244

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