Class: Aws::EC2::Waiters::SnapshotCompleted
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::SnapshotCompleted
- Defined in:
- lib/aws-sdk-ec2/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ SnapshotCompleted
constructor
A new instance of SnapshotCompleted.
-
#wait(params = {}) ⇒ Types::DescribeSnapshotsResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ SnapshotCompleted
Returns a new instance of SnapshotCompleted.
1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1053 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 40, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :describe_snapshots, acceptors: [ { "expected" => "completed", "matcher" => "pathAll", "state" => "success", "argument" => "snapshots[].state" }, { "expected" => "error", "matcher" => "pathAny", "state" => "failure", "argument" => "snapshots[].state" } ] ) }.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.
1085 1086 1087 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1085 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeSnapshotsResult
Returns a response object which responds to the following methods:
-
#snapshots => Array<Types::Snapshot>
-
#next_token => String
1080 1081 1082 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1080 def wait(params = {}) @waiter.wait(client: @client, params: params) end |