aws-sdk-ec2instanceconnect 1.9.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0760f8ea3caf1355bb5042c871938261d6b935062895deecda625067c97c2110
4
- data.tar.gz: ead7523983647f75849037d2b60edec190ed9ea00bbacab7bb77a7ccce3c6ac0
3
+ metadata.gz: 9c1f994790bb60b9f81957e857c7547c4a540a28b7d4033aebc8968c7be961f3
4
+ data.tar.gz: 3bebc759a74c6b8eb10cc8b09adc2d259f29f557239913bfca95af0cf020b36d
5
5
  SHA512:
6
- metadata.gz: 43101046584724888265c9f45c45934f017546c74aa944b93f099310032486f6364f36eebc7fc8c825da8a174e4a1b3438f61261d3480daa3fd67de0a6573075
7
- data.tar.gz: 46e2042b7a3a5e2fd1db9e6643bc129f79887d7d0730481aae5e3ffc94339d25d1cd3501ad99974cd1af20bf3e12a54f6a13120bc0d40d4682147c69567f3282
6
+ metadata.gz: 59b7aa82d7a1d3a99089619ea807686288e05ed869d38c0142a1a4f99188f821263054a75e4cfd4a5a2bb1190b34102dfffdc7b5e5436c3ffe6bd4e1b3526e05
7
+ data.tar.gz: 0bed23d52a8a5a51fcf860c90824b92b953667f5fe9c6c82b56b2114ccbe953b1482b65c86ae0f2405b9cebbe1bb416f1f206e377ee843efdc7d247f16390d18
data/CHANGELOG.md ADDED
@@ -0,0 +1,83 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.14.0 (2021-03-30)
5
+ ------------------
6
+
7
+ * Feature - Adding support to push SSH keys to the EC2 serial console in order to allow an SSH connection to your Amazon EC2 instance's serial port.
8
+
9
+ 1.13.0 (2021-03-10)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.12.0 (2021-02-02)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.11.0 (2020-09-30)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.10.0 (2020-09-15)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.9.0 (2020-08-25)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.8.0 (2020-06-23)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.7.1 (2020-06-11)
40
+ ------------------
41
+
42
+ * Issue - Republish previous version with correct dependency on `aws-sdk-core`.
43
+
44
+ 1.7.0 (2020-06-10)
45
+ ------------------
46
+
47
+ * Issue - This version has been yanked. (#2327).
48
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
49
+
50
+ 1.6.0 (2020-05-28)
51
+ ------------------
52
+
53
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
54
+
55
+ 1.5.0 (2020-05-07)
56
+ ------------------
57
+
58
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
59
+
60
+ 1.4.0 (2020-03-09)
61
+ ------------------
62
+
63
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
64
+
65
+ 1.3.0 (2019-10-23)
66
+ ------------------
67
+
68
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
69
+
70
+ 1.2.0 (2019-07-25)
71
+ ------------------
72
+
73
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
74
+
75
+ 1.1.0 (2019-07-01)
76
+ ------------------
77
+
78
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
79
+
80
+ 1.0.0 (2019-06-27)
81
+ ------------------
82
+
83
+ * Feature - Initial release of `aws-sdk-ec2instanceconnect`.
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.14.0
@@ -3,10 +3,11 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -47,6 +48,6 @@ require_relative 'aws-sdk-ec2instanceconnect/customizations'
47
48
  # @!group service
48
49
  module Aws::EC2InstanceConnect
49
50
 
50
- GEM_VERSION = '1.9.0'
51
+ GEM_VERSION = '1.14.0'
51
52
 
52
53
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -337,22 +337,28 @@ module Aws::EC2InstanceConnect
337
337
 
338
338
  # @!group API Operations
339
339
 
340
- # Pushes an SSH public key to a particular OS user on a given EC2
341
- # instance for 60 seconds.
340
+ # Pushes an SSH public key to the specified EC2 instance for use by the
341
+ # specified user. The key remains for 60 seconds. For more information,
342
+ # see [Connect to your Linux instance using EC2 Instance Connect][1] in
343
+ # the *Amazon EC2 User Guide*.
344
+ #
345
+ #
346
+ #
347
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html
342
348
  #
343
349
  # @option params [required, String] :instance_id
344
- # The EC2 instance you wish to publish the SSH key to.
350
+ # The ID of the EC2 instance.
345
351
  #
346
352
  # @option params [required, String] :instance_os_user
347
- # The OS user on the EC2 instance whom the key may be used to
348
- # authenticate as.
353
+ # The OS user on the EC2 instance for whom the key can be used to
354
+ # authenticate.
349
355
  #
350
356
  # @option params [required, String] :ssh_public_key
351
- # The public key to be published to the instance. To use it after
352
- # publication you must have the matching private key.
357
+ # The public key material. To use the public key, you must have the
358
+ # matching private key.
353
359
  #
354
360
  # @option params [required, String] :availability_zone
355
- # The availability zone the EC2 instance was launched in.
361
+ # The Availability Zone in which the EC2 instance was launched.
356
362
  #
357
363
  # @return [Types::SendSSHPublicKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
358
364
  #
@@ -401,6 +407,62 @@ module Aws::EC2InstanceConnect
401
407
  req.send_request(options)
402
408
  end
403
409
 
410
+ # Pushes an SSH public key to the specified EC2 instance. The key
411
+ # remains for 60 seconds, which gives you 60 seconds to establish a
412
+ # serial console connection to the instance using SSH. For more
413
+ # information, see [EC2 Serial Console][1] in the *Amazon EC2 User
414
+ # Guide*.
415
+ #
416
+ #
417
+ #
418
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-serial-console.html
419
+ #
420
+ # @option params [required, String] :instance_id
421
+ # The ID of the EC2 instance.
422
+ #
423
+ # @option params [Integer] :serial_port
424
+ # The serial port of the EC2 instance. Currently only port 0 is
425
+ # supported.
426
+ #
427
+ # Default: 0
428
+ #
429
+ # @option params [required, String] :ssh_public_key
430
+ # The public key material. To use the public key, you must have the
431
+ # matching private key. For information about the supported key formats
432
+ # and lengths, see [Requirements for key pairs][1] in the *Amazon EC2
433
+ # User Guide*.
434
+ #
435
+ #
436
+ #
437
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#how-to-generate-your-own-key-and-import-it-to-aws
438
+ #
439
+ # @return [Types::SendSerialConsoleSSHPublicKeyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
440
+ #
441
+ # * {Types::SendSerialConsoleSSHPublicKeyResponse#request_id #request_id} => String
442
+ # * {Types::SendSerialConsoleSSHPublicKeyResponse#success #success} => Boolean
443
+ #
444
+ # @example Request syntax with placeholder values
445
+ #
446
+ # resp = client.send_serial_console_ssh_public_key({
447
+ # instance_id: "InstanceId", # required
448
+ # serial_port: 1,
449
+ # ssh_public_key: "SSHPublicKey", # required
450
+ # })
451
+ #
452
+ # @example Response structure
453
+ #
454
+ # resp.request_id #=> String
455
+ # resp.success #=> Boolean
456
+ #
457
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-instance-connect-2018-04-02/SendSerialConsoleSSHPublicKey AWS API Documentation
458
+ #
459
+ # @overload send_serial_console_ssh_public_key(params = {})
460
+ # @param [Hash] params ({})
461
+ def send_serial_console_ssh_public_key(params = {}, options = {})
462
+ req = build_request(:send_serial_console_ssh_public_key, params)
463
+ req.send_request(options)
464
+ end
465
+
404
466
  # @!endgroup
405
467
 
406
468
  # @param params ({})
@@ -414,7 +476,7 @@ module Aws::EC2InstanceConnect
414
476
  params: params,
415
477
  config: config)
