Class: Aws::MediaConnect::Waiters::SourceEndpointDisconnecting

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

Overview

Wait until the Source Endpoint has begun disconnecting

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ SourceEndpointDisconnecting

Returns a new instance of SourceEndpointDisconnecting.

Parameters:

  • options (Hash)

Options Hash (options):

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


1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/waiters.rb', line 1269

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" => "DISCONNECTING"
        },
        {
          "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:



1311
1312
1313
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/waiters.rb', line 1311

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