aws-sdk-ec2instanceconnect 1.18.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2instanceconnect/client.rb +25 -5
- 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 +4 -4
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,26 @@
|
|
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
|
+
|
9
|
+
1.21.0 (2021-12-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.20.0 (2021-11-30)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.19.0 (2021-11-04)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.18.0 (2021-10-18)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.22.0
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
30
31
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
32
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
32
33
|
|
@@ -73,6 +74,7 @@ module Aws::EC2InstanceConnect
|
|
73
74
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
75
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
76
|
add_plugin(Aws::Plugins::HttpChecksum)
|
77
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
76
78
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
79
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
78
80
|
|
@@ -119,7 +121,9 @@ module Aws::EC2InstanceConnect
|
|
119
121
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
122
|
# are very aggressive. Construct and pass an instance of
|
121
123
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
124
|
+
# enable retries and extended timeouts. Instance profile credential
|
125
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
126
|
+
# to true.
|
123
127
|
#
|
124
128
|
# @option options [required, String] :region
|
125
129
|
# The AWS region to connect to. The configured `:region` is
|
@@ -173,6 +177,10 @@ module Aws::EC2InstanceConnect
|
|
173
177
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
174
178
|
# a clock skew correction and retry requests with skewed client clocks.
|
175
179
|
#
|
180
|
+
# @option options [String] :defaults_mode ("legacy")
|
181
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
182
|
+
# accepted modes and the configuration defaults that are included.
|
183
|
+
#
|
176
184
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
177
185
|
# Set to true to disable SDK automatically adding host prefix
|
178
186
|
# to default service endpoint when available.
|
@@ -285,6 +293,15 @@ module Aws::EC2InstanceConnect
|
|
285
293
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
286
294
|
# requests are made, and retries are disabled.
|
287
295
|
#
|
296
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
297
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
298
|
+
# will be used if available.
|
299
|
+
#
|
300
|
+
# @option options [Boolean] :use_fips_endpoint
|
301
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
302
|
+
# When a `fips` region is used, the region is normalized and this config
|
303
|
+
# is set to `true`.
|
304
|
+
#
|
288
305
|
# @option options [Boolean] :validate_params (true)
|
289
306
|
# When `true`, request parameters are validated before
|
290
307
|
# sending the request.
|
@@ -296,7 +313,7 @@ module Aws::EC2InstanceConnect
|
|
296
313
|
# seconds to wait when opening a HTTP session before raising a
|
297
314
|
# `Timeout::Error`.
|
298
315
|
#
|
299
|
-
# @option options [
|
316
|
+
# @option options [Float] :http_read_timeout (60) The default
|
300
317
|
# number of seconds to wait for response data. This value can
|
301
318
|
# safely be set per-request on the session.
|
302
319
|
#
|
@@ -312,6 +329,9 @@ module Aws::EC2InstanceConnect
|
|
312
329
|
# disables this behaviour. This value can safely be set per
|
313
330
|
# request on the session.
|
314
331
|
#
|
332
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
333
|
+
# in seconds.
|
334
|
+
#
|
315
335
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
316
336
|
# HTTP debug output will be sent to the `:logger`.
|
317
337
|
#
|
@@ -357,7 +377,7 @@ module Aws::EC2InstanceConnect
|
|
357
377
|
# The public key material. To use the public key, you must have the
|
358
378
|
# matching private key.
|
359
379
|
#
|
360
|
-
# @option params [
|
380
|
+
# @option params [String] :availability_zone
|
361
381
|
# The Availability Zone in which the EC2 instance was launched.
|
362
382
|
#
|
363
383
|
# @return [Types::SendSSHPublicKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -390,7 +410,7 @@ module Aws::EC2InstanceConnect
|
|
390
410
|
# instance_id: "InstanceId", # required
|
391
411
|
# instance_os_user: "InstanceOSUser", # required
|
392
412
|
# ssh_public_key: "SSHPublicKey", # required
|
393
|
-
# availability_zone: "AvailabilityZone",
|
413
|
+
# availability_zone: "AvailabilityZone",
|
394
414
|
# })
|
395
415
|
#
|
396
416
|
# @example Response structure
|
@@ -476,7 +496,7 @@ module Aws::EC2InstanceConnect
|
|
476
496
|
params: params,
|
477
497
|
config: config)
|
478
498
|
context[:gem_name] = 'aws-sdk-ec2instanceconnect'
|
479
|
-
context[:gem_version] = '1.
|
499
|
+
context[:gem_version] = '1.22.0'
|
480
500
|
Seahorse::Client::Request.new(handlers, context)
|
481
501
|
end
|
482
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
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.125.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.125.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|