416
478
  context[:gem_name] = 'aws-sdk-ec2instanceconnect'
417
- context[:gem_version] = '1.9.0'
479
+ context[:gem_version] = '1.14.0'
418
480
  Seahorse::Client::Request.new(handlers, context)
419
481
  end
420
482
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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
+ EC2InstanceTypeInvalidException = Shapes::StructureShape.new(name: 'EC2InstanceTypeInvalidException')
19
20
  InstanceId = Shapes::StringShape.new(name: 'InstanceId')
20
21
  InstanceOSUser = Shapes::StringShape.new(name: 'InstanceOSUser')
21
22
  InvalidArgsException = Shapes::StructureShape.new(name: 'InvalidArgsException')
@@ -23,6 +24,12 @@ module Aws::EC2InstanceConnect
23
24
  SSHPublicKey = Shapes::StringShape.new(name: 'SSHPublicKey')
24
25
  SendSSHPublicKeyRequest = Shapes::StructureShape.new(name: 'SendSSHPublicKeyRequest')
25
26
  SendSSHPublicKeyResponse = Shapes::StructureShape.new(name: 'SendSSHPublicKeyResponse')
27
+ SendSerialConsoleSSHPublicKeyRequest = Shapes::StructureShape.new(name: 'SendSerialConsoleSSHPublicKeyRequest')
28
+ SendSerialConsoleSSHPublicKeyResponse = Shapes::StructureShape.new(name: 'SendSerialConsoleSSHPublicKeyResponse')
29
+ SerialConsoleAccessDisabledException = Shapes::StructureShape.new(name: 'SerialConsoleAccessDisabledException')
30
+ SerialConsoleSessionLimitExceededException = Shapes::StructureShape.new(name: 'SerialConsoleSessionLimitExceededException')
31
+ SerialConsoleSessionUnavailableException = Shapes::StructureShape.new(name: 'SerialConsoleSessionUnavailableException')
32
+ SerialPort = Shapes::IntegerShape.new(name: 'SerialPort')
26
33
  ServiceException = Shapes::StructureShape.new(name: 'ServiceException')
