aws-sdk-ec2 1.254.0 → 1.255.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.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +36 -27
- data/lib/aws-sdk-ec2/client_api.rb +3 -0
- data/lib/aws-sdk-ec2/key_pair.rb +1 -1
- data/lib/aws-sdk-ec2/key_pair_info.rb +28 -4
- data/lib/aws-sdk-ec2/resource.rb +6 -0
- data/lib/aws-sdk-ec2/types.rb +37 -5
- 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: 5b992423b0b82c86a55e765379f5d255170b0e1416d3dc99e7139ab038f921d4
|
4
|
+
data.tar.gz: ce8cbedbe5d4bfe3786f09eea60b8f84e624d7ac26ff2f1f006c36b55f57521b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 894abc7e045b4b6915e7dce3c0d7f1794e0e7ca8ef4918d8386bd92274155b323fb51bc746481e9385a652bebf1991abe438db381f0c2be480b1cbd03ccfc372
|
7
|
+
data.tar.gz: 7da76aab16b5b4846ec6b43da30cc0ab82d761417e2f26f826b23cb620f0d31f01971e6f4e584b148503219f02db8751c194368f04974d716d5ef6fddc9a0d60
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.255.0
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -6021,20 +6021,21 @@ module Aws::EC2
|
|
6021
6021
|
req.send_request(options)
|
6022
6022
|
end
|
6023
6023
|
|
6024
|
-
# Creates
|
6025
|
-
# stores the public key and displays the private key for you
|
6026
|
-
# a file. The private key is returned as an unencrypted PEM
|
6027
|
-
# PKCS#1 private key. If a key with the specified name already
|
6028
|
-
# Amazon EC2 returns an error.
|
6024
|
+
# Creates an ED25519 or 2048-bit RSA key pair with the specified name.
|
6025
|
+
# Amazon EC2 stores the public key and displays the private key for you
|
6026
|
+
# to save to a file. The private key is returned as an unencrypted PEM
|
6027
|
+
# encoded PKCS#1 private key. If a key with the specified name already
|
6028
|
+
# exists, Amazon EC2 returns an error.
|
6029
6029
|
#
|
6030
|
-
#
|
6030
|
+
# The key pair returned to you is available only in the Amazon Web
|
6031
|
+
# Services Region in which you create it. If you prefer, you can create
|
6032
|
+
# your own key pair using a third-party tool and upload it to any Region
|
6033
|
+
# using ImportKeyPair.
|
6031
6034
|
#
|
6032
|
-
#
|
6033
|
-
# you create it. If you prefer, you can create your own key pair using a
|
6034
|
-
# third-party tool and upload it to any Region using ImportKeyPair.
|
6035
|
+
# You can have up to 5,000 key pairs per Amazon Web Services Region.
|
6035
6036
|
#
|
6036
|
-
# For more information, see [
|
6037
|
-
# Compute Cloud User Guide*.
|
6037
|
+
# For more information, see [Amazon EC2 key pairs][1] in the *Amazon
|
6038
|
+
# Elastic Compute Cloud User Guide*.
|
6038
6039
|
#
|
6039
6040
|
#
|
6040
6041
|
#
|
@@ -6051,6 +6052,12 @@ module Aws::EC2
|
|
6051
6052
|
# If you have the required permissions, the error response is
|
6052
6053
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
6053
6054
|
#
|
6055
|
+
# @option params [String] :key_type
|
6056
|
+
# The type of key pair. Note that ED25519 keys are not supported for
|
6057
|
+
# Windows instances, EC2 Instance Connect, and EC2 Serial Console.
|
6058
|
+
#
|
6059
|
+
# Default: `rsa`
|
6060
|
+
#
|
6054
6061
|
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
6055
6062
|
# The tags to apply to the new key pair.
|
6056
6063
|
#
|
@@ -6076,6 +6083,7 @@ module Aws::EC2
|
|
6076
6083
|
# resp = client.create_key_pair({
|
6077
6084
|
# key_name: "String", # required
|
6078
6085
|
# dry_run: false,
|
6086
|
+
# key_type: "rsa", # accepts rsa, ed25519
|
6079
6087
|
# tag_specifications: [
|
6080
6088
|
# {
|
6081
6089
|
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, key-pair, launch-template, local-gateway-route-table-vpc-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, placement-group, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
@@ -8434,8 +8442,8 @@ module Aws::EC2
|
|
8434
8442
|
#
|
8435
8443
|
# A security group acts as a virtual firewall for your instance to
|
8436
8444
|
# control inbound and outbound traffic. For more information, see
|
8437
|
-
# [Amazon EC2
|
8438
|
-
# User Guide* and [Security
|
8445
|
+
# [Amazon EC2 security groups][1] in the *Amazon Elastic Compute Cloud
|
8446
|
+
# User Guide* and [Security groups for your VPC][2] in the *Amazon
|
8439
8447
|
# Virtual Private Cloud User Guide*.
|
8440
8448
|
#
|
8441
8449
|
# When you create a security group, you specify a friendly name of your
|
@@ -20178,8 +20186,8 @@ module Aws::EC2
|
|
20178
20186
|
|
20179
20187
|
# Describes the specified key pairs or all of your key pairs.
|
20180
20188
|
#
|
20181
|
-
# For more information about key pairs, see [
|
20182
|
-
# *Amazon Elastic Compute Cloud User Guide*.
|
20189
|
+
# For more information about key pairs, see [Amazon EC2 key pairs][1] in
|
20190
|
+
# the *Amazon Elastic Compute Cloud User Guide*.
|
20183
20191
|
#
|
20184
20192
|
#
|
20185
20193
|
#
|
@@ -20263,6 +20271,7 @@ module Aws::EC2
|
|
20263
20271
|
# resp.key_pairs[0].key_pair_id #=> String
|
20264
20272
|
# resp.key_pairs[0].key_fingerprint #=> String
|
20265
20273
|
# resp.key_pairs[0].key_name #=> String
|
20274
|
+
# resp.key_pairs[0].key_type #=> String, one of "rsa", "ed25519"
|
20266
20275
|
# resp.key_pairs[0].tags #=> Array
|
20267
20276
|
# resp.key_pairs[0].tags[0].key #=> String
|
20268
20277
|
# resp.key_pairs[0].tags[0].value #=> String
|
@@ -24254,8 +24263,8 @@ module Aws::EC2
|
|
24254
24263
|
#
|
24255
24264
|
# A security group is for use with instances either in the EC2-Classic
|
24256
24265
|
# platform or in a specific VPC. For more information, see [Amazon EC2
|
24257
|
-
#
|
24258
|
-
# and [Security
|
24266
|
+
# security groups][1] in the *Amazon Elastic Compute Cloud User Guide*
|
24267
|
+
# and [Security groups for your VPC][2] in the *Amazon Virtual Private
|
24259
24268
|
# Cloud User Guide*.
|
24260
24269
|
#
|
24261
24270
|
#
|
@@ -33241,16 +33250,16 @@ module Aws::EC2
|
|
33241
33250
|
req.send_request(options)
|
33242
33251
|
end
|
33243
33252
|
|
33244
|
-
# Imports the public key from an RSA key pair that you
|
33245
|
-
# third-party tool. Compare this with CreateKeyPair, in
|
33246
|
-
# Services creates the key pair and gives the keys to
|
33247
|
-
# Services keeps a copy of the public key). With
|
33248
|
-
# create the key pair and give Amazon Web Services
|
33249
|
-
# The private key is never transferred between you
|
33250
|
-
# Services.
|
33253
|
+
# Imports the public key from an RSA or ED25519 key pair that you
|
33254
|
+
# created with a third-party tool. Compare this with CreateKeyPair, in
|
33255
|
+
# which Amazon Web Services creates the key pair and gives the keys to
|
33256
|
+
# you (Amazon Web Services keeps a copy of the public key). With
|
33257
|
+
# ImportKeyPair, you create the key pair and give Amazon Web Services
|
33258
|
+
# just the public key. The private key is never transferred between you
|
33259
|
+
# and Amazon Web Services.
|
33251
33260
|
#
|
33252
|
-
# For more information about key pairs, see [
|
33253
|
-
# *Amazon Elastic Compute Cloud User Guide*.
|
33261
|
+
# For more information about key pairs, see [Amazon EC2 key pairs][1] in
|
33262
|
+
# the *Amazon Elastic Compute Cloud User Guide*.
|
33254
33263
|
#
|
33255
33264
|
#
|
33256
33265
|
#
|
@@ -43553,7 +43562,7 @@ module Aws::EC2
|
|
43553
43562
|
params: params,
|
43554
43563
|
config: config)
|
43555
43564
|
context[:gem_name] = 'aws-sdk-ec2'
|
43556
|
-
context[:gem_version] = '1.
|
43565
|
+
context[:gem_version] = '1.255.0'
|
43557
43566
|
Seahorse::Client::Request.new(handlers, context)
|
43558
43567
|
end
|
43559
43568
|
|
@@ -1380,6 +1380,7 @@ module Aws::EC2
|
|
1380
1380
|
KeyPairInfo = Shapes::StructureShape.new(name: 'KeyPairInfo')
|
1381
1381
|
KeyPairList = Shapes::ListShape.new(name: 'KeyPairList')
|
1382
1382
|
KeyPairName = Shapes::StringShape.new(name: 'KeyPairName')
|
1383
|
+
KeyType = Shapes::StringShape.new(name: 'KeyType')
|
1383
1384
|
KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
|
1384
1385
|
LastError = Shapes::StructureShape.new(name: 'LastError')
|
1385
1386
|
LaunchPermission = Shapes::StructureShape.new(name: 'LaunchPermission')
|
@@ -3545,6 +3546,7 @@ module Aws::EC2
|
|
3545
3546
|
|
3546
3547
|
CreateKeyPairRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "KeyName"))
|
3547
3548
|
CreateKeyPairRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
3549
|
+
CreateKeyPairRequest.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyType, location_name: "KeyType"))
|
3548
3550
|
CreateKeyPairRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
3549
3551
|
CreateKeyPairRequest.struct_class = Types::CreateKeyPairRequest
|
3550
3552
|
|
@@ -7803,6 +7805,7 @@ module Aws::EC2
|
|
7803
7805
|
KeyPairInfo.add_member(:key_pair_id, Shapes::ShapeRef.new(shape: String, location_name: "keyPairId"))
|
7804
7806
|
KeyPairInfo.add_member(:key_fingerprint, Shapes::ShapeRef.new(shape: String, location_name: "keyFingerprint"))
|
7805
7807
|
KeyPairInfo.add_member(:key_name, Shapes::ShapeRef.new(shape: String, location_name: "keyName"))
|
7808
|
+
KeyPairInfo.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyType, location_name: "keyType"))
|
7806
7809
|
KeyPairInfo.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
7807
7810
|
KeyPairInfo.struct_class = Types::KeyPairInfo
|
7808
7811
|
|
data/lib/aws-sdk-ec2/key_pair.rb
CHANGED
@@ -41,15 +41,39 @@ module Aws::EC2
|
|
41
41
|
data[:key_pair_id]
|
42
42
|
end
|
43
43
|
|
44
|
-
# If you used CreateKeyPair to create the key pair
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
44
|
+
# If you used CreateKeyPair to create the key pair:
|
45
|
+
#
|
46
|
+
# * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
|
47
|
+
# DER encoded private key.
|
48
|
+
#
|
49
|
+
# * For ED25519 key pairs, the key fingerprint is the base64-encoded
|
50
|
+
# SHA-256 digest, which is the default for OpenSSH, starting with
|
51
|
+
# [OpenSSH 6.8][1].
|
52
|
+
#
|
53
|
+
# If you used ImportKeyPair to provide Amazon Web Services the public
|
54
|
+
# key:
|
55
|
+
#
|
56
|
+
# * For RSA key pairs, the key fingerprint is the MD5 public key
|
57
|
+
# fingerprint as specified in section 4 of RFC4716.
|
58
|
+
#
|
59
|
+
# * For ED25519 key pairs, the key fingerprint is the base64-encoded
|
60
|
+
# SHA-256 digest, which is the default for OpenSSH, starting with
|
61
|
+
# [OpenSSH 6.8][1].
|
62
|
+
#
|
63
|
+
#
|
64
|
+
#
|
65
|
+
# [1]: http://www.openssh.com/txt/release-6.8
|
48
66
|
# @return [String]
|
49
67
|
def key_fingerprint
|
50
68
|
data[:key_fingerprint]
|
51
69
|
end
|
52
70
|
|
71
|
+
# The type of key pair.
|
72
|
+
# @return [String]
|
73
|
+
def key_type
|
74
|
+
data[:key_type]
|
75
|
+
end
|
76
|
+
|
53
77
|
# Any tags applied to the key pair.
|
54
78
|
# @return [Array<Types::Tag>]
|
55
79
|
def tags
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -597,6 +597,7 @@ module Aws::EC2
|
|
597
597
|
# keypair = ec2.create_key_pair({
|
598
598
|
# key_name: "String", # required
|
599
599
|
# dry_run: false,
|
600
|
+
# key_type: "rsa", # accepts rsa, ed25519
|
600
601
|
# tag_specifications: [
|
601
602
|
# {
|
602
603
|
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, key-pair, launch-template, local-gateway-route-table-vpc-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, placement-group, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
@@ -619,6 +620,11 @@ module Aws::EC2
|
|
619
620
|
# without actually making the request, and provides an error response.
|
620
621
|
# If you have the required permissions, the error response is
|
621
622
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
623
|
+
# @option options [String] :key_type
|
624
|
+
# The type of key pair. Note that ED25519 keys are not supported for
|
625
|
+
# Windows instances, EC2 Instance Connect, and EC2 Serial Console.
|
626
|
+
#
|
627
|
+
# Default: `rsa`
|
622
628
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
623
629
|
# The tags to apply to the new key pair.
|
624
630
|
# @return [KeyPair]
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -7471,6 +7471,7 @@ module Aws::EC2
|
|
7471
7471
|
# {
|
7472
7472
|
# key_name: "String", # required
|
7473
7473
|
# dry_run: false,
|
7474
|
+
# key_type: "rsa", # accepts rsa, ed25519
|
7474
7475
|
# tag_specifications: [
|
7475
7476
|
# {
|
7476
7477
|
# resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, key-pair, launch-template, local-gateway-route-table-vpc-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, placement-group, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
@@ -7497,6 +7498,13 @@ module Aws::EC2
|
|
7497
7498
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
7498
7499
|
# @return [Boolean]
|
7499
7500
|
#
|
7501
|
+
# @!attribute [rw] key_type
|
7502
|
+
# The type of key pair. Note that ED25519 keys are not supported for
|
7503
|
+
# Windows instances, EC2 Instance Connect, and EC2 Serial Console.
|
7504
|
+
#
|
7505
|
+
# Default: `rsa`
|
7506
|
+
# @return [String]
|
7507
|
+
#
|
7500
7508
|
# @!attribute [rw] tag_specifications
|
7501
7509
|
# The tags to apply to the new key pair.
|
7502
7510
|
# @return [Array<Types::TagSpecification>]
|
@@ -7506,6 +7514,7 @@ module Aws::EC2
|
|
7506
7514
|
class CreateKeyPairRequest < Struct.new(
|
7507
7515
|
:key_name,
|
7508
7516
|
:dry_run,
|
7517
|
+
:key_type,
|
7509
7518
|
:tag_specifications)
|
7510
7519
|
SENSITIVE = []
|
7511
7520
|
include Aws::Structure
|
@@ -36796,7 +36805,7 @@ module Aws::EC2
|
|
36796
36805
|
# @return [String]
|
36797
36806
|
#
|
36798
36807
|
# @!attribute [rw] key_material
|
36799
|
-
# An unencrypted PEM encoded RSA private key.
|
36808
|
+
# An unencrypted PEM encoded RSA or ED25519 private key.
|
36800
36809
|
# @return [String]
|
36801
36810
|
#
|
36802
36811
|
# @!attribute [rw] key_name
|
@@ -36830,16 +36839,38 @@ module Aws::EC2
|
|
36830
36839
|
# @return [String]
|
36831
36840
|
#
|
36832
36841
|
# @!attribute [rw] key_fingerprint
|
36833
|
-
# If you used CreateKeyPair to create the key pair
|
36834
|
-
#
|
36835
|
-
#
|
36836
|
-
#
|
36842
|
+
# If you used CreateKeyPair to create the key pair:
|
36843
|
+
#
|
36844
|
+
# * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
|
36845
|
+
# DER encoded private key.
|
36846
|
+
#
|
36847
|
+
# * For ED25519 key pairs, the key fingerprint is the base64-encoded
|
36848
|
+
# SHA-256 digest, which is the default for OpenSSH, starting with
|
36849
|
+
# [OpenSSH 6.8][1].
|
36850
|
+
#
|
36851
|
+
# If you used ImportKeyPair to provide Amazon Web Services the public
|
36852
|
+
# key:
|
36853
|
+
#
|
36854
|
+
# * For RSA key pairs, the key fingerprint is the MD5 public key
|
36855
|
+
# fingerprint as specified in section 4 of RFC4716.
|
36856
|
+
#
|
36857
|
+
# * For ED25519 key pairs, the key fingerprint is the base64-encoded
|
36858
|
+
# SHA-256 digest, which is the default for OpenSSH, starting with
|
36859
|
+
# [OpenSSH 6.8][1].
|
36860
|
+
#
|
36861
|
+
#
|
36862
|
+
#
|
36863
|
+
# [1]: http://www.openssh.com/txt/release-6.8
|
36837
36864
|
# @return [String]
|
36838
36865
|
#
|
36839
36866
|
# @!attribute [rw] key_name
|
36840
36867
|
# The name of the key pair.
|
36841
36868
|
# @return [String]
|
36842
36869
|
#
|
36870
|
+
# @!attribute [rw] key_type
|
36871
|
+
# The type of key pair.
|
36872
|
+
# @return [String]
|
36873
|
+
#
|
36843
36874
|
# @!attribute [rw] tags
|
36844
36875
|
# Any tags applied to the key pair.
|
36845
36876
|
# @return [Array<Types::Tag>]
|
@@ -36850,6 +36881,7 @@ module Aws::EC2
|
|
36850
36881
|
:key_pair_id,
|
36851
36882
|
:key_fingerprint,
|
36852
36883
|
:key_name,
|
36884
|
+
:key_type,
|
36853
36885
|
:tags)
|
36854
36886
|
SENSITIVE = []
|
36855
36887
|
include Aws::Structure
|
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.255.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|