Class: Aws::BedrockAgentCoreControl::Waiters::MemoryCreated
- Inherits:
-
Object
- Object
- Aws::BedrockAgentCoreControl::Waiters::MemoryCreated
- Defined in:
- gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ MemoryCreated
constructor
A new instance of MemoryCreated.
-
#wait(params = {}) ⇒ Types::GetMemoryOutput
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ MemoryCreated
Returns a new instance of MemoryCreated.
84 85 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 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/waiters.rb', line 84 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 2, poller: Aws::Waiters::Poller.new( operation_name: :get_memory, acceptors: [ { "matcher" => "path", "argument" => "memory.status", "state" => "retry", "expected" => "CREATING" }, { "matcher" => "path", "argument" => "memory.status", "state" => "success", "expected" => "ACTIVE" }, { "matcher" => "path", "argument" => "memory.status", "state" => "failure", "expected" => "FAILED" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetMemoryOutput
117 118 119 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/waiters.rb', line 117 def wait(params = {}) @waiter.wait(client: @client, params: params) end |