Class: Aws::MediaConnect::Waiters::SourceEndpointDisconnected
- Inherits:
-
Object
- Object
- Aws::MediaConnect::Waiters::SourceEndpointDisconnected
- Defined in:
- gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/waiters.rb
Overview
Wait until the Source Endpoint is DISCONNECTED
Instance Method Summary collapse
-
#initialize(options) ⇒ SourceEndpointDisconnected
constructor
A new instance of SourceEndpointDisconnected.
-
#wait(params = {}) ⇒ Types::GetSourceEndpointResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ SourceEndpointDisconnected
Returns a new instance of SourceEndpointDisconnected.
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() @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" => "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
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 |