aws-sdk-ec2 1.88.0 → 1.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -141,10 +141,10 @@ module Aws::EC2
141
141
  # @option options [Proc] :before_attempt
142
142
  # @option options [Proc] :before_wait
143
143
  # @return [Vpc]
144
- def wait_until_available(options = {})
144
+ def wait_until_available(options = {}, &block)
145
145
  options, params = separate_params_and_options(options)
146
146
  waiter = Waiters::VpcAvailable.new(options)
147
- yield_waiter_and_warn(waiter, &Proc.new) if block_given?
147
+ yield_waiter_and_warn(waiter, &block) if block_given?
148
148
  waiter.wait(params.merge(vpc_ids: [@id]))
149
149
  Vpc.new({
150
150
  id: @id,
@@ -158,10 +158,10 @@ module Aws::EC2
158
158
  # @option options [Proc] :before_attempt
159
159
  # @option options [Proc] :before_wait
160
160
  # @return [Vpc]
161
- def wait_until_exists(options = {})
161
+ def wait_until_exists(options = {}, &block)
162
162
  options, params = separate_params_and_options(options)
163
163
  waiter = Waiters::VpcExists.new(options)
164
- yield_waiter_and_warn(waiter, &Proc.new) if block_given?
164
+ yield_waiter_and_warn(waiter, &block) if block_given?
165
165
  waiter.wait(params.merge(vpc_ids: [@id]))
166
166
  Vpc.new({
167
167
  id: @id,
@@ -118,10 +118,10 @@ module Aws::EC2
118
118
  # @option options [Proc] :before_attempt
119
119
  # @option options [Proc] :before_wait
120
120
  # @return [VpcPeeringConnection]
121
- def wait_until_exists(options = {})
121
+ def wait_until_exists(options = {}, &block)
122
122
  options, params = separate_params_and_options(options)
123
123
  waiter = Waiters::VpcPeeringConnectionExists.new(options)
124
- yield_waiter_and_warn(waiter, &Proc.new) if block_given?
124
+ yield_waiter_and_warn(waiter, &block) if block_given?
125
125
  resp = waiter.wait(params.merge(vpc_peering_connection_ids: [@id]))
126
126
  VpcPeeringConnection.new({
127
127
  id: @id,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.88.0
4
+ version: 1.89.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-29 00:00:00.000000000 Z
11
+ date: 2019-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4