cloudhsmv2

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

nolint: lll

nolint: lll

nolint: lll

nolint: lll

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 ClusterClusterCertificatesOutput `pulumi:"clusterCertificates"`
	// The id of the CloudHSM cluster.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// The state of the 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 mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `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][1] and the [Amazon CloudHSM API Reference][2].

> **NOTE:** CloudHSM can take up to several minutes to be set up. Practically no single attribute can be updated except 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.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/cloudhsm_v2_cluster.html.markdown.

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.

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 mapping of tags to assign to the resource.
	Tags pulumi.MapInput
}

The set of arguments for constructing a Cluster resource.

func (ClusterArgs) ElementType added in v1.19.0

func (ClusterArgs) ElementType() reflect.Type

type ClusterClusterCertificates added in v1.19.0

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

type ClusterClusterCertificatesArgs added in v1.19.0

type ClusterClusterCertificatesArgs 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 (ClusterClusterCertificatesArgs) ElementType added in v1.19.0

func (ClusterClusterCertificatesArgs) ToClusterClusterCertificatesOutput added in v1.19.0

func (i ClusterClusterCertificatesArgs) ToClusterClusterCertificatesOutput() ClusterClusterCertificatesOutput

func (ClusterClusterCertificatesArgs) ToClusterClusterCertificatesOutputWithContext added in v1.19.0

func (i ClusterClusterCertificatesArgs) ToClusterClusterCertificatesOutputWithContext(ctx context.Context) ClusterClusterCertificatesOutput

func (ClusterClusterCertificatesArgs) ToClusterClusterCertificatesPtrOutput added in v1.19.0

func (i ClusterClusterCertificatesArgs) ToClusterClusterCertificatesPtrOutput() ClusterClusterCertificatesPtrOutput

func (ClusterClusterCertificatesArgs) ToClusterClusterCertificatesPtrOutputWithContext added in v1.19.0

func (i ClusterClusterCertificatesArgs) ToClusterClusterCertificatesPtrOutputWithContext(ctx context.Context) ClusterClusterCertificatesPtrOutput

type ClusterClusterCertificatesInput added in v1.19.0

type ClusterClusterCertificatesInput interface {
	pulumi.Input

	ToClusterClusterCertificatesOutput() ClusterClusterCertificatesOutput
	ToClusterClusterCertificatesOutputWithContext(context.Context) ClusterClusterCertificatesOutput
}

type ClusterClusterCertificatesOutput added in v1.19.0

type ClusterClusterCertificatesOutput struct{ *pulumi.OutputState }

func (ClusterClusterCertificatesOutput) AwsHardwareCertificate added in v1.19.0

func (o ClusterClusterCertificatesOutput) AwsHardwareCertificate() pulumi.StringPtrOutput

func (ClusterClusterCertificatesOutput) ClusterCertificate added in v1.19.0

func (ClusterClusterCertificatesOutput) ClusterCsr added in v1.19.0

func (ClusterClusterCertificatesOutput) ElementType added in v1.19.0

func (ClusterClusterCertificatesOutput) HsmCertificate added in v1.19.0

func (ClusterClusterCertificatesOutput) ManufacturerHardwareCertificate added in v1.19.0

func (o ClusterClusterCertificatesOutput) ManufacturerHardwareCertificate() pulumi.StringPtrOutput

func (ClusterClusterCertificatesOutput) ToClusterClusterCertificatesOutput added in v1.19.0

func (o ClusterClusterCertificatesOutput) ToClusterClusterCertificatesOutput() ClusterClusterCertificatesOutput

func (ClusterClusterCertificatesOutput) ToClusterClusterCertificatesOutputWithContext added in v1.19.0

func (o ClusterClusterCertificatesOutput) ToClusterClusterCertificatesOutputWithContext(ctx context.Context) ClusterClusterCertificatesOutput

func (ClusterClusterCertificatesOutput) ToClusterClusterCertificatesPtrOutput added in v1.19.0

func (o ClusterClusterCertificatesOutput) ToClusterClusterCertificatesPtrOutput() ClusterClusterCertificatesPtrOutput

func (ClusterClusterCertificatesOutput) ToClusterClusterCertificatesPtrOutputWithContext added in v1.19.0

func (o ClusterClusterCertificatesOutput) ToClusterClusterCertificatesPtrOutputWithContext(ctx context.Context) ClusterClusterCertificatesPtrOutput

type ClusterClusterCertificatesPtrInput added in v1.19.0

type ClusterClusterCertificatesPtrInput interface {
	pulumi.Input

	ToClusterClusterCertificatesPtrOutput() ClusterClusterCertificatesPtrOutput
	ToClusterClusterCertificatesPtrOutputWithContext(context.Context) ClusterClusterCertificatesPtrOutput
}