27
34
  String = Shapes::StringShape.new(name: 'String')
28
35
  Success = Shapes::BooleanShape.new(name: 'Success')
@@ -34,6 +41,9 @@ module Aws::EC2InstanceConnect
34
41
  EC2InstanceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
35
42
  EC2InstanceNotFoundException.struct_class = Types::EC2InstanceNotFoundException
36
43
 
44
+ EC2InstanceTypeInvalidException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
45
+ EC2InstanceTypeInvalidException.struct_class = Types::EC2InstanceTypeInvalidException
46
+
37
47
  InvalidArgsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
38
48
  InvalidArgsException.struct_class = Types::InvalidArgsException
39
49
 
@@ -47,6 +57,24 @@ module Aws::EC2InstanceConnect
47
57
  SendSSHPublicKeyResponse.add_member(:success, Shapes::ShapeRef.new(shape: Success, location_name: "Success"))
48
58
  SendSSHPublicKeyResponse.struct_class = Types::SendSSHPublicKeyResponse
49
59
 
60
+ SendSerialConsoleSSHPublicKeyRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
61
+ SendSerialConsoleSSHPublicKeyRequest.add_member(:serial_port, Shapes::ShapeRef.new(shape: SerialPort, location_name: "SerialPort"))
62
+ SendSerialConsoleSSHPublicKeyRequest.add_member(:ssh_public_key, Shapes::ShapeRef.new(shape: SSHPublicKey, required: true, location_name: "SSHPublicKey"))
63
+ SendSerialConsoleSSHPublicKeyRequest.struct_class = Types::SendSerialConsoleSSHPublicKeyRequest
64
+
65
+ SendSerialConsoleSSHPublicKeyResponse.add_member(:request_id, Shapes::ShapeRef.new(shape: RequestId, location_name: "RequestId"))
66
+ SendSerialConsoleSSHPublicKeyResponse.add_member(:success, Shapes::ShapeRef.new(shape: Success, location_name: "Success"))
67
+ SendSerialConsoleSSHPublicKeyResponse.struct_class = Types::SendSerialConsoleSSHPublicKeyResponse
68
+
69
+ SerialConsoleAccessDisabledException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
70
+ SerialConsoleAccessDisabledException.struct_class = Types::SerialConsoleAccessDisabledException
71
+
72
+ SerialConsoleSessionLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
73
+ SerialConsoleSessionLimitExceededException.struct_class = Types::SerialConsoleSessionLimitExceededException
74
+
75
+ SerialConsoleSessionUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
76
+ SerialConsoleSessionUnavailableException.struct_class = Types::SerialConsoleSessionUnavailableException
77
+
50
78
  ServiceException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
