-1

I am looking for creating aws Cloud HSM using Java sdk. Does anyone already done? looking for some example.

I can create by using AWS CLI but I want to do it through Java sdk.

Thank you.

Rohan J Mohite
  • 2,283
  • 10
  • 19
  • 1
    What is missing from the [Java samples](https://docs.aws.amazon.com/cloudhsm/latest/userguide/java-samples.html)? – stdunbar Sep 11 '20 at 18:41
  • The link is having details about how to communicate to cloud HSM using java. and I am looking for how to create cloud HSM cluster. – Rohan J Mohite Sep 11 '20 at 20:17

1 Answers1

1

AWS CLI is a wrapper around AWS API and the call you are likely looking for is CreateHSM Here is the corresponding Java SDK method

In most cases, if you already know how to do something via CLI - just follow the link to API Reference from the CLI command documentation page and then to SDK of you choice (Java). They all are built on top of the same REST API, so given the example for one it's just a syntax difference on how to work with another.

Anton
  • 3,587
  • 2
  • 12
  • 27