Class: Aws::MediaConnect::Waiters::SourceEndpointConnected
- Inherits:
-
Object
- Object
- Aws::MediaConnect::Waiters::SourceEndpointConnected
- Defined in:
- gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/waiters.rb
Overview
Wait until the Source Endpoint is CONNECTED
Instance Method Summary collapse
-
#initialize(options) ⇒ SourceEndpointConnected
constructor
A new instance of SourceEndpointConnected.
-
#wait(params = {}) ⇒ Types::GetSourceEndpointResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ SourceEndpointConnected
Returns a new instance of SourceEndpointConnected.
1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/waiters.rb', line 1042 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" => "CONNECTED" }, { "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
1078 1079 1080 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/waiters.rb', line 1078 def wait(params = {}) @waiter.wait(client: @client, params: params) end |