Skip to content

Commit 40a1e6d

Browse files
author
AWS
committed
AWS EC2 Instance Connect Update: This release includes a new exception type "EC2InstanceUnavailableException" for SendSSHPublicKey and SendSerialConsoleSSHPublicKey APIs.
1 parent 80ac142 commit 40a1e6d

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS EC2 Instance Connect",
4+
"contributor": "",
5+
"description": "This release includes a new exception type \"EC2InstanceUnavailableException\" for SendSSHPublicKey and SendSerialConsoleSSHPublicKey APIs."
6+
}

services/ec2instanceconnect/src/main/resources/codegen-resources/service-2.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
{"shape":"ServiceException"},
2828
{"shape":"ThrottlingException"},
2929
{"shape":"EC2InstanceNotFoundException"},
30-
{"shape":"EC2InstanceStateInvalidException"}
30+
{"shape":"EC2InstanceStateInvalidException"},
31+
{"shape":"EC2InstanceUnavailableException"}
3132
],
3233
"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>"
3334
},
@@ -49,7 +50,8 @@
4950
{"shape":"EC2InstanceTypeInvalidException"},
5051
{"shape":"SerialConsoleSessionLimitExceededException"},
5152
{"shape":"SerialConsoleSessionUnavailableException"},
52-
{"shape":"EC2InstanceStateInvalidException"}
53+
{"shape":"EC2InstanceStateInvalidException"},
54+
{"shape":"EC2InstanceUnavailableException"}
5355
],
5456
"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>"
5557
}
@@ -93,6 +95,14 @@
9395
"documentation":"<p>The instance type is not supported for connecting via the serial console. Only Nitro instance types are currently supported.</p>",
9496
"exception":true
9597
},
98+
"EC2InstanceUnavailableException":{
99+
"type":"structure",
100+
"members":{
101+
"Message":{"shape":"String"}
102+
},
103+
"documentation":"<p>The instance is currently unavailable. Wait a few minutes and try again.</p>",
104+
"exception":true
105+
},
96106
"InstanceId":{
97107
"type":"string",
98108
"max":32,

0 commit comments

Comments
 (0)