aws-sdk-ec2instanceconnect 1.21.0 → 1.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 020bfc4cd1b39e97f078b1b6a45ab5493d755d293d1332d38abe484041c06de9
4
- data.tar.gz: c4a1cf1c3e1210d7a7d8b6c63c912454aea7435b765f8bb112d5c09c3de8c7a9
3
+ metadata.gz: c7041d1d09d714cbdffdb8213dfa93c0a514089bc3b314b22e23cdfc4455193c
4
+ data.tar.gz: 4f872324f682b36c105420011adfe0669651c2b35d2c12217ae8cc2f9f8cbf22
5
5
  SHA512:
6
- metadata.gz: 684811f62f9588c6ee3be99f559c617e94dd0ca414d7a68b397076a88f681eaec2ec146394892ff770c5445e7d1d5a3925f197c415f74506833987ff132dfbde
7
- data.tar.gz: d3c7db09e6a5560f73828c5305eccd2a3ec1f3022c5589f49ec08a9856d78bdb107ffa785d7f518643f153d400bf792e18eb8b3174a6f94c6aa283319554a76b
6
+ metadata.gz: 0a6ae1a2640d0df186558a1b01d29b582aa700338222660d9bb6a6744bb47c8c6d0e1fe39180a63fc6782ee81c8ad0ca1b19a28c75c2a5668d60b646bd437ecd
7
+ data.tar.gz: a01d7f51904f2868239d9d2049a0dda461acf81f27fc6b70ce5817586dc3d1a330357e4350796c3f6b9ba4c2ff051e2120ad69e13ed2803b3fa23e0a481d8c18
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.24.0 (2022-02-24)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.23.0 (2022-02-03)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.22.0 (2022-01-19)
15
+ ------------------
16
+
17
+ * 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.
18
+
4
19
  1.21.0 (2021-12-21)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.21.0
1
+ 1.24.0
@@ -27,7 +27,9 @@ 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/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
31
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
32
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
33
35
 
@@ -74,7 +76,9 @@ module Aws::EC2InstanceConnect
74
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
75
77
  add_plugin(Aws::Plugins::TransferEncoding)
76
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
77
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
+ add_plugin(Aws::Plugins::RecursionDetection)
78
82
  add_plugin(Aws::Plugins::SignatureV4)
79
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
80
84
 
@@ -377,7 +381,7 @@ module Aws::EC2InstanceConnect
377
381
  # The public key material. To use the public key, you must have the
378
382
  # matching private key.
379
383
  #
380
- # @option params [required, String] :availability_zone
384
+ # @option params [String] :availability_zone
381
385
  # The Availability Zone in which the EC2 instance was launched.
382
386
  #
383
387
  # @return [Types::SendSSHPublicKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -410,7 +414,7 @@ module Aws::EC2InstanceConnect
410
414
  # instance_id: "InstanceId", # required
411
415
  # instance_os_user: "InstanceOSUser", # required
412
416
  # ssh_public_key: "SSHPublicKey", # required
413
- # availability_zone: "AvailabilityZone", # required
417
+ # availability_zone: "AvailabilityZone",
414
418
  # })
415
419
  #
416
420
  # @example Response structure
@@ -496,7 +500,7 @@ module Aws::EC2InstanceConnect
496
500
  params: params,
497
501
  config: config)
498
502
  context[:gem_name] = 'aws-sdk-ec2instanceconnect'
499
- context[:gem_version] = '1.21.0'
503
+ context[:gem_version] = '1.24.0'
500
504
  Seahorse::Client::Request.new(handlers, context)
501
505
  end
502
506
 
@@ -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, required: true, location_name: "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", # required
90
+ # availability_zone: "AvailabilityZone",
75
91
  # }
76
92
  #
77
93
  # @!attribute [rw] instance_id
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-ec2instanceconnect/customizations'
48
48
  # @!group service
49
49
  module Aws::EC2InstanceConnect
50
50
 
51
- GEM_VERSION = '1.21.0'
51
+ GEM_VERSION = '1.24.0'
52
52
 
53
53
  end
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.21.0
4
+ version: 1.24.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-12-21 00:00:00.000000000 Z
11
+ date: 2022-02-24 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.125.0
22
+ version: 3.127.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.125.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement