Class: Aws::EC2::Waiters::SpotInstanceRequestFulfilled
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::SpotInstanceRequestFulfilled
- Defined in:
- lib/aws-sdk-ec2/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ SpotInstanceRequestFulfilled
constructor
A new instance of SpotInstanceRequestFulfilled.
-
#wait(params = {}) ⇒ Types::DescribeSpotInstanceRequestsResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ SpotInstanceRequestFulfilled
Returns a new instance of SpotInstanceRequestFulfilled.
1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1141 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 40, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :describe_spot_instance_requests, acceptors: [ { "state" => "success", "matcher" => "pathAll", "argument" => "spot_instance_requests[].status.code", "expected" => "fulfilled" }, { "state" => "success", "matcher" => "pathAll", "argument" => "spot_instance_requests[].status.code", "expected" => "request-canceled-and-instance-running" }, { "state" => "failure", "matcher" => "pathAny", "argument" => "spot_instance_requests[].status.code", "expected" => "schedule-expired" }, { "state" => "failure", "matcher" => "pathAny", "argument" => "spot_instance_requests[].status.code", "expected" => "canceled-before-fulfillment" }, { "state" => "failure", "matcher" => "pathAny", "argument" => "spot_instance_requests[].status.code", "expected" => "bad-parameters" }, { "state" => "failure", "matcher" => "pathAny", "argument" => "spot_instance_requests[].status.code", "expected" => "system-error" }, { "state" => "retry", "matcher" => "error", "expected" => "InvalidSpotInstanceRequestID.NotFound" } ] ) }.merge()) end |
Instance Attribute Details
#waiter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1202 1203 1204 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1202 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeSpotInstanceRequestsResult
Returns a response object which responds to the following methods:
-
#spot_instance_requests => Array<Types::SpotInstanceRequest>
-
#next_token => String
1197 1198 1199 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1197 def wait(params = {}) @waiter.wait(client: @client, params: params) end |