Cloud Hsm Cluster Private Endpoint Connection Args
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. Azure REST API version: 2022-08-31-preview.
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 = "Approved",
},
ResourceGroupName = "rgcloudhsm",
});
});
Content copied to clipboard
package main
import (
"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.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("Approved"),
},
ResourceGroupName: pulumi.String("rgcloudhsm"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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 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(Map.ofEntries(
Map.entry("description", "My name is Joe and I'm approving this."),
Map.entry("status", "Approved")
))
.resourceGroupName("rgcloudhsm")
.build());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
fun CloudHsmClusterPrivateEndpointConnectionArgs(cloudHsmClusterName: Output<String>? = null, peConnectionName: Output<String>? = null, privateLinkServiceConnectionState: Output<PrivateLinkServiceConnectionStateArgs>? = null, resourceGroupName: Output<String>? = null)