Class: Aws::Proton::Waiters::ServicePipelineDeployed
- Inherits:
-
Object
- Object
- Aws::Proton::Waiters::ServicePipelineDeployed
- Defined in:
- lib/aws-sdk-proton/waiters.rb
Overview
Wait until an ServicePipeline is deployed. Use this after invoking CreateService or UpdateServicePipeline
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ ServicePipelineDeployed
constructor
A new instance of ServicePipelineDeployed.
-
#wait(params = {}) ⇒ Types::GetServiceOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ServicePipelineDeployed
Returns a new instance of ServicePipelineDeployed.
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 |
# File 'lib/aws-sdk-proton/waiters.rb', line 425 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 360, delay: 10, poller: Aws::Waiters::Poller.new( operation_name: :get_service, acceptors: [ { "matcher" => "path", "argument" => "service.pipeline.deployment_status", "state" => "success", "expected" => "SUCCEEDED" }, { "matcher" => "path", "argument" => "service.pipeline.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.
457 458 459 |
# File 'lib/aws-sdk-proton/waiters.rb', line 457 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetServiceOutput
Returns a response object which responds to the following methods:
-
#service => Types::Service
452 453 454 |
# File 'lib/aws-sdk-proton/waiters.rb', line 452 def wait(params = {}) @waiter.wait(client: @client, params: params) end |