aws-sdk-ec2 1.117.0 → 1.118.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -121,6 +121,12 @@ module Aws::EC2
121
121
  data[:volume_type]
122
122
  end
123
123
 
124
+ # Indicates whether the volume was created using fast snapshot restore.
125
+ # @return [Boolean]
126
+ def fast_restored
127
+ data[:fast_restored]
128
+ end
129
+
124
130
  # @!endgroup
125
131
 
126
132
  # @return [Client]
@@ -815,6 +815,49 @@ module Aws::EC2
815
815
 
816
816
  end
817
817
 
818
+ class SecurityGroupExists
819
+
820
+ # @param [Hash] options
821
+ # @option options [required, Client] :client
822
+ # @option options [Integer] :max_attempts (6)
823
+ # @option options [Integer] :delay (5)
824
+ # @option options [Proc] :before_attempt
825
+ # @option options [Proc] :before_wait
826
+ def initialize(options)
827
+ @client = options.fetch(:client)
828
+ @waiter = Aws::Waiters::Waiter.new({
829
+ max_attempts: 6,
830
+ delay: 5,
831
+ poller: Aws::Waiters::Poller.new(
832
+ operation_name: :describe_security_groups,
833
+ acceptors: [
834
+ {
835
+ "expected" => true,
836
+ "matcher" => "path",
837
+ "state" => "success",
838
+ "argument" => "length(security_groups[].group_id) > `0`"
839
+ },
840
+ {
841
+ "expected" => "InvalidGroupNotFound",
842
+ "matcher" => "error",
843
+ "state" => "retry"
844
+ }
845
+ ]
846
+ )
847
+ }.merge(options))
848
+ end
849
+
850
+ # @option (see Client#describe_security_groups)
851
+ # @return (see Client#describe_security_groups)
852
+ def wait(params = {})
853
+ @waiter.wait(client: @client, params: params)
854
+ end
855
+
856
+ # @api private
857
+ attr_reader :waiter
858
+
859
+ end
860
+
818
861
  class SnapshotCompleted
819
862
 
820
863
  # @param [Hash] options
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.117.0
4
+ version: 1.118.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-11-19 00:00:00.000000000 Z
11
+ date: 2019-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4
@@ -66,6 +66,7 @@ files:
66
66
  - lib/aws-sdk-ec2/internet_gateway.rb
67
67
  - lib/aws-sdk-ec2/key_pair.rb
68
68
  - lib/aws-sdk-ec2/key_pair_info.rb
69
+ - lib/aws-sdk-ec2/nat_gateway.rb
69
70
  - lib/aws-sdk-ec2/network_acl.rb
70
71
  - lib/aws-sdk-ec2/network_interface.rb
71
72
  - lib/aws-sdk-ec2/network_interface_association.rb