Class: Aws::EC2::Waiters::PasswordDataAvailable
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::PasswordDataAvailable
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ PasswordDataAvailable
constructor
A new instance of PasswordDataAvailable.
-
#wait(params = {}) ⇒ Types::GetPasswordDataResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ PasswordDataAvailable
Returns a new instance of PasswordDataAvailable.
974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 974 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 40, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :get_password_data, acceptors: [{ "state" => "success", "matcher" => "path", "argument" => "length(password_data) > `0`", "expected" => true }] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::GetPasswordDataResult
Returns a response object which responds to the following methods:
- #instance_id => String
- #timestamp => Time
- #password_data => String
993 994 995 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 993 def wait(params = {}) @waiter.wait(client: @client, params: params) end |