func ClusterClusterCertificatesPtr added in v1.19.0

type ClusterClusterCertificatesPtrOutput added in v1.19.0

type ClusterClusterCertificatesPtrOutput struct{ *pulumi.OutputState }

func (ClusterClusterCertificatesPtrOutput) AwsHardwareCertificate added in v1.19.0

func (o ClusterClusterCertificatesPtrOutput) AwsHardwareCertificate() pulumi.StringPtrOutput

func (ClusterClusterCertificatesPtrOutput) ClusterCertificate added in v1.19.0

func (ClusterClusterCertificatesPtrOutput) ClusterCsr added in v1.19.0

func (ClusterClusterCertificatesPtrOutput) Elem added in v1.19.0

func (ClusterClusterCertificatesPtrOutput) ElementType added in v1.19.0

func (ClusterClusterCertificatesPtrOutput) HsmCertificate added in v1.19.0

func (ClusterClusterCertificatesPtrOutput) ManufacturerHardwareCertificate added in v1.19.0

func (o ClusterClusterCertificatesPtrOutput) ManufacturerHardwareCertificate() pulumi.StringPtrOutput

func (ClusterClusterCertificatesPtrOutput) ToClusterClusterCertificatesPtrOutput added in v1.19.0

func (o ClusterClusterCertificatesPtrOutput) ToClusterClusterCertificatesPtrOutput() ClusterClusterCertificatesPtrOutput

func (ClusterClusterCertificatesPtrOutput) ToClusterClusterCertificatesPtrOutputWithContext added in v1.19.0

func (o ClusterClusterCertificatesPtrOutput) ToClusterClusterCertificatesPtrOutputWithContext(ctx context.Context) ClusterClusterCertificatesPtrOutput

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 ClusterClusterCertificatesPtrInput
	// The id of the CloudHSM cluster.
	ClusterId pulumi.StringPtrInput
	// The state of the 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 mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The id of the VPC that the CloudHSM cluster resides in.
	VpcId pulumi.StringPtrInput
}

func (ClusterState) ElementType added in v1.19.0

func (ClusterState) ElementType() reflect.Type

type GetClusterClusterCertificates added in v1.19.0

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 added in v1.19.0

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 added in v1.19.0

func (GetClusterClusterCertificatesArgs) ToGetClusterClusterCertificatesOutput added in v1.19.0

func (i GetClusterClusterCertificatesArgs) ToGetClusterClusterCertificatesOutput() GetClusterClusterCertificatesOutput

func (GetClusterClusterCertificatesArgs) ToGetClusterClusterCertificatesOutputWithContext added in v1.19.0

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

type GetClusterClusterCertificatesInput added in v1.19.0

type GetClusterClusterCertificatesInput interface {
	pulumi.Input

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

type GetClusterClusterCertificatesOutput added in v1.19.0

type GetClusterClusterCertificatesOutput struct{ *pulumi.OutputState }

func (GetClusterClusterCertificatesOutput) AwsHardwareCertificate added in v1.19.0

func (o GetClusterClusterCertificatesOutput) AwsHardwareCertificate() pulumi.StringOutput

func (GetClusterClusterCertificatesOutput) ClusterCertificate added in v1.19.0

func (GetClusterClusterCertificatesOutput) ClusterCsr added in v1.19.0

func (GetClusterClusterCertificatesOutput) ElementType added in v1.19.0

func (GetClusterClusterCertificatesOutput) HsmCertificate added in v1.19.0

func (GetClusterClusterCertificatesOutput) ManufacturerHardwareCertificate added in v1.19.0

func (o GetClusterClusterCertificatesOutput) ManufacturerHardwareCertificate() pulumi.StringOutput

func (GetClusterClusterCertificatesOutput) ToGetClusterClusterCertificatesOutput added in v1.19.0

func (o GetClusterClusterCertificatesOutput) ToGetClusterClusterCertificatesOutput() GetClusterClusterCertificatesOutput

func (GetClusterClusterCertificatesOutput) ToGetClusterClusterCertificatesOutputWithContext added in v1.19.0

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.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/cloudhsm_v2_hsm.html.markdown.

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.

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 added in v1.19.0

func (HsmArgs) ElementType() reflect.Type

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 added in v1.19.0

func (HsmState) ElementType() reflect.Type

type LookupClusterArgs added in v1.19.0

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 added in v1.19.0

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"`
	// id is 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

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/d/cloudhsm_v2_cluster.html.markdown.

Jump to

Keyboard shortcuts

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