Class: Aws::EventBridgeV2::Waiters::EventBusDeleted
- Inherits:
-
Object
- Object
- Aws::EventBridgeV2::Waiters::EventBusDeleted
- Defined in:
- gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/waiters.rb
Overview
Waits until the event bus is fully deleted, signaled by DescribeEventBus returning ResourceNotFoundException. Use after DeleteEventBus. Fails fast on the terminal DELETE_FAILED state, surfacing StateReason; retry DeleteEventBus after removing subscribers.
Instance Method Summary collapse
-
#initialize(options) ⇒ EventBusDeleted
constructor
A new instance of EventBusDeleted.
-
#wait(params = {}) ⇒ Types::DescribeEventBusResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ EventBusDeleted
Returns a new instance of EventBusDeleted.
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/waiters.rb', line 143 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 2, poller: Aws::Waiters::Poller.new( operation_name: :describe_event_bus, acceptors: [ { "matcher" => "path", "argument" => "state", "state" => "failure", "expected" => "DELETE_FAILED" }, { "matcher" => "error", "state" => "success", "expected" => "ResourceNotFoundException" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeEventBusResponse
Returns a response object which responds to the following methods:
- #event_bus_arn => String
- #name => String
- #description => String
- #encryption_configuration => Types::EncryptionConfiguration
- #storage_configuration => Types::StorageConfigurationOutput
- #creation_time => Time
- #last_modified_time => Time
- #state => String
- #state_reason => String
169 170 171 |
# File 'gems/aws-sdk-eventbridgev2/lib/aws-sdk-eventbridgev2/waiters.rb', line 169 def wait(params = {}) @waiter.wait(client: @client, params: params) end |