aws-sdk-ec2 1.286.0 → 1.287.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +8 -1
- data/lib/aws-sdk-ec2/client_api.rb +1 -1
- data/lib/aws-sdk-ec2/waiters.rb +44 -0
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4ef6071f893ffdb68da1197584ff8a321edf00ea6e1ba89d3487b45b429332d
|
4
|
+
data.tar.gz: c0ea9e00c7993ec9932135b4a512e2beb2d61ff748aece6b93ea9aac7531eb68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8752a78711d6470f3a326aa57101631ca262c429b664e1e9d492eddb3fdea43d77d505a8256bcea9c4c2250cfc52109c80fa55ca37ad938dd83522d467a81037
|
7
|
+
data.tar.gz: f4ba425fd09cad3dae446cf2104dbdb266988193468202bc8a68752f746f59fa429ceed566b6429c1b1cead50fd8f009ea007314fb9805fb7e78cf1fab28ab6a
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.287.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -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.
|
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:
|
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"))
|
data/lib/aws-sdk-ec2/waiters.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2021-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|