aws-sdk-ec2 1.305.0 → 1.308.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 +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +148 -172
- data/lib/aws-sdk-ec2/client_api.rb +2 -1
- data/lib/aws-sdk-ec2/instance.rb +13 -7
- data/lib/aws-sdk-ec2/key_pair.rb +6 -1
- data/lib/aws-sdk-ec2/placement_group.rb +3 -0
- data/lib/aws-sdk-ec2/resource.rb +17 -9
- data/lib/aws-sdk-ec2/subnet.rb +11 -8
- data/lib/aws-sdk-ec2/types.rb +97 -70
- data/lib/aws-sdk-ec2/vpc.rb +3 -0
- data/lib/aws-sdk-ec2/waiters.rb +44 -0
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +2 -2
data/lib/aws-sdk-ec2/vpc.rb
CHANGED
@@ -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
|
#
|
data/lib/aws-sdk-ec2/waiters.rb
CHANGED
@@ -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
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.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-
|
11
|
+
date: 2022-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|