CloudHsmClusterPrivateEndpointConnectionArgs

data class CloudHsmClusterPrivateEndpointConnectionArgs(val cloudHsmClusterName: Output<String>? = null, val peConnectionName: Output<String>? = null, val privateLinkServiceConnectionState: Output<PrivateLinkServiceConnectionStateArgs>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<CloudHsmClusterPrivateEndpointConnectionArgs>

The private endpoint connection resource. Uses Azure REST API version 2024-06-30-preview. In version 2.x of the Azure Native provider, it used API version 2022-08-31-preview. Other available API versions: 2022-08-31-preview, 2023-12-10-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native hardwaresecuritymodules [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

CloudHsmClusterPrivateEndpointConnection_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var cloudHsmClusterPrivateEndpointConnection = new AzureNative.HardwareSecurityModules.CloudHsmClusterPrivateEndpointConnection("cloudHsmClusterPrivateEndpointConnection", new()
{
CloudHsmClusterName = "chsm1",
PeConnectionName = "sample-pec",
PrivateLinkServiceConnectionState = new AzureNative.HardwareSecurityModules.Inputs.PrivateLinkServiceConnectionStateArgs
{
Description = "My name is Joe and I'm approving this.",
Status = AzureNative.HardwareSecurityModules.PrivateEndpointServiceConnectionStatus.Approved,
},
ResourceGroupName = "rgcloudhsm",
});
});
package main
import (
hardwaresecuritymodules "github.com/pulumi/pulumi-azure-native-sdk/hardwaresecuritymodules/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hardwaresecuritymodules.NewCloudHsmClusterPrivateEndpointConnection(ctx, "cloudHsmClusterPrivateEndpointConnection", &hardwaresecuritymodules.CloudHsmClusterPrivateEndpointConnectionArgs{
CloudHsmClusterName: pulumi.String("chsm1"),
PeConnectionName: pulumi.String("sample-pec"),
PrivateLinkServiceConnectionState: &hardwaresecuritymodules.PrivateLinkServiceConnectionStateArgs{
Description: pulumi.String("My name is Joe and I'm approving this."),
Status: pulumi.String(hardwaresecuritymodules.PrivateEndpointServiceConnectionStatusApproved),
},
ResourceGroupName: pulumi.String("rgcloudhsm"),
})
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.CloudHsmClusterPrivateEndpointConnection;
import com.pulumi.azurenative.hardwaresecuritymodules.CloudHsmClusterPrivateEndpointConnectionArgs;
import com.pulumi.azurenative.hardwaresecuritymodules.inputs.PrivateLinkServiceConnectionStateArgs;
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 cloudHsmClusterPrivateEndpointConnection = new CloudHsmClusterPrivateEndpointConnection("cloudHsmClusterPrivateEndpointConnection", CloudHsmClusterPrivateEndpointConnectionArgs.builder()
.cloudHsmClusterName("chsm1")
.peConnectionName("sample-pec")
.privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
.description("My name is Joe and I'm approving this.")
.status("Approved")
.build())
.resourceGroupName("rgcloudhsm")
.build());
}
}

Import

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

$ pulumi import azure-native:hardwaresecuritymodules:CloudHsmClusterPrivateEndpointConnection sample-pec /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}

Constructors

constructor(cloudHsmClusterName: Output<String>? = null, peConnectionName: Output<String>? = null, privateLinkServiceConnectionState: Output<PrivateLinkServiceConnectionStateArgs>? = null, resourceGroupName: Output<String>? = null)

Properties

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 23 characters in length.

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

Name of the private endpoint connection associated with the Cloud HSM Cluster.

Link copied to clipboard

A collection of information about the state of the connection between service consumer and provider.

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

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

Functions

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