51
79
  ServiceException.struct_class = Types::ServiceException
52
80
 
@@ -84,6 +112,23 @@ module Aws::EC2InstanceConnect
84
112
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
85
113
  o.errors << Shapes::ShapeRef.new(shape: EC2InstanceNotFoundException)
86
114
  end)
115
+
116
+ api.add_operation(:send_serial_console_ssh_public_key, Seahorse::Model::Operation.new.tap do |o|
117
+ o.name = "SendSerialConsoleSSHPublicKey"
118
+ o.http_method = "POST"
119
+ o.http_request_uri = "/"
120
+ o.input = Shapes::ShapeRef.new(shape: SendSerialConsoleSSHPublicKeyRequest)
121
+ o.output = Shapes::ShapeRef.new(shape: SendSerialConsoleSSHPublicKeyResponse)
122
+ o.errors << Shapes::ShapeRef.new(shape: AuthException)
123
+ o.errors << Shapes::ShapeRef.new(shape: SerialConsoleAccessDisabledException)
124
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgsException)
125
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
126
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
127
+ o.errors << Shapes::ShapeRef.new(shape: EC2InstanceNotFoundException)
128
+ o.errors << Shapes::ShapeRef.new(shape: EC2InstanceTypeInvalidException)
129
+ o.errors << Shapes::ShapeRef.new(shape: SerialConsoleSessionLimitExceededException)
130
+ o.errors << Shapes::ShapeRef.new(shape: SerialConsoleSessionUnavailableException)
131
+ end)
87
132
  end
88
133
 
89
134
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -29,7 +29,11 @@ module Aws::EC2InstanceConnect
29
29
  # ## Error Classes
30
30
  # * {AuthException}
31
31
  # * {EC2InstanceNotFoundException}
32
+ # * {EC2InstanceTypeInvalidException}
32
33
  # * {InvalidArgsException}
34
+ # * {SerialConsoleAccessDisabledException}
35
+ # * {SerialConsoleSessionLimitExceededException}
36
+ # * {SerialConsoleSessionUnavailableException}
33
37
  # * {ServiceException}
34
38
  # * {ThrottlingException}
35
39
  #
@@ -69,6 +73,21 @@ module Aws::EC2InstanceConnect
69
73
  end
70
74
  end
71
75
 
76
+ class EC2InstanceTypeInvalidException < ServiceError
77
+
78
+ # @param [Seahorse::Client::RequestContext] context
79
+ # @param [String] message
80
+ # @param [Aws::EC2InstanceConnect::Types::EC2InstanceTypeInvalidException] data
81
+ def initialize(context, message, data = Aws::EmptyStructure.new)
82
+ super(context, message, data)
83
+ end
84
+
85
+ # @return [String]
86
+ def message
87
+ @message || @data[:message]
88
+ end
89
+ end
90
+
72
91
  class InvalidArgsException < ServiceError
73
92
 
74
93
  # @param [Seahorse::Client::RequestContext] context
@@ -84,6 +103,51 @@ module Aws::EC2InstanceConnect
84
103
  end
85
104
  end
