in codegen/projections/weather/lib/weather/waiters.rb [26:78]
def initialize(client, options = {})
@client = client
@waiter = Seahorse::Waiters::Waiter.new({
max_wait_time: options[:max_wait_time],
min_delay: 2 || options[:min_delay],
max_delay: 120 || options[:max_delay],
poller: Seahorse::Waiters::Poller.new(
operation_name: :get_city,
acceptors: [
{
state: 'failure',
matcher: {
errorType: 'NoSuchResource'
}
},
{
state: 'failure',
matcher: {
errorType: 'UnModeledError'
}
},
{
state: 'success',
matcher: {
success: true
}
},
{
state: 'retry',
matcher: {
inputOutput: {
path: "length(input.city_id) == length(output.name)",
comparator: "booleanEquals",
expected: 'true'
}
}
},
{
state: 'success',
matcher: {
output: {
path: "name",
comparator: "stringEquals",
expected: 'seattle'
}
}
}
]
)
}.merge(options))
@tags = []
end