cloudhsmv2

package
v3.38.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	pulumi.CustomResourceState

	// The list of cluster certificates.
	// * `cluster_certificates.0.cluster_certificate` - The cluster certificate issued (signed) by the issuing certificate authority (CA) of the cluster's owner.
	// * `cluster_certificates.0.cluster_csr` - The certificate signing request (CSR). Available only in `UNINITIALIZED` state after an HSM instance is added to the cluster.
	// * `cluster_certificates.0.aws_hardware_certificate` - The HSM hardware certificate issued (signed) by AWS CloudHSM.
	// * `cluster_certificates.0.hsm_certificate` - The HSM certificate issued (signed) by the HSM hardware.
	// * `cluster_certificates.0.manufacturer_hardware_certificate` - The HSM hardware certificate issued (signed) by the hardware manufacturer.
	ClusterCertificates ClusterClusterCertificateArrayOutput `pulumi:"clusterCertificates"`
	// The id of the CloudHSM cluster.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// The state of the CloudHSM cluster.
	ClusterState pulumi.StringOutput `pulumi:"clusterState"`
	// The type of HSM module in the cluster. Currently, only `hsm1.medium` is supported.
	HsmType pulumi.StringOutput `pulumi:"hsmType"`
	// The ID of the security group associated with the CloudHSM cluster.
	SecurityGroupId pulumi.StringOutput `pulumi:"securityGroupId"`
	// The id of Cloud HSM v2 cluster backup to be restored.
	SourceBackupIdentifier pulumi.StringPtrOutput `pulumi:"sourceBackupIdentifier"`
	// The IDs of subnets in which cluster will operate.
	SubnetIds pulumi.StringArrayOutput `pulumi:"subnetIds"`
	// A map of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// The id of the VPC that the CloudHSM cluster resides in.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
}

Creates an Amazon CloudHSM v2 cluster.

For information about CloudHSM v2, see the [AWS CloudHSM User Guide](https://docs.aws.amazon.com/cloudhsm/latest/userguide/introduction.html) and the [Amazon CloudHSM API Reference][2].

> **NOTE:** A CloudHSM Cluster can take several minutes to set up. Practically no single attribute can be updated, except for `tags`. If you need to delete a cluster, you have to remove its HSM modules first. To initialize cluster, you have to add an HSM instance to the cluster, then sign CSR and upload it.

func GetCluster

func GetCluster(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error)

GetCluster gets an existing Cluster resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCluster

func NewCluster(ctx *pulumi.Context,
	name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error)

NewCluster registers a new resource with the given unique name, arguments, and options.

func (*Cluster) ElementType added in v3.13.0

func (*Cluster) ElementType() reflect.Type

func (*Cluster) ToClusterOutput added in v3.13.0

func (i *Cluster) ToClusterOutput() ClusterOutput

func (*Cluster) ToClusterOutputWithContext added in v3.13.0

func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

func (*Cluster) ToClusterPtrOutput added in v3.25.0

func (i *Cluster) ToClusterPtrOutput() ClusterPtrOutput

func (*Cluster) ToClusterPtrOutputWithContext added in v3.25.0

func (i *Cluster) ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput

type ClusterArgs

type ClusterArgs struct {
	// The type of HSM module in the cluster. Currently, only `hsm1.medium` is supported.
	HsmType pulumi.StringInput
	// The id of Cloud HSM v2 cluster backup to be restored.
	SourceBackupIdentifier pulumi.StringPtrInput
	// The IDs of subnets in which cluster will operate.
	SubnetIds pulumi.StringArrayInput
	// A map of tags to assign to the resource.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Cluster resource.

func (ClusterArgs) ElementType

func (ClusterArgs) ElementType() reflect.Type

type ClusterArray added in v3.25.0

type ClusterArray []ClusterInput

func (ClusterArray) ElementType added in v3.25.0

func (ClusterArray) ElementType() reflect.Type

func (ClusterArray) ToClusterArrayOutput added in v3.25.0

func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArray) ToClusterArrayOutputWithContext added in v3.25.0

func (i ClusterArray) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterArrayInput added in v3.25.0

type ClusterArrayInput interface {
	pulumi.Input

	ToClusterArrayOutput() ClusterArrayOutput
	ToClusterArrayOutputWithContext(context.Context) ClusterArrayOutput
}

ClusterArrayInput is an input type that accepts ClusterArray and ClusterArrayOutput values. You can construct a concrete instance of `ClusterArrayInput` via:

ClusterArray{ ClusterArgs{...} }

type ClusterArrayOutput added in v3.25.0

type ClusterArrayOutput struct{ *pulumi.OutputState }

func (ClusterArrayOutput) ElementType added in v3.25.0

func (ClusterArrayOutput) ElementType() reflect.Type

func (ClusterArrayOutput) Index added in v3.25.0

func (ClusterArrayOutput) ToClusterArrayOutput added in v3.25.0

func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArrayOutput) ToClusterArrayOutputWithContext added in v3.25.0

