aws-sdk-ec2 1.305.0 → 1.308.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -966,6 +966,9 @@ module Aws::EC2
966
966
  #
967
967
  # * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
968
968
  #
969
+ # * `capacity-reservation-id` - The ID of the Capacity Reservation into
970
+ # which the instance was launched.
971
+ #
969
972
  # * `client-token` - The idempotency token you provided when you
970
973
  # launched the instance.
971
974
  #
@@ -86,6 +86,7 @@ module Aws::EC2
86
86
  # | internet_gateway_exists | {Client#describe_internet_gateways} | 5 | 6 |
87
87
  # | key_pair_exists | {Client#describe_key_pairs} | 5 | 6 |
88
88
  # | nat_gateway_available | {Client#describe_nat_gateways} | 15 | 40 |
89
+ # | nat_gateway_deleted | {Client#describe_nat_gateways} | 15 | 40 |
89
90
  # | network_interface_available | {Client#describe_network_interfaces} | 20 | 10 |
90
91
  # | password_data_available | {Client#get_password_data} | 15 | 40 |
91
92
  # | security_group_exists | {Client#describe_security_groups} | 5 | 6 |
@@ -874,6 +875,49 @@ module Aws::EC2
874
875
 
875
876
  end
876
877
 
878
+ class NatGatewayDeleted
879
+
880
+ # @param [Hash] options
881
+ # @option options [required, Client] :client
882
+ # @option options [Integer] :max_attempts (40)
883
+ # @option options [Integer] :delay (15)
884
+ # @option options [Proc] :before_attempt
885
+ # @option options [Proc] :before_wait
886
+ def initialize(options)
887
+ @client = options.fetch(:client)
888
+ @waiter = Aws::Waiters::Waiter.new({
889
+ max_attempts: 40,
890
+ delay: 15,
891
+ poller: Aws::Waiters::Poller.new(
892
+ operation_name: :describe_nat_gateways,
893
+ acceptors: [
894
+ {
895
+ "state" => "success",
896
+ "matcher" => "pathAll",
897
+ "argument" => "nat_gateways[].state",
898
+ "expected" => "deleted"
899
+ },
900
+ {
901
+ "state" => "success",
902
+ "matcher" => "error",
903
+ "expected" => "NatGatewayNotFound"
904
+ }
905
+ ]
906
+ )
907
+ }.merge(options))
908
+ end
909
+
910
+ # @option (see Client#describe_nat_gateways)
911
+ # @return (see Client#describe_nat_gateways)
912
+ def wait(params = {})
913
+ @waiter.wait(client: @client, params: params)
914
+ end
915
+
916
+ # @api private
917
+ attr_reader :waiter
918
+
919
+ end
920
+
877
921
  class NetworkInterfaceAvailable
878
922
 
879
923
  # @param [Hash] options
data/lib/aws-sdk-ec2.rb CHANGED
@@ -72,6 +72,6 @@ require_relative 'aws-sdk-ec2/customizations'
72
72
  # @!group service
73
73
  module Aws::EC2
74
74
 
75
- GEM_VERSION = '1.305.0'
75
+ GEM_VERSION = '1.308.0'
76
76
 
77
77
  end
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.305.0
4
+ version: 1.308.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: 2022-03-30 00:00:00.000000000 Z
11
+ date: 2022-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4