CloudHsmClusterArgs

data class CloudHsmClusterArgs(val autoGeneratedDomainNameLabelScope: Output<String>? = null, val cloudHsmClusterName: Output<String>? = null, val hsms: Output<List<CloudHsmPropertiesArgs>>? = null, val location: Output<String>? = null, val privateEndpointConnections: Output<List<PrivateEndpointConnectionArgs>>? = null, val provisioningState: Output<Either<String, ProvisioningState>>? = null, val publicNetworkAccess: Output<String>? = null, val resourceGroupName: Output<String>? = null, val securityDomain: Output<CloudHsmClusterSecurityDomainPropertiesArgs>? = null, val sku: Output<CloudHsmClusterSkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CloudHsmClusterArgs>

Resource information with extended details. Uses Azure REST API version 2022-08-31-preview. Other available API versions: 2023-12-10-preview, 2024-06-30-preview.

Example Usage

CloudHsmCluster_CreateOrUpdate_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var cloudHsmCluster = new AzureNative.HardwareSecurityModules.CloudHsmCluster("cloudHsmCluster", new()
{
CloudHsmClusterName = "chsm1",
Location = "eastus2",
ResourceGroupName = "rgcloudhsm",
SecurityDomain = new AzureNative.HardwareSecurityModules.Inputs.CloudHsmClusterSecurityDomainPropertiesArgs
{
FipsState = 2,
},
Sku = new AzureNative.HardwareSecurityModules.Inputs.CloudHsmClusterSkuArgs
{
Family = AzureNative.HardwareSecurityModules.CloudHsmClusterSkuFamily.B,
Name = AzureNative.HardwareSecurityModules.CloudHsmClusterSkuName.Standard_B1,
},
Tags =
{
{ "Dept", "hsm" },
{ "Environment", "dogfood" },
},
});
});
package main
import (
hardwaresecuritymodules "github.com/pulumi/pulumi-azure-native-sdk/hardwaresecuritymodules/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hardwaresecuritymodules.NewCloudHsmCluster(ctx, "cloudHsmCluster", &hardwaresecuritymodules.CloudHsmClusterArgs{
CloudHsmClusterName: pulumi.String("chsm1"),
Location: pulumi.String("eastus2"),
ResourceGroupName: pulumi.String("rgcloudhsm"),
SecurityDomain: &hardwaresecuritymodules.CloudHsmClusterSecurityDomainPropertiesArgs{
FipsState: pulumi.Int(2),
},
Sku: &hardwaresecuritymodules.CloudHsmClusterSkuArgs{
Family: pulumi.String(hardwaresecuritymodules.CloudHsmClusterSkuFamilyB),
Name: hardwaresecuritymodules.CloudHsmClusterSkuName_Standard_B1,
},
Tags: pulumi.StringMap{
"Dept": pulumi.String("hsm"),
"Environment": pulumi.String("dogfood"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.hardwaresecuritymodules.CloudHsmCluster;
import com.pulumi.azurenative.hardwaresecuritymodules.CloudHsmClusterArgs;
import com.pulumi.azurenative.hardwaresecuritymodules.inputs.CloudHsmClusterSecurityDomainPropertiesArgs;
import com.pulumi.azurenative.hardwaresecuritymodules.inputs.CloudHsmClusterSkuArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var cloudHsmCluster = new CloudHsmCluster("cloudHsmCluster", CloudHsmClusterArgs.builder()
.cloudHsmClusterName("chsm1")
.location("eastus2")
.resourceGroupName("rgcloudhsm")
.securityDomain(CloudHsmClusterSecurityDomainPropertiesArgs.builder()
.fipsState(2)
.build())
.sku(CloudHsmClusterSkuArgs.builder()
.family("B")
.name("Standard_B1")
.build())
.tags(Map.ofEntries(
Map.entry("Dept", "hsm"),
Map.entry("Environment", "dogfood")
))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:hardwaresecuritymodules:CloudHsmCluster chsm1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}

Constructors

Link copied to clipboard
constructor(autoGeneratedDomainNameLabelScope: Output<String>? = null, cloudHsmClusterName: Output<String>? = null, hsms: Output<List<CloudHsmPropertiesArgs>>? = null, location: Output<String>? = null, privateEndpointConnections: Output<List<PrivateEndpointConnectionArgs>>? = null, provisioningState: Output<Either<String, ProvisioningState>>? = null, publicNetworkAccess: Output<String>? = null, resourceGroupName: Output<String>? = null, securityDomain: Output<CloudHsmClusterSecurityDomainPropertiesArgs>? = null, sku: Output<CloudHsmClusterSkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

The Cloud HSM Cluster's auto-generated Domain Name Label Scope

Link copied to clipboard
val cloudHsmClusterName: Output<String>? = null

The name of the Cloud HSM Cluster within the specified resource group. Cloud HSM Cluster names must be between 3 and 24 characters in length.

Link copied to clipboard
val hsms: Output<List<CloudHsmPropertiesArgs>>? = null

An array of Cloud HSM Cluster's HSMs

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard

List of private endpoint connection resources These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.

Link copied to clipboard
val provisioningState: Output<Either<String, ProvisioningState>>? = null

The Cloud HSM Cluster's provisioningState

Link copied to clipboard
val publicNetworkAccess: Output<String>? = null

The Cloud HSM Cluster public network access

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard

Security domain properties information for Cloud HSM cluster

Link copied to clipboard
val sku: Output<CloudHsmClusterSkuArgs>? = null

SKU details

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): CloudHsmClusterArgs