func (o ClusterArrayOutput) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterClusterCertificate

type ClusterClusterCertificate struct {
	AwsHardwareCertificate          *string `pulumi:"awsHardwareCertificate"`
	ClusterCertificate              *string `pulumi:"clusterCertificate"`
	ClusterCsr                      *string `pulumi:"clusterCsr"`
	HsmCertificate                  *string `pulumi:"hsmCertificate"`
	ManufacturerHardwareCertificate *string `pulumi:"manufacturerHardwareCertificate"`
}

type ClusterClusterCertificateArgs

type ClusterClusterCertificateArgs struct {
	AwsHardwareCertificate          pulumi.StringPtrInput `pulumi:"awsHardwareCertificate"`
	ClusterCertificate              pulumi.StringPtrInput `pulumi:"clusterCertificate"`
	ClusterCsr                      pulumi.StringPtrInput `pulumi:"clusterCsr"`
	HsmCertificate                  pulumi.StringPtrInput `pulumi:"hsmCertificate"`
	ManufacturerHardwareCertificate pulumi.StringPtrInput `pulumi:"manufacturerHardwareCertificate"`
}

func (ClusterClusterCertificateArgs) ElementType

func (ClusterClusterCertificateArgs) ToClusterClusterCertificateOutput

func (i ClusterClusterCertificateArgs) ToClusterClusterCertificateOutput() ClusterClusterCertificateOutput

func (ClusterClusterCertificateArgs) ToClusterClusterCertificateOutputWithContext

func (i ClusterClusterCertificateArgs) ToClusterClusterCertificateOutputWithContext(ctx context.Context) ClusterClusterCertificateOutput

type ClusterClusterCertificateArray

type ClusterClusterCertificateArray []ClusterClusterCertificateInput

func (ClusterClusterCertificateArray) ElementType

func (ClusterClusterCertificateArray) ToClusterClusterCertificateArrayOutput

func (i ClusterClusterCertificateArray) ToClusterClusterCertificateArrayOutput() ClusterClusterCertificateArrayOutput

func (ClusterClusterCertificateArray) ToClusterClusterCertificateArrayOutputWithContext

func (i ClusterClusterCertificateArray) ToClusterClusterCertificateArrayOutputWithContext(ctx context.Context) ClusterClusterCertificateArrayOutput

type ClusterClusterCertificateArrayInput

type ClusterClusterCertificateArrayInput interface {
	pulumi.Input

	ToClusterClusterCertificateArrayOutput() ClusterClusterCertificateArrayOutput
	ToClusterClusterCertificateArrayOutputWithContext(context.Context) ClusterClusterCertificateArrayOutput
}

ClusterClusterCertificateArrayInput is an input type that accepts ClusterClusterCertificateArray and ClusterClusterCertificateArrayOutput values. You can construct a concrete instance of `ClusterClusterCertificateArrayInput` via:

ClusterClusterCertificateArray{ ClusterClusterCertificateArgs{...} }

type ClusterClusterCertificateArrayOutput

type ClusterClusterCertificateArrayOutput struct{ *pulumi.OutputState }

func (ClusterClusterCertificateArrayOutput) ElementType

func (ClusterClusterCertificateArrayOutput) Index

func (ClusterClusterCertificateArrayOutput) ToClusterClusterCertificateArrayOutput

func (o ClusterClusterCertificateArrayOutput) ToClusterClusterCertificateArrayOutput() ClusterClusterCertificateArrayOutput

func (ClusterClusterCertificateArrayOutput) ToClusterClusterCertificateArrayOutputWithContext

func (o ClusterClusterCertificateArrayOutput) ToClusterClusterCertificateArrayOutputWithContext(ctx context.Context) ClusterClusterCertificateArrayOutput

