aws-sdk-ec2instanceconnect 1.21.0 → 1.22.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-ec2instanceconnect/client.rb +3 -3
- data/lib/aws-sdk-ec2instanceconnect/client_api.rb +7 -1
- data/lib/aws-sdk-ec2instanceconnect/errors.rb +16 -0
- data/lib/aws-sdk-ec2instanceconnect/types.rb +17 -1
- data/lib/aws-sdk-ec2instanceconnect.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: 702ab1f720a357d67b203ae0af084e7316abf100f07fca30c526e00cb952f532
|
4
|
+
data.tar.gz: 2a608090b838ee51d6154b7936783ee7efca2c63a332247269ab0245b33e3344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 231f11b32f530864c75e057b07e0da47b55c087c6c4e51f494691bb70503500f4160b15afd7e3b51d8e7937fe32ee9ccfccfdb3ef072f0e6f60912c8a35c865e
|
7
|
+
data.tar.gz: f2603d6981290b48cbc5f45b458bc9f871dd16bcfeb7ae6f14b88fd00a5eed459071cb2d3e86d5539cca9f7347937c7ef2f5942a81881804d98f350da7d78e2a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.22.0 (2022-01-19)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adds support for ED25519 keys. PushSSHPublicKey Availability Zone parameter is now optional. Adds EC2InstanceStateInvalidException for instances that are not running. This was previously a service exception, so this may require updating your code to handle this new exception.
|
8
|
+
|
4
9
|
1.21.0 (2021-12-21)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.22.0
|
@@ -377,7 +377,7 @@ module Aws::EC2InstanceConnect
|
|
377
377
|
# The public key material. To use the public key, you must have the
|
378
378
|
# matching private key.
|
379
379
|
#
|
380
|
-
# @option params [
|
380
|
+
# @option params [String] :availability_zone
|
381
381
|
# The Availability Zone in which the EC2 instance was launched.
|
382
382
|
#
|
383
383
|
# @return [Types::SendSSHPublicKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -410,7 +410,7 @@ module Aws::EC2InstanceConnect
|
|
410
410
|
# instance_id: "InstanceId", # required
|
411
411
|
# instance_os_user: "InstanceOSUser", # required
|
412
412
|
# ssh_public_key: "SSHPublicKey", # required
|
413
|
-
# availability_zone: "AvailabilityZone",
|
413
|
+
# availability_zone: "AvailabilityZone",
|
414
414
|
# })
|
415
415
|
#
|
416
416
|
# @example Response structure
|
@@ -496,7 +496,7 @@ module Aws::EC2InstanceConnect
|
|
496
496
|
params: params,
|
497
497
|
config: config)
|
498
498
|
context[:gem_name] = 'aws-sdk-ec2instanceconnect'
|
499
|
-
context[:gem_version] = '1.
|
499
|
+
context[:gem_version] = '1.22.0'
|
500
500
|
Seahorse::Client::Request.new(handlers, context)
|
501
501
|
end
|
502
502
|
|
@@ -16,6 +16,7 @@ module Aws::EC2InstanceConnect
|
|
16
16
|
AuthException = Shapes::StructureShape.new(name: 'AuthException')
|
17
17
|
AvailabilityZone = Shapes::StringShape.new(name: 'AvailabilityZone')
|
18
18
|
EC2InstanceNotFoundException = Shapes::StructureShape.new(name: 'EC2InstanceNotFoundException')
|
19
|
+
EC2InstanceStateInvalidException = Shapes::StructureShape.new(name: 'EC2InstanceStateInvalidException')
|
19
20
|
EC2InstanceTypeInvalidException = Shapes::StructureShape.new(name: 'EC2InstanceTypeInvalidException')
|
20
21
|
InstanceId = Shapes::StringShape.new(name: 'InstanceId')
|
21
22
|
InstanceOSUser = Shapes::StringShape.new(name: 'InstanceOSUser')
|
@@ -41,6 +42,9 @@ module Aws::EC2InstanceConnect
|
|
41
42
|
EC2InstanceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
42
43
|
EC2InstanceNotFoundException.struct_class = Types::EC2InstanceNotFoundException
|
43
44
|
|
45
|
+
EC2InstanceStateInvalidException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
46
|
+
EC2InstanceStateInvalidException.struct_class = Types::EC2InstanceStateInvalidException
|
47
|
+
|
44
48
|
EC2InstanceTypeInvalidException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
45
49
|
EC2InstanceTypeInvalidException.struct_class = Types::EC2InstanceTypeInvalidException
|
46
50
|
|
@@ -50,7 +54,7 @@ module Aws::EC2InstanceConnect
|
|
50
54
|
SendSSHPublicKeyRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
|
51
55
|
SendSSHPublicKeyRequest.add_member(:instance_os_user, Shapes::ShapeRef.new(shape: InstanceOSUser, required: true, location_name: "InstanceOSUser"))
|
52
56
|
SendSSHPublicKeyRequest.add_member(:ssh_public_key, Shapes::ShapeRef.new(shape: SSHPublicKey, required: true, location_name: "SSHPublicKey"))
|
53
|
-
SendSSHPublicKeyRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZone,
|
57
|
+
SendSSHPublicKeyRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZone, location_name: "AvailabilityZone"))
|
54
58
|
SendSSHPublicKeyRequest.struct_class = Types::SendSSHPublicKeyRequest
|
55
59
|
|
56
60
|
SendSSHPublicKeyResponse.add_member(:request_id, Shapes::ShapeRef.new(shape: RequestId, location_name: "RequestId"))
|
@@ -111,6 +115,7 @@ module Aws::EC2InstanceConnect
|
|
111
115
|
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
112
116
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
113
117
|
o.errors << Shapes::ShapeRef.new(shape: EC2InstanceNotFoundException)
|
118
|
+
o.errors << Shapes::ShapeRef.new(shape: EC2InstanceStateInvalidException)
|
114
119
|
end)
|
115
120
|
|
116
121
|
api.add_operation(:send_serial_console_ssh_public_key, Seahorse::Model::Operation.new.tap do |o|
|
@@ -128,6 +133,7 @@ module Aws::EC2InstanceConnect
|
|
128
133
|
o.errors << Shapes::ShapeRef.new(shape: EC2InstanceTypeInvalidException)
|
129
134
|
o.errors << Shapes::ShapeRef.new(shape: SerialConsoleSessionLimitExceededException)
|
130
135
|
o.errors << Shapes::ShapeRef.new(shape: SerialConsoleSessionUnavailableException)
|
136
|
+
o.errors << Shapes::ShapeRef.new(shape: EC2InstanceStateInvalidException)
|
131
137
|
end)
|
132
138
|
end
|
133
139
|
|
@@ -29,6 +29,7 @@ module Aws::EC2InstanceConnect
|
|
29
29
|
# ## Error Classes
|
30
30
|
# * {AuthException}
|
31
31
|
# * {EC2InstanceNotFoundException}
|
32
|
+
# * {EC2InstanceStateInvalidException}
|
32
33
|
# * {EC2InstanceTypeInvalidException}
|
33
34
|
# * {InvalidArgsException}
|
34
35
|
# * {SerialConsoleAccessDisabledException}
|
@@ -73,6 +74,21 @@ module Aws::EC2InstanceConnect
|
|
73
74
|
end
|
74
75
|
end
|
75
76
|
|
77
|
+
class EC2InstanceStateInvalidException < ServiceError
|
78
|
+
|
79
|
+
# @param [Seahorse::Client::RequestContext] context
|
80
|
+
# @param [String] message
|
81
|
+
# @param [Aws::EC2InstanceConnect::Types::EC2InstanceStateInvalidException] data
|
82
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
83
|
+
super(context, message, data)
|
84
|
+
end
|
85
|
+
|
86
|
+
# @return [String]
|
87
|
+
def message
|
88
|
+
@message || @data[:message]
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
76
92
|
class EC2InstanceTypeInvalidException < ServiceError
|
77
93
|
|
78
94
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -37,6 +37,22 @@ module Aws::EC2InstanceConnect
|
|
37
37
|
include Aws::Structure
|
38
38
|
end
|
39
39
|
|
40
|
+
# Unable to connect because the instance is not in a valid state.
|
41
|
+
# Connecting to a stopped or terminated instance is not supported. If
|
42
|
+
# the instance is stopped, start your instance, and try to connect
|
43
|
+
# again.
|
44
|
+
#
|
45
|
+
# @!attribute [rw] message
|
46
|
+
# @return [String]
|
47
|
+
#
|
48
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-instance-connect-2018-04-02/EC2InstanceStateInvalidException AWS API Documentation
|
49
|
+
#
|
50
|
+
class EC2InstanceStateInvalidException < Struct.new(
|
51
|
+
:message)
|
52
|
+
SENSITIVE = []
|
53
|
+
include Aws::Structure
|
54
|
+
end
|
55
|
+
|
40
56
|
# The instance type is not supported for connecting via the serial
|
41
57
|
# console. Only Nitro instance types are currently supported.
|
42
58
|
#
|
@@ -71,7 +87,7 @@ module Aws::EC2InstanceConnect
|
|
71
87
|
# instance_id: "InstanceId", # required
|
72
88
|
# instance_os_user: "InstanceOSUser", # required
|
73
89
|
# ssh_public_key: "SSHPublicKey", # required
|
74
|
-
# availability_zone: "AvailabilityZone",
|
90
|
+
# availability_zone: "AvailabilityZone",
|
75
91
|
# }
|
76
92
|
#
|
77
93
|
# @!attribute [rw] instance_id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ec2instanceconnect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.22.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:
|
11
|
+
date: 2022-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|