86
105
 
106
+ class SerialConsoleAccessDisabledException < ServiceError
107
+
108
+ # @param [Seahorse::Client::RequestContext] context
109
+ # @param [String] message
110
+ # @param [Aws::EC2InstanceConnect::Types::SerialConsoleAccessDisabledException] data
111
+ def initialize(context, message, data = Aws::EmptyStructure.new)
112
+ super(context, message, data)
113
+ end
114
+
115
+ # @return [String]
116
+ def message
117
+ @message || @data[:message]
118
+ end
119
+ end
120
+
121
+ class SerialConsoleSessionLimitExceededException < ServiceError
122
+
123
+ # @param [Seahorse::Client::RequestContext] context
124
+ # @param [String] message
125
+ # @param [Aws::EC2InstanceConnect::Types::SerialConsoleSessionLimitExceededException] data
126
+ def initialize(context, message, data = Aws::EmptyStructure.new)
127
+ super(context, message, data)
128
+ end
129
+
130
+ # @return [String]
131
+ def message
132
+ @message || @data[:message]
133
+ end
134
+ end
135
+
136
+ class SerialConsoleSessionUnavailableException < ServiceError
137
+
138
+ # @param [Seahorse::Client::RequestContext] context
139
+ # @param [String] message
140
+ # @param [Aws::EC2InstanceConnect::Types::SerialConsoleSessionUnavailableException] data
141
+ def initialize(context, message, data = Aws::EmptyStructure.new)
142
+ super(context, message, data)
143
+ end
144
+
145
+ # @return [String]
146
+ def message
147
+ @message || @data[:message]
148
+ end
149
+ end
150
+
87
151
  class ServiceException < ServiceError
88
152
 
89
153
  # @param [Seahorse::Client::RequestContext] context
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,15 +3,15 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
10
  module Aws::EC2InstanceConnect
11
11
  module Types
12
12
 
13
- # Indicates that either your AWS credentials are invalid or you do not
14
- # have access to the EC2 instance.
13
+ # Either your AWS credentials are not valid or you do not have access to
14
+ # the EC2 instance.
15
15
  #
16
16
  # @!attribute [rw] message
17
17
  # @return [String]
@@ -24,8 +24,7 @@ module Aws::EC2InstanceConnect
24
24
  include Aws::Structure
25
25
  end
26
26
 
27
- # Indicates that the instance requested was not found in the given zone.
28
- # Check that you have provided a valid instance ID and the correct zone.
27
+ # The specified instance was not found.
29
28
  #
30
29
  # @!attribute [rw] message
31
30
  # @return [String]
@@ -38,8 +37,21 @@ module Aws::EC2InstanceConnect
38
37
  include Aws::Structure
39
38
  end
40
39
 
41
- # Indicates that you provided bad input. Ensure you have a valid
42
- # instance ID, the correct zone, and a valid SSH public key.
40
+ # The instance type is not supported for connecting via the serial
41
+ # console. Only Nitro instance types are currently supported.
42
+ #
43
+ # @!attribute [rw] message
44
+ # @return [String]
45
+ #
46
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-instance-connect-2018-04-02/EC2InstanceTypeInvalidException AWS API Documentation
47
+ #
48
+ class EC2InstanceTypeInvalidException < Struct.new(
49
+ :message)
50
+ SENSITIVE = []
51
+ include Aws::Structure
52
+ end
53
+
54
+ # One of the parameters is not valid.
43
55
  #
44
56
  # @!attribute [rw] message
45
57
  # @return [String]
@@ -63,21 +75,21 @@ module Aws::EC2InstanceConnect
63
75
  # }
64
76
  #
65
77
  # @!attribute [rw] instance_id
66
- # The EC2 instance you wish to publish the SSH key to.
78
+ # The ID of the EC2 instance.
67
79
  # @return [String]
68
80
  #
69
81
  # @!attribute [rw] instance_os_user
