Smaws_Client_EC2InstanceConnect.SendSSHPublicKeyPushes 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 Connect to your Linux instance using EC2 Instance Connect in the Amazon EC2 User Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AuthException of Types.auth_exception
| `EC2InstanceNotFoundException of Types.ec2_instance_not_found_exception
| `EC2InstanceStateInvalidException of
Types.ec2_instance_state_invalid_exception
| `EC2InstanceUnavailableException of
Types.ec2_instance_unavailable_exception
| `InvalidArgsException of Types.invalid_args_exception
| `ServiceException of Types.service_exception
| `ThrottlingException of Types.throttling_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.send_ssh_public_key_request ->
(Types.send_ssh_public_key_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AuthException of Types.auth_exception
| `EC2InstanceNotFoundException of Types.ec2_instance_not_found_exception
| `EC2InstanceStateInvalidException of
Types.ec2_instance_state_invalid_exception
| `EC2InstanceUnavailableException of
Types.ec2_instance_unavailable_exception
| `InvalidArgsException of Types.invalid_args_exception
| `ServiceException of Types.service_exception
| `ThrottlingException of Types.throttling_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.send_ssh_public_key_request ->
(Types.send_ssh_public_key_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AuthException of Types.auth_exception
| `EC2InstanceNotFoundException of Types.ec2_instance_not_found_exception
| `EC2InstanceStateInvalidException of
Types.ec2_instance_state_invalid_exception
| `EC2InstanceUnavailableException of
Types.ec2_instance_unavailable_exception
| `InvalidArgsException of Types.invalid_args_exception
| `ServiceException of Types.service_exception
| `ThrottlingException of Types.throttling_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result