Class: Aws::Proton::Waiters::ServiceInstanceDeployed
- Inherits:
-
Object
- Object
- Aws::Proton::Waiters::ServiceInstanceDeployed
- Defined in:
- lib/aws-sdk-proton/waiters.rb
Overview
Wait until a ServiceInstance is deployed. Use this after invoking CreateService or UpdateServiceInstance
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ ServiceInstanceDeployed
constructor
A new instance of ServiceInstanceDeployed.
-
#wait(params = {}) ⇒ Types::GetServiceInstanceOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ServiceInstanceDeployed
Returns a new instance of ServiceInstanceDeployed.
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
# File 'lib/aws-sdk-proton/waiters.rb', line 380 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 999, delay: 5, poller: Aws::Waiters::Poller.new( operation_name: :get_service_instance, acceptors: [ { "matcher" => "path", "argument" => "service_instance.deployment_status", "state" => "success", "expected" => "SUCCEEDED" }, { "matcher" => "path", "argument" => "service_instance.deployment_status", "state" => "failure", "expected" => "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.
412 413 414 |
# File 'lib/aws-sdk-proton/waiters.rb', line 412 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetServiceInstanceOutput
Returns a response object which responds to the following methods:
-
#service_instance => Types::ServiceInstance
407 408 409 |
# File 'lib/aws-sdk-proton/waiters.rb', line 407 def wait(params = {}) @waiter.wait(client: @client, params: params) end |