70
- # The OS user on the EC2 instance whom the key may be used to
71
- # authenticate as.
82
+ # The OS user on the EC2 instance for whom the key can be used to
83
+ # authenticate.
72
84
  # @return [String]
73
85
  #
74
86
  # @!attribute [rw] ssh_public_key
75
- # The public key to be published to the instance. To use it after
76
- # publication you must have the matching private key.
87
+ # The public key material. To use the public key, you must have the
88
+ # matching private key.
77
89
  # @return [String]
78
90
  #
79
91
  # @!attribute [rw] availability_zone
80
- # The availability zone the EC2 instance was launched in.
92
+ # The Availability Zone in which the EC2 instance was launched.
81
93
  # @return [String]
82
94
  #
83
95
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-instance-connect-2018-04-02/SendSSHPublicKeyRequest AWS API Documentation
@@ -92,12 +104,12 @@ module Aws::EC2InstanceConnect
92
104
  end
93
105
 
94
106
  # @!attribute [rw] request_id
95
- # The request ID as logged by EC2 Connect. Please provide this when
96
- # contacting AWS Support.
107
+ # The ID of the request. Please provide this ID when contacting AWS
108
+ # Support for assistance.
97
109
  # @return [String]
98
110
  #
99
111
  # @!attribute [rw] success
100
- # Indicates request success.
112
+ # Is true if the request succeeds and an error otherwise.
101
113
  # @return [Boolean]
102
114
  #
103
115
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-instance-connect-2018-04-02/SendSSHPublicKeyResponse AWS API Documentation
@@ -109,8 +121,114 @@ module Aws::EC2InstanceConnect
109
121
  include Aws::Structure
110
122
  end
111
123
 
112
- # Indicates that the service encountered an error. Follow the message's
113
- # instructions and try again.
124
+ # @note When making an API call, you may pass SendSerialConsoleSSHPublicKeyRequest
125
+ # data as a hash:
126
+ #
127
+ # {
128
+ # instance_id: "InstanceId", # required
129
+ # serial_port: 1,
130
+ # ssh_public_key: "SSHPublicKey", # required
131
+ # }
132
+ #
133
+ # @!attribute [rw] instance_id
134
+ # The ID of the EC2 instance.
135
+ # @return [String]
136
+ #
137
+ # @!attribute [rw] serial_port
138
+ # The serial port of the EC2 instance. Currently only port 0 is
139
+ # supported.
140
+ #
141
+ # Default: 0
142
+ # @return [Integer]
143
+ #
144
+ # @!attribute [rw] ssh_public_key
145
+ # The public key material. To use the public key, you must have the
146
+ # matching private key. For information about the supported key
147
+ # formats and lengths, see [Requirements for key pairs][1] in the
148
+ # *Amazon EC2 User Guide*.
149
+ #
150
+ #
151
+ #
152
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#how-to-generate-your-own-key-and-import-it-to-aws
153
+ # @return [String]
154
+ #
155
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-instance-connect-2018-04-02/SendSerialConsoleSSHPublicKeyRequest AWS API Documentation
156
+ #
157
+ class SendSerialConsoleSSHPublicKeyRequest < Struct.new(
158
+ :instance_id,
159
+ :serial_port,
160
+ :ssh_public_key)
161
+ SENSITIVE = []
162
+ include Aws::Structure
163
+ end
164
+
165
+ # @!attribute [rw] request_id
166
+ # The ID of the request. Please provide this ID when contacting AWS
167
+ # Support for assistance.
168
+ # @return [String]
169
+ #
170
+ # @!attribute [rw] success
171
+ # Is true if the request succeeds and an error otherwise.
172
+ # @return [Boolean]
173
+ #
174
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-instance-connect-2018-04-02/SendSerialConsoleSSHPublicKeyResponse AWS API Documentation
175
+ #
176
+ class SendSerialConsoleSSHPublicKeyResponse < Struct.new(
177
+ :request_id,
178
+ :success)
179
+ SENSITIVE = []
180
+ include Aws::Structure
181
+ end
182
+
183
+ # Your account is not authorized to use the EC2 Serial Console. To
184
+ # authorize your account, run the EnableSerialConsoleAccess API. For
185
+ # more information, see [EnableSerialConsoleAccess][1] in the *Amazon
186
+ # EC2 API Reference*.
187
+ #
188
+ #
189
+ #
190
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EnableSerialConsoleAccess.html
191
+ #
192
+ # @!attribute [rw] message
193
+ # @return [String]
194
+ #
195
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-instance-connect-2018-04-02/SerialConsoleAccessDisabledException AWS API Documentation
196
+ #
197
+ class SerialConsoleAccessDisabledException < Struct.new(
198
+ :message)
199
+ SENSITIVE = []
200
+ include Aws::Structure
201
+ end
202
+
203
+ # The instance currently has 1 active serial console session. Only 1
204
+ # session is supported at a time.
205
+ #
206
+ # @!attribute [rw] message
207
+ # @return [String]
208
+ #
209
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-instance-connect-2018-04-02/SerialConsoleSessionLimitExceededException AWS API Documentation
210
+ #
211
+ class SerialConsoleSessionLimitExceededException < Struct.new(
212
+ :message)
213
+ SENSITIVE = []
214
+ include Aws::Structure
215
+ end
216
+
217
+ # Unable to start a serial console session. Please try again.
218
+ #
219
+ # @!attribute [rw] message
220
+ # @return [String]
221
+ #
222
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-instance-connect-2018-04-02/SerialConsoleSessionUnavailableException AWS API Documentation
223
+ #
224
+ class SerialConsoleSessionUnavailableException < Struct.new(
225
+ :message)
226
+ SENSITIVE = []
227
+ include Aws::Structure
228
+ end
229
+
230
+ # The service encountered an error. Follow the instructions in the error
231
+ # message and try again.
114
232
  #
