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.
862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 862 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" => "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.
917 918 919 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 917 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>
912 913 914 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 912 def wait(params = {}) @waiter.wait(client: @client, params: params) end |