Documentation ¶
Index ¶
- type Cluster
- type ClusterArgs
- type ClusterArray
- type ClusterArrayInput
- type ClusterArrayOutput
- type ClusterClusterCertificate
- type ClusterClusterCertificateArgs
- func (ClusterClusterCertificateArgs) ElementType() reflect.Type
- func (i ClusterClusterCertificateArgs) ToClusterClusterCertificateOutput() ClusterClusterCertificateOutput
- func (i ClusterClusterCertificateArgs) ToClusterClusterCertificateOutputWithContext(ctx context.Context) ClusterClusterCertificateOutput
- type ClusterClusterCertificateArray
- func (ClusterClusterCertificateArray) ElementType() reflect.Type
- func (i ClusterClusterCertificateArray) ToClusterClusterCertificateArrayOutput() ClusterClusterCertificateArrayOutput
- func (i ClusterClusterCertificateArray) ToClusterClusterCertificateArrayOutputWithContext(ctx context.Context) ClusterClusterCertificateArrayOutput
- type ClusterClusterCertificateArrayInput
- type ClusterClusterCertificateArrayOutput
- func (ClusterClusterCertificateArrayOutput) ElementType() reflect.Type
- func (o ClusterClusterCertificateArrayOutput) Index(i pulumi.IntInput) ClusterClusterCertificateOutput
- func (o ClusterClusterCertificateArrayOutput) ToClusterClusterCertificateArrayOutput() ClusterClusterCertificateArrayOutput
- func (o ClusterClusterCertificateArrayOutput) ToClusterClusterCertificateArrayOutputWithContext(ctx context.Context) ClusterClusterCertificateArrayOutput
- type ClusterClusterCertificateInput
- type ClusterClusterCertificateOutput
- func (o ClusterClusterCertificateOutput) AwsHardwareCertificate() pulumi.StringPtrOutput
- func (o ClusterClusterCertificateOutput) ClusterCertificate() pulumi.StringPtrOutput
- func (o ClusterClusterCertificateOutput) ClusterCsr() pulumi.StringPtrOutput
- func (ClusterClusterCertificateOutput) ElementType() reflect.Type
- func (o ClusterClusterCertificateOutput) HsmCertificate() pulumi.StringPtrOutput
- func (o ClusterClusterCertificateOutput) ManufacturerHardwareCertificate() pulumi.StringPtrOutput
- func (o ClusterClusterCertificateOutput) ToClusterClusterCertificateOutput() ClusterClusterCertificateOutput
- func (o ClusterClusterCertificateOutput) ToClusterClusterCertificateOutputWithContext(ctx context.Context) ClusterClusterCertificateOutput
- type ClusterInput
- type ClusterMap
- type ClusterMapInput
- type ClusterMapOutput
- type ClusterOutput
- func (o ClusterOutput) ClusterCertificates() ClusterClusterCertificateArrayOutput
- func (o ClusterOutput) ClusterId() pulumi.StringOutput
- func (o ClusterOutput) ClusterState() pulumi.StringOutput
- func (ClusterOutput) ElementType() reflect.Type
- func (o ClusterOutput) HsmType() pulumi.StringOutput
- func (o ClusterOutput) SecurityGroupId() pulumi.StringOutput
- func (o ClusterOutput) SourceBackupIdentifier() pulumi.StringPtrOutput
- func (o ClusterOutput) SubnetIds() pulumi.StringArrayOutput
- func (o ClusterOutput) Tags() pulumi.StringMapOutput
- func (o ClusterOutput) TagsAll() pulumi.StringMapOutput
- func (o ClusterOutput) ToClusterOutput() ClusterOutput
- func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
- func (o ClusterOutput) VpcId() pulumi.StringOutput
- type ClusterState
- type GetClusterClusterCertificate
- type GetClusterClusterCertificateArgs
- func (GetClusterClusterCertificateArgs) ElementType() reflect.Type
- func (i GetClusterClusterCertificateArgs) ToGetClusterClusterCertificateOutput() GetClusterClusterCertificateOutput
- func (i GetClusterClusterCertificateArgs) ToGetClusterClusterCertificateOutputWithContext(ctx context.Context) GetClusterClusterCertificateOutput
- type GetClusterClusterCertificateArray
- func (GetClusterClusterCertificateArray) ElementType() reflect.Type
- func (i GetClusterClusterCertificateArray) ToGetClusterClusterCertificateArrayOutput() GetClusterClusterCertificateArrayOutput
- func (i GetClusterClusterCertificateArray) ToGetClusterClusterCertificateArrayOutputWithContext(ctx context.Context) GetClusterClusterCertificateArrayOutput
- type GetClusterClusterCertificateArrayInput
- type GetClusterClusterCertificateArrayOutput
- func (GetClusterClusterCertificateArrayOutput) ElementType() reflect.Type
- func (o GetClusterClusterCertificateArrayOutput) Index(i pulumi.IntInput) GetClusterClusterCertificateOutput
- func (o GetClusterClusterCertificateArrayOutput) ToGetClusterClusterCertificateArrayOutput() GetClusterClusterCertificateArrayOutput
- func (o GetClusterClusterCertificateArrayOutput) ToGetClusterClusterCertificateArrayOutputWithContext(ctx context.Context) GetClusterClusterCertificateArrayOutput
- type GetClusterClusterCertificateInput
- type GetClusterClusterCertificateOutput
- func (o GetClusterClusterCertificateOutput) AwsHardwareCertificate() pulumi.StringOutput
- func (o GetClusterClusterCertificateOutput) ClusterCertificate() pulumi.StringOutput
- func (o GetClusterClusterCertificateOutput) ClusterCsr() pulumi.StringOutput
- func (GetClusterClusterCertificateOutput) ElementType() reflect.Type
- func (o GetClusterClusterCertificateOutput) HsmCertificate() pulumi.StringOutput
- func (o GetClusterClusterCertificateOutput) ManufacturerHardwareCertificate() pulumi.StringOutput
- func (o GetClusterClusterCertificateOutput) ToGetClusterClusterCertificateOutput() GetClusterClusterCertificateOutput
- func (o GetClusterClusterCertificateOutput) ToGetClusterClusterCertificateOutputWithContext(ctx context.Context) GetClusterClusterCertificateOutput
- type Hsm
- type HsmArgs
- type HsmArray
- type HsmArrayInput
- type HsmArrayOutput
- type HsmInput
- type HsmMap
- type HsmMapInput
- type HsmMapOutput
- type HsmOutput
- func (o HsmOutput) AvailabilityZone() pulumi.StringOutput
- func (o HsmOutput) ClusterId() pulumi.StringOutput
- func (HsmOutput) ElementType() reflect.Type
- func (o HsmOutput) HsmEniId() pulumi.StringOutput
- func (o HsmOutput) HsmId() pulumi.StringOutput
- func (o HsmOutput) HsmState() pulumi.StringOutput
- func (o HsmOutput) IpAddress() pulumi.StringOutput
- func (o HsmOutput) SubnetId() pulumi.StringOutput
- func (o HsmOutput) ToHsmOutput() HsmOutput
- func (o HsmOutput) ToHsmOutputWithContext(ctx context.Context) HsmOutput
- type HsmState
- type LookupClusterArgs
- type LookupClusterOutputArgs
- type LookupClusterResult
- type LookupClusterResultOutput
- func (o LookupClusterResultOutput) ClusterCertificates() GetClusterClusterCertificateArrayOutput
- func (o LookupClusterResultOutput) ClusterId() pulumi.StringOutput
- func (o LookupClusterResultOutput) ClusterState() pulumi.StringOutput
- func (LookupClusterResultOutput) ElementType() reflect.Type
- func (o LookupClusterResultOutput) Id() pulumi.StringOutput
- func (o LookupClusterResultOutput) SecurityGroupId() pulumi.StringOutput
- func (o LookupClusterResultOutput) SubnetIds() pulumi.StringArrayOutput
- func (o LookupClusterResultOutput) ToLookupClusterResultOutput() LookupClusterResultOutput
- func (o LookupClusterResultOutput) ToLookupClusterResultOutputWithContext(ctx context.Context) LookupClusterResultOutput
- func (o LookupClusterResultOutput) VpcId() pulumi.StringOutput
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"` // 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 `defaultTags` configuration block. 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.
## Import
Using `pulumi import`, import CloudHSM v2 Clusters using the cluster `id`. For example:
```sh
$ pulumi import aws:cloudhsmv2/cluster:Cluster test_cluster cluster-aeb282a201
```
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) ToClusterOutput ¶
func (i *Cluster) ToClusterOutput() ClusterOutput
func (*Cluster) ToClusterOutputWithContext ¶
func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
type ClusterArgs ¶
type ClusterArgs struct { // The type of HSM module in the cluster. Currently, only `hsm1.medium` is supported. HsmType pulumi.StringInput // 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 }
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 (o ClusterArrayOutput) Index(i pulumi.IntInput) ClusterOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (ClusterClusterCertificateArrayOutput) Index ¶
func (o ClusterClusterCertificateArrayOutput) Index(i pulumi.IntInput) ClusterClusterCertificateOutput
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 (o ClusterClusterCertificateOutput) ClusterCertificate() pulumi.StringPtrOutput
func (ClusterClusterCertificateOutput) ClusterCsr ¶
func (o ClusterClusterCertificateOutput) ClusterCsr() pulumi.StringPtrOutput
func (ClusterClusterCertificateOutput) ElementType ¶
func (ClusterClusterCertificateOutput) ElementType() reflect.Type
func (ClusterClusterCertificateOutput) HsmCertificate ¶
func (o ClusterClusterCertificateOutput) HsmCertificate() pulumi.StringPtrOutput
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 (o ClusterMapOutput) MapIndex(k pulumi.StringInput) ClusterOutput
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) ClusterCertificates ¶
func (o ClusterOutput) ClusterCertificates() ClusterClusterCertificateArrayOutput
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.
func (ClusterOutput) ClusterId ¶
func (o ClusterOutput) ClusterId() pulumi.StringOutput
The id of the CloudHSM cluster.
func (ClusterOutput) ClusterState ¶
func (o ClusterOutput) ClusterState() pulumi.StringOutput
The state of the CloudHSM cluster.
func (ClusterOutput) ElementType ¶
func (ClusterOutput) ElementType() reflect.Type
func (ClusterOutput) HsmType ¶
func (o ClusterOutput) HsmType() pulumi.StringOutput
The type of HSM module in the cluster. Currently, only `hsm1.medium` is supported.
func (ClusterOutput) SecurityGroupId ¶
func (o ClusterOutput) SecurityGroupId() pulumi.StringOutput
The ID of the security group associated with the CloudHSM cluster.
func (ClusterOutput) SourceBackupIdentifier ¶
func (o ClusterOutput) SourceBackupIdentifier() pulumi.StringPtrOutput
ID of Cloud HSM v2 cluster backup to be restored.
func (ClusterOutput) SubnetIds ¶
func (o ClusterOutput) SubnetIds() pulumi.StringArrayOutput
The IDs of subnets in which cluster will operate.
func (ClusterOutput) Tags ¶
func (o ClusterOutput) Tags() pulumi.StringMapOutput
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.
func (ClusterOutput) TagsAll ¶
func (o ClusterOutput) TagsAll() pulumi.StringMapOutput
A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
func (ClusterOutput) ToClusterOutput ¶
func (o ClusterOutput) ToClusterOutput() ClusterOutput
func (ClusterOutput) ToClusterOutputWithContext ¶
func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
func (ClusterOutput) VpcId ¶
func (o ClusterOutput) VpcId() pulumi.StringOutput
The id of the VPC that the CloudHSM cluster resides in.
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 // 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 `defaultTags` configuration block. 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 GetClusterClusterCertificate ¶
type GetClusterClusterCertificate struct { AwsHardwareCertificate string `pulumi:"awsHardwareCertificate"` ClusterCertificate string `pulumi:"clusterCertificate"` ClusterCsr string `pulumi:"clusterCsr"` HsmCertificate string `pulumi:"hsmCertificate"` ManufacturerHardwareCertificate string `pulumi:"manufacturerHardwareCertificate"` }
type GetClusterClusterCertificateArgs ¶
type GetClusterClusterCertificateArgs 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 (GetClusterClusterCertificateArgs) ElementType ¶
func (GetClusterClusterCertificateArgs) ElementType() reflect.Type
func (GetClusterClusterCertificateArgs) ToGetClusterClusterCertificateOutput ¶
func (i GetClusterClusterCertificateArgs) ToGetClusterClusterCertificateOutput() GetClusterClusterCertificateOutput
func (GetClusterClusterCertificateArgs) ToGetClusterClusterCertificateOutputWithContext ¶
func (i GetClusterClusterCertificateArgs) ToGetClusterClusterCertificateOutputWithContext(ctx context.Context) GetClusterClusterCertificateOutput
type GetClusterClusterCertificateArray ¶
type GetClusterClusterCertificateArray []GetClusterClusterCertificateInput
func (GetClusterClusterCertificateArray) ElementType ¶
func (GetClusterClusterCertificateArray) ElementType() reflect.Type
func (GetClusterClusterCertificateArray) ToGetClusterClusterCertificateArrayOutput ¶
func (i GetClusterClusterCertificateArray) ToGetClusterClusterCertificateArrayOutput() GetClusterClusterCertificateArrayOutput
func (GetClusterClusterCertificateArray) ToGetClusterClusterCertificateArrayOutputWithContext ¶
func (i GetClusterClusterCertificateArray) ToGetClusterClusterCertificateArrayOutputWithContext(ctx context.Context) GetClusterClusterCertificateArrayOutput
type GetClusterClusterCertificateArrayInput ¶
type GetClusterClusterCertificateArrayInput interface { pulumi.Input ToGetClusterClusterCertificateArrayOutput() GetClusterClusterCertificateArrayOutput ToGetClusterClusterCertificateArrayOutputWithContext(context.Context) GetClusterClusterCertificateArrayOutput }
GetClusterClusterCertificateArrayInput is an input type that accepts GetClusterClusterCertificateArray and GetClusterClusterCertificateArrayOutput values. You can construct a concrete instance of `GetClusterClusterCertificateArrayInput` via:
GetClusterClusterCertificateArray{ GetClusterClusterCertificateArgs{...} }
type GetClusterClusterCertificateArrayOutput ¶
type GetClusterClusterCertificateArrayOutput struct{ *pulumi.OutputState }
func (GetClusterClusterCertificateArrayOutput) ElementType ¶
func (GetClusterClusterCertificateArrayOutput) ElementType() reflect.Type
func (GetClusterClusterCertificateArrayOutput) ToGetClusterClusterCertificateArrayOutput ¶
func (o GetClusterClusterCertificateArrayOutput) ToGetClusterClusterCertificateArrayOutput() GetClusterClusterCertificateArrayOutput
func (GetClusterClusterCertificateArrayOutput) ToGetClusterClusterCertificateArrayOutputWithContext ¶
func (o GetClusterClusterCertificateArrayOutput) ToGetClusterClusterCertificateArrayOutputWithContext(ctx context.Context) GetClusterClusterCertificateArrayOutput
type GetClusterClusterCertificateInput ¶
type GetClusterClusterCertificateInput interface { pulumi.Input ToGetClusterClusterCertificateOutput() GetClusterClusterCertificateOutput ToGetClusterClusterCertificateOutputWithContext(context.Context) GetClusterClusterCertificateOutput }
GetClusterClusterCertificateInput is an input type that accepts GetClusterClusterCertificateArgs and GetClusterClusterCertificateOutput values. You can construct a concrete instance of `GetClusterClusterCertificateInput` via:
GetClusterClusterCertificateArgs{...}
type GetClusterClusterCertificateOutput ¶
type GetClusterClusterCertificateOutput struct{ *pulumi.OutputState }
func (GetClusterClusterCertificateOutput) AwsHardwareCertificate ¶
func (o GetClusterClusterCertificateOutput) AwsHardwareCertificate() pulumi.StringOutput
func (GetClusterClusterCertificateOutput) ClusterCertificate ¶
func (o GetClusterClusterCertificateOutput) ClusterCertificate() pulumi.StringOutput
func (GetClusterClusterCertificateOutput) ClusterCsr ¶
func (o GetClusterClusterCertificateOutput) ClusterCsr() pulumi.StringOutput
func (GetClusterClusterCertificateOutput) ElementType ¶
func (GetClusterClusterCertificateOutput) ElementType() reflect.Type
func (GetClusterClusterCertificateOutput) HsmCertificate ¶
func (o GetClusterClusterCertificateOutput) HsmCertificate() pulumi.StringOutput
func (GetClusterClusterCertificateOutput) ManufacturerHardwareCertificate ¶
func (o GetClusterClusterCertificateOutput) ManufacturerHardwareCertificate() pulumi.StringOutput
func (GetClusterClusterCertificateOutput) ToGetClusterClusterCertificateOutput ¶
func (o GetClusterClusterCertificateOutput) ToGetClusterClusterCertificateOutput() GetClusterClusterCertificateOutput
func (GetClusterClusterCertificateOutput) ToGetClusterClusterCertificateOutputWithContext ¶
func (o GetClusterClusterCertificateOutput) ToGetClusterClusterCertificateOutputWithContext(ctx context.Context) GetClusterClusterCertificateOutput
type Hsm ¶
type Hsm struct { pulumi.CustomResourceState // The IDs of AZ in which HSM module will be located. Conflicts with `subnetId`. 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. Conflicts with `availabilityZone`. 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/v6/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
Using `pulumi import`, import HSM modules using their HSM ID. For example:
```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) ToHsmOutput ¶
type HsmArgs ¶
type HsmArgs struct { // The IDs of AZ in which HSM module will be located. Conflicts with `subnetId`. 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. Conflicts with `availabilityZone`. SubnetId pulumi.StringPtrInput }
The set of arguments for constructing a Hsm resource.
func (HsmArgs) ElementType ¶
type HsmArray ¶
type HsmArray []HsmInput
func (HsmArray) ElementType ¶
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) ToHsmArrayOutput ¶
func (o HsmArrayOutput) ToHsmArrayOutput() HsmArrayOutput
func (HsmArrayOutput) ToHsmArrayOutputWithContext ¶
func (o HsmArrayOutput) ToHsmArrayOutputWithContext(ctx context.Context) HsmArrayOutput
type HsmMap ¶
func (HsmMap) ElementType ¶
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) AvailabilityZone ¶
func (o HsmOutput) AvailabilityZone() pulumi.StringOutput
The IDs of AZ in which HSM module will be located. Conflicts with `subnetId`.
func (HsmOutput) ClusterId ¶
func (o HsmOutput) ClusterId() pulumi.StringOutput
The ID of Cloud HSM v2 cluster to which HSM will be added.
func (HsmOutput) ElementType ¶
func (HsmOutput) HsmEniId ¶
func (o HsmOutput) HsmEniId() pulumi.StringOutput
The id of the ENI interface allocated for HSM module.
func (HsmOutput) HsmState ¶
func (o HsmOutput) HsmState() pulumi.StringOutput
The state of the HSM module.
func (HsmOutput) IpAddress ¶
func (o HsmOutput) IpAddress() pulumi.StringOutput
The IP address of HSM module. Must be within the CIDR of selected subnet.
func (HsmOutput) SubnetId ¶
func (o HsmOutput) SubnetId() pulumi.StringOutput
The ID of subnet in which HSM module will be located. Conflicts with `availabilityZone`.
func (HsmOutput) ToHsmOutput ¶
type HsmState ¶
type HsmState struct { // The IDs of AZ in which HSM module will be located. Conflicts with `subnetId`. 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. Conflicts with `availabilityZone`. SubnetId pulumi.StringPtrInput }
func (HsmState) ElementType ¶
type LookupClusterArgs ¶
type LookupClusterArgs struct { // ID of Cloud HSM v2 cluster. ClusterId string `pulumi:"clusterId"` // State of the cluster to be found. ClusterState *string `pulumi:"clusterState"` }
A collection of arguments for invoking getCluster.
type LookupClusterOutputArgs ¶
type LookupClusterOutputArgs struct { // ID of Cloud HSM v2 cluster. ClusterId pulumi.StringInput `pulumi:"clusterId"` // State of the cluster to be found. ClusterState pulumi.StringPtrInput `pulumi:"clusterState"` }
A collection of arguments for invoking getCluster.
func (LookupClusterOutputArgs) ElementType ¶
func (LookupClusterOutputArgs) ElementType() reflect.Type
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 []GetClusterClusterCertificate `pulumi:"clusterCertificates"` ClusterId string `pulumi:"clusterId"` ClusterState string `pulumi:"clusterState"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // ID of the security group associated with the CloudHSM cluster. SecurityGroupId string `pulumi:"securityGroupId"` // IDs of subnets in which cluster operates. SubnetIds []string `pulumi:"subnetIds"` // 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/v6/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 }) }
```
type LookupClusterResultOutput ¶
type LookupClusterResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getCluster.
func LookupClusterOutput ¶
func LookupClusterOutput(ctx *pulumi.Context, args LookupClusterOutputArgs, opts ...pulumi.InvokeOption) LookupClusterResultOutput
func (LookupClusterResultOutput) ClusterCertificates ¶
func (o LookupClusterResultOutput) ClusterCertificates() GetClusterClusterCertificateArrayOutput
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.
func (LookupClusterResultOutput) ClusterId ¶
func (o LookupClusterResultOutput) ClusterId() pulumi.StringOutput
func (LookupClusterResultOutput) ClusterState ¶
func (o LookupClusterResultOutput) ClusterState() pulumi.StringOutput
func (LookupClusterResultOutput) ElementType ¶
func (LookupClusterResultOutput) ElementType() reflect.Type
func (LookupClusterResultOutput) Id ¶
func (o LookupClusterResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupClusterResultOutput) SecurityGroupId ¶
func (o LookupClusterResultOutput) SecurityGroupId() pulumi.StringOutput
ID of the security group associated with the CloudHSM cluster.
func (LookupClusterResultOutput) SubnetIds ¶
func (o LookupClusterResultOutput) SubnetIds() pulumi.StringArrayOutput
IDs of subnets in which cluster operates.
func (LookupClusterResultOutput) ToLookupClusterResultOutput ¶
func (o LookupClusterResultOutput) ToLookupClusterResultOutput() LookupClusterResultOutput
func (LookupClusterResultOutput) ToLookupClusterResultOutputWithContext ¶
func (o LookupClusterResultOutput) ToLookupClusterResultOutputWithContext(ctx context.Context) LookupClusterResultOutput
func (LookupClusterResultOutput) VpcId ¶
func (o LookupClusterResultOutput) VpcId() pulumi.StringOutput
ID of the VPC that the CloudHSM cluster resides in.