115
233
  # @!attribute [rw] message
116
234
  # @return [String]
@@ -123,9 +241,9 @@ module Aws::EC2InstanceConnect
123
241
  include Aws::Structure
124
242
  end
125
243
 
126
- # Indicates you have been making requests too frequently and have been
127
- # throttled. Wait for a while and try again. If higher call volume is
128
- # warranted contact AWS Support.
244
+ # The requests were made too frequently and have been throttled. Wait a
245
+ # while and try again. To increase the limit on your request frequency,
246
+ # contact AWS Support.
129
247
  #
130
248
  # @!attribute [rw] message
131
249
  # @return [String]
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.9.0
4
+ version: 1.14.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: 2020-08-25 00:00:00.000000000 Z
11
+ date: 2021-03-30 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.99.0
22
+ version: 3.112.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.99.0
32
+ version: 3.112.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -47,11 +47,14 @@ dependencies:
47
47
  description: Official AWS Ruby gem for AWS EC2 Instance Connect (EC2 Instance Connect).
48
48
  This gem is part of the AWS SDK for Ruby.
49
49
  email:
50
- - trevrowe@amazon.com
50
+ - aws-dr-rubygems@amazon.com
51
51
  executables: []
52
52
  extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
+ - CHANGELOG.md
56
+ - LICENSE.txt
57
+ - VERSION
55
58
  - lib/aws-sdk-ec2instanceconnect.rb
56
59
  - lib/aws-sdk-ec2instanceconnect/client.rb
57
60
  - lib/aws-sdk-ec2instanceconnect/client_api.rb
@@ -63,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
63
66
  licenses:
64
67
  - Apache-2.0
65
68
  metadata:
66
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-ec2instanceconnect
67
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-ec2instanceconnect/CHANGELOG.md
69
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-ec2instanceconnect
70
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-ec2instanceconnect/CHANGELOG.md
68
71
  post_install_message:
69
72
  rdoc_options: []
70
73
  require_paths: