cloudhsmv2

package
v4.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 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. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// A map of tags assigned to the resource, including those inherited from the provider .
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
	// 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

func (*Cluster) ElementType() reflect.Type

func (*Cluster) ToClusterOutput

func (i *Cluster) ToClusterOutput() ClusterOutput

func (*Cluster) ToClusterOutputWithContext

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

func (*Cluster) ToClusterPtrOutput

func (i *Cluster) ToClusterPtrOutput() ClusterPtrOutput

func (*Cluster) ToClusterPtrOutputWithContext

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. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// A map of tags assigned to the resource, including those inherited from the provider .
	TagsAll pulumi.StringMapInput
}

The set of arguments for constructing a Cluster resource.

func (ClusterArgs) ElementType

func (ClusterArgs) ElementType() reflect.Type

type ClusterArray

type ClusterArray []ClusterInput

func (ClusterArray) ElementType

func (ClusterArray) ElementType() reflect.Type

func (ClusterArray) ToClusterArrayOutput

func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArray) ToClusterArrayOutputWithContext

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

type ClusterArrayInput

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

type ClusterArrayOutput struct{ *pulumi.OutputState }

func (ClusterArrayOutput) ElementType

func (ClusterArrayOutput) ElementType() reflect.Type

func (ClusterArrayOutput) Index

func (ClusterArrayOutput) ToClusterArrayOutput

func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArrayOutput) ToClusterArrayOutputWithContext

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

type ClusterInput interface {
	pulumi.Input

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

type ClusterMap

type ClusterMap map[string]ClusterInput

func (ClusterMap) ElementType

func (ClusterMap) ElementType() reflect.Type

func (ClusterMap) ToClusterMapOutput

func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput

func (ClusterMap) ToClusterMapOutputWithContext

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

type ClusterMapInput

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

type ClusterMapOutput struct{ *pulumi.OutputState }

func (ClusterMapOutput) ElementType

func (ClusterMapOutput) ElementType() reflect.Type

func (ClusterMapOutput) MapIndex

func (ClusterMapOutput) ToClusterMapOutput

func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput

func (ClusterMapOutput) ToClusterMapOutputWithContext

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

type ClusterOutput

type ClusterOutput struct{ *pulumi.OutputState }

func (ClusterOutput) ElementType

func (ClusterOutput) ElementType() reflect.Type

func (ClusterOutput) ToClusterOutput

func (o ClusterOutput) ToClusterOutput() ClusterOutput

func (ClusterOutput) ToClusterOutputWithContext

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

func (ClusterOutput) ToClusterPtrOutput

func (o ClusterOutput) ToClusterPtrOutput() ClusterPtrOutput

func (ClusterOutput) ToClusterPtrOutputWithContext

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

type ClusterPtrInput

type ClusterPtrInput interface {
	pulumi.Input

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

type ClusterPtrOutput

type ClusterPtrOutput struct{ *pulumi.OutputState }

func (ClusterPtrOutput) Elem added in v4.15.0

func (ClusterPtrOutput) ElementType

func (ClusterPtrOutput) ElementType() reflect.Type

func (ClusterPtrOutput) ToClusterPtrOutput

func (o ClusterPtrOutput) ToClusterPtrOutput() ClusterPtrOutput

func (ClusterPtrOutput) ToClusterPtrOutputWithContext

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. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// A map of tags assigned to the resource, including those inherited from the provider .
	TagsAll 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/v4/go/aws/cloudhsmv2"
"github.com/pulumi/pulumi/sdk/v3/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

func (*Hsm) ElementType() reflect.Type

func (*Hsm) ToHsmOutput

func (i *Hsm) ToHsmOutput() HsmOutput

func (*Hsm) ToHsmOutputWithContext

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

func (*Hsm) ToHsmPtrOutput

func (i *Hsm) ToHsmPtrOutput() HsmPtrOutput

func (*Hsm) ToHsmPtrOutputWithContext

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

type HsmArray []HsmInput

func (HsmArray) ElementType

func (HsmArray) ElementType() reflect.Type

func (HsmArray) ToHsmArrayOutput

func (i HsmArray) ToHsmArrayOutput() HsmArrayOutput

func (HsmArray) ToHsmArrayOutputWithContext

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

type HsmArrayInput

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

type HsmArrayOutput struct{ *pulumi.OutputState }

func (HsmArrayOutput) ElementType

func (HsmArrayOutput) ElementType() reflect.Type

func (HsmArrayOutput) Index

func (HsmArrayOutput) ToHsmArrayOutput

func (o HsmArrayOutput) ToHsmArrayOutput() HsmArrayOutput

func (HsmArrayOutput) ToHsmArrayOutputWithContext

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

type HsmInput

type HsmInput interface {
	pulumi.Input

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

type HsmMap

type HsmMap map[string]HsmInput

func (HsmMap) ElementType

func (HsmMap) ElementType() reflect.Type

func (HsmMap) ToHsmMapOutput

func (i HsmMap) ToHsmMapOutput() HsmMapOutput

func (HsmMap) ToHsmMapOutputWithContext

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

type HsmMapInput

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

type HsmMapOutput struct{ *pulumi.OutputState }

func (HsmMapOutput) ElementType

func (HsmMapOutput) ElementType() reflect.Type

func (HsmMapOutput) MapIndex

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

func (HsmMapOutput) ToHsmMapOutput

func (o HsmMapOutput) ToHsmMapOutput() HsmMapOutput

func (HsmMapOutput) ToHsmMapOutputWithContext

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

type HsmOutput

type HsmOutput struct{ *pulumi.OutputState }

func (HsmOutput) ElementType

func (HsmOutput) ElementType() reflect.Type

func (HsmOutput) ToHsmOutput

func (o HsmOutput) ToHsmOutput() HsmOutput

func (HsmOutput) ToHsmOutputWithContext

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

func (HsmOutput) ToHsmPtrOutput

func (o HsmOutput) ToHsmPtrOutput() HsmPtrOutput

func (HsmOutput) ToHsmPtrOutputWithContext

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

type HsmPtrInput

type HsmPtrInput interface {
	pulumi.Input

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

type HsmPtrOutput

type HsmPtrOutput struct{ *pulumi.OutputState }

func (HsmPtrOutput) Elem added in v4.15.0

func (o HsmPtrOutput) Elem() HsmOutput

func (HsmPtrOutput) ElementType

func (HsmPtrOutput) ElementType() reflect.Type

func (HsmPtrOutput) ToHsmPtrOutput

func (o HsmPtrOutput) ToHsmPtrOutput() HsmPtrOutput

func (HsmPtrOutput) ToHsmPtrOutputWithContext

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/v4/go/aws/cloudhsmv2"
"github.com/pulumi/pulumi/sdk/v3/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