Show / Hide Table of Contents

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]),
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Hsm
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.CloudHsmV2
Assembly: Pulumi.Aws.dll
Syntax
public class Hsm : CustomResource

Constructors

View Source

Hsm(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 Source

AvailabilityZone

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>
View Source

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>
View Source

HsmEniId

The id of the ENI interface allocated for HSM module.

Declaration
public Output<string> HsmEniId { get; }
Property Value
Type Description
Output<System.String>
View Source

HsmId

The id of the HSM module.

Declaration
public Output<string> HsmId { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

State

The state of the HSM module.

Declaration
public Output<string> State { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.