Class: Aws::OpenSearchMemory::Waiters::SpaceDeleted
- Inherits:
-
Object
- Object
- Aws::OpenSearchMemory::Waiters::SpaceDeleted
- Defined in:
- gems/aws-sdk-opensearchmemory/lib/aws-sdk-opensearchmemory/waiters.rb
Overview
Waits until the space is deleted.
Instance Method Summary collapse
-
#initialize(options) ⇒ SpaceDeleted
constructor
A new instance of SpaceDeleted.
-
#wait(params = {}) ⇒ Types::GetSpaceResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ SpaceDeleted
Returns a new instance of SpaceDeleted.
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'gems/aws-sdk-opensearchmemory/lib/aws-sdk-opensearchmemory/waiters.rb', line 160 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 10, poller: Aws::Waiters::Poller.new( operation_name: :get_space, acceptors: [ { "matcher" => "error", "state" => "success", "expected" => "ResourceNotFoundException" }, { "matcher" => "path", "argument" => "status", "state" => "success", "expected" => "DELETED" }, { "matcher" => "path", "argument" => "status", "state" => "retry", "expected" => "DELETING" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "FAILED" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetSpaceResponse
Returns a response object which responds to the following methods:
- #space_id => String
- #arn => String
- #name => String
- #status => String
- #status_reason => String
- #created_at => Time
- #memory_strategies => Array<Types::MemoryStrategy>
- #event_expiry_days => Integer
- #memory_expiry_days => Integer
- #extraction_model_id => String
- #encryption_configuration => Types::EncryptionConfiguration
198 199 200 |
# File 'gems/aws-sdk-opensearchmemory/lib/aws-sdk-opensearchmemory/waiters.rb', line 198 def wait(params = {}) @waiter.wait(client: @client, params: params) end |