aws-sdk-ec2 1.307.0 → 1.309.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +47 -14
- data/lib/aws-sdk-ec2/client_api.rb +7 -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 +76 -24
- 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: 2e285a4ec10318bc908bea452a07179d6083076c04c1e9f98ccc560bceb99889
|
4
|
+
data.tar.gz: 5b4b2f2a824da32e96c119e1e8e8b9d9a82aed3003f35e8cb309813e17cea6b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c99bb361a69770847fda20d0f8dfd8be23887472077901ad63e4ef4952a0e1f6a72ad487cc81b82f2f1400ecc026a46d197f62d51433090beb7c560a83a3fce5
|
7
|
+
data.tar.gz: ea4719f3d4e8a0343b54aed166361d3015e9cfb1a3602300e4cf3d3794593a01c4b519be4b4f535304c1de3e82d82d080c2243f8f201f0729efea90894fb1c9f
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.309.0 (2022-04-28)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* 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.
|
8
|
+
|
9
|
+
1.308.0 (2022-04-22)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Adds support for waiters that automatically poll for a deleted NAT Gateway until it reaches the deleted state.
|
13
|
+
|
4
14
|
1.307.0 (2022-04-14)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.309.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -6959,11 +6959,13 @@ module Aws::EC2
|
|
6959
6959
|
req.send_request(options)
|
6960
6960
|
end
|
6961
6961
|
|
6962
|
-
# Creates an ED25519 or 2048-bit RSA key pair with the specified name
|
6963
|
-
#
|
6964
|
-
#
|
6965
|
-
#
|
6966
|
-
#
|
6962
|
+
# Creates an ED25519 or 2048-bit RSA key pair with the specified name
|
6963
|
+
# and in the specified PEM or PPK format. Amazon EC2 stores the public
|
6964
|
+
# key and displays the private key for you to save to a file. The
|
6965
|
+
# private key is returned as an unencrypted PEM encoded PKCS#1 private
|
6966
|
+
# key or an unencrypted PPK formatted private key for use with PuTTY. If
|
6967
|
+
# a key with the specified name already exists, Amazon EC2 returns an
|
6968
|
+
# error.
|
6967
6969
|
#
|
6968
6970
|
# The key pair returned to you is available only in the Amazon Web
|
6969
6971
|
# Services Region in which you create it. If you prefer, you can create
|
@@ -6999,6 +7001,11 @@ module Aws::EC2
|
|
6999
7001
|
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
7000
7002
|
# The tags to apply to the new key pair.
|
7001
7003
|
#
|
7004
|
+
# @option params [String] :key_format
|
7005
|
+
# The format of the key pair.
|
7006
|
+
#
|
7007
|
+
# Default: `pem`
|
7008
|
+
#
|
7002
7009
|
# @return [Types::KeyPair] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7003
7010
|
#
|
7004
7011
|
# * {Types::KeyPair#key_fingerprint #key_fingerprint} => String
|
@@ -7033,6 +7040,7 @@ module Aws::EC2
|
|
7033
7040
|
# ],
|
7034
7041
|
# },
|
7035
7042
|
# ],
|
7043
|
+
# key_format: "pem", # accepts pem, ppk
|
7036
7044
|
# })
|
7037
7045
|
#
|
7038
7046
|
# @example Response structure
|
@@ -21668,6 +21676,9 @@ module Aws::EC2
|
|
21668
21676
|
#
|
21669
21677
|
# * `block-device-mapping.volume-id` - The volume ID of the EBS volume.
|
21670
21678
|
#
|
21679
|
+
# * `capacity-reservation-id` - The ID of the Capacity Reservation into
|
21680
|
+
# which the instance was launched.
|
21681
|
+
#
|
21671
21682
|
# * `client-token` - The idempotency token you provided when you
|
21672
21683
|
# launched the instance.
|
21673
21684
|
#
|
@@ -22676,6 +22687,11 @@ module Aws::EC2
|
|
22676
22687
|
# If you have the required permissions, the error response is
|
22677
22688
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
22678
22689
|
#
|
22690
|
+
# @option params [Boolean] :include_public_key
|
22691
|
+
# If `true`, the public key material is included in the response.
|
22692
|
+
#
|
22693
|
+
# Default: `false`
|
22694
|
+
#
|
22679
22695
|
# @return [Types::DescribeKeyPairsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
22680
22696
|
#
|
22681
22697
|
# * {Types::DescribeKeyPairsResult#key_pairs #key_pairs} => Array<Types::KeyPairInfo>
|
@@ -22713,6 +22729,7 @@ module Aws::EC2
|
|
22713
22729
|
# key_names: ["KeyPairName"],
|
22714
22730
|
# key_pair_ids: ["KeyPairId"],
|
22715
22731
|
# dry_run: false,
|
22732
|
+
# include_public_key: false,
|
22716
22733
|
# })
|
22717
22734
|
#
|
22718
22735
|
# @example Response structure
|
@@ -22725,6 +22742,8 @@ module Aws::EC2
|
|
22725
22742
|
# resp.key_pairs[0].tags #=> Array
|
22726
22743
|
# resp.key_pairs[0].tags[0].key #=> String
|
22727
22744
|
# resp.key_pairs[0].tags[0].value #=> String
|
22745
|
+
# resp.key_pairs[0].public_key #=> String
|
22746
|
+
# resp.key_pairs[0].create_time #=> Time
|
22728
22747
|
#
|
22729
22748
|
#
|
22730
22749
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -23983,6 +24002,7 @@ module Aws::EC2
|
|
23983
24002
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
23984
24003
|
#
|
23985
24004
|
# * nat_gateway_available
|
24005
|
+
# * nat_gateway_deleted
|
23986
24006
|
#
|
23987
24007
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways AWS API Documentation
|
23988
24008
|
#
|
@@ -28433,7 +28453,7 @@ module Aws::EC2
|
|
28433
28453
|
#
|
28434
28454
|
#
|
28435
28455
|
#
|
28436
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
28456
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
|
28437
28457
|
#
|
28438
28458
|
# @option params [Boolean] :dry_run
|
28439
28459
|
# Checks whether you have the required permissions for the action,
|
@@ -41074,12 +41094,11 @@ module Aws::EC2
|
|
41074
41094
|
# destinations.
|
41075
41095
|
#
|
41076
41096
|
# @option params [String] :private_dns_hostname_type_on_launch
|
41077
|
-
# The type of
|
41078
|
-
# For IPv4
|
41079
|
-
#
|
41080
|
-
#
|
41081
|
-
#
|
41082
|
-
# instance ID.
|
41097
|
+
# The type of hostname to assign to instances in the subnet at launch.
|
41098
|
+
# For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS
|
41099
|
+
# name can be based on the instance IPv4 address (ip-name) or the
|
41100
|
+
# instance ID (resource-name). For IPv6 only subnets, an instance DNS
|
41101
|
+
# name must be based on the instance ID (resource-name).
|
41083
41102
|
#
|
41084
41103
|
# @option params [Types::AttributeBooleanValue] :enable_resource_name_dns_a_record_on_launch
|
41085
41104
|
# Indicates whether to respond to DNS queries for instance hostnames
|
@@ -44971,9 +44990,15 @@ module Aws::EC2
|
|
44971
44990
|
# For more information, see [Spot Fleet requests][1] in the *Amazon EC2
|
44972
44991
|
# User Guide for Linux Instances*.
|
44973
44992
|
#
|
44993
|
+
# We strongly discourage using the RequestSpotFleet API because it is a
|
44994
|
+
# legacy API with no planned investment. For options for requesting Spot
|
44995
|
+
# Instances, see [Which is the best Spot request method to use?][2] in
|
44996
|
+
# the *Amazon EC2 User Guide for Linux Instances*.
|
44997
|
+
#
|
44974
44998
|
#
|
44975
44999
|
#
|
44976
45000
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html
|
45001
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use
|
44977
45002
|
#
|
44978
45003
|
# @option params [Boolean] :dry_run
|
44979
45004
|
# Checks whether you have the required permissions for the action,
|
@@ -45434,9 +45459,15 @@ module Aws::EC2
|
|
45434
45459
|
# For more information, see [Spot Instance requests][1] in the *Amazon
|
45435
45460
|
# EC2 User Guide for Linux Instances*.
|
45436
45461
|
#
|
45462
|
+
# We strongly discourage using the RequestSpotInstances API because it
|
45463
|
+
# is a legacy API with no planned investment. For options for requesting
|
45464
|
+
# Spot Instances, see [Which is the best Spot request method to use?][2]
|
45465
|
+
# in the *Amazon EC2 User Guide for Linux Instances*.
|
45466
|
+
#
|
45437
45467
|
#
|
45438
45468
|
#
|
45439
45469
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html
|
45470
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use
|
45440
45471
|
#
|
45441
45472
|
# @option params [String] :availability_zone_group
|
45442
45473
|
# The user-specified name for a logical grouping of requests.
|
@@ -47296,7 +47327,7 @@ module Aws::EC2
|
|
47296
47327
|
# security_group_ids: ["SecurityGroupId"],
|
47297
47328
|
# security_groups: ["SecurityGroupName"],
|
47298
47329
|
# subnet_id: "SubnetId",
|
47299
|
-
# user_data: "
|
47330
|
+
# user_data: "RunInstancesUserData",
|
47300
47331
|
# additional_info: "String",
|
47301
47332
|
# client_token: "String",
|
47302
47333
|
# disable_api_termination: false,
|
@@ -49475,7 +49506,7 @@ module Aws::EC2
|
|
49475
49506
|
params: params,
|
49476
49507
|
config: config)
|
49477
49508
|
context[:gem_name] = 'aws-sdk-ec2'
|
49478
|
-
context[:gem_version] = '1.
|
49509
|
+
context[:gem_version] = '1.309.0'
|
49479
49510
|
Seahorse::Client::Request.new(handlers, context)
|
49480
49511
|
end
|
49481
49512
|
|
@@ -49560,6 +49591,7 @@ module Aws::EC2
|
|
49560
49591
|
# | internet_gateway_exists | {Client#describe_internet_gateways} | 5 | 6 |
|
49561
49592
|
# | key_pair_exists | {Client#describe_key_pairs} | 5 | 6 |
|
49562
49593
|
# | nat_gateway_available | {Client#describe_nat_gateways} | 15 | 40 |
|
49594
|
+
# | nat_gateway_deleted | {Client#describe_nat_gateways} | 15 | 40 |
|
49563
49595
|
# | network_interface_available | {Client#describe_network_interfaces} | 20 | 10 |
|
49564
49596
|
# | password_data_available | {Client#get_password_data} | 15 | 40 |
|
49565
49597
|
# | security_group_exists | {Client#describe_security_groups} | 5 | 6 |
|
@@ -49643,6 +49675,7 @@ module Aws::EC2
|
|
49643
49675
|
internet_gateway_exists: Waiters::InternetGatewayExists,
|
49644
49676
|
key_pair_exists: Waiters::KeyPairExists,
|
49645
49677
|
nat_gateway_available: Waiters::NatGatewayAvailable,
|
49678
|
+
nat_gateway_deleted: Waiters::NatGatewayDeleted,
|
49646
49679
|
network_interface_available: Waiters::NetworkInterfaceAvailable,
|
49647
49680
|
password_data_available: Waiters::PasswordDataAvailable,
|
49648
49681
|
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')
|
@@ -4074,6 +4076,7 @@ module Aws::EC2
|
|
4074
4076
|
CreateKeyPairRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
4075
4077
|
CreateKeyPairRequest.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyType, location_name: "KeyType"))
|
4076
4078
|
CreateKeyPairRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
4079
|
+
CreateKeyPairRequest.add_member(:key_format, Shapes::ShapeRef.new(shape: KeyFormat, location_name: "KeyFormat"))
|
4077
4080
|
CreateKeyPairRequest.struct_class = Types::CreateKeyPairRequest
|
4078
4081
|
|
4079
4082
|
CreateLaunchTemplateRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
@@ -5771,6 +5774,7 @@ module Aws::EC2
|
|
5771
5774
|
DescribeKeyPairsRequest.add_member(:key_names, Shapes::ShapeRef.new(shape: KeyNameStringList, location_name: "KeyName"))
|
5772
5775
|
DescribeKeyPairsRequest.add_member(:key_pair_ids, Shapes::ShapeRef.new(shape: KeyPairIdStringList, location_name: "KeyPairId"))
|
5773
5776
|
DescribeKeyPairsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
5777
|
+
DescribeKeyPairsRequest.add_member(:include_public_key, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludePublicKey"))
|
5774
5778
|
DescribeKeyPairsRequest.struct_class = Types::DescribeKeyPairsRequest
|
5775
5779
|
|
5776
5780
|
DescribeKeyPairsResult.add_member(:key_pairs, Shapes::ShapeRef.new(shape: KeyPairList, location_name: "keySet"))
|
@@ -8970,6 +8974,8 @@ module Aws::EC2
|
|
8970
8974
|
KeyPairInfo.add_member(:key_name, Shapes::ShapeRef.new(shape: String, location_name: "keyName"))
|
8971
8975
|
KeyPairInfo.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyType, location_name: "keyType"))
|
8972
8976
|
KeyPairInfo.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
8977
|
+
KeyPairInfo.add_member(:public_key, Shapes::ShapeRef.new(shape: String, location_name: "publicKey"))
|
8978
|
+
KeyPairInfo.add_member(:create_time, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "createTime"))
|
8973
8979
|
KeyPairInfo.struct_class = Types::KeyPairInfo
|
8974
8980
|
|
8975
8981
|
KeyPairList.member = Shapes::ShapeRef.new(shape: KeyPairInfo, location_name: "item")
|
@@ -11494,7 +11500,7 @@ module Aws::EC2
|
|
11494
11500
|
RunInstancesRequest.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIdStringList, location_name: "SecurityGroupId"))
|
11495
11501
|
RunInstancesRequest.add_member(:security_groups, Shapes::ShapeRef.new(shape: SecurityGroupStringList, location_name: "SecurityGroup"))
|
11496
11502
|
RunInstancesRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, location_name: "SubnetId"))
|
11497
|
-
RunInstancesRequest.add_member(:user_data, Shapes::ShapeRef.new(shape:
|
11503
|
+
RunInstancesRequest.add_member(:user_data, Shapes::ShapeRef.new(shape: RunInstancesUserData, location_name: "UserData"))
|
11498
11504
|
RunInstancesRequest.add_member(:additional_info, Shapes::ShapeRef.new(shape: String, location_name: "additionalInfo"))
|
11499
11505
|
RunInstancesRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
|
11500
11506
|
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
@@ -8997,6 +8997,7 @@ module Aws::EC2
|
|
8997
8997
|
# ],
|
8998
8998
|
# },
|
8999
8999
|
# ],
|
9000
|
+
# key_format: "pem", # accepts pem, ppk
|
9000
9001
|
# }
|
9001
9002
|
#
|
9002
9003
|
# @!attribute [rw] key_name
|
@@ -9023,13 +9024,20 @@ module Aws::EC2
|
|
9023
9024
|
# The tags to apply to the new key pair.
|
9024
9025
|
# @return [Array<Types::TagSpecification>]
|
9025
9026
|
#
|
9027
|
+
# @!attribute [rw] key_format
|
9028
|
+
# The format of the key pair.
|
9029
|
+
#
|
9030
|
+
# Default: `pem`
|
9031
|
+
# @return [String]
|
9032
|
+
#
|
9026
9033
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPairRequest AWS API Documentation
|
9027
9034
|
#
|
9028
9035
|
class CreateKeyPairRequest < Struct.new(
|
9029
9036
|
:key_name,
|
9030
9037
|
:dry_run,
|
9031
9038
|
:key_type,
|
9032
|
-
:tag_specifications
|
9039
|
+
:tag_specifications,
|
9040
|
+
:key_format)
|
9033
9041
|
SENSITIVE = []
|
9034
9042
|
include Aws::Structure
|
9035
9043
|
end
|
@@ -21406,6 +21414,9 @@ module Aws::EC2
|
|
21406
21414
|
# * `block-device-mapping.volume-id` - The volume ID of the EBS
|
21407
21415
|
# volume.
|
21408
21416
|
#
|
21417
|
+
# * `capacity-reservation-id` - The ID of the Capacity Reservation
|
21418
|
+
# into which the instance was launched.
|
21419
|
+
#
|
21409
21420
|
# * `client-token` - The idempotency token you provided when you
|
21410
21421
|
# launched the instance.
|
21411
21422
|
#
|
@@ -22132,6 +22143,7 @@ module Aws::EC2
|
|
22132
22143
|
# key_names: ["KeyPairName"],
|
22133
22144
|
# key_pair_ids: ["KeyPairId"],
|
22134
22145
|
# dry_run: false,
|
22146
|
+
# include_public_key: false,
|
22135
22147
|
# }
|
22136
22148
|
#
|
22137
22149
|
# @!attribute [rw] filters
|
@@ -22171,13 +22183,20 @@ module Aws::EC2
|
|
22171
22183
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
22172
22184
|
# @return [Boolean]
|
22173
22185
|
#
|
22186
|
+
# @!attribute [rw] include_public_key
|
22187
|
+
# If `true`, the public key material is included in the response.
|
22188
|
+
#
|
22189
|
+
# Default: `false`
|
22190
|
+
# @return [Boolean]
|
22191
|
+
#
|
22174
22192
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairsRequest AWS API Documentation
|
22175
22193
|
#
|
22176
22194
|
class DescribeKeyPairsRequest < Struct.new(
|
22177
22195
|
:filters,
|
22178
22196
|
:key_names,
|
22179
22197
|
:key_pair_ids,
|
22180
|
-
:dry_run
|
22198
|
+
:dry_run,
|
22199
|
+
:include_public_key)
|
22181
22200
|
SENSITIVE = []
|
22182
22201
|
include Aws::Structure
|
22183
22202
|
end
|
@@ -26275,7 +26294,7 @@ module Aws::EC2
|
|
26275
26294
|
#
|
26276
26295
|
#
|
26277
26296
|
#
|
26278
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
26297
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
|
26279
26298
|
# @return [Array<Types::Filter>]
|
26280
26299
|
#
|
26281
26300
|
# @!attribute [rw] dry_run
|
@@ -38874,8 +38893,16 @@ module Aws::EC2
|
|
38874
38893
|
end
|
38875
38894
|
|
38876
38895
|
# @!attribute [rw] key_fingerprint
|
38877
|
-
#
|
38878
|
-
#
|
38896
|
+
# * For RSA key pairs, the key fingerprint is the MD5 public key
|
38897
|
+
# fingerprint as specified in section 4 of RFC 4716.
|
38898
|
+
#
|
38899
|
+
# * For ED25519 key pairs, the key fingerprint is the base64-encoded
|
38900
|
+
# SHA-256 digest, which is the default for OpenSSH, starting with
|
38901
|
+
# [OpenSSH 6.8][1].
|
38902
|
+
#
|
38903
|
+
#
|
38904
|
+
#
|
38905
|
+
# [1]: http://www.openssh.com/txt/release-6.8
|
38879
38906
|
# @return [String]
|
38880
38907
|
#
|
38881
38908
|
# @!attribute [rw] key_name
|
@@ -43341,7 +43368,12 @@ module Aws::EC2
|
|
43341
43368
|
# Describes a key pair.
|
43342
43369
|
#
|
43343
43370
|
# @!attribute [rw] key_fingerprint
|
43344
|
-
#
|
43371
|
+
# * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
|
43372
|
+
# DER encoded private key.
|
43373
|
+
#
|
43374
|
+
# * For ED25519 key pairs, the key fingerprint is the base64-encoded
|
43375
|
+
# SHA-256 digest, which is the default for OpenSSH, starting with
|
43376
|
+
# OpenSSH 6.8.
|
43345
43377
|
# @return [String]
|
43346
43378
|
#
|
43347
43379
|
# @!attribute [rw] key_material
|
@@ -43415,6 +43447,24 @@ module Aws::EC2
|
|
43415
43447
|
# Any tags applied to the key pair.
|
43416
43448
|
# @return [Array<Types::Tag>]
|
43417
43449
|
#
|
43450
|
+
# @!attribute [rw] public_key
|
43451
|
+
# The public key material.
|
43452
|
+
# @return [String]
|
43453
|
+
#
|
43454
|
+
# @!attribute [rw] create_time
|
43455
|
+
# If you used Amazon EC2 to create the key pair, this is the date and
|
43456
|
+
# time when the key was created, in [ISO 8601 date-time format][1], in
|
43457
|
+
# the UTC time zone.
|
43458
|
+
#
|
43459
|
+
# If you imported an existing key pair to Amazon EC2, this is the date
|
43460
|
+
# and time the key was imported, in [ISO 8601 date-time format][1], in
|
43461
|
+
# the UTC time zone.
|
43462
|
+
#
|
43463
|
+
#
|
43464
|
+
#
|
43465
|
+
# [1]: https://www.iso.org/iso-8601-date-and-time-format.html
|
43466
|
+
# @return [Time]
|
43467
|
+
#
|
43418
43468
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/KeyPairInfo AWS API Documentation
|
43419
43469
|
#
|
43420
43470
|
class KeyPairInfo < Struct.new(
|
@@ -43422,7 +43472,9 @@ module Aws::EC2
|
|
43422
43472
|
:key_fingerprint,
|
43423
43473
|
:key_name,
|
43424
43474
|
:key_type,
|
43425
|
-
:tags
|
43475
|
+
:tags,
|
43476
|
+
:public_key,
|
43477
|
+
:create_time)
|
43426
43478
|
SENSITIVE = []
|
43427
43479
|
include Aws::Structure
|
43428
43480
|
end
|
@@ -43572,7 +43624,7 @@ module Aws::EC2
|
|
43572
43624
|
# @return [String]
|
43573
43625
|
#
|
43574
43626
|
# @!attribute [rw] instance_type
|
43575
|
-
# The instance type.
|
43627
|
+
# The instance type. Only one instance type can be specified.
|
43576
43628
|
# @return [String]
|
43577
43629
|
#
|
43578
43630
|
# @!attribute [rw] kernel_id
|
@@ -49177,12 +49229,11 @@ module Aws::EC2
|
|
49177
49229
|
# @return [Types::AttributeBooleanValue]
|
49178
49230
|
#
|
49179
49231
|
# @!attribute [rw] private_dns_hostname_type_on_launch
|
49180
|
-
# The type of
|
49181
|
-
#
|
49182
|
-
# the instance IPv4 address
|
49183
|
-
#
|
49184
|
-
#
|
49185
|
-
# instance ID.
|
49232
|
+
# The type of hostname to assign to instances in the subnet at launch.
|
49233
|
+
# For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance
|
49234
|
+
# DNS name can be based on the instance IPv4 address (ip-name) or the
|
49235
|
+
# instance ID (resource-name). For IPv6 only subnets, an instance DNS
|
49236
|
+
# name must be based on the instance ID (resource-name).
|
49186
49237
|
# @return [String]
|
49187
49238
|
#
|
49188
49239
|
# @!attribute [rw] enable_resource_name_dns_a_record_on_launch
|
@@ -57050,7 +57101,7 @@ module Aws::EC2
|
|
57050
57101
|
# @return [String]
|
57051
57102
|
#
|
57052
57103
|
# @!attribute [rw] instance_type
|
57053
|
-
# The instance type.
|
57104
|
+
# The instance type. Only one instance type can be specified.
|
57054
57105
|
# @return [String]
|
57055
57106
|
#
|
57056
57107
|
# @!attribute [rw] kernel_id
|
@@ -59193,7 +59244,7 @@ module Aws::EC2
|
|
59193
59244
|
# security_group_ids: ["SecurityGroupId"],
|
59194
59245
|
# security_groups: ["SecurityGroupName"],
|
59195
59246
|
# subnet_id: "SubnetId",
|
59196
|
-
# user_data: "
|
59247
|
+
# user_data: "RunInstancesUserData",
|
59197
59248
|
# additional_info: "String",
|
59198
59249
|
# client_token: "String",
|
59199
59250
|
# disable_api_termination: false,
|
@@ -59759,7 +59810,7 @@ module Aws::EC2
|
|
59759
59810
|
:enclave_options,
|
59760
59811
|
:private_dns_name_options,
|
59761
59812
|
:maintenance_options)
|
59762
|
-
SENSITIVE = []
|
59813
|
+
SENSITIVE = [:user_data]
|
59763
59814
|
include Aws::Structure
|
59764
59815
|
end
|
59765
59816
|
|
@@ -63244,13 +63295,14 @@ module Aws::EC2
|
|
63244
63295
|
# @return [String]
|
63245
63296
|
#
|
63246
63297
|
# @!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
|
63298
|
+
# The state of the Spot Instance request. Spot request status
|
63299
|
+
# information helps track your Spot Instance requests. For more
|
63300
|
+
# information, see [Spot request status][1] in the *Amazon EC2 User
|
63301
|
+
# Guide for Linux Instances*.
|
63250
63302
|
#
|
63251
63303
|
#
|
63252
63304
|
#
|
63253
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
63305
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html
|
63254
63306
|
# @return [String]
|
63255
63307
|
#
|
63256
63308
|
# @!attribute [rw] status
|
@@ -63338,12 +63390,12 @@ module Aws::EC2
|
|
63338
63390
|
# Describes the status of a Spot Instance request.
|
63339
63391
|
#
|
63340
63392
|
# @!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*.
|
63393
|
+
# The status code. For a list of status codes, see [Spot request
|
63394
|
+
# status codes][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
63343
63395
|
#
|
63344
63396
|
#
|
63345
63397
|
#
|
63346
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
63398
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html#spot-instance-request-status-understand
|
63347
63399
|
# @return [String]
|
63348
63400
|
#
|
63349
63401
|
# @!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.309.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-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|