Class: Aws::MediaConnect::Waiters::DestinationEndpointConnected
- Inherits:
-
Object
- Object
- Aws::MediaConnect::Waiters::DestinationEndpointConnected
- Defined in:
- gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/waiters.rb
Overview
Wait until the Destination Endpoint is CONNECTED
Instance Method Summary collapse
-
#initialize(options) ⇒ DestinationEndpointConnected
constructor
A new instance of DestinationEndpointConnected.
-
#wait(params = {}) ⇒ Types::GetDestinationEndpointResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ DestinationEndpointConnected
Returns a new instance of DestinationEndpointConnected.
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/waiters.rb', line 105 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 40, delay: 3, poller: Aws::Waiters::Poller.new( operation_name: :get_destination_endpoint, acceptors: [ { "matcher" => "path", "argument" => "destination_endpoint.connection_state", "state" => "success", "expected" => "CONNECTED" }, { "matcher" => "path", "argument" => "destination_endpoint.connection_state", "state" => "failure", "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::GetDestinationEndpointResponse
Returns a response object which responds to the following methods:
- #destination_endpoint => Types::DestinationEndpoint
147 148 149 |
# File 'gems/aws-sdk-mediaconnect/lib/aws-sdk-mediaconnect/waiters.rb', line 147 def wait(params = {}) @waiter.wait(client: @client, params: params) end |