aws-sdk-ec2 1.307.0 → 1.308.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 +26 -9
- data/lib/aws-sdk-ec2/client_api.rb +2 -1
- 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 +4 -1
- data/lib/aws-sdk-ec2/subnet.rb +4 -1
- data/lib/aws-sdk-ec2/types.rb +37 -21
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0568d5a04675582bfbbc673aa2486b74a35511bbbc570e3d9adf0e9b4ac0d947'
|
4
|
+
data.tar.gz: 5a00be4c1ed6484e1b4fabf8cd87b1e850109e7d0809810fff56095fe8d46853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86eff3497fa4cbaece9126dc68a45d2d7bf7a2d2b6216299275283f6ad87989ac64c8ed3f28408093b1430c2dc343ad13844892081b803d1aa9c50bfd225d2f5
|
7
|
+
data.tar.gz: f00262ce6dd5a2bc7929be3ce7328161fc5eed9cf3cfb5b8b46d955f68ded016b7918fe8a78059c792a789a258881b1c1d13136022953d3b7e4140b0be06459c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.308.0 (2022-04-22)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adds support for waiters that automatically poll for a deleted NAT Gateway until it reaches the deleted state.
|
8
|
+
|
4
9
|
1.307.0 (2022-04-14)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.308.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -21668,6 +21668,9 @@ module Aws::EC2
|
|
21668
21668
|
#
|
21669
21669
|
# * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
|
21670
21670
|
#
|
21671
|
+
# * `capacity-reservation-id` - The ID of the Capacity Reservation into
|
21672
|
+
# which the instance was launched.
|
21673
|
+
#
|
21671
21674
|
# * `client-token` - The idempotency token you provided when you
|
21672
21675
|
# launched the instance.
|
21673
21676
|
#
|
@@ -23983,6 +23986,7 @@ module Aws::EC2
|
|
23983
23986
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
23984
23987
|
#
|
23985
23988
|
# * nat_gateway_available
|
23989
|
+
# * nat_gateway_deleted
|
23986
23990
|
#
|
23987
23991
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways AWS API Documentation
|
23988
23992
|
#
|
@@ -28433,7 +28437,7 @@ module Aws::EC2
|
|
28433
28437
|
#
|
28434
28438
|
#
|
28435
28439
|
#
|
28436
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
28440
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
|
28437
28441
|
#
|
28438
28442
|
# @option params [Boolean] :dry_run
|
28439
28443
|
# Checks whether you have the required permissions for the action,
|
@@ -41074,12 +41078,11 @@ module Aws::EC2
|
|
41074
41078
|
# destinations.
|
41075
41079
|
#
|
41076
41080
|
# @option params [String] :private_dns_hostname_type_on_launch
|
41077
|
-
# The type of
|
41078
|
-
# For IPv4
|
41079
|
-
#
|
41080
|
-
#
|
41081
|
-
#
|
41082
|
-
# instance ID.
|
41081
|
+
# The type of hostname to assign to instances in the subnet at launch.
|
41082
|
+
# For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS
|
41083
|
+
# name can be based on the instance IPv4 address (ip-name) or the
|
41084
|
+
# instance ID (resource-name). For IPv6 only subnets, an instance DNS
|
41085
|
+
# name must be based on the instance ID (resource-name).
|
41083
41086
|
#
|
41084
41087
|
# @option params [Types::AttributeBooleanValue] :enable_resource_name_dns_a_record_on_launch
|
41085
41088
|
# Indicates whether to respond to DNS queries for instance hostnames
|
@@ -44971,9 +44974,15 @@ module Aws::EC2
|
|
44971
44974
|
# For more information, see [Spot Fleet requests][1] in the *Amazon EC2
|
44972
44975
|
# User Guide for Linux Instances*.
|
44973
44976
|
#
|
44977
|
+
# We strongly discourage using the RequestSpotFleet API because it is a
|
44978
|
+
# legacy API with no planned investment. For options for requesting Spot
|
44979
|
+
# Instances, see [Which is the best Spot request method to use?][2] in
|
44980
|
+
# the *Amazon EC2 User Guide for Linux Instances*.
|
44981
|
+
#
|
44974
44982
|
#
|
44975
44983
|
#
|
44976
44984
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html
|
44985
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use
|
44977
44986
|
#
|
44978
44987
|
# @option params [Boolean] :dry_run
|
44979
44988
|
# Checks whether you have the required permissions for the action,
|
@@ -45434,9 +45443,15 @@ module Aws::EC2
|
|
45434
45443
|
# For more information, see [Spot Instance requests][1] in the *Amazon
|
45435
45444
|
# EC2 User Guide for Linux Instances*.
|
45436
45445
|
#
|
45446
|
+
# We strongly discourage using the RequestSpotInstances API because it
|
45447
|
+
# is a legacy API with no planned investment. For options for requesting
|
45448
|
+
# Spot Instances, see [Which is the best Spot request method to use?][2]
|
45449
|
+
# in the *Amazon EC2 User Guide for Linux Instances*.
|
45450
|
+
#
|
45437
45451
|
#
|
45438
45452
|
#
|
45439
45453
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html
|
45454
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use
|
45440
45455
|
#
|
45441
45456
|
# @option params [String] :availability_zone_group
|
45442
45457
|
# The user-specified name for a logical grouping of requests.
|
@@ -47296,7 +47311,7 @@ module Aws::EC2
|
|
47296
47311
|
# security_group_ids: ["SecurityGroupId"],
|
47297
47312
|
# security_groups: ["SecurityGroupName"],
|
47298
47313
|
# subnet_id: "SubnetId",
|
47299
|
-
# user_data: "
|
47314
|
+
# user_data: "RunInstancesUserData",
|
47300
47315
|
# additional_info: "String",
|
47301
47316
|
# client_token: "String",
|
47302
47317
|
# disable_api_termination: false,
|
@@ -49475,7 +49490,7 @@ module Aws::EC2
|
|
49475
49490
|
params: params,
|
49476
49491
|
config: config)
|
49477
49492
|
context[:gem_name] = 'aws-sdk-ec2'
|
49478
|
-
context[:gem_version] = '1.
|
49493
|
+
context[:gem_version] = '1.308.0'
|
49479
49494
|
Seahorse::Client::Request.new(handlers, context)
|
49480
49495
|
end
|
49481
49496
|
|
@@ -49560,6 +49575,7 @@ module Aws::EC2
|
|
49560
49575
|
# | internet_gateway_exists | {Client#describe_internet_gateways} | 5 | 6 |
|
49561
49576
|
# | key_pair_exists | {Client#describe_key_pairs} | 5 | 6 |
|
49562
49577
|
# | nat_gateway_available | {Client#describe_nat_gateways} | 15 | 40 |
|
49578
|
+
# | nat_gateway_deleted | {Client#describe_nat_gateways} | 15 | 40 |
|
49563
49579
|
# | network_interface_available | {Client#describe_network_interfaces} | 20 | 10 |
|
49564
49580
|
# | password_data_available | {Client#get_password_data} | 15 | 40 |
|
49565
49581
|
# | security_group_exists | {Client#describe_security_groups} | 5 | 6 |
|
@@ -49643,6 +49659,7 @@ module Aws::EC2
|
|
49643
49659
|
internet_gateway_exists: Waiters::InternetGatewayExists,
|
49644
49660
|
key_pair_exists: Waiters::KeyPairExists,
|
49645
49661
|
nat_gateway_available: Waiters::NatGatewayAvailable,
|
49662
|
+
nat_gateway_deleted: Waiters::NatGatewayDeleted,
|
49646
49663
|
network_interface_available: Waiters::NetworkInterfaceAvailable,
|
49647
49664
|
password_data_available: Waiters::PasswordDataAvailable,
|
49648
49665
|
security_group_exists: Waiters::SecurityGroupExists,
|
@@ -2230,6 +2230,7 @@ module Aws::EC2
|
|
2230
2230
|
RuleAction = Shapes::StringShape.new(name: 'RuleAction')
|
2231
2231
|
RunInstancesMonitoringEnabled = Shapes::StructureShape.new(name: 'RunInstancesMonitoringEnabled')
|
2232
2232
|
RunInstancesRequest = Shapes::StructureShape.new(name: 'RunInstancesRequest')
|
2233
|
+
RunInstancesUserData = Shapes::StringShape.new(name: 'RunInstancesUserData')
|
2233
2234
|
RunScheduledInstancesRequest = Shapes::StructureShape.new(name: 'RunScheduledInstancesRequest')
|
2234
2235
|
RunScheduledInstancesResult = Shapes::StructureShape.new(name: 'RunScheduledInstancesResult')
|
2235
2236
|
S3ObjectTag = Shapes::StructureShape.new(name: 'S3ObjectTag')
|
@@ -11494,7 +11495,7 @@ module Aws::EC2
|
|
11494
11495
|
RunInstancesRequest.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIdStringList, location_name: "SecurityGroupId"))
|
11495
11496
|
RunInstancesRequest.add_member(:security_groups, Shapes::ShapeRef.new(shape: SecurityGroupStringList, location_name: "SecurityGroup"))
|
11496
11497
|
RunInstancesRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, location_name: "SubnetId"))
|
11497
|
-
RunInstancesRequest.add_member(:user_data, Shapes::ShapeRef.new(shape:
|
11498
|
+
RunInstancesRequest.add_member(:user_data, Shapes::ShapeRef.new(shape: RunInstancesUserData, location_name: "UserData"))
|
11498
11499
|
RunInstancesRequest.add_member(:additional_info, Shapes::ShapeRef.new(shape: String, location_name: "additionalInfo"))
|
11499
11500
|
RunInstancesRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
11500
11501
|
RunInstancesRequest.add_member(:disable_api_termination, Shapes::ShapeRef.new(shape: Boolean, location_name: "disableApiTermination"))
|
data/lib/aws-sdk-ec2/key_pair.rb
CHANGED
@@ -35,7 +35,12 @@ module Aws::EC2
|
|
35
35
|
end
|
36
36
|
alias :key_name :name
|
37
37
|
|
38
|
-
#
|
38
|
+
# * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
|
39
|
+
# DER encoded private key.
|
40
|
+
#
|
41
|
+
# * For ED25519 key pairs, the key fingerprint is the base64-encoded
|
42
|
+
# SHA-256 digest, which is the default for OpenSSH, starting with
|
43
|
+
# OpenSSH 6.8.
|
39
44
|
# @return [String]
|
40
45
|
def key_fingerprint
|
41
46
|
data[:key_fingerprint]
|
@@ -265,6 +265,9 @@ module Aws::EC2
|
|
265
265
|
#
|
266
266
|
# * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
|
267
267
|
#
|
268
|
+
# * `capacity-reservation-id` - The ID of the Capacity Reservation into
|
269
|
+
# which the instance was launched.
|
270
|
+
#
|
268
271
|
# * `client-token` - The idempotency token you provided when you
|
269
272
|
# launched the instance.
|
270
273
|
#
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -127,7 +127,7 @@ module Aws::EC2
|
|
127
127
|
# security_group_ids: ["SecurityGroupId"],
|
128
128
|
# security_groups: ["SecurityGroupName"],
|
129
129
|
# subnet_id: "SubnetId",
|
130
|
-
# user_data: "
|
130
|
+
# user_data: "RunInstancesUserData",
|
131
131
|
# additional_info: "String",
|
132
132
|
# client_token: "String",
|
133
133
|
# disable_api_termination: false,
|
@@ -2147,6 +2147,9 @@ module Aws::EC2
|
|
2147
2147
|
#
|
2148
2148
|
# * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
|
2149
2149
|
#
|
2150
|
+
# * `capacity-reservation-id` - The ID of the Capacity Reservation into
|
2151
|
+
# which the instance was launched.
|
2152
|
+
#
|
2150
2153
|
# * `client-token` - The idempotency token you provided when you
|
2151
2154
|
# launched the instance.
|
2152
2155
|
#
|
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
@@ -351,7 +351,7 @@ module Aws::EC2
|
|
351
351
|
# ramdisk_id: "RamdiskId",
|
352
352
|
# security_group_ids: ["SecurityGroupId"],
|
353
353
|
# security_groups: ["SecurityGroupName"],
|
354
|
-
# user_data: "
|
354
|
+
# user_data: "RunInstancesUserData",
|
355
355
|
# additional_info: "String",
|
356
356
|
# client_token: "String",
|
357
357
|
# disable_api_termination: false,
|
@@ -1069,6 +1069,9 @@ module Aws::EC2
|
|
1069
1069
|
#
|
1070
1070
|
# * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
|
1071
1071
|
#
|
1072
|
+
# * `capacity-reservation-id` - The ID of the Capacity Reservation into
|
1073
|
+
# which the instance was launched.
|
1074
|
+
#
|
1072
1075
|
# * `client-token` - The idempotency token you provided when you
|
1073
1076
|
# launched the instance.
|
1074
1077
|
#
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -21406,6 +21406,9 @@ module Aws::EC2
|
|
21406
21406
|
# * `block-device-mapping.volume-id` - The volume ID of the EBS
|
21407
21407
|
# volume.
|
21408
21408
|
#
|
21409
|
+
# * `capacity-reservation-id` - The ID of the Capacity Reservation
|
21410
|
+
# into which the instance was launched.
|
21411
|
+
#
|
21409
21412
|
# * `client-token` - The idempotency token you provided when you
|
21410
21413
|
# launched the instance.
|
21411
21414
|
#
|
@@ -26275,7 +26278,7 @@ module Aws::EC2
|
|
26275
26278
|
#
|
26276
26279
|
#
|
26277
26280
|
#
|
26278
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
26281
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
|
26279
26282
|
# @return [Array<Types::Filter>]
|
26280
26283
|
#
|
26281
26284
|
# @!attribute [rw] dry_run
|
@@ -38874,8 +38877,16 @@ module Aws::EC2
|
|
38874
38877
|
end
|
38875
38878
|
|
38876
38879
|
# @!attribute [rw] key_fingerprint
|
38877
|
-
#
|
38878
|
-
#
|
38880
|
+
# * For RSA key pairs, the key fingerprint is the MD5 public key
|
38881
|
+
# fingerprint as specified in section 4 of RFC 4716.
|
38882
|
+
#
|
38883
|
+
# * For ED25519 key pairs, the key fingerprint is the base64-encoded
|
38884
|
+
# SHA-256 digest, which is the default for OpenSSH, starting with
|
38885
|
+
# [OpenSSH 6.8][1].
|
38886
|
+
#
|
38887
|
+
#
|
38888
|
+
#
|
38889
|
+
# [1]: http://www.openssh.com/txt/release-6.8
|
38879
38890
|
# @return [String]
|
38880
38891
|
#
|
38881
38892
|
# @!attribute [rw] key_name
|
@@ -43341,7 +43352,12 @@ module Aws::EC2
|
|
43341
43352
|
# Describes a key pair.
|
43342
43353
|
#
|
43343
43354
|
# @!attribute [rw] key_fingerprint
|
43344
|
-
#
|
43355
|
+
# * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
|
43356
|
+
# DER encoded private key.
|
43357
|
+
#
|
43358
|
+
# * For ED25519 key pairs, the key fingerprint is the base64-encoded
|
43359
|
+
# SHA-256 digest, which is the default for OpenSSH, starting with
|
43360
|
+
# OpenSSH 6.8.
|
43345
43361
|
# @return [String]
|
43346
43362
|
#
|
43347
43363
|
# @!attribute [rw] key_material
|
@@ -43572,7 +43588,7 @@ module Aws::EC2
|
|
43572
43588
|
# @return [String]
|
43573
43589
|
#
|
43574
43590
|
# @!attribute [rw] instance_type
|
43575
|
-
# The instance type.
|
43591
|
+
# The instance type. Only one instance type can be specified.
|
43576
43592
|
# @return [String]
|
43577
43593
|
#
|
43578
43594
|
# @!attribute [rw] kernel_id
|
@@ -49177,12 +49193,11 @@ module Aws::EC2
|
|
49177
49193
|
# @return [Types::AttributeBooleanValue]
|
49178
49194
|
#
|
49179
49195
|
# @!attribute [rw] private_dns_hostname_type_on_launch
|
49180
|
-
# The type of
|
49181
|
-
#
|
49182
|
-
# the instance IPv4 address
|
49183
|
-
#
|
49184
|
-
#
|
49185
|
-
# instance ID.
|
49196
|
+
# The type of hostname to assign to instances in the subnet at launch.
|
49197
|
+
# For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance
|
49198
|
+
# DNS name can be based on the instance IPv4 address (ip-name) or the
|
49199
|
+
# instance ID (resource-name). For IPv6 only subnets, an instance DNS
|
49200
|
+
# name must be based on the instance ID (resource-name).
|
49186
49201
|
# @return [String]
|
49187
49202
|
#
|
49188
49203
|
# @!attribute [rw] enable_resource_name_dns_a_record_on_launch
|
@@ -57050,7 +57065,7 @@ module Aws::EC2
|
|
57050
57065
|
# @return [String]
|
57051
57066
|
#
|
57052
57067
|
# @!attribute [rw] instance_type
|
57053
|
-
# The instance type.
|
57068
|
+
# The instance type. Only one instance type can be specified.
|
57054
57069
|
# @return [String]
|
57055
57070
|
#
|
57056
57071
|
# @!attribute [rw] kernel_id
|
@@ -59193,7 +59208,7 @@ module Aws::EC2
|
|
59193
59208
|
# security_group_ids: ["SecurityGroupId"],
|
59194
59209
|
# security_groups: ["SecurityGroupName"],
|
59195
59210
|
# subnet_id: "SubnetId",
|
59196
|
-
# user_data: "
|
59211
|
+
# user_data: "RunInstancesUserData",
|
59197
59212
|
# additional_info: "String",
|
59198
59213
|
# client_token: "String",
|
59199
59214
|
# disable_api_termination: false,
|
@@ -59759,7 +59774,7 @@ module Aws::EC2
|
|
59759
59774
|
:enclave_options,
|
59760
59775
|
:private_dns_name_options,
|
59761
59776
|
:maintenance_options)
|
59762
|
-
SENSITIVE = []
|
59777
|
+
SENSITIVE = [:user_data]
|
59763
59778
|
include Aws::Structure
|
59764
59779
|
end
|
59765
59780
|
|
@@ -63244,13 +63259,14 @@ module Aws::EC2
|
|
63244
63259
|
# @return [String]
|
63245
63260
|
#
|
63246
63261
|
# @!attribute [rw] state
|
63247
|
-
# The state of the Spot Instance request. Spot status
|
63248
|
-
# helps track your Spot Instance requests. For more
|
63249
|
-
# [Spot status][1] in the *Amazon EC2 User
|
63262
|
+
# The state of the Spot Instance request. Spot request status
|
63263
|
+
# information helps track your Spot Instance requests. For more
|
63264
|
+
# information, see [Spot request status][1] in the *Amazon EC2 User
|
63265
|
+
# Guide for Linux Instances*.
|
63250
63266
|
#
|
63251
63267
|
#
|
63252
63268
|
#
|
63253
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
63269
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
|
63254
63270
|
# @return [String]
|
63255
63271
|
#
|
63256
63272
|
# @!attribute [rw] status
|
@@ -63338,12 +63354,12 @@ module Aws::EC2
|
|
63338
63354
|
# Describes the status of a Spot Instance request.
|
63339
63355
|
#
|
63340
63356
|
# @!attribute [rw] code
|
63341
|
-
# The status code. For a list of status codes, see [Spot
|
63342
|
-
# codes][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
63357
|
+
# The status code. For a list of status codes, see [Spot request
|
63358
|
+
# status codes][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
63343
63359
|
#
|
63344
63360
|
#
|
63345
63361
|
#
|
63346
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
63362
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html#spot-instance-request-status-understand
|
63347
63363
|
# @return [String]
|
63348
63364
|
#
|
63349
63365
|
# @!attribute [rw] message
|
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-04-
|
11
|
+
date: 2022-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|