AWS Cloudhsm to sign request

Hi in our application we need to SIGN a request on AWS cloudHSM. i am new to hsm. can anybody help how to use cloudhsm client and sign request.

I am able to sign request on ec2 machine using
publickey sign(Msg, DigestType, Key, Options) -> Signature

need help how to use cloud hsm to do the same.

Thanks

try https://github.com/aws-beam/aws-elixir it contains a module to deal with cloudhsm

This module is to manage hsm.
Not to sign and verify requests.

what we are trying to do is Sign and verify request using cloud hsm client.

thanks