Class: Aws::MediaConnect::Waiters::SourceEndpointDisconnected

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

Overview

Wait until the Source Endpoint is DISCONNECTED

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ SourceEndpointDisconnected

Returns a new instance of SourceEndpointDisconnected.

Parameters:

  • options (Hash)

Options Hash (options):

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


1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/waiters.rb', line 1215

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 40,
    delay: 3,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_source_endpoint,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "source_endpoint.connection_state",
          "state" => "success",
          "expected" => "DISCONNECTED"
        },
        {
          "matcher" => "error",
          "state" => "retry",
          "expected" => "InternalServerErrorException"
        },
        {
          "matcher" => "error",
          "state" => "retry",
          "expected" => "ServiceUnavailableException"
        },
        {
          "matcher" => "error",
          "state" => "retry",
          "expected" => "TooManyRequestsException"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

  • params (Hash) (defaults to: {}) —

    a customizable set of options

Options Hash (params):

  • :arn (required, String) —

    The Amazon Resource Name (ARN) of the source endpoint to retrieve.

Returns:



1251
1252
1253
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/waiters.rb', line 1251

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