Cloud Hsm Cluster Private Endpoint Connection
The private endpoint connection resource. Uses Azure REST API version 2022-08-31-preview. Other available API versions: 2023-12-10-preview, 2024-06-30-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 = AzureNative.HardwareSecurityModules.PrivateEndpointServiceConnectionStatus.Approved,
},
ResourceGroupName = "rgcloudhsm",
});
});
Content copied to clipboard
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.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
})
}
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 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());
}
}
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
Properties
Link copied to clipboard
The private endpoint resource.
Link copied to clipboard
A collection of information about the state of the connection between service consumer and provider.
Link copied to clipboard
The provisioning state of the private endpoint connection resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.