Class: Aws::Proton::Waiters::ServiceDeleted
- Inherits:
-
Object
- Object
- Aws::Proton::Waiters::ServiceDeleted
- Defined in:
- lib/aws-sdk-proton/waiters.rb
Overview
Wait until a Service, its instances, and possibly pipeline have been deleted after DeleteService is invoked
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ ServiceDeleted
constructor
A new instance of ServiceDeleted.
-
#wait(params = {}) ⇒ Types::GetServiceOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ServiceDeleted
Returns a new instance of ServiceDeleted.
336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 |
# File 'lib/aws-sdk-proton/waiters.rb', line 336 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" => "error", "state" => "success", "expected" => "ResourceNotFoundException" }, { "matcher" => "path", "argument" => "service.status", "state" => "failure", "expected" => "DELETE_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.
367 368 369 |
# File 'lib/aws-sdk-proton/waiters.rb', line 367 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetServiceOutput
Returns a response object which responds to the following methods:
-
#service => Types::Service
362 363 364 |
# File 'lib/aws-sdk-proton/waiters.rb', line 362 def wait(params = {}) @waiter.wait(client: @client, params: params) end |