Class: Aws::MediaConnect::Waiters::SourceEndpointDisconnecting
- Inherits:
-
Object
- Object
- Aws::MediaConnect::Waiters::SourceEndpointDisconnecting
- 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
-
#initialize(options) ⇒ SourceEndpointDisconnecting
constructor
A new instance of SourceEndpointDisconnecting.
-
#wait(params = {}) ⇒ Types::GetSourceEndpointResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ SourceEndpointDisconnecting
Returns a new instance of SourceEndpointDisconnecting.
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() @client = .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()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetSourceEndpointResponse
Returns a response object which responds to the following methods:
- #source_endpoint => Types::SourceEndpoint
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 |