type ClusterClusterCertificateInput

type ClusterClusterCertificateInput interface {
	pulumi.Input

	ToClusterClusterCertificateOutput() ClusterClusterCertificateOutput
	ToClusterClusterCertificateOutputWithContext(context.Context) ClusterClusterCertificateOutput
}

ClusterClusterCertificateInput is an input type that accepts ClusterClusterCertificateArgs and ClusterClusterCertificateOutput values. You can construct a concrete instance of `ClusterClusterCertificateInput` via:

ClusterClusterCertificateArgs{...}

type ClusterClusterCertificateOutput

type ClusterClusterCertificateOutput struct{ *pulumi.OutputState }

func (ClusterClusterCertificateOutput) AwsHardwareCertificate

func (o ClusterClusterCertificateOutput) AwsHardwareCertificate() pulumi.StringPtrOutput

func (ClusterClusterCertificateOutput) ClusterCertificate

func (ClusterClusterCertificateOutput) ClusterCsr

func (ClusterClusterCertificateOutput) ElementType

func (ClusterClusterCertificateOutput) HsmCertificate

func (ClusterClusterCertificateOutput) ManufacturerHardwareCertificate

func (o ClusterClusterCertificateOutput) ManufacturerHardwareCertificate() pulumi.StringPtrOutput

func (ClusterClusterCertificateOutput) ToClusterClusterCertificateOutput

func (o ClusterClusterCertificateOutput) ToClusterClusterCertificateOutput() ClusterClusterCertificateOutput

func (ClusterClusterCertificateOutput) ToClusterClusterCertificateOutputWithContext

func (o ClusterClusterCertificateOutput) ToClusterClusterCertificateOutputWithContext(ctx context.Context) ClusterClusterCertificateOutput

type ClusterInput added in v3.13.0

type ClusterInput interface {
	pulumi.Input

	ToClusterOutput() ClusterOutput
	ToClusterOutputWithContext(ctx context.Context) ClusterOutput
}

type ClusterMap added in v3.25.0

type ClusterMap map[string]ClusterInput

func (ClusterMap) ElementType added in v3.25.0

func (ClusterMap) ElementType() reflect.Type

func (ClusterMap) ToClusterMapOutput added in v3.25.0

func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput

func (ClusterMap) ToClusterMapOutputWithContext added in v3.25.0

func (i ClusterMap) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterMapInput added in v3.25.0

type ClusterMapInput interface {
	pulumi.Input

	ToClusterMapOutput() ClusterMapOutput
	ToClusterMapOutputWithContext(context.Context) ClusterMapOutput
}

ClusterMapInput is an input type that accepts ClusterMap and ClusterMapOutput values. You can construct a concrete instance of `ClusterMapInput` via:

ClusterMap{ "key": ClusterArgs{...} }

type ClusterMapOutput added in v3.25.0

type ClusterMapOutput struct{ *pulumi.OutputState }

func (ClusterMapOutput) ElementType added in v3.25.0

func (ClusterMapOutput) ElementType() reflect.Type

func (ClusterMapOutput) MapIndex added in v3.25.0

func (ClusterMapOutput) ToClusterMapOutput added in v3.25.0

func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput

func (ClusterMapOutput) ToClusterMapOutputWithContext added in v3.25.0

func (o ClusterMapOutput) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterOutput added in v3.13.0

type ClusterOutput struct {
	*pulumi.OutputState
}

func (ClusterOutput) ElementType added in v3.13.0

func (ClusterOutput) ElementType() reflect.Type

func (ClusterOutput) ToClusterOutput added in v3.13.0

func (o ClusterOutput) ToClusterOutput() ClusterOutput

func (ClusterOutput) ToClusterOutputWithContext added in v3.13.0

func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

func (ClusterOutput) ToClusterPtrOutput added in v3.25.0

func (o ClusterOutput) ToClusterPtrOutput() ClusterPtrOutput

func (ClusterOutput) ToClusterPtrOutputWithContext added in v3.25.0

func (o ClusterOutput) ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput

type ClusterPtrInput added in v3.25.0

type ClusterPtrInput interface {
	pulumi.Input

	ToClusterPtrOutput() ClusterPtrOutput
	ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput
}

type ClusterPtrOutput added in v3.25.0

