aws-sdk-ec2 1.307.0 → 1.310.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 +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +68 -27
- data/lib/aws-sdk-ec2/client_api.rb +9 -1
- data/lib/aws-sdk-ec2/key_pair.rb +6 -1
- data/lib/aws-sdk-ec2/key_pair_info.rb +22 -0
- data/lib/aws-sdk-ec2/placement_group.rb +3 -0
- data/lib/aws-sdk-ec2/resource.rb +14 -1
- data/lib/aws-sdk-ec2/subnet.rb +4 -1
- data/lib/aws-sdk-ec2/types.rb +91 -26
- 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: d6d16e102841226758942173e88de68c2a6d3643a5e541eefee5fc4be6e42824
|
4
|
+
data.tar.gz: d5bfc1a91b8a1d0f5f3c45729e738acbc663f568305fc66844a3f7cafd7fe66d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44c718979385664a51bbe635bf1b42fe93dae5eb1086d1f6956b2593d271a0df27a9805f914aa47150210b0abf3152f450190933f05b257fdb5fe67b4bd65cc7
|
7
|
+
data.tar.gz: 7098d891cc988897164d8ee79c1b544b37950fc7c2742664ee9f18ce1550cd21eb20ff1cc9cd612a9ca4bbc4b63c7f7b12ddd73601e4a9bbb7eb8c3ebbb7004f
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.310.0 (2022-05-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adds support for allocating Dedicated Hosts on AWS Outposts. The AllocateHosts API now accepts an OutpostArn request parameter, and the DescribeHosts API now includes an OutpostArn response parameter.
|
8
|
+
|
9
|
+
1.309.0 (2022-04-28)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds support to query the public key and creation date of EC2 Key Pairs. Additionally, the format (pem or ppk) of a key pair can be specified when creating a new key pair.
|
13
|
+
|
14
|
+
1.308.0 (2022-04-22)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Adds support for waiters that automatically poll for a deleted NAT Gateway until it reaches the deleted state.
|
18
|
+
|
4
19
|
1.307.0 (2022-04-14)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.310.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -961,6 +961,10 @@ module Aws::EC2
|
|
961
961
|
#
|
962
962
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html
|
963
963
|
#
|
964
|
+
# @option params [String] :outpost_arn
|
965
|
+
# The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on
|
966
|
+
# which to allocate the Dedicated Host.
|
967
|
+
#
|
964
968
|
# @return [Types::AllocateHostsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
965
969
|
#
|
966
970
|
# * {Types::AllocateHostsResult#host_ids #host_ids} => Array<String>
|
@@ -986,6 +990,7 @@ module Aws::EC2
|
|
986
990
|
# },
|
987
991
|
# ],
|
988
992
|
# host_recovery: "on", # accepts on, off
|
993
|
+
# outpost_arn: "String",
|
989
994
|
# })
|
990
995
|
#
|
991
996
|
# @example Response structure
|
@@ -6959,11 +6964,13 @@ module Aws::EC2
|
|
6959
6964
|
req.send_request(options)
|
6960
6965
|
end
|
6961
6966
|
|
6962
|
-
# Creates an ED25519 or 2048-bit RSA key pair with the specified name
|
6963
|
-
#
|
6964
|
-
#
|
6965
|
-
#
|
6966
|
-
#
|
6967
|
+
# Creates an ED25519 or 2048-bit RSA key pair with the specified name
|
6968
|
+
# and in the specified PEM or PPK format. Amazon EC2 stores the public
|
6969
|
+
# key and displays the private key for you to save to a file. The
|
6970
|
+
# private key is returned as an unencrypted PEM encoded PKCS#1 private
|
6971
|
+
# key or an unencrypted PPK formatted private key for use with PuTTY. If
|
6972
|
+
# a key with the specified name already exists, Amazon EC2 returns an
|
6973
|
+
# error.
|
6967
6974
|
#
|
6968
6975
|
# The key pair returned to you is available only in the Amazon Web
|
6969
6976
|
# Services Region in which you create it. If you prefer, you can create
|
@@ -6999,6 +7006,11 @@ module Aws::EC2
|
|
6999
7006
|
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
7000
7007
|
# The tags to apply to the new key pair.
|
7001
7008
|
#
|
7009
|
+
# @option params [String] :key_format
|
7010
|
+
# The format of the key pair.
|
7011
|
+
#
|
7012
|
+
# Default: `pem`
|
7013
|
+
#
|
7002
7014
|
# @return [Types::KeyPair] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7003
7015
|
#
|
7004
7016
|
# * {Types::KeyPair#key_fingerprint #key_fingerprint} => String
|
@@ -7033,6 +7045,7 @@ module Aws::EC2
|
|
7033
7045
|
# ],
|
7034
7046
|
# },
|
7035
7047
|
# ],
|
7048
|
+
# key_format: "pem", # accepts pem, ppk
|
7036
7049
|
# })
|
7037
7050
|
#
|
7038
7051
|
# @example Response structure
|
@@ -19851,6 +19864,7 @@ module Aws::EC2
|
|
19851
19864
|
# resp.hosts[0].owner_id #=> String
|
19852
19865
|
# resp.hosts[0].availability_zone_id #=> String
|
19853
19866
|
# resp.hosts[0].member_of_service_linked_resource_group #=> Boolean
|
19867
|
+
# resp.hosts[0].outpost_arn #=> String
|
19854
19868
|
# resp.next_token #=> String
|
19855
19869
|
#
|
19856
19870
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHosts AWS API Documentation
|
@@ -21668,6 +21682,9 @@ module Aws::EC2
|
|
21668
21682
|
#
|
21669
21683
|
# * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
|
21670
21684
|
#
|
21685
|
+
# * `capacity-reservation-id` - The ID of the Capacity Reservation into
|
21686
|
+
# which the instance was launched.
|
21687
|
+
#
|
21671
21688
|
# * `client-token` - The idempotency token you provided when you
|
21672
21689
|
# launched the instance.
|
21673
21690
|
#
|
@@ -22676,6 +22693,11 @@ module Aws::EC2
|
|
22676
22693
|
# If you have the required permissions, the error response is
|
22677
22694
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
22678
22695
|
#
|
22696
|
+
# @option params [Boolean] :include_public_key
|
22697
|
+
# If `true`, the public key material is included in the response.
|
22698
|
+
#
|
22699
|
+
# Default: `false`
|
22700
|
+
#
|
22679
22701
|
# @return [Types::DescribeKeyPairsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
22680
22702
|
#
|
22681
22703
|
# * {Types::DescribeKeyPairsResult#key_pairs #key_pairs} => Array<Types::KeyPairInfo>
|
@@ -22713,6 +22735,7 @@ module Aws::EC2
|
|
22713
22735
|
# key_names: ["KeyPairName"],
|
22714
22736
|
# key_pair_ids: ["KeyPairId"],
|
22715
22737
|
# dry_run: false,
|
22738
|
+
# include_public_key: false,
|
22716
22739
|
# })
|
22717
22740
|
#
|
22718
22741
|
# @example Response structure
|
@@ -22725,6 +22748,8 @@ module Aws::EC2
|
|
22725
22748
|
# resp.key_pairs[0].tags #=> Array
|
22726
22749
|
# resp.key_pairs[0].tags[0].key #=> String
|
22727
22750
|
# resp.key_pairs[0].tags[0].value #=> String
|
22751
|
+
# resp.key_pairs[0].public_key #=> String
|
22752
|
+
# resp.key_pairs[0].create_time #=> Time
|
22728
22753
|
#
|
22729
22754
|
#
|
22730
22755
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -23983,6 +24008,7 @@ module Aws::EC2
|
|
23983
24008
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
23984
24009
|
#
|
23985
24010
|
# * nat_gateway_available
|
24011
|
+
# * nat_gateway_deleted
|
23986
24012
|
#
|
23987
24013
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways AWS API Documentation
|
23988
24014
|
#
|
@@ -28433,7 +28459,7 @@ module Aws::EC2
|
|
28433
28459
|
#
|
28434
28460
|
#
|
28435
28461
|
#
|
28436
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
28462
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
|
28437
28463
|
#
|
28438
28464
|
# @option params [Boolean] :dry_run
|
28439
28465
|
# Checks whether you have the required permissions for the action,
|
@@ -41074,12 +41100,11 @@ module Aws::EC2
|
|
41074
41100
|
# destinations.
|
41075
41101
|
#
|
41076
41102
|
# @option params [String] :private_dns_hostname_type_on_launch
|
41077
|
-
# The type of
|
41078
|
-
# For IPv4
|
41079
|
-
#
|
41080
|
-
#
|
41081
|
-
#
|
41082
|
-
# instance ID.
|
41103
|
+
# The type of hostname to assign to instances in the subnet at launch.
|
41104
|
+
# For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS
|
41105
|
+
# name can be based on the instance IPv4 address (ip-name) or the
|
41106
|
+
# instance ID (resource-name). For IPv6 only subnets, an instance DNS
|
41107
|
+
# name must be based on the instance ID (resource-name).
|
41083
41108
|
#
|
41084
41109
|
# @option params [Types::AttributeBooleanValue] :enable_resource_name_dns_a_record_on_launch
|
41085
41110
|
# Indicates whether to respond to DNS queries for instance hostnames
|
@@ -44971,9 +44996,15 @@ module Aws::EC2
|
|
44971
44996
|
# For more information, see [Spot Fleet requests][1] in the *Amazon EC2
|
44972
44997
|
# User Guide for Linux Instances*.
|
44973
44998
|
#
|
44999
|
+
# We strongly discourage using the RequestSpotFleet API because it is a
|
45000
|
+
# legacy API with no planned investment. For options for requesting Spot
|
45001
|
+
# Instances, see [Which is the best Spot request method to use?][2] in
|
45002
|
+
# the *Amazon EC2 User Guide for Linux Instances*.
|
45003
|
+
#
|
44974
45004
|
#
|
44975
45005
|
#
|
44976
45006
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html
|
45007
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use
|
44977
45008
|
#
|
44978
45009
|
# @option params [Boolean] :dry_run
|
44979
45010
|
# Checks whether you have the required permissions for the action,
|
@@ -45434,9 +45465,15 @@ module Aws::EC2
|
|
45434
45465
|
# For more information, see [Spot Instance requests][1] in the *Amazon
|
45435
45466
|
# EC2 User Guide for Linux Instances*.
|
45436
45467
|
#
|
45468
|
+
# We strongly discourage using the RequestSpotInstances API because it
|
45469
|
+
# is a legacy API with no planned investment. For options for requesting
|
45470
|
+
# Spot Instances, see [Which is the best Spot request method to use?][2]
|
45471
|
+
# in the *Amazon EC2 User Guide for Linux Instances*.
|
45472
|
+
#
|
45437
45473
|
#
|
45438
45474
|
#
|
45439
45475
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html
|
45476
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use
|
45440
45477
|
#
|
45441
45478
|
# @option params [String] :availability_zone_group
|
45442
45479
|
# The user-specified name for a logical grouping of requests.
|
@@ -47296,7 +47333,7 @@ module Aws::EC2
|
|
47296
47333
|
# security_group_ids: ["SecurityGroupId"],
|
47297
47334
|
# security_groups: ["SecurityGroupName"],
|
47298
47335
|
# subnet_id: "SubnetId",
|
47299
|
-
# user_data: "
|
47336
|
+
# user_data: "RunInstancesUserData",
|
47300
47337
|
# additional_info: "String",
|
47301
47338
|
# client_token: "String",
|
47302
47339
|
# disable_api_termination: false,
|
@@ -48711,12 +48748,13 @@ module Aws::EC2
|
|
48711
48748
|
req.send_request(options)
|
48712
48749
|
end
|
48713
48750
|
|
48714
|
-
# Stops an Amazon EBS-backed instance.
|
48751
|
+
# Stops an Amazon EBS-backed instance. For more information, see [Stop
|
48752
|
+
# and start your instance][1] in the *Amazon EC2 User Guide*.
|
48715
48753
|
#
|
48716
48754
|
# You can use the Stop action to hibernate an instance if the instance
|
48717
|
-
# is [enabled for hibernation][
|
48718
|
-
# prerequisites][
|
48719
|
-
# instance][
|
48755
|
+
# is [enabled for hibernation][2] and it meets the [hibernation
|
48756
|
+
# prerequisites][3]. For more information, see [Hibernate your
|
48757
|
+
# instance][4] in the *Amazon EC2 User Guide*.
|
48720
48758
|
#
|
48721
48759
|
# We don't charge usage for a stopped instance, or data transfer fees;
|
48722
48760
|
# however, your root partition Amazon EBS volume remains and continues
|
@@ -48729,7 +48767,7 @@ module Aws::EC2
|
|
48729
48767
|
# can't use the Stop action to hibernate Spot Instances, but you can
|
48730
48768
|
# specify that Amazon EC2 should hibernate Spot Instances when they are
|
48731
48769
|
# interrupted. For more information, see [Hibernating interrupted Spot
|
48732
|
-
# Instances][
|
48770
|
+
# Instances][5] in the *Amazon EC2 User Guide*.
|
48733
48771
|
#
|
48734
48772
|
# When you stop or hibernate an instance, we shut it down. You can
|
48735
48773
|
# restart your instance at any time. Before stopping or hibernating an
|
@@ -48745,22 +48783,23 @@ module Aws::EC2
|
|
48745
48783
|
# devices attached during the instance launch are automatically deleted.
|
48746
48784
|
# For more information about the differences between rebooting,
|
48747
48785
|
# stopping, hibernating, and terminating instances, see [Instance
|
48748
|
-
# lifecycle][
|
48786
|
+
# lifecycle][6] in the *Amazon EC2 User Guide*.
|
48749
48787
|
#
|
48750
48788
|
# When you stop an instance, we attempt to shut it down forcibly after a
|
48751
48789
|
# short while. If your instance appears stuck in the stopping state
|
48752
48790
|
# after a period of time, there may be an issue with the underlying host
|
48753
48791
|
# computer. For more information, see [Troubleshoot stopping your
|
48754
|
-
# instance][
|
48792
|
+
# instance][7] in the *Amazon EC2 User Guide*.
|
48755
48793
|
#
|
48756
48794
|
#
|
48757
48795
|
#
|
48758
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
48759
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#
|
48760
|
-
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
|
48761
|
-
# [4]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
48762
|
-
# [5]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
48763
|
-
# [6]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
48796
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html
|
48797
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#enabling-hibernation
|
48798
|
+
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites
|
48799
|
+
# [4]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
|
48800
|
+
# [5]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#hibernate-spot-instances
|
48801
|
+
# [6]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html
|
48802
|
+
# [7]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html
|
48764
48803
|
#
|
48765
48804
|
# @option params [required, Array<String>] :instance_ids
|
48766
48805
|
# The IDs of the instances.
|
@@ -49475,7 +49514,7 @@ module Aws::EC2
|
|
49475
49514
|
params: params,
|
49476
49515
|
config: config)
|
49477
49516
|
context[:gem_name] = 'aws-sdk-ec2'
|
49478
|
-
context[:gem_version] = '1.
|
49517
|
+
context[:gem_version] = '1.310.0'
|
49479
49518
|
Seahorse::Client::Request.new(handlers, context)
|
49480
49519
|
end
|
49481
49520
|
|
@@ -49560,6 +49599,7 @@ module Aws::EC2
|
|
49560
49599
|
# | internet_gateway_exists | {Client#describe_internet_gateways} | 5 | 6 |
|
49561
49600
|
# | key_pair_exists | {Client#describe_key_pairs} | 5 | 6 |
|
49562
49601
|
# | nat_gateway_available | {Client#describe_nat_gateways} | 15 | 40 |
|
49602
|
+
# | nat_gateway_deleted | {Client#describe_nat_gateways} | 15 | 40 |
|
49563
49603
|
# | network_interface_available | {Client#describe_network_interfaces} | 20 | 10 |
|
49564
49604
|
# | password_data_available | {Client#get_password_data} | 15 | 40 |
|
49565
49605
|
# | security_group_exists | {Client#describe_security_groups} | 5 | 6 |
|
@@ -49643,6 +49683,7 @@ module Aws::EC2
|
|
49643
49683
|
internet_gateway_exists: Waiters::InternetGatewayExists,
|
49644
49684
|
key_pair_exists: Waiters::KeyPairExists,
|
49645
49685
|
nat_gateway_available: Waiters::NatGatewayAvailable,
|
49686
|
+
nat_gateway_deleted: Waiters::NatGatewayDeleted,
|
49646
49687
|
network_interface_available: Waiters::NetworkInterfaceAvailable,
|
49647
49688
|
password_data_available: Waiters::PasswordDataAvailable,
|
49648
49689
|
security_group_exists: Waiters::SecurityGroupExists,
|
@@ -1581,6 +1581,7 @@ module Aws::EC2
|
|
1581
1581
|
Ipv6RangeList = Shapes::ListShape.new(name: 'Ipv6RangeList')
|
1582
1582
|
Ipv6SupportValue = Shapes::StringShape.new(name: 'Ipv6SupportValue')
|
1583
1583
|
KernelId = Shapes::StringShape.new(name: 'KernelId')
|
1584
|
+
KeyFormat = Shapes::StringShape.new(name: 'KeyFormat')
|
1584
1585
|
KeyNameStringList = Shapes::ListShape.new(name: 'KeyNameStringList')
|
1585
1586
|
KeyPair = Shapes::StructureShape.new(name: 'KeyPair')
|
1586
1587
|
KeyPairId = Shapes::StringShape.new(name: 'KeyPairId')
|
@@ -2230,6 +2231,7 @@ module Aws::EC2
|
|
2230
2231
|
RuleAction = Shapes::StringShape.new(name: 'RuleAction')
|
2231
2232
|
RunInstancesMonitoringEnabled = Shapes::StructureShape.new(name: 'RunInstancesMonitoringEnabled')
|
2232
2233
|
RunInstancesRequest = Shapes::StructureShape.new(name: 'RunInstancesRequest')
|
2234
|
+
RunInstancesUserData = Shapes::StringShape.new(name: 'RunInstancesUserData')
|
2233
2235
|
RunScheduledInstancesRequest = Shapes::StructureShape.new(name: 'RunScheduledInstancesRequest')
|
2234
2236
|
RunScheduledInstancesResult = Shapes::StructureShape.new(name: 'RunScheduledInstancesResult')
|
2235
2237
|
S3ObjectTag = Shapes::StructureShape.new(name: 'S3ObjectTag')
|
@@ -2870,6 +2872,7 @@ module Aws::EC2
|
|
2870
2872
|
AllocateHostsRequest.add_member(:quantity, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "quantity"))
|
2871
2873
|
AllocateHostsRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
2872
2874
|
AllocateHostsRequest.add_member(:host_recovery, Shapes::ShapeRef.new(shape: HostRecovery, location_name: "HostRecovery"))
|
2875
|
+
AllocateHostsRequest.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: String, location_name: "OutpostArn"))
|
2873
2876
|
AllocateHostsRequest.struct_class = Types::AllocateHostsRequest
|
2874
2877
|
|
2875
2878
|
AllocateHostsResult.add_member(:host_ids, Shapes::ShapeRef.new(shape: ResponseHostIdList, location_name: "hostIdSet"))
|
@@ -4074,6 +4077,7 @@ module Aws::EC2
|
|
4074
4077
|
CreateKeyPairRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
4075
4078
|
CreateKeyPairRequest.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyType, location_name: "KeyType"))
|
4076
4079
|
CreateKeyPairRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
4080
|
+
CreateKeyPairRequest.add_member(:key_format, Shapes::ShapeRef.new(shape: KeyFormat, location_name: "KeyFormat"))
|
4077
4081
|
CreateKeyPairRequest.struct_class = Types::CreateKeyPairRequest
|
4078
4082
|
|
4079
4083
|
CreateLaunchTemplateRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
@@ -5771,6 +5775,7 @@ module Aws::EC2
|
|
5771
5775
|
DescribeKeyPairsRequest.add_member(:key_names, Shapes::ShapeRef.new(shape: KeyNameStringList, location_name: "KeyName"))
|
5772
5776
|
DescribeKeyPairsRequest.add_member(:key_pair_ids, Shapes::ShapeRef.new(shape: KeyPairIdStringList, location_name: "KeyPairId"))
|
5773
5777
|
DescribeKeyPairsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
5778
|
+
DescribeKeyPairsRequest.add_member(:include_public_key, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludePublicKey"))
|
5774
5779
|
DescribeKeyPairsRequest.struct_class = Types::DescribeKeyPairsRequest
|
5775
5780
|
|
5776
5781
|
DescribeKeyPairsResult.add_member(:key_pairs, Shapes::ShapeRef.new(shape: KeyPairList, location_name: "keySet"))
|
@@ -7926,6 +7931,7 @@ module Aws::EC2
|
|
7926
7931
|
Host.add_member(:owner_id, Shapes::ShapeRef.new(shape: String, location_name: "ownerId"))
|
7927
7932
|
Host.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZoneId"))
|
7928
7933
|
Host.add_member(:member_of_service_linked_resource_group, Shapes::ShapeRef.new(shape: Boolean, location_name: "memberOfServiceLinkedResourceGroup"))
|
7934
|
+
Host.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: String, location_name: "outpostArn"))
|
7929
7935
|
Host.struct_class = Types::Host
|
7930
7936
|
|
7931
7937
|
HostInstance.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, location_name: "instanceId"))
|
@@ -8970,6 +8976,8 @@ module Aws::EC2
|
|
8970
8976
|
KeyPairInfo.add_member(:key_name, Shapes::ShapeRef.new(shape: String, location_name: "keyName"))
|
8971
8977
|
KeyPairInfo.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyType, location_name: "keyType"))
|
8972
8978
|
KeyPairInfo.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
8979
|
+
KeyPairInfo.add_member(:public_key, Shapes::ShapeRef.new(shape: String, location_name: "publicKey"))
|
8980
|
+
KeyPairInfo.add_member(:create_time, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "createTime"))
|
8973
8981
|
KeyPairInfo.struct_class = Types::KeyPairInfo
|
8974
8982
|
|
8975
8983
|
KeyPairList.member = Shapes::ShapeRef.new(shape: KeyPairInfo, location_name: "item")
|
@@ -11494,7 +11502,7 @@ module Aws::EC2
|
|
11494
11502
|
RunInstancesRequest.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIdStringList, location_name: "SecurityGroupId"))
|
11495
11503
|
RunInstancesRequest.add_member(:security_groups, Shapes::ShapeRef.new(shape: SecurityGroupStringList, location_name: "SecurityGroup"))
|
11496
11504
|
RunInstancesRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, location_name: "SubnetId"))
|
11497
|
-
RunInstancesRequest.add_member(:user_data, Shapes::ShapeRef.new(shape:
|
11505
|
+
RunInstancesRequest.add_member(:user_data, Shapes::ShapeRef.new(shape: RunInstancesUserData, location_name: "UserData"))
|
11498
11506
|
RunInstancesRequest.add_member(:additional_info, Shapes::ShapeRef.new(shape: String, location_name: "additionalInfo"))
|
11499
11507
|
RunInstancesRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
11500
11508
|
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]
|
@@ -80,6 +80,28 @@ module Aws::EC2
|
|
80
80
|
data[:tags]
|
81
81
|
end
|
82
82
|
|
83
|
+
# The public key material.
|
84
|
+
# @return [String]
|
85
|
+
def public_key
|
86
|
+
data[:public_key]
|
87
|
+
end
|
88
|
+
|
89
|
+
# If you used Amazon EC2 to create the key pair, this is the date and
|
90
|
+
# time when the key was created, in [ISO 8601 date-time format][1], in
|
91
|
+
# the UTC time zone.
|
92
|
+
#
|
93
|
+
# If you imported an existing key pair to Amazon EC2, this is the date
|
94
|
+
# and time the key was imported, in [ISO 8601 date-time format][1], in
|
95
|
+
# the UTC time zone.
|
96
|
+
#
|
97
|
+
#
|
98
|
+
#
|
99
|
+
# [1]: https://www.iso.org/iso-8601-date-and-time-format.html
|
100
|
+
# @return [Time]
|
101
|
+
def create_time
|
102
|
+
data[:create_time]
|
103
|
+
end
|
104
|
+
|
83
105
|
# @!endgroup
|
84
106
|
|
85
107
|
# @return [Client]
|
@@ -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,
|
@@ -631,6 +631,7 @@ module Aws::EC2
|
|
631
631
|
# ],
|
632
632
|
# },
|
633
633
|
# ],
|
634
|
+
# key_format: "pem", # accepts pem, ppk
|
634
635
|
# })
|
635
636
|
# @param [Hash] options ({})
|
636
637
|
# @option options [required, String] :key_name
|
@@ -649,6 +650,10 @@ module Aws::EC2
|
|
649
650
|
# Default: `rsa`
|
650
651
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
651
652
|
# The tags to apply to the new key pair.
|
653
|
+
# @option options [String] :key_format
|
654
|
+
# The format of the key pair.
|
655
|
+
#
|
656
|
+
# Default: `pem`
|
652
657
|
# @return [KeyPair]
|
653
658
|
def create_key_pair(options = {})
|
654
659
|
resp = @client.create_key_pair(options)
|
@@ -2147,6 +2152,9 @@ module Aws::EC2
|
|
2147
2152
|
#
|
2148
2153
|
# * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
|
2149
2154
|
#
|
2155
|
+
# * `capacity-reservation-id` - The ID of the Capacity Reservation into
|
2156
|
+
# which the instance was launched.
|
2157
|
+
#
|
2150
2158
|
# * `client-token` - The idempotency token you provided when you
|
2151
2159
|
# launched the instance.
|
2152
2160
|
#
|
@@ -2525,6 +2533,7 @@ module Aws::EC2
|
|
2525
2533
|
# key_names: ["KeyPairName"],
|
2526
2534
|
# key_pair_ids: ["KeyPairId"],
|
2527
2535
|
# dry_run: false,
|
2536
|
+
# include_public_key: false,
|
2528
2537
|
# })
|
2529
2538
|
# @param [Hash] options ({})
|
2530
2539
|
# @option options [Array<Types::Filter>] :filters
|
@@ -2556,6 +2565,10 @@ module Aws::EC2
|
|
2556
2565
|
# without actually making the request, and provides an error response.
|
2557
2566
|
# If you have the required permissions, the error response is
|
2558
2567
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2568
|
+
# @option options [Boolean] :include_public_key
|
2569
|
+
# If `true`, the public key material is included in the response.
|
2570
|
+
#
|
2571
|
+
# Default: `false`
|
2559
2572
|
# @return [KeyPairInfo::Collection]
|
2560
2573
|
def key_pairs(options = {})
|
2561
2574
|
batches = Enumerator.new do |y|
|
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
@@ -995,6 +995,7 @@ module Aws::EC2
|
|
995
995
|
# },
|
996
996
|
# ],
|
997
997
|
# host_recovery: "on", # accepts on, off
|
998
|
+
# outpost_arn: "String",
|
998
999
|
# }
|
999
1000
|
#
|
1000
1001
|
# @!attribute [rw] auto_placement
|
@@ -1068,6 +1069,11 @@ module Aws::EC2
|
|
1068
1069
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html
|
1069
1070
|
# @return [String]
|
1070
1071
|
#
|
1072
|
+
# @!attribute [rw] outpost_arn
|
1073
|
+
# The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on
|
1074
|
+
# which to allocate the Dedicated Host.
|
1075
|
+
# @return [String]
|
1076
|
+
#
|
1071
1077
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHostsRequest AWS API Documentation
|
1072
1078
|
#
|
1073
1079
|
class AllocateHostsRequest < Struct.new(
|
@@ -1078,7 +1084,8 @@ module Aws::EC2
|
|
1078
1084
|
:instance_family,
|
1079
1085
|
:quantity,
|
1080
1086
|
:tag_specifications,
|
1081
|
-
:host_recovery
|
1087
|
+
:host_recovery,
|
1088
|
+
:outpost_arn)
|
1082
1089
|
SENSITIVE = []
|
1083
1090
|
include Aws::Structure
|
1084
1091
|
end
|
@@ -8997,6 +9004,7 @@ module Aws::EC2
|
|
8997
9004
|
# ],
|
8998
9005
|
# },
|
8999
9006
|
# ],
|
9007
|
+
# key_format: "pem", # accepts pem, ppk
|
9000
9008
|
# }
|
9001
9009
|
#
|
9002
9010
|
# @!attribute [rw] key_name
|
@@ -9023,13 +9031,20 @@ module Aws::EC2
|
|
9023
9031
|
# The tags to apply to the new key pair.
|
9024
9032
|
# @return [Array<Types::TagSpecification>]
|
9025
9033
|
#
|
9034
|
+
# @!attribute [rw] key_format
|
9035
|
+
# The format of the key pair.
|
9036
|
+
#
|
9037
|
+
# Default: `pem`
|
9038
|
+
# @return [String]
|
9039
|
+
#
|
9026
9040
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPairRequest AWS API Documentation
|
9027
9041
|
#
|
9028
9042
|
class CreateKeyPairRequest < Struct.new(
|
9029
9043
|
:key_name,
|
9030
9044
|
:dry_run,
|
9031
9045
|
:key_type,
|
9032
|
-
:tag_specifications
|
9046
|
+
:tag_specifications,
|
9047
|
+
:key_format)
|
9033
9048
|
SENSITIVE = []
|
9034
9049
|
include Aws::Structure
|
9035
9050
|
end
|
@@ -21406,6 +21421,9 @@ module Aws::EC2
|
|
21406
21421
|
# * `block-device-mapping.volume-id` - The volume ID of the EBS
|
21407
21422
|
# volume.
|
21408
21423
|
#
|
21424
|
+
# * `capacity-reservation-id` - The ID of the Capacity Reservation
|
21425
|
+
# into which the instance was launched.
|
21426
|
+
#
|
21409
21427
|
# * `client-token` - The idempotency token you provided when you
|
21410
21428
|
# launched the instance.
|
21411
21429
|
#
|
@@ -22132,6 +22150,7 @@ module Aws::EC2
|
|
22132
22150
|
# key_names: ["KeyPairName"],
|
22133
22151
|
# key_pair_ids: ["KeyPairId"],
|
22134
22152
|
# dry_run: false,
|
22153
|
+
# include_public_key: false,
|
22135
22154
|
# }
|
22136
22155
|
#
|
22137
22156
|
# @!attribute [rw] filters
|
@@ -22171,13 +22190,20 @@ module Aws::EC2
|
|
22171
22190
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
22172
22191
|
# @return [Boolean]
|
22173
22192
|
#
|
22193
|
+
# @!attribute [rw] include_public_key
|
22194
|
+
# If `true`, the public key material is included in the response.
|
22195
|
+
#
|
22196
|
+
# Default: `false`
|
22197
|
+
# @return [Boolean]
|
22198
|
+
#
|
22174
22199
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairsRequest AWS API Documentation
|
22175
22200
|
#
|
22176
22201
|
class DescribeKeyPairsRequest < Struct.new(
|
22177
22202
|
:filters,
|
22178
22203
|
:key_names,
|
22179
22204
|
:key_pair_ids,
|
22180
|
-
:dry_run
|
22205
|
+
:dry_run,
|
22206
|
+
:include_public_key)
|
22181
22207
|
SENSITIVE = []
|
22182
22208
|
include Aws::Structure
|
22183
22209
|
end
|
@@ -26275,7 +26301,7 @@ module Aws::EC2
|
|
26275
26301
|
#
|
26276
26302
|
#
|
26277
26303
|
#
|
26278
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
26304
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
|
26279
26305
|
# @return [Array<Types::Filter>]
|
26280
26306
|
#
|
26281
26307
|
# @!attribute [rw] dry_run
|
@@ -37326,6 +37352,11 @@ module Aws::EC2
|
|
37326
37352
|
# host resource group; otherwise, it is not.
|
37327
37353
|
# @return [Boolean]
|
37328
37354
|
#
|
37355
|
+
# @!attribute [rw] outpost_arn
|
37356
|
+
# The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on
|
37357
|
+
# which the Dedicated Host is allocated.
|
37358
|
+
# @return [String]
|
37359
|
+
#
|
37329
37360
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Host AWS API Documentation
|
37330
37361
|
#
|
37331
37362
|
class Host < Struct.new(
|
@@ -37345,7 +37376,8 @@ module Aws::EC2
|
|
37345
37376
|
:allows_multiple_instance_types,
|
37346
37377
|
:owner_id,
|
37347
37378
|
:availability_zone_id,
|
37348
|
-
:member_of_service_linked_resource_group
|
37379
|
+
:member_of_service_linked_resource_group,
|
37380
|
+
:outpost_arn)
|
37349
37381
|
SENSITIVE = []
|
37350
37382
|
include Aws::Structure
|
37351
37383
|
end
|
@@ -38874,8 +38906,16 @@ module Aws::EC2
|
|
38874
38906
|
end
|
38875
38907
|
|
38876
38908
|
# @!attribute [rw] key_fingerprint
|
38877
|
-
#
|
38878
|
-
#
|
38909
|
+
# * For RSA key pairs, the key fingerprint is the MD5 public key
|
38910
|
+
# fingerprint as specified in section 4 of RFC 4716.
|
38911
|
+
#
|
38912
|
+
# * For ED25519 key pairs, the key fingerprint is the base64-encoded
|
38913
|
+
# SHA-256 digest, which is the default for OpenSSH, starting with
|
38914
|
+
# [OpenSSH 6.8][1].
|
38915
|
+
#
|
38916
|
+
#
|
38917
|
+
#
|
38918
|
+
# [1]: http://www.openssh.com/txt/release-6.8
|
38879
38919
|
# @return [String]
|
38880
38920
|
#
|
38881
38921
|
# @!attribute [rw] key_name
|
@@ -43341,7 +43381,12 @@ module Aws::EC2
|
|
43341
43381
|
# Describes a key pair.
|
43342
43382
|
#
|
43343
43383
|
# @!attribute [rw] key_fingerprint
|
43344
|
-
#
|
43384
|
+
# * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
|
43385
|
+
# DER encoded private key.
|
43386
|
+
#
|
43387
|
+
# * For ED25519 key pairs, the key fingerprint is the base64-encoded
|
43388
|
+
# SHA-256 digest, which is the default for OpenSSH, starting with
|
43389
|
+
# OpenSSH 6.8.
|
43345
43390
|
# @return [String]
|
43346
43391
|
#
|
43347
43392
|
# @!attribute [rw] key_material
|
@@ -43415,6 +43460,24 @@ module Aws::EC2
|
|
43415
43460
|
# Any tags applied to the key pair.
|
43416
43461
|
# @return [Array<Types::Tag>]
|
43417
43462
|
#
|
43463
|
+
# @!attribute [rw] public_key
|
43464
|
+
# The public key material.
|
43465
|
+
# @return [String]
|
43466
|
+
#
|
43467
|
+
# @!attribute [rw] create_time
|
43468
|
+
# If you used Amazon EC2 to create the key pair, this is the date and
|
43469
|
+
# time when the key was created, in [ISO 8601 date-time format][1], in
|
43470
|
+
# the UTC time zone.
|
43471
|
+
#
|
43472
|
+
# If you imported an existing key pair to Amazon EC2, this is the date
|
43473
|
+
# and time the key was imported, in [ISO 8601 date-time format][1], in
|
43474
|
+
# the UTC time zone.
|
43475
|
+
#
|
43476
|
+
#
|
43477
|
+
#
|
43478
|
+
# [1]: https://www.iso.org/iso-8601-date-and-time-format.html
|
43479
|
+
# @return [Time]
|
43480
|
+
#
|
43418
43481
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/KeyPairInfo AWS API Documentation
|
43419
43482
|
#
|
43420
43483
|
class KeyPairInfo < Struct.new(
|
@@ -43422,7 +43485,9 @@ module Aws::EC2
|
|
43422
43485
|
:key_fingerprint,
|
43423
43486
|
:key_name,
|
43424
43487
|
:key_type,
|
43425
|
-
:tags
|
43488
|
+
:tags,
|
43489
|
+
:public_key,
|
43490
|
+
:create_time)
|
43426
43491
|
SENSITIVE = []
|
43427
43492
|
include Aws::Structure
|
43428
43493
|
end
|
@@ -43572,7 +43637,7 @@ module Aws::EC2
|
|
43572
43637
|
# @return [String]
|
43573
43638
|
#
|
43574
43639
|
# @!attribute [rw] instance_type
|
43575
|
-
# The instance type.
|
43640
|
+
# The instance type. Only one instance type can be specified.
|
43576
43641
|
# @return [String]
|
43577
43642
|
#
|
43578
43643
|
# @!attribute [rw] kernel_id
|
@@ -49177,12 +49242,11 @@ module Aws::EC2
|
|
49177
49242
|
# @return [Types::AttributeBooleanValue]
|
49178
49243
|
#
|
49179
49244
|
# @!attribute [rw] private_dns_hostname_type_on_launch
|
49180
|
-
# The type of
|
49181
|
-
#
|
49182
|
-
# the instance IPv4 address
|
49183
|
-
#
|
49184
|
-
#
|
49185
|
-
# instance ID.
|
49245
|
+
# The type of hostname to assign to instances in the subnet at launch.
|
49246
|
+
# For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance
|
49247
|
+
# DNS name can be based on the instance IPv4 address (ip-name) or the
|
49248
|
+
# instance ID (resource-name). For IPv6 only subnets, an instance DNS
|
49249
|
+
# name must be based on the instance ID (resource-name).
|
49186
49250
|
# @return [String]
|
49187
49251
|
#
|
49188
49252
|
# @!attribute [rw] enable_resource_name_dns_a_record_on_launch
|
@@ -57050,7 +57114,7 @@ module Aws::EC2
|
|
57050
57114
|
# @return [String]
|
57051
57115
|
#
|
57052
57116
|
# @!attribute [rw] instance_type
|
57053
|
-
# The instance type.
|
57117
|
+
# The instance type. Only one instance type can be specified.
|
57054
57118
|
# @return [String]
|
57055
57119
|
#
|
57056
57120
|
# @!attribute [rw] kernel_id
|
@@ -59193,7 +59257,7 @@ module Aws::EC2
|
|
59193
59257
|
# security_group_ids: ["SecurityGroupId"],
|
59194
59258
|
# security_groups: ["SecurityGroupName"],
|
59195
59259
|
# subnet_id: "SubnetId",
|
59196
|
-
# user_data: "
|
59260
|
+
# user_data: "RunInstancesUserData",
|
59197
59261
|
# additional_info: "String",
|
59198
59262
|
# client_token: "String",
|
59199
59263
|
# disable_api_termination: false,
|
@@ -59759,7 +59823,7 @@ module Aws::EC2
|
|
59759
59823
|
:enclave_options,
|
59760
59824
|
:private_dns_name_options,
|
59761
59825
|
:maintenance_options)
|
59762
|
-
SENSITIVE = []
|
59826
|
+
SENSITIVE = [:user_data]
|
59763
59827
|
include Aws::Structure
|
59764
59828
|
end
|
59765
59829
|
|
@@ -63244,13 +63308,14 @@ module Aws::EC2
|
|
63244
63308
|
# @return [String]
|
63245
63309
|
#
|
63246
63310
|
# @!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
|
63311
|
+
# The state of the Spot Instance request. Spot request status
|
63312
|
+
# information helps track your Spot Instance requests. For more
|
63313
|
+
# information, see [Spot request status][1] in the *Amazon EC2 User
|
63314
|
+
# Guide for Linux Instances*.
|
63250
63315
|
#
|
63251
63316
|
#
|
63252
63317
|
#
|
63253
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
63318
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
|
63254
63319
|
# @return [String]
|
63255
63320
|
#
|
63256
63321
|
# @!attribute [rw] status
|
@@ -63338,12 +63403,12 @@ module Aws::EC2
|
|
63338
63403
|
# Describes the status of a Spot Instance request.
|
63339
63404
|
#
|
63340
63405
|
# @!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*.
|
63406
|
+
# The status code. For a list of status codes, see [Spot request
|
63407
|
+
# status codes][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
63343
63408
|
#
|
63344
63409
|
#
|
63345
63410
|
#
|
63346
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
63411
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html#spot-instance-request-status-understand
|
63347
63412
|
# @return [String]
|
63348
63413
|
#
|
63349
63414
|
# @!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.310.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-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|