aws-sdk-ec2 1.286.0 → 1.287.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8288d31d44cfaa7429287ba0e12a0901f4b280f0c35b3eb11252ec76574ddd97
4
- data.tar.gz: 2ce97661c0264103ef76dab3f2e888a8d58631f0bca65f2f087ba2ea6126030c
3
+ metadata.gz: a4ef6071f893ffdb68da1197584ff8a321edf00ea6e1ba89d3487b45b429332d
4
+ data.tar.gz: c0ea9e00c7993ec9932135b4a512e2beb2d61ff748aece6b93ea9aac7531eb68
5
5
  SHA512:
6
- metadata.gz: e0e3608d1d4a7facce91534875e26b16e625b361acdc0153477ce9595232cfae2980de78c68dfb9da8f1f3a1152a802f89688ff5540b6edea4c13f37cbacc1c2
7
- data.tar.gz: e39095c5670e2c82ab366d4a80b91e1e3c1ecee7a60144534101910f619b0ce8aedd136ff77aeceb35fcb793ef7cf23e1781b4c51314805c46674f69974d1dbb
6
+ metadata.gz: 8752a78711d6470f3a326aa57101631ca262c429b664e1e9d492eddb3fdea43d77d505a8256bcea9c4c2250cfc52109c80fa55ca37ad938dd83522d467a81037
7
+ data.tar.gz: f4ba425fd09cad3dae446cf2104dbdb266988193468202bc8a68752f746f59fa429ceed566b6429c1b1cead50fd8f009ea007314fb9805fb7e78cf1fab28ab6a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.287.0 (2021-12-09)
5
+ ------------------
6
+
7
+ * Feature - Adds waiters support for internet gateways.
8
+
4
9
  1.286.0 (2021-12-01)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.286.0
1
+ 1.287.0
@@ -22151,6 +22151,11 @@ module Aws::EC2
22151
22151
  # resp.internet_gateways[0].tags[0].value #=> String
22152
22152
  # resp.next_token #=> String
22153
22153
  #
22154
+ #
22155
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
22156
+ #
22157
+ # * internet_gateway_exists
22158
+ #
22154
22159
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways AWS API Documentation
22155
22160
  #
22156
22161
  # @overload describe_internet_gateways(params = {})
@@ -48729,7 +48734,7 @@ module Aws::EC2
48729
48734
  params: params,
48730
48735
  config: config)
48731
48736
  context[:gem_name] = 'aws-sdk-ec2'
48732
- context[:gem_version] = '1.286.0'
48737
+ context[:gem_version] = '1.287.0'
48733
48738
  Seahorse::Client::Request.new(handlers, context)
48734
48739
  end
48735
48740
 
@@ -48811,6 +48816,7 @@ module Aws::EC2
48811
48816
  # | instance_status_ok | {Client#describe_instance_status} | 15 | 40 |
48812
48817
  # | instance_stopped | {Client#describe_instances} | 15 | 40 |
48813
48818
  # | instance_terminated | {Client#describe_instances} | 15 | 40 |
48819
+ # | internet_gateway_exists | {Client#describe_internet_gateways} | 5 | 6 |
48814
48820
  # | key_pair_exists | {Client#describe_key_pairs} | 5 | 6 |
48815
48821
  # | nat_gateway_available | {Client#describe_nat_gateways} | 15 | 40 |
48816
48822
  # | network_interface_available | {Client#describe_network_interfaces} | 20 | 10 |
@@ -48893,6 +48899,7 @@ module Aws::EC2
48893
48899
  instance_status_ok: Waiters::InstanceStatusOk,
48894
48900
  instance_stopped: Waiters::InstanceStopped,
48895
48901
  instance_terminated: Waiters::InstanceTerminated,
48902
+ internet_gateway_exists: Waiters::InternetGatewayExists,
48896
48903
  key_pair_exists: Waiters::KeyPairExists,
48897
48904
  nat_gateway_available: Waiters::NatGatewayAvailable,
48898
48905
  network_interface_available: Waiters::NetworkInterfaceAvailable,
@@ -6854,7 +6854,7 @@ module Aws::EC2
6854
6854
 
6855
6855
  EgressOnlyInternetGatewayList.member = Shapes::ShapeRef.new(shape: EgressOnlyInternetGateway, location_name: "item")
6856
6856
 
6857
- ElasticGpuAssociation.add_member(:elastic_gpu_id, Shapes::ShapeRef.new(shape: String, location_name: "elasticGpuId"))
6857
+ ElasticGpuAssociation.add_member(:elastic_gpu_id, Shapes::ShapeRef.new(shape: ElasticGpuId, location_name: "elasticGpuId"))
6858
6858
  ElasticGpuAssociation.add_member(:elastic_gpu_association_id, Shapes::ShapeRef.new(shape: String, location_name: "elasticGpuAssociationId"))
6859
6859
  ElasticGpuAssociation.add_member(:elastic_gpu_association_state, Shapes::ShapeRef.new(shape: String, location_name: "elasticGpuAssociationState"))
6860
6860
  ElasticGpuAssociation.add_member(:elastic_gpu_association_time, Shapes::ShapeRef.new(shape: String, location_name: "elasticGpuAssociationTime"))
@@ -83,6 +83,7 @@ module Aws::EC2
83
83
  # | instance_status_ok | {Client#describe_instance_status} | 15 | 40 |
84
84
  # | instance_stopped | {Client#describe_instances} | 15 | 40 |
85
85
  # | instance_terminated | {Client#describe_instances} | 15 | 40 |
86
+ # | internet_gateway_exists | {Client#describe_internet_gateways} | 5 | 6 |
86
87
  # | key_pair_exists | {Client#describe_key_pairs} | 5 | 6 |
87
88
  # | nat_gateway_available | {Client#describe_nat_gateways} | 15 | 40 |
88
89
  # | network_interface_available | {Client#describe_network_interfaces} | 20 | 10 |
@@ -726,6 +727,49 @@ module Aws::EC2
726
727
 
727
728
  end
728
729
 
730
+ class InternetGatewayExists
731
+
732
+ # @param [Hash] options
733
+ # @option options [required, Client] :client
734
+ # @option options [Integer] :max_attempts (6)
735
+ # @option options [Integer] :delay (5)
736
+ # @option options [Proc] :before_attempt
737
+ # @option options [Proc] :before_wait
738
+ def initialize(options)
739
+ @client = options.fetch(:client)
740
+ @waiter = Aws::Waiters::Waiter.new({
741
+ max_attempts: 6,
742
+ delay: 5,
743
+ poller: Aws::Waiters::Poller.new(
744
+ operation_name: :describe_internet_gateways,
745
+ acceptors: [
746
+ {
747
+ "expected" => true,
748
+ "matcher" => "path",
749
+ "state" => "success",
750
+ "argument" => "length(internet_gateways[].internet_gateway_id) > `0`"
751
+ },
752
+ {
753
+ "expected" => "InvalidInternetGateway.NotFound",
754
+ "matcher" => "error",
755
+ "state" => "retry"
756
+ }
757
+ ]
758
+ )
759
+ }.merge(options))
760
+ end
761
+
762
+ # @option (see Client#describe_internet_gateways)
763
+ # @return (see Client#describe_internet_gateways)
764
+ def wait(params = {})
765
+ @waiter.wait(client: @client, params: params)
766
+ end
767
+
768
+ # @api private
769
+ attr_reader :waiter
770
+
771
+ end
772
+
729
773
  class KeyPairExists
730
774
 
731
775
  # @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.286.0'
75
+ GEM_VERSION = '1.287.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.286.0
4
+ version: 1.287.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: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2021-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4