Class: Aws::BedrockAgentCoreControl::Waiters::PolicyEngineActive
- Inherits:
-
Object
- Object
- Aws::BedrockAgentCoreControl::Waiters::PolicyEngineActive
- Defined in:
- gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/waiters.rb
Overview
Wait until a PolicyEngine is active
Instance Method Summary collapse
-
#initialize(options) ⇒ PolicyEngineActive
constructor
A new instance of PolicyEngineActive.
-
#wait(params = {}) ⇒ Types::GetPolicyEngineResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ PolicyEngineActive
Returns a new instance of PolicyEngineActive.
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/waiters.rb', line 247 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 2, poller: Aws::Waiters::Poller.new( operation_name: :get_policy_engine, acceptors: [ { "matcher" => "path", "argument" => "status", "state" => "success", "expected" => "ACTIVE" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "CREATE_FAILED" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "UPDATE_FAILED" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "DELETE_FAILED" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetPolicyEngineResponse
Returns a response object which responds to the following methods:
- #policy_engine_id => String
- #name => String
- #description => String
- #created_at => Time
- #updated_at => Time
- #policy_engine_arn => String
- #status => String
- #status_reasons => Array<String>
286 287 288 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/waiters.rb', line 286 def wait(params = {}) @waiter.wait(client: @client, params: params) end |