Class: Aws::Proton::Waiters::ServiceCreated
- Inherits:
-
Object
- Object
- Aws::Proton::Waiters::ServiceCreated
- Defined in:
- lib/aws-sdk-proton/waiters.rb
Overview
Wait until an Service has deployed its instances and possibly pipeline. Use this after invoking CreateService
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ ServiceCreated
constructor
A new instance of ServiceCreated.
-
#wait(params = {}) ⇒ Types::GetServiceOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ServiceCreated
Returns a new instance of ServiceCreated.
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 |
# File 'lib/aws-sdk-proton/waiters.rb', line 279 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 999, delay: 5, poller: Aws::Waiters::Poller.new( operation_name: :get_service, acceptors: [ { "matcher" => "path", "argument" => "service.status", "state" => "success", "expected" => "ACTIVE" }, { "matcher" => "path", "argument" => "service.status", "state" => "failure", "expected" => "CREATE_FAILED_CLEANUP_COMPLETE" }, { "matcher" => "path", "argument" => "service.status", "state" => "failure", "expected" => "CREATE_FAILED_CLEANUP_FAILED" }, { "matcher" => "path", "argument" => "service.status", "state" => "failure", "expected" => "CREATE_FAILED" } ] ) }.merge()) end |
Instance Attribute Details
#waiter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
323 324 325 |
# File 'lib/aws-sdk-proton/waiters.rb', line 323 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetServiceOutput
Returns a response object which responds to the following methods:
-
#service => Types::Service
318 319 320 |
# File 'lib/aws-sdk-proton/waiters.rb', line 318 def wait(params = {}) @waiter.wait(client: @client, params: params) end |