ManagedHsmArgs

data class ManagedHsmArgs(val location: Output<String>? = null, val name: Output<String>? = null, val properties: Output<ManagedHsmPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<ManagedHsmSkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ManagedHsmArgs>

Resource information with extended details. API Version: 2021-06-01-preview.

Example Usage

Create a new managed HSM Pool or update an existing managed HSM Pool

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managedHsm = new AzureNative.KeyVault.ManagedHsm("managedHsm", new()
{
Location = "westus",
Name = "hsm1",
Properties = new AzureNative.KeyVault.Inputs.ManagedHsmPropertiesArgs
{
EnablePurgeProtection = true,
EnableSoftDelete = true,
InitialAdminObjectIds = new[]
{
"00000000-0000-0000-0000-000000000000",
},
SoftDeleteRetentionInDays = 90,
TenantId = "00000000-0000-0000-0000-000000000000",
},
ResourceGroupName = "hsm-group",
Sku = new AzureNative.KeyVault.Inputs.ManagedHsmSkuArgs
{
Family = "B",
Name = AzureNative.KeyVault.ManagedHsmSkuName.Standard_B1,
},
Tags =
{
{ "Dept", "hsm" },
{ "Environment", "dogfood" },
},
});
});
package main
import (
keyvault "github.com/pulumi/pulumi-azure-native-sdk/keyvault"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := keyvault.NewManagedHsm(ctx, "managedHsm", &keyvault.ManagedHsmArgs{
Location: pulumi.String("westus"),
Name: pulumi.String("hsm1"),
Properties: &keyvault.ManagedHsmPropertiesArgs{
EnablePurgeProtection: pulumi.Bool(true),
EnableSoftDelete: pulumi.Bool(true),
InitialAdminObjectIds: pulumi.StringArray{
pulumi.String("00000000-0000-0000-0000-000000000000"),
},
SoftDeleteRetentionInDays: pulumi.Int(90),
TenantId: pulumi.String("00000000-0000-0000-0000-000000000000"),
},
ResourceGroupName: pulumi.String("hsm-group"),
Sku: &keyvault.ManagedHsmSkuArgs{
Family: pulumi.String("B"),
Name: keyvault.ManagedHsmSkuName_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.keyvault.ManagedHsm;
import com.pulumi.azurenative.keyvault.ManagedHsmArgs;
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 managedHsm = new ManagedHsm("managedHsm", ManagedHsmArgs.builder()
.location("westus")
.name("hsm1")
.properties(Map.ofEntries(
Map.entry("enablePurgeProtection", true),
Map.entry("enableSoftDelete", true),
Map.entry("initialAdminObjectIds", "00000000-0000-0000-0000-000000000000"),
Map.entry("softDeleteRetentionInDays", 90),
Map.entry("tenantId", "00000000-0000-0000-0000-000000000000")
))
.resourceGroupName("hsm-group")
.sku(Map.ofEntries(
Map.entry("family", "B"),
Map.entry("name", "Standard_B1")
))
.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:keyvault:ManagedHsm hsm1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, name: Output<String>? = null, properties: Output<ManagedHsmPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, sku: Output<ManagedHsmSkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The supported Azure location where the managed HSM Pool should be created.

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

Name of the managed HSM Pool

Link copied to clipboard

Properties of the managed HSM

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

Name of the resource group that contains the managed HSM pool.

Link copied to clipboard
val sku: Output<ManagedHsmSkuArgs>? = 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(): ManagedHsmArgs