Class: Aws::BedrockAgentCoreControl::Waiters::PolicyDeleted
- Inherits:
-
Object
- Object
- Aws::BedrockAgentCoreControl::Waiters::PolicyDeleted
- Defined in:
- lib/aws-sdk-bedrockagentcorecontrol/waiters.rb
Overview
Wait until a Policy is deleted
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ PolicyDeleted
constructor
A new instance of PolicyDeleted.
-
#wait(params = {}) ⇒ Types::GetPolicyResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ PolicyDeleted
Returns a new instance of PolicyDeleted.
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
# File 'lib/aws-sdk-bedrockagentcorecontrol/waiters.rb', line 197 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 2, poller: Aws::Waiters::Poller.new( operation_name: :get_policy, acceptors: [ { "matcher" => "error", "state" => "success", "expected" => "ResourceNotFoundException" }, { "matcher" => "path", "argument" => "status", "state" => "retry", "expected" => "DELETING" }, { "matcher" => "path", "argument" => "status", "state" => "failure", "expected" => "DELETE_FAILED" } ] ) }.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.
234 235 236 |
# File 'lib/aws-sdk-bedrockagentcorecontrol/waiters.rb', line 234 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetPolicyResponse
Returns a response object which responds to the following methods:
-
#policy_id => String
-
#name => String
-
#policy_engine_id => String
-
#definition => Types::PolicyDefinition
-
#description => String
-
#created_at => Time
-
#updated_at => Time
-
#policy_arn => String
-
#status => String
-
#status_reasons => Array<String>
229 230 231 |
# File 'lib/aws-sdk-bedrockagentcorecontrol/waiters.rb', line 229 def wait(params = {}) @waiter.wait(client: @client, params: params) end |