|
26 | 26 | {"shape":"InvalidArgsException"},
|
27 | 27 | {"shape":"ServiceException"},
|
28 | 28 | {"shape":"ThrottlingException"},
|
29 |
| - {"shape":"EC2InstanceNotFoundException"} |
| 29 | + {"shape":"EC2InstanceNotFoundException"}, |
| 30 | + {"shape":"EC2InstanceStateInvalidException"} |
30 | 31 | ],
|
31 | 32 | "documentation":"<p>Pushes an SSH public key to the specified EC2 instance for use by the specified user. The key remains for 60 seconds. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html\">Connect to your Linux instance using EC2 Instance Connect</a> in the <i>Amazon EC2 User Guide</i>.</p>"
|
32 | 33 | },
|
|
47 | 48 | {"shape":"EC2InstanceNotFoundException"},
|
48 | 49 | {"shape":"EC2InstanceTypeInvalidException"},
|
49 | 50 | {"shape":"SerialConsoleSessionLimitExceededException"},
|
50 |
| - {"shape":"SerialConsoleSessionUnavailableException"} |
| 51 | + {"shape":"SerialConsoleSessionUnavailableException"}, |
| 52 | + {"shape":"EC2InstanceStateInvalidException"} |
51 | 53 | ],
|
52 | 54 | "documentation":"<p>Pushes an SSH public key to the specified EC2 instance. The key remains for 60 seconds, which gives you 60 seconds to establish a serial console connection to the instance using SSH. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-serial-console.html\">EC2 Serial Console</a> in the <i>Amazon EC2 User Guide</i>.</p>"
|
53 | 55 | }
|
|
75 | 77 | "documentation":"<p>The specified instance was not found.</p>",
|
76 | 78 | "exception":true
|
77 | 79 | },
|
| 80 | + "EC2InstanceStateInvalidException":{ |
| 81 | + "type":"structure", |
| 82 | + "members":{ |
| 83 | + "Message":{"shape":"String"} |
| 84 | + }, |
| 85 | + "documentation":"<p>Unable to connect because the instance is not in a valid state. Connecting to a stopped or terminated instance is not supported. If the instance is stopped, start your instance, and try to connect again.</p>", |
| 86 | + "exception":true |
| 87 | + }, |
78 | 88 | "EC2InstanceTypeInvalidException":{
|
79 | 89 | "type":"structure",
|
80 | 90 | "members":{
|
|
107 | 117 | "SSHPublicKey":{
|
108 | 118 | "type":"string",
|
109 | 119 | "max":4096,
|
110 |
| - "min":256 |
| 120 | + "min":80 |
111 | 121 | },
|
112 | 122 | "SendSSHPublicKeyRequest":{
|
113 | 123 | "type":"structure",
|
114 | 124 | "required":[
|
115 | 125 | "InstanceId",
|
116 | 126 | "InstanceOSUser",
|
117 |
| - "SSHPublicKey", |
118 |
| - "AvailabilityZone" |
| 127 | + "SSHPublicKey" |
119 | 128 | ],
|
120 | 129 | "members":{
|
121 | 130 | "InstanceId":{
|
|
0 commit comments