Class: Aws::DSQL::Waiters::ClusterNotExists
- Inherits:
-
Object
- Object
- Aws::DSQL::Waiters::ClusterNotExists
- Defined in:
- lib/aws-sdk-dsql/waiters.rb
Overview
Wait until a Cluster is gone
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ ClusterNotExists
constructor
A new instance of ClusterNotExists.
-
#wait(params = {}) ⇒ Types::GetClusterOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ClusterNotExists
Returns a new instance of ClusterNotExists.
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/aws-sdk-dsql/waiters.rb', line 123 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 2, poller: Aws::Waiters::Poller.new( operation_name: :get_cluster, acceptors: [{ "matcher" => "error", "state" => "success", "expected" => "ResourceNotFoundException" }] ) }.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.
146 147 148 |
# File 'lib/aws-sdk-dsql/waiters.rb', line 146 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetClusterOutput
Returns a response object which responds to the following methods:
-
#identifier => String
-
#arn => String
-
#status => String
-
#creation_time => Time
-
#deletion_protection_enabled => Boolean
-
#multi_region_properties => Types::MultiRegionProperties
-
#tags => Hash<String,String>
-
#encryption_details => Types::EncryptionDetails
-
#endpoint => String
141 142 143 |
# File 'lib/aws-sdk-dsql/waiters.rb', line 141 def wait(params = {}) @waiter.wait(client: @client, params: params) end |