Class Hsm
Creates an HSM module in Amazon CloudHSM v2 cluster.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var cluster = Output.Create(Aws.CloudHsmV2.GetCluster.InvokeAsync(new Aws.CloudHsmV2.GetClusterArgs
{
ClusterId = @var.Cloudhsm_cluster_id,
}));
var cloudhsmV2Hsm = new Aws.CloudHsmV2.Hsm("cloudhsmV2Hsm", new Aws.CloudHsmV2.HsmArgs
{
ClusterId = cluster.Apply(cluster => cluster.ClusterId),
SubnetId = cluster.Apply(cluster => cluster.SubnetIds[0]),
});
}
}
Inherited Members
Namespace: Pulumi.Aws.CloudHsmV2
Assembly: Pulumi.Aws.dll
Syntax
public class Hsm : CustomResource
Constructors
View SourceHsm(String, HsmArgs, CustomResourceOptions)
Create a Hsm resource with the given unique name, arguments, and options.
Declaration
public Hsm(string name, HsmArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| HsmArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAvailabilityZone
The IDs of AZ in which HSM module will be located. Do not use together with subnet_id.
Declaration
public Output<string> AvailabilityZone { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ClusterId
The ID of Cloud HSM v2 cluster to which HSM will be added.
Declaration
public Output<string> ClusterId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
HsmEniId
The id of the ENI interface allocated for HSM module.
Declaration
public Output<string> HsmEniId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
HsmId
The id of the HSM module.
Declaration
public Output<string> HsmId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IpAddress
The IP address of HSM module. Must be within the CIDR of selected subnet.
Declaration
public Output<string> IpAddress { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
State
The state of the HSM module.
Declaration
public Output<string> State { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SubnetId
The ID of subnet in which HSM module will be located.
Declaration
public Output<string> SubnetId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, HsmState, CustomResourceOptions)
Get an existing Hsm resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Hsm Get(string name, Input<string> id, HsmState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| HsmState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Hsm |