MHSMPrivateEndpointConnectionArgs

data class MHSMPrivateEndpointConnectionArgs(val identity: Output<ManagedServiceIdentityArgs>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val privateEndpointConnectionName: Output<String>? = null, val privateLinkServiceConnectionState: Output<MHSMPrivateLinkServiceConnectionStateArgs>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<ManagedHsmSkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<MHSMPrivateEndpointConnectionArgs>

Private endpoint connection resource. Uses Azure REST API version 2024-11-01. In version 2.x of the Azure Native provider, it used API version 2023-02-01. Other available API versions: 2023-02-01, 2023-07-01, 2024-04-01-preview, 2024-12-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native keyvault [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

ManagedHsmPutPrivateEndpointConnection

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var mhsmPrivateEndpointConnection = new AzureNative.KeyVault.MHSMPrivateEndpointConnection("mhsmPrivateEndpointConnection", new()
{
Name = "sample-mhsm",
PrivateEndpointConnectionName = "sample-pec",
PrivateLinkServiceConnectionState = new AzureNative.KeyVault.Inputs.MHSMPrivateLinkServiceConnectionStateArgs
{
Description = "My name is Joe and I'm approving this.",
Status = AzureNative.KeyVault.PrivateEndpointServiceConnectionStatus.Approved,
},
ResourceGroupName = "sample-group",
});
});
package main
import (
keyvault "github.com/pulumi/pulumi-azure-native-sdk/keyvault/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := keyvault.NewMHSMPrivateEndpointConnection(ctx, "mhsmPrivateEndpointConnection", &keyvault.MHSMPrivateEndpointConnectionArgs{
Name: pulumi.String("sample-mhsm"),
PrivateEndpointConnectionName: pulumi.String("sample-pec"),
PrivateLinkServiceConnectionState: &keyvault.MHSMPrivateLinkServiceConnectionStateArgs{
Description: pulumi.String("My name is Joe and I'm approving this."),
Status: pulumi.String(keyvault.PrivateEndpointServiceConnectionStatusApproved),
},
ResourceGroupName: pulumi.String("sample-group"),
})
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.MHSMPrivateEndpointConnection;
import com.pulumi.azurenative.keyvault.MHSMPrivateEndpointConnectionArgs;
import com.pulumi.azurenative.keyvault.inputs.MHSMPrivateLinkServiceConnectionStateArgs;
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 mhsmPrivateEndpointConnection = new MHSMPrivateEndpointConnection("mhsmPrivateEndpointConnection", MHSMPrivateEndpointConnectionArgs.builder()
.name("sample-mhsm")
.privateEndpointConnectionName("sample-pec")
.privateLinkServiceConnectionState(MHSMPrivateLinkServiceConnectionStateArgs.builder()
.description("My name is Joe and I'm approving this.")
.status("Approved")
.build())
.resourceGroupName("sample-group")
.build());
}
}

Import

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

$ pulumi import azure-native:keyvault:MHSMPrivateEndpointConnection sample-pec /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections/{privateEndpointConnectionName}

Constructors

Link copied to clipboard
constructor(identity: Output<ManagedServiceIdentityArgs>? = null, location: Output<String>? = null, name: Output<String>? = null, privateEndpointConnectionName: Output<String>? = null, privateLinkServiceConnectionState: Output<MHSMPrivateLinkServiceConnectionStateArgs>? = null, resourceGroupName: Output<String>? = null, sku: Output<ManagedHsmSkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

Managed service identity (system assigned and/or user assigned identities)

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

Name of the private endpoint connection associated with the managed hsm pool.

Link copied to clipboard

Approval state of the private link connection.

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(): MHSMPrivateEndpointConnectionArgs