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>.
post/#X-Amz-Target=AWSEC2InstanceConnectService.SendSSHPublicKey
Headers
X-Amz-Target'AWSEC2InstanceConnectService.SendSSHPublicKey' required
Request body
Response
Success
Example response
{
"RequestId": "abcd1234-abcd-1234-abcd-1234abcd1234",
"Success": true
}