Class: Aws::RTBFabric::Waiters::RequesterGatewayDeleted

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ RequesterGatewayDeleted

Returns a new instance of RequesterGatewayDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/waiters.rb', line 809

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 5,
    delay: 30,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_requester_gateway,
      acceptors: [
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "failure",
          "expected" => "DELETE_FAILED"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "success",
          "expected" => "DELETED"
        },
        {
          "matcher" => "error",
          "state" => "success",
          "expected" => "ResourceNotFoundException"
        },
        {
          "matcher" => "path",
          "argument" => "status",
          "state" => "failure",
          "expected" => "ERROR"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :gateway_id (required, String) —

    The unique identifier of the gateway.

Returns:



847
848
849
# File 'gems/aws-sdk-rtbfabric/lib/aws-sdk-rtbfabric/waiters.rb', line 847

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