Module Smaws_Client_IAM.UploadSSHPublicKey

Uploads an SSH public key and associates it with the specified IAM user.

The SSH public key uploaded by this operation can be used only for authenticating the associated IAM user to an CodeCommit repository. For more information about using SSH keys to authenticate to an CodeCommit repository, see Set up CodeCommit for SSH connections in the CodeCommit User Guide.

val error_to_string : [ Smaws_Lib.Protocols.AwsQuery.error | `DuplicateSSHPublicKeyException of Types.duplicate_ssh_public_key_exception | `InvalidPublicKeyException of Types.invalid_public_key_exception | `LimitExceededException of Types.limit_exceeded_exception | `NoSuchEntityException of Types.no_such_entity_exception | `UnrecognizedPublicKeyEncodingException of Types.unrecognized_public_key_encoding_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.upload_ssh_public_key_request -> (Types.upload_ssh_public_key_response, [> Smaws_Lib.Protocols.AwsQuery.error | `DuplicateSSHPublicKeyException of Types.duplicate_ssh_public_key_exception | `InvalidPublicKeyException of Types.invalid_public_key_exception | `LimitExceededException of Types.limit_exceeded_exception | `NoSuchEntityException of Types.no_such_entity_exception | `UnrecognizedPublicKeyEncodingException of Types.unrecognized_public_key_encoding_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.upload_ssh_public_key_request -> (Types.upload_ssh_public_key_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsQuery.error | `DuplicateSSHPublicKeyException of Types.duplicate_ssh_public_key_exception | `InvalidPublicKeyException of Types.invalid_public_key_exception | `LimitExceededException of Types.limit_exceeded_exception | `NoSuchEntityException of Types.no_such_entity_exception | `UnrecognizedPublicKeyEncodingException of Types.unrecognized_public_key_encoding_exception ] * Smaws_Lib.Response.metadata) Stdlib.result