Class: Aws::DSQL::Waiters::StreamActive
- Inherits:
-
Object
- Object
- Aws::DSQL::Waiters::StreamActive
- Defined in:
- gems/aws-sdk-dsql/lib/aws-sdk-dsql/waiters.rb
Overview
Wait until a Stream is ACTIVE
Instance Method Summary collapse
-
#initialize(options) ⇒ StreamActive
constructor
A new instance of StreamActive.
-
#wait(params = {}) ⇒ Types::GetStreamOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ StreamActive
Returns a new instance of StreamActive.
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'gems/aws-sdk-dsql/lib/aws-sdk-dsql/waiters.rb', line 161 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 2, poller: Aws::Waiters::Poller.new( operation_name: :get_stream, acceptors: [{ "matcher" => "path", "argument" => "status", "state" => "success", "expected" => "ACTIVE" }] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetStreamOutput
Returns a response object which responds to the following methods:
- #cluster_identifier => String
- #stream_identifier => String
- #arn => String
- #status => String
- #creation_time => Time
- #ordering => String
- #format => String
- #target_definition => Types::TargetDefinition
- #status_reason => Types::StatusReason
- #tags => Hash<String,String>
180 181 182 |
# File 'gems/aws-sdk-dsql/lib/aws-sdk-dsql/waiters.rb', line 180 def wait(params = {}) @waiter.wait(client: @client, params: params) end |