aws-sdk-ec2instanceconnect 1.19.0 → 1.23.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: ca0499149af1b2182d6f7f8392705bb3e9e0be53256601141c62f5d86b7578dd
4
- data.tar.gz: e70c87d570a5264a617866b0900e1d8aed13e3afb5c6fdbb0cbd1c990af01745
3
+ metadata.gz: 6a10a6ca6fba479e3bbc574764669161b02601b3c6e7755ebba1ba60ad82c08e
4
+ data.tar.gz: 161213ca3860a7cef910e7357842384d6665fee91636542517abda825d9ff776
5
5
  SHA512:
6
- metadata.gz: fe685e390193f837a953c4ce44aec167f166bad2e893eed60fb9750a26abf7e617fed7aafd65c3f0ffc9a1de816fbe1da87e38776dcff3515d2be337a2b40b31
7
- data.tar.gz: e448544ec83a1b859f7ee0c1af6c4bff20638acc4e284053fab1748e2bfe8a7b63fe47a734ab580bef09676a0d2edc0fdc1046cd7a1d45acb79c8b4f4a458a07
6
+ metadata.gz: 3141e4319de60e0690ba0565332c96117795519a9be17ee6204c81120045064e63581bdd626ff636d707e4eb67ea57bfc908ac6a7fa628037b9bab069f779353
7
+ data.tar.gz: b37de72ab1a0e4afe366bff096c30ffc8862dd43f5be338a78ac23244d3c6d864f89a47fc8f7dda100ee3bd1dc5ad9bef815fe276a714e760dc06bae2c9fb5f4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.23.0 (2022-02-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.22.0 (2022-01-19)
10
+ ------------------
11
+
12
+ * 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.
13
+
14
+ 1.21.0 (2021-12-21)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.20.0 (2021-11-30)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.19.0 (2021-11-04)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.19.0
1
+ 1.23.0
@@ -27,6 +27,8 @@ 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'
31
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
30
32
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
33
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
32
34
 
@@ -73,6 +75,8 @@ module Aws::EC2InstanceConnect
73
75
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
76
  add_plugin(Aws::Plugins::TransferEncoding)
75
77
  add_plugin(Aws::Plugins::HttpChecksum)
78
+ add_plugin(Aws::Plugins::DefaultsMode)
79
+ add_plugin(Aws::Plugins::RecursionDetection)
76
80
  add_plugin(Aws::Plugins::SignatureV4)
77
81
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
78
82
 
@@ -119,7 +123,9 @@ module Aws::EC2InstanceConnect
119
123
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
124
  # are very aggressive. Construct and pass an instance of
121
125
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
126
+ # enable retries and extended timeouts. Instance profile credential
127
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
128
+ # to true.
123
129
  #
124
130
  # @option options [required, String] :region
125
131
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +179,10 @@ module Aws::EC2InstanceConnect
173
179
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
180
  # a clock skew correction and retry requests with skewed client clocks.
175
181
  #
182
+ # @option options [String] :defaults_mode ("legacy")
183
+ # See {Aws::DefaultsModeConfiguration} for a list of the
184
+ # accepted modes and the configuration defaults that are included.
185
+ #
176
186
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
187
  # Set to true to disable SDK automatically adding host prefix
178
188
  # to default service endpoint when available.
@@ -305,7 +315,7 @@ module Aws::EC2InstanceConnect
305
315
  # seconds to wait when opening a HTTP session before raising a
306
316
  # `Timeout::Error`.
307
317
  #
308
- # @option options [Integer] :http_read_timeout (60) The default
318
+ # @option options [Float] :http_read_timeout (60) The default
309
319
  # number of seconds to wait for response data. This value can
310
320
  # safely be set per-request on the session.
311
321
  #
@@ -321,6 +331,9 @@ module Aws::EC2InstanceConnect
321
331
  # disables this behaviour. This value can safely be set per
322
332
  # request on the session.
323
333
  #
334
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
335
+ # in seconds.
336
+ #
324
337
  # @option options [Boolean] :http_wire_trace (false) When `true`,
325
338
  # HTTP debug output will be sent to the `:logger`.
326
339
  #
@@ -366,7 +379,7 @@ module Aws::EC2InstanceConnect
366
379
  # The public key material. To use the public key, you must have the
367
380
  # matching private key.
368
381
  #
369
- # @option params [required, String] :availability_zone
382
+ # @option params [String] :availability_zone
370
383
  # The Availability Zone in which the EC2 instance was launched.
371
384
  #
372
385
  # @return [Types::SendSSHPublicKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -399,7 +412,7 @@ module Aws::EC2InstanceConnect
399
412
  # instance_id: "InstanceId", # required
400
413
  # instance_os_user: "InstanceOSUser", # required
401
414
  # ssh_public_key: "SSHPublicKey", # required
402
- # availability_zone: "AvailabilityZone", # required
415
+ # availability_zone: "AvailabilityZone",
403
416
  # })
404
417
  #
405
418
  # @example Response structure
@@ -485,7 +498,7 @@ module Aws::EC2InstanceConnect
485
498
  params: params,
486
499
  config: config)
487
500
  context[:gem_name] = 'aws-sdk-ec2instanceconnect'
488
- context[:gem_version] = '1.19.0'
501
+ context[:gem_version] = '1.23.0'
489
502
  Seahorse::Client::Request.new(handlers, context)
490
503
  end
491
504
 
@@ -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.19.0'
51
+ GEM_VERSION = '1.23.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.19.0
4
+ version: 1.23.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-04 00:00:00.000000000 Z
11
+ date: 2022-02-03 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.122.0
22
+ version: 3.126.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.122.0
32
+ version: 3.126.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement