Class: Aws::BedrockAgentCoreControl::Waiters::PolicyActive
- Inherits:
-
Object
- Object
- Aws::BedrockAgentCoreControl::Waiters::PolicyActive
- Defined in:
- lib/aws-sdk-bedrockagentcorecontrol/waiters.rb
Overview
Wait until a Policy is active
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ PolicyActive
constructor
A new instance of PolicyActive.
-
#wait(params = {}) ⇒ Types::GetPolicyResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ PolicyActive
Returns a new instance of PolicyActive.
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/aws-sdk-bedrockagentcorecontrol/waiters.rb', line 140 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" => "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 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.
184 185 186 |
# File 'lib/aws-sdk-bedrockagentcorecontrol/waiters.rb', line 184 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>
179 180 181 |
# File 'lib/aws-sdk-bedrockagentcorecontrol/waiters.rb', line 179 def wait(params = {}) @waiter.wait(client: @client, params: params) end |