in codegen/projections/white_label/lib/white_label/waiters.rb [31:77]
def initialize(client, options = {})
@client = client
@waiter = Seahorse::Waiters::Waiter.new({
max_wait_time: options[:max_wait_time],
min_delay: 10 || options[:min_delay],
max_delay: 100 || options[:max_delay],
poller: Seahorse::Waiters::Poller.new(
operation_name: :waiters_test,
acceptors: [
{
state: 'success',
matcher: {
success: true
}
},
{
state: 'retry',
matcher: {
errorType: 'NotFound'
}
},
{
state: 'failure',
matcher: {
output: {
path: "status",
comparator: "stringEquals",
expected: 'failed'
}
}
},
{
state: 'failure',
matcher: {
inputOutput: {
path: "input.status == 'failed' || output.status == 'failed'",
comparator: "booleanEquals",
expected: 'true'
}
}
}
]
)
}.merge(options))
@tags = ["waiter", "test"]
end