Smaws_Client_EC2InstanceConnect.SendSerialConsoleSSHPublicKeyPushes 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 EC2 Serial Console 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
| `EC2InstanceTypeInvalidException of
Types.ec2_instance_type_invalid_exception
| `EC2InstanceUnavailableException of
Types.ec2_instance_unavailable_exception
| `InvalidArgsException of Types.invalid_args_exception
| `SerialConsoleAccessDisabledException of
Types.serial_console_access_disabled_exception
| `SerialConsoleSessionLimitExceededException of
Types.serial_console_session_limit_exceeded_exception
| `SerialConsoleSessionUnavailableException of
Types.serial_console_session_unavailable_exception
| `SerialConsoleSessionUnsupportedException of
Types.serial_console_session_unsupported_exception
| `ServiceException of Types.service_exception
| `ThrottlingException of Types.throttling_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.send_serial_console_ssh_public_key_request ->
(Types.send_serial_console_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
| `EC2InstanceTypeInvalidException of
Types.ec2_instance_type_invalid_exception
| `EC2InstanceUnavailableException of
Types.ec2_instance_unavailable_exception
| `InvalidArgsException of Types.invalid_args_exception
| `SerialConsoleAccessDisabledException of
Types.serial_console_access_disabled_exception
| `SerialConsoleSessionLimitExceededException of
Types.serial_console_session_limit_exceeded_exception
| `SerialConsoleSessionUnavailableException of
Types.serial_console_session_unavailable_exception
| `SerialConsoleSessionUnsupportedException of
Types.serial_console_session_unsupported_exception
| `ServiceException of Types.service_exception
| `ThrottlingException of Types.throttling_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.send_serial_console_ssh_public_key_request ->
(Types.send_serial_console_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
| `EC2InstanceTypeInvalidException of
Types.ec2_instance_type_invalid_exception
| `EC2InstanceUnavailableException of
Types.ec2_instance_unavailable_exception
| `InvalidArgsException of Types.invalid_args_exception
| `SerialConsoleAccessDisabledException of
Types.serial_console_access_disabled_exception
| `SerialConsoleSessionLimitExceededException of
Types.serial_console_session_limit_exceeded_exception
| `SerialConsoleSessionUnavailableException of
Types.serial_console_session_unavailable_exception
| `SerialConsoleSessionUnsupportedException of
Types.serial_console_session_unsupported_exception
| `ServiceException of Types.service_exception
| `ThrottlingException of Types.throttling_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result