type ClusterPtrOutput struct {
	*pulumi.OutputState
}

func (ClusterPtrOutput) ElementType added in v3.25.0

func (ClusterPtrOutput) ElementType() reflect.Type

func (ClusterPtrOutput) ToClusterPtrOutput added in v3.25.0

func (o ClusterPtrOutput) ToClusterPtrOutput() ClusterPtrOutput

func (ClusterPtrOutput) ToClusterPtrOutputWithContext added in v3.25.0

func (o ClusterPtrOutput) ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput

type ClusterState

type ClusterState struct {
	// The list of cluster certificates.
	// * `cluster_certificates.0.cluster_certificate` - The cluster certificate issued (signed) by the issuing certificate authority (CA) of the cluster's owner.
	// * `cluster_certificates.0.cluster_csr` - The certificate signing request (CSR). Available only in `UNINITIALIZED` state after an HSM instance is added to the cluster.
	// * `cluster_certificates.0.aws_hardware_certificate` - The HSM hardware certificate issued (signed) by AWS CloudHSM.
	// * `cluster_certificates.0.hsm_certificate` - The HSM certificate issued (signed) by the HSM hardware.
	// * `cluster_certificates.0.manufacturer_hardware_certificate` - The HSM hardware certificate issued (signed) by the hardware manufacturer.
	ClusterCertificates ClusterClusterCertificateArrayInput
	// The id of the CloudHSM cluster.
	ClusterId pulumi.StringPtrInput
	// The state of the CloudHSM cluster.
	ClusterState pulumi.StringPtrInput
	// The type of HSM module in the cluster. Currently, only `hsm1.medium` is supported.
	HsmType pulumi.StringPtrInput
	// The ID of the security group associated with the CloudHSM cluster.
	SecurityGroupId pulumi.StringPtrInput
	// The id of Cloud HSM v2 cluster backup to be restored.
	SourceBackupIdentifier pulumi.StringPtrInput
	// The IDs of subnets in which cluster will operate.
	SubnetIds pulumi.StringArrayInput
	// A map of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// The id of the VPC that the CloudHSM cluster resides in.
	VpcId pulumi.StringPtrInput
}

func (ClusterState) ElementType

func (ClusterState) ElementType() reflect.Type

type GetClusterClusterCertificates

type GetClusterClusterCertificates struct {
	AwsHardwareCertificate          string `pulumi:"awsHardwareCertificate"`
	ClusterCertificate              string `pulumi:"clusterCertificate"`
	ClusterCsr                      string `pulumi:"clusterCsr"`
	HsmCertificate                  string `pulumi:"hsmCertificate"`
	ManufacturerHardwareCertificate string `pulumi:"manufacturerHardwareCertificate"`
}

type GetClusterClusterCertificatesArgs

type GetClusterClusterCertificatesArgs struct {
	AwsHardwareCertificate          pulumi.StringInput `pulumi:"awsHardwareCertificate"`
	ClusterCertificate              pulumi.StringInput `pulumi:"clusterCertificate"`
	ClusterCsr                      pulumi.StringInput `pulumi:"clusterCsr"`
	HsmCertificate                  pulumi.StringInput `pulumi:"hsmCertificate"`
	ManufacturerHardwareCertificate pulumi.StringInput `pulumi:"manufacturerHardwareCertificate"`
}

func (GetClusterClusterCertificatesArgs) ElementType

func (GetClusterClusterCertificatesArgs) ToGetClusterClusterCertificatesOutput

func (i GetClusterClusterCertificatesArgs) ToGetClusterClusterCertificatesOutput() GetClusterClusterCertificatesOutput

func (GetClusterClusterCertificatesArgs) ToGetClusterClusterCertificatesOutputWithContext

func (i GetClusterClusterCertificatesArgs) ToGetClusterClusterCertificatesOutputWithContext(ctx context.Context) GetClusterClusterCertificatesOutput

type GetClusterClusterCertificatesInput

type GetClusterClusterCertificatesInput interface {
	pulumi.Input

	ToGetClusterClusterCertificatesOutput() GetClusterClusterCertificatesOutput
	ToGetClusterClusterCertificatesOutputWithContext(context.Context) GetClusterClusterCertificatesOutput
}

