Class: Aws::GameLiftStreams::Waiters::StreamSessionActive
- Inherits:
-
Object
- Object
- Aws::GameLiftStreams::Waiters::StreamSessionActive
- Defined in:
- gems/aws-sdk-gameliftstreams/lib/aws-sdk-gameliftstreams/waiters.rb
Overview
Waits until a stream session is active
Instance Method Summary collapse
-
#initialize(options) ⇒ StreamSessionActive
constructor
A new instance of StreamSessionActive.
-
#wait(params = {}) ⇒ Types::GetStreamSessionOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ StreamSessionActive
Returns a new instance of StreamSessionActive.
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 |
# File 'gems/aws-sdk-gameliftstreams/lib/aws-sdk-gameliftstreams/waiters.rb', line 263 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 2, poller: Aws::Waiters::Poller.new( operation_name: :get_stream_session, acceptors: [ { "matcher" => "path", "argument" => "status", "state" => "success", "expected" => "ACTIVE" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "ERROR" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetStreamSessionOutput
Returns a response object which responds to the following methods:
- #additional_environment_variables => Hash<String,String>
- #additional_launch_args => Array<String>
- #application_arn => String
- #arn => String
- #connection_timeout_seconds => Integer
- #created_at => Time
- #description => String
- #export_files_metadata => Types::ExportFilesMetadata
- #last_updated_at => Time
- #location => String
- #log_file_location_uri => String
- #protocol => String
- #session_length_seconds => Integer
- #signal_request => String
- #signal_response => String
- #status => String
- #status_reason => String
- #stream_group_id => String
- #user_id => String
- #web_sdk_protocol_url => String
290 291 292 |
# File 'gems/aws-sdk-gameliftstreams/lib/aws-sdk-gameliftstreams/waiters.rb', line 290 def wait(params = {}) @waiter.wait(client: @client, params: params) end |