|
31 | 31 | "shapes": {
|
32 | 32 | "com.amazonaws.ec2instanceconnect#AWSEC2InstanceConnectService": {
|
33 | 33 | "type": "service",
|
34 |
| - "version": "2018-04-02", |
35 |
| - "operations": [ |
36 |
| - { |
37 |
| - "target": "com.amazonaws.ec2instanceconnect#SendSerialConsoleSSHPublicKey" |
38 |
| - }, |
39 |
| - { |
40 |
| - "target": "com.amazonaws.ec2instanceconnect#SendSSHPublicKey" |
41 |
| - } |
42 |
| - ], |
43 | 34 | "traits": {
|
44 | 35 | "aws.api#service": {
|
45 | 36 | "sdkId": "EC2 Instance Connect",
|
|
54 | 45 | "aws.protocols#awsJson1_1": {},
|
55 | 46 | "smithy.api#documentation": "<p>Amazon EC2 Instance Connect enables system administrators to publish one-time use SSH\n public keys to EC2, providing users a simple and secure way to connect to their\n instances.</p>",
|
56 | 47 | "smithy.api#title": "AWS EC2 Instance Connect"
|
57 |
| - } |
| 48 | + }, |
| 49 | + "version": "2018-04-02", |
| 50 | + "operations": [ |
| 51 | + { |
| 52 | + "target": "com.amazonaws.ec2instanceconnect#SendSerialConsoleSSHPublicKey" |
| 53 | + }, |
| 54 | + { |
| 55 | + "target": "com.amazonaws.ec2instanceconnect#SendSSHPublicKey" |
| 56 | + } |
| 57 | + ] |
58 | 58 | },
|
59 | 59 | "com.amazonaws.ec2instanceconnect#AuthException": {
|
60 | 60 | "type": "structure",
|
|
64 | 64 | }
|
65 | 65 | },
|
66 | 66 | "traits": {
|
| 67 | + "aws.protocols#awsQueryError": { |
| 68 | + "code": "Forbidden", |
| 69 | + "httpResponseCode": 403 |
| 70 | + }, |
67 | 71 | "smithy.api#documentation": "<p>Either your AWS credentials are not valid or you do not have access to the EC2 instance.</p>",
|
68 | 72 | "smithy.api#error": "client",
|
69 | 73 | "smithy.api#httpError": 403
|
|
87 | 91 | }
|
88 | 92 | },
|
89 | 93 | "traits": {
|
| 94 | + "aws.protocols#awsQueryError": { |
| 95 | + "code": "EC2InstanceNotFound", |
| 96 | + "httpResponseCode": 404 |
| 97 | + }, |
90 | 98 | "smithy.api#documentation": "<p>The specified instance was not found.</p>",
|
91 | 99 | "smithy.api#error": "client",
|
92 | 100 | "smithy.api#httpError": 404
|
93 | 101 | }
|
94 | 102 | },
|
| 103 | + "com.amazonaws.ec2instanceconnect#EC2InstanceStateInvalidException": { |
| 104 | + "type": "structure", |
| 105 | + "members": { |
| 106 | + "Message": { |
| 107 | + "target": "com.amazonaws.ec2instanceconnect#String" |
| 108 | + } |
| 109 | + }, |
| 110 | + "traits": { |
| 111 | + "aws.protocols#awsQueryError": { |
| 112 | + "code": "EC2InstanceStateInvalid", |
| 113 | + "httpResponseCode": 400 |
| 114 | + }, |
| 115 | + "smithy.api#documentation": "<p>Unable to connect because the instance is not in a valid state. \n Connecting to a stopped or terminated instance is not supported. If the instance is stopped, \n start your instance, and try to connect again.</p>", |
| 116 | + "smithy.api#error": "client", |
| 117 | + "smithy.api#httpError": 400 |
| 118 | + } |
| 119 | + }, |
95 | 120 | "com.amazonaws.ec2instanceconnect#EC2InstanceTypeInvalidException": {
|
96 | 121 | "type": "structure",
|
97 | 122 | "members": {
|
|
100 | 125 | }
|
101 | 126 | },
|
102 | 127 | "traits": {
|
| 128 | + "aws.protocols#awsQueryError": { |
| 129 | + "code": "EC2InstanceTypeInvalid", |
| 130 | + "httpResponseCode": 400 |
| 131 | + }, |
103 | 132 | "smithy.api#documentation": "<p>The instance type is not supported for connecting via the serial console. Only Nitro\n instance types are currently supported.</p>",
|
104 | 133 | "smithy.api#error": "client",
|
105 | 134 | "smithy.api#httpError": 400
|
|
133 | 162 | }
|
134 | 163 | },
|
135 | 164 | "traits": {
|
| 165 | + "aws.protocols#awsQueryError": { |
| 166 | + "code": "InvalidArguments", |
| 167 | + "httpResponseCode": 400 |
| 168 | + }, |
136 | 169 | "smithy.api#documentation": "<p>One of the parameters is not valid.</p>",
|
137 | 170 | "smithy.api#error": "client",
|
138 | 171 | "smithy.api#httpError": 400
|
|
145 | 178 | "type": "string",
|
146 | 179 | "traits": {
|
147 | 180 | "smithy.api#length": {
|
148 |
| - "min": 256, |
| 181 | + "min": 80, |
149 | 182 | "max": 4096
|
150 | 183 | }
|
151 | 184 | }
|
|
165 | 198 | {
|
166 | 199 | "target": "com.amazonaws.ec2instanceconnect#EC2InstanceNotFoundException"
|
167 | 200 | },
|
| 201 | + { |
| 202 | + "target": "com.amazonaws.ec2instanceconnect#EC2InstanceStateInvalidException" |
| 203 | + }, |
168 | 204 | {
|
169 | 205 | "target": "com.amazonaws.ec2instanceconnect#InvalidArgsException"
|
170 | 206 | },
|
|
206 | 242 | "AvailabilityZone": {
|
207 | 243 | "target": "com.amazonaws.ec2instanceconnect#AvailabilityZone",
|
208 | 244 | "traits": {
|
209 |
| - "smithy.api#documentation": "<p>The Availability Zone in which the EC2 instance was launched.</p>", |
210 |
| - "smithy.api#required": {} |
| 245 | + "smithy.api#documentation": "<p>The Availability Zone in which the EC2 instance was launched.</p>" |
211 | 246 | }
|
212 | 247 | }
|
213 | 248 | }
|
|
244 | 279 | {
|
245 | 280 | "target": "com.amazonaws.ec2instanceconnect#EC2InstanceNotFoundException"
|
246 | 281 | },
|
| 282 | + { |
| 283 | + "target": "com.amazonaws.ec2instanceconnect#EC2InstanceStateInvalidException" |
| 284 | + }, |
247 | 285 | {
|
248 | 286 | "target": "com.amazonaws.ec2instanceconnect#EC2InstanceTypeInvalidException"
|
249 | 287 | },
|
|
320 | 358 | }
|
321 | 359 | },
|
322 | 360 | "traits": {
|
| 361 | + "aws.protocols#awsQueryError": { |
| 362 | + "code": "SerialConsoleAccessDisabled", |
| 363 | + "httpResponseCode": 403 |
| 364 | + }, |
323 | 365 | "smithy.api#documentation": "<p>Your account is not authorized to use the EC2 Serial Console. To authorize your\n account, run the EnableSerialConsoleAccess API. For more information, see\n <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EnableSerialConsoleAccess.html\">EnableSerialConsoleAccess</a> in the <i>Amazon EC2 API Reference</i>.</p>",
|
324 | 366 | "smithy.api#error": "client",
|
325 | 367 | "smithy.api#httpError": 403
|
|
333 | 375 | }
|
334 | 376 | },
|
335 | 377 | "traits": {
|
| 378 | + "aws.protocols#awsQueryError": { |
| 379 | + "code": "SerialConsoleSessionLimitExceeded", |
| 380 | + "httpResponseCode": 400 |
| 381 | + }, |
336 | 382 | "smithy.api#documentation": "<p>The instance currently has 1 active serial console session. Only 1 session is supported at a time.</p>",
|
337 | 383 | "smithy.api#error": "client",
|
338 | 384 | "smithy.api#httpError": 400
|
|
346 | 392 | }
|
347 | 393 | },
|
348 | 394 | "traits": {
|
| 395 | + "aws.protocols#awsQueryError": { |
| 396 | + "code": "SerialConsoleSessionUnavailable", |
| 397 | + "httpResponseCode": 500 |
| 398 | + }, |
349 | 399 | "smithy.api#documentation": "<p>Unable to start a serial console session. Please try again.</p>",
|
350 | 400 | "smithy.api#error": "server",
|
351 | 401 | "smithy.api#httpError": 500
|
|
368 | 418 | }
|
369 | 419 | },
|
370 | 420 | "traits": {
|
| 421 | + "aws.protocols#awsQueryError": { |
| 422 | + "code": "InternalServerError", |
| 423 | + "httpResponseCode": 500 |
| 424 | + }, |
371 | 425 | "smithy.api#documentation": "<p>The service encountered an error. Follow the instructions in the error message and try again.</p>",
|
372 | 426 | "smithy.api#error": "server",
|
373 | 427 | "smithy.api#httpError": 500
|
|
387 | 441 | }
|
388 | 442 | },
|
389 | 443 | "traits": {
|
| 444 | + "aws.protocols#awsQueryError": { |
| 445 | + "code": "TooManyRequests", |
| 446 | + "httpResponseCode": 429 |
| 447 | + }, |
390 | 448 | "smithy.api#documentation": "<p>The requests were made too frequently and have been throttled. Wait a while and try again. \n To increase the limit on your request frequency, contact AWS Support.</p>",
|
391 | 449 | "smithy.api#error": "client",
|
392 | 450 | "smithy.api#httpError": 429
|
|
0 commit comments