GetClusterClusterCertificatesInput is an input type that accepts GetClusterClusterCertificatesArgs and GetClusterClusterCertificatesOutput values. You can construct a concrete instance of `GetClusterClusterCertificatesInput` via:

GetClusterClusterCertificatesArgs{...}

type GetClusterClusterCertificatesOutput

type GetClusterClusterCertificatesOutput struct{ *pulumi.OutputState }

func (GetClusterClusterCertificatesOutput) AwsHardwareCertificate

func (o GetClusterClusterCertificatesOutput) AwsHardwareCertificate() pulumi.StringOutput

func (GetClusterClusterCertificatesOutput) ClusterCertificate

func (GetClusterClusterCertificatesOutput) ClusterCsr

func (GetClusterClusterCertificatesOutput) ElementType

func (GetClusterClusterCertificatesOutput) HsmCertificate

func (GetClusterClusterCertificatesOutput) ManufacturerHardwareCertificate

func (o GetClusterClusterCertificatesOutput) ManufacturerHardwareCertificate() pulumi.StringOutput

func (GetClusterClusterCertificatesOutput) ToGetClusterClusterCertificatesOutput

func (o GetClusterClusterCertificatesOutput) ToGetClusterClusterCertificatesOutput() GetClusterClusterCertificatesOutput

func (GetClusterClusterCertificatesOutput) ToGetClusterClusterCertificatesOutputWithContext

func (o GetClusterClusterCertificatesOutput) ToGetClusterClusterCertificatesOutputWithContext(ctx context.Context) GetClusterClusterCertificatesOutput

type Hsm

type Hsm struct {
	pulumi.CustomResourceState

	// The IDs of AZ in which HSM module will be located. Do not use together with subnet_id.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// The ID of Cloud HSM v2 cluster to which HSM will be added.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// The id of the ENI interface allocated for HSM module.
	HsmEniId pulumi.StringOutput `pulumi:"hsmEniId"`
	// The id of the HSM module.
	HsmId pulumi.StringOutput `pulumi:"hsmId"`
	// The state of the HSM module.
	HsmState pulumi.StringOutput `pulumi:"hsmState"`
	// The IP address of HSM module. Must be within the CIDR of selected subnet.
	IpAddress pulumi.StringOutput `pulumi:"ipAddress"`
	// The ID of subnet in which HSM module will be located.
	SubnetId pulumi.StringOutput `pulumi:"subnetId"`
}

Creates an HSM module in Amazon CloudHSM v2 cluster.

