GetCluster
Use this data source to get information about a CloudHSM v2 cluster
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var cluster = Output.Create(Aws.CloudHsmV2.GetCluster.InvokeAsync(new Aws.CloudHsmV2.GetClusterArgs
{
ClusterId = "cluster-testclusterid",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/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
})
}import pulumi
import pulumi_aws as aws
cluster = aws.cloudhsmv2.get_cluster(cluster_id="cluster-testclusterid")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const cluster = pulumi.output(aws.cloudhsmv2.getCluster({
clusterId: "cluster-testclusterid",
}, { async: true }));Using GetCluster
function getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>function get_cluster(cluster_id=None, cluster_state=None, opts=None)func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)Note: This function is named
LookupClusterin the Go SDK.
public static class GetCluster {
public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Cluster
Id string The id of Cloud HSM v2 cluster.
- Cluster
State string The state of the cluster to be found.
- Cluster
Id string The id of Cloud HSM v2 cluster.
- Cluster
State string The state of the cluster to be found.
- cluster
Id string The id of Cloud HSM v2 cluster.
- cluster
State string The state of the cluster to be found.
- cluster_
id str The id of Cloud HSM v2 cluster.
- cluster_
state str The state of the cluster to be found.
GetCluster Result
The following output properties are available:
- Cluster
Certificates GetCluster Cluster Certificates 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.- Cluster
Id string - Cluster
State string - Id string
The provider-assigned unique ID for this managed resource.
- Security
Group stringId The ID of the security group associated with the CloudHSM cluster.
- Subnet
Ids List<string> The IDs of subnets in which cluster operates.
- Vpc
Id string The id of the VPC that the CloudHSM cluster resides in.
- Cluster
Certificates GetCluster Cluster Certificates 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.- Cluster
Id string - Cluster
State string - Id string
The provider-assigned unique ID for this managed resource.
- Security
Group stringId The ID of the security group associated with the CloudHSM cluster.
- Subnet
Ids []string The IDs of subnets in which cluster operates.
- Vpc
Id string The id of the VPC that the CloudHSM cluster resides in.
- cluster
Certificates GetCluster Cluster Certificates 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.- cluster
Id string - cluster
State string - id string
The provider-assigned unique ID for this managed resource.
- security
Group stringId The ID of the security group associated with the CloudHSM cluster.
- subnet
Ids string[] The IDs of subnets in which cluster operates.
- vpc
Id string The id of the VPC that the CloudHSM cluster resides in.
- cluster_
certificates Dict[GetCluster Cluster Certificates] 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.- cluster_
id str - cluster_
state str - id str
The provider-assigned unique ID for this managed resource.
- security_
group_ strid The ID of the security group associated with the CloudHSM cluster.
- subnet_
ids List[str] The IDs of subnets in which cluster operates.
- vpc_
id str The id of the VPC that the CloudHSM cluster resides in.
Supporting Types
GetClusterClusterCertificates
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.