Class: Aws::Repostspace::Waiters::ChannelDeleted

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-repostspace/lib/aws-sdk-repostspace/waiters.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ChannelDeleted

Returns a new instance of ChannelDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

  • :client (required, Client)
  • :max_attempts (Integer) — default: 60
  • :delay (Integer) — default: 2
  • :before_attempt (Proc)
  • :before_wait (Proc)


137
138
139
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
# File 'gems/aws-sdk-repostspace/lib/aws-sdk-repostspace/waiters.rb', line 137

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 60,
    delay: 2,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_channel,
      acceptors: [
        {
          "matcher" => "error",
          "state" => "success",
          "expected" => "ResourceNotFoundException"
        },
        {
          "matcher" => "path",
          "argument" => "channel_status",
          "state" => "success",
          "expected" => "DELETED"
        },
        {
          "matcher" => "path",
          "argument" => "channel_status",
          "state" => "failure",
          "expected" => "DELETE_FAILED"
        },
        {
          "matcher" => "path",
          "argument" => "channel_status",
          "state" => "retry",
          "expected" => "DELETING"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

#wait(params = {}) ⇒ Types::GetChannelOutput

Returns a response object which responds to the following methods:

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :space_id (required, String)

    The unique ID of the private re:Post.

  • :channel_id (required, String)

    The unique ID of the private re:Post channel.

Returns:



175
176
177
# File 'gems/aws-sdk-repostspace/lib/aws-sdk-repostspace/waiters.rb', line 175

def wait(params = {})
  @waiter.wait(client: @client, params: params)
end