HsmArgs

data class HsmArgs(val availabilityZone: Output<String>? = null, val clusterId: Output<String>? = null, val ipAddress: Output<String>? = null, val subnetId: Output<String>? = null) : ConvertibleToJava<HsmArgs>

Creates an HSM module in Amazon CloudHSM v2 cluster.

Example Usage

The following example below creates an HSM module in CloudHSM cluster.

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudhsmv2.Cloudhsmv2Functions;
import com.pulumi.aws.cloudhsmv2.inputs.GetClusterArgs;
import com.pulumi.aws.cloudhsmv2.Hsm;
import com.pulumi.aws.cloudhsmv2.HsmArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var cluster = Cloudhsmv2Functions.getCluster(GetClusterArgs.builder()
.clusterId(var_.cloudhsm_cluster_id())
.build());
var cloudhsmV2Hsm = new Hsm("cloudhsmV2Hsm", HsmArgs.builder()
.subnetId(cluster.applyValue(getClusterResult -> getClusterResult.subnetIds()[0]))
.clusterId(cluster.applyValue(getClusterResult -> getClusterResult.clusterId()))
.build());
}
}

Import

HSM modules can be imported using their HSM ID, e.g.,

$ pulumi import aws:cloudhsmv2/hsm:Hsm bar hsm-quo8dahtaca

Constructors

Link copied to clipboard
constructor(availabilityZone: Output<String>? = null, clusterId: Output<String>? = null, ipAddress: Output<String>? = null, subnetId: Output<String>? = null)

Properties

Link copied to clipboard
val availabilityZone: Output<String>? = null

The IDs of AZ in which HSM module will be located. Conflicts with subnet_id.

Link copied to clipboard
val clusterId: Output<String>? = null

The ID of Cloud HSM v2 cluster to which HSM will be added.

Link copied to clipboard
val ipAddress: Output<String>? = null

The IP address of HSM module. Must be within the CIDR of selected subnet.

Link copied to clipboard
val subnetId: Output<String>? = null

The ID of subnet in which HSM module will be located. Conflicts with availability_zone.

Functions

Link copied to clipboard
open override fun toJava(): HsmArgs