## Example Usage

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

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/cloudhsmv2"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cluster, err := cloudhsmv2.LookupCluster(ctx, &cloudhsmv2.LookupClusterArgs{
			ClusterId: _var.Cloudhsm_cluster_id,
		}, nil)
		if err != nil {
			return err
		}
		_, err = cloudhsmv2.NewHsm(ctx, "cloudhsmV2Hsm", &cloudhsmv2.HsmArgs{
			SubnetId:  pulumi.String(cluster.SubnetIds[0]),
			ClusterId: pulumi.String(cluster.ClusterId),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

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

```

func GetHsm

func GetHsm(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *HsmState, opts ...pulumi.ResourceOption) (*Hsm, error)

GetHsm gets an existing Hsm resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewHsm

func NewHsm(ctx *pulumi.Context,
	name string, args *HsmArgs, opts ...pulumi.ResourceOption) (*Hsm, error)

NewHsm registers a new resource with the given unique name, arguments, and options.

func (*Hsm) ElementType added in v3.13.0

func (*Hsm) ElementType() reflect.Type

func (*Hsm) ToHsmOutput added in v3.13.0

func (i *Hsm) ToHsmOutput() HsmOutput

func (*Hsm) ToHsmOutputWithContext added in v3.13.0

func (i *Hsm) ToHsmOutputWithContext(ctx context.Context) HsmOutput

func (*Hsm) ToHsmPtrOutput added in v3.25.0

func (i *Hsm) ToHsmPtrOutput() HsmPtrOutput

func (*Hsm) ToHsmPtrOutputWithContext added in v3.25.0

func (i *Hsm) ToHsmPtrOutputWithContext(ctx context.Context) HsmPtrOutput

type HsmArgs

type HsmArgs struct {
	// The IDs of AZ in which HSM module will be located. Do not use together with subnet_id.
	AvailabilityZone pulumi.StringPtrInput
	// The ID of Cloud HSM v2 cluster to which HSM will be added.
	ClusterId pulumi.StringInput
	// The IP address of HSM module. Must be within the CIDR of selected subnet.
	IpAddress pulumi.StringPtrInput
	// The ID of subnet in which HSM module will be located.
	SubnetId pulumi.StringPtrInput
}

The set of arguments for constructing a Hsm resource.

func (HsmArgs) ElementType

func (HsmArgs) ElementType() reflect.Type

type HsmArray added in v3.25.0

type HsmArray []HsmInput

func (HsmArray) ElementType added in v3.25.0

func (HsmArray) ElementType() reflect.Type

func (HsmArray) ToHsmArrayOutput added in v3.25.0

func (i HsmArray) ToHsmArrayOutput() HsmArrayOutput

func (HsmArray) ToHsmArrayOutputWithContext added in v3.25.0

func (i HsmArray) ToHsmArrayOutputWithContext(ctx context.Context) HsmArrayOutput

type HsmArrayInput added in v3.25.0

type HsmArrayInput interface {
	pulumi.Input

	ToHsmArrayOutput() HsmArrayOutput
	ToHsmArrayOutputWithContext(context.Context) HsmArrayOutput
}

HsmArrayInput is an input type that accepts HsmArray and HsmArrayOutput values. You can construct a concrete instance of `HsmArrayInput` via:

HsmArray{ HsmArgs{...} }

type HsmArrayOutput added in v3.25.0

type HsmArrayOutput struct{ *pulumi.OutputState }

func (HsmArrayOutput) ElementType added in v3.25.0

func (HsmArrayOutput) ElementType() reflect.Type

func (HsmArrayOutput) Index added in v3.25.0

func (HsmArrayOutput) ToHsmArrayOutput added in v3.25.0

func (o HsmArrayOutput) ToHsmArrayOutput() HsmArrayOutput

func (HsmArrayOutput) ToHsmArrayOutputWithContext added in v3.25.0

func (o HsmArrayOutput) ToHsmArrayOutputWithContext(ctx context.Context) HsmArrayOutput

type HsmInput added in v3.13.0

type HsmInput interface {
	pulumi.Input

	ToHsmOutput() HsmOutput
	ToHsmOutputWithContext(ctx context.Context) HsmOutput
}

type HsmMap added in v3.25.0

type HsmMap map[string]HsmInput

func (HsmMap) ElementType added in v3.25.0

func (HsmMap) ElementType() reflect.Type

func (HsmMap) ToHsmMapOutput added in v3.25.0

func (i HsmMap) ToHsmMapOutput() HsmMapOutput

func (HsmMap) ToHsmMapOutputWithContext added in v3.25.0

func (i HsmMap) ToHsmMapOutputWithContext(ctx context.Context) HsmMapOutput

type HsmMapInput added in v3.25.0

type HsmMapInput interface {
	pulumi.Input

	ToHsmMapOutput() HsmMapOutput
	ToHsmMapOutputWithContext(context.Context) HsmMapOutput
}

HsmMapInput is an input type that accepts HsmMap and HsmMapOutput values. You can construct a concrete instance of `HsmMapInput` via:

HsmMap{ "key": HsmArgs{...} }

type HsmMapOutput added in v3.25.0

type HsmMapOutput struct{ *pulumi.OutputState }

func (HsmMapOutput) ElementType added in v3.25.0

func (HsmMapOutput) ElementType() reflect.Type

func (HsmMapOutput) MapIndex added in v3.25.0

func (o HsmMapOutput) MapIndex(k pulumi.StringInput) HsmOutput

func (HsmMapOutput) ToHsmMapOutput added in v3.25.0

func (o HsmMapOutput) ToHsmMapOutput() HsmMapOutput

func (HsmMapOutput) ToHsmMapOutputWithContext added in v3.25.0

func (o HsmMapOutput) ToHsmMapOutputWithContext(ctx context.Context) HsmMapOutput

type HsmOutput added in v3.13.0

type HsmOutput struct {
	*pulumi.OutputState
}

func (HsmOutput) ElementType added in v3.13.0

func (HsmOutput) ElementType() reflect.Type

func (HsmOutput) ToHsmOutput added in v3.13.0

func (o HsmOutput) ToHsmOutput() HsmOutput

func (HsmOutput) ToHsmOutputWithContext added in v3.13.0

func (o HsmOutput) ToHsmOutputWithContext(ctx context.Context) HsmOutput

func (HsmOutput) ToHsmPtrOutput added in v3.25.0

func (o HsmOutput) ToHsmPtrOutput() HsmPtrOutput

func (HsmOutput) ToHsmPtrOutputWithContext added in v3.25.0

func (o HsmOutput) ToHsmPtrOutputWithContext(ctx context.Context) HsmPtrOutput

type HsmPtrInput added in v3.25.0

type HsmPtrInput interface {
	pulumi.Input

	ToHsmPtrOutput() HsmPtrOutput
	ToHsmPtrOutputWithContext(ctx context.Context) HsmPtrOutput
}

type HsmPtrOutput added in v3.25.0

type HsmPtrOutput struct {
	*pulumi.OutputState
}

func (HsmPtrOutput) ElementType added in v3.25.0

func (HsmPtrOutput) ElementType() reflect.Type

func (HsmPtrOutput) ToHsmPtrOutput added in v3.25.0

func (o HsmPtrOutput) ToHsmPtrOutput() HsmPtrOutput

func (HsmPtrOutput) ToHsmPtrOutputWithContext added in v3.25.0

func (o HsmPtrOutput) ToHsmPtrOutputWithContext(ctx context.Context) HsmPtrOutput

type HsmState

type HsmState struct {
	// The IDs of AZ in which HSM module will be located. Do not use together with subnet_id.
	AvailabilityZone pulumi.StringPtrInput
	// The ID of Cloud HSM v2 cluster to which HSM will be added.
	ClusterId pulumi.StringPtrInput
	// The id of the ENI interface allocated for HSM module.
	HsmEniId pulumi.StringPtrInput
	// The id of the HSM module.
	HsmId pulumi.StringPtrInput
	// The state of the HSM module.
	HsmState pulumi.StringPtrInput
	// The IP address of HSM module. Must be within the CIDR of selected subnet.
	IpAddress pulumi.StringPtrInput
	// The ID of subnet in which HSM module will be located.
	SubnetId pulumi.StringPtrInput
}

func (HsmState) ElementType

func (HsmState) ElementType() reflect.Type

type LookupClusterArgs

type LookupClusterArgs struct {
	// The id of Cloud HSM v2 cluster.
	ClusterId string `pulumi:"clusterId"`
	// The state of the cluster to be found.
	ClusterState *string `pulumi:"clusterState"`
}

A collection of arguments for invoking getCluster.

type LookupClusterResult

type LookupClusterResult struct {
	// The list of cluster certificates.
	// * `cluster_certificates.0.cluster_certificate` - The cluster certificate issued (signed) by the issuing certificate authority (CA) of the cluster's owner.
	// * `cluster_certificates.0.cluster_csr` - The certificate signing request (CSR). Available only in UNINITIALIZED state.
	// * `cluster_certificates.0.aws_hardware_certificate` - The HSM hardware certificate issued (signed) by AWS CloudHSM.
	// * `cluster_certificates.0.hsm_certificate` - The HSM certificate issued (signed) by the HSM hardware.
	// * `cluster_certificates.0.manufacturer_hardware_certificate` - The HSM hardware certificate issued (signed) by the hardware manufacturer.
	//   The number of available cluster certificates may vary depending on state of the cluster.
	ClusterCertificates GetClusterClusterCertificates `pulumi:"clusterCertificates"`
	ClusterId           string                        `pulumi:"clusterId"`
	ClusterState        string                        `pulumi:"clusterState"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The ID of the security group associated with the CloudHSM cluster.
	SecurityGroupId string `pulumi:"securityGroupId"`
	// The IDs of subnets in which cluster operates.
	SubnetIds []string `pulumi:"subnetIds"`
	// The id of the VPC that the CloudHSM cluster resides in.
	VpcId string `pulumi:"vpcId"`
}

A collection of values returned by getCluster.

func LookupCluster

func LookupCluster(ctx *pulumi.Context, args *LookupClusterArgs, opts ...pulumi.InvokeOption) (*LookupClusterResult, error)

Use this data source to get information about a CloudHSM v2 cluster

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/cloudhsmv2"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudhsmv2.LookupCluster(ctx, &cloudhsmv2.LookupClusterArgs{
			ClusterId: "cluster-testclusterid",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL