Class: Aws::OpenSearchMemory::Waiters::SpaceActive
- Inherits:
-
Object
- Object
- Aws::OpenSearchMemory::Waiters::SpaceActive
- Defined in:
- gems/aws-sdk-opensearchmemory/lib/aws-sdk-opensearchmemory/waiters.rb
Overview
Waits until the space is ACTIVE.
Instance Method Summary collapse
-
#initialize(options) ⇒ SpaceActive
constructor
A new instance of SpaceActive.
-
#wait(params = {}) ⇒ Types::GetSpaceResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ SpaceActive
Returns a new instance of SpaceActive.
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'gems/aws-sdk-opensearchmemory/lib/aws-sdk-opensearchmemory/waiters.rb', line 86 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" => "path", "argument" => "status", "state" => "success", "expected" => "ACTIVE" }, { "matcher" => "error", "state" => "retry", "expected" => "ResourceNotFoundException" }, { "matcher" => "path", "argument" => "status", "state" => "retry", "expected" => "CREATING" }, { "matcher" => "path", "argument" => "status", "state" => "retry", "expected" => "UPDATING" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "FAILED" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "DELETING" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "DELETED" } ] ) }.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
142 143 144 |
# File 'gems/aws-sdk-opensearchmemory/lib/aws-sdk-opensearchmemory/waiters.rb', line 142 def wait(params = {}) @waiter.wait(client: @client, params: params) end |