DiskAccessAPrivateEndpointConnectionArgs

data class DiskAccessAPrivateEndpointConnectionArgs(val diskAccessName: Output<String>? = null, val privateEndpointConnectionName: Output<String>? = null, val privateLinkServiceConnectionState: Output<PrivateLinkServiceConnectionStateArgs>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<DiskAccessAPrivateEndpointConnectionArgs>

The Private Endpoint Connection resource. Uses Azure REST API version 2022-07-02. In version 1.x of the Azure Native provider, it used API version 2020-12-01. Other available API versions: 2023-01-02, 2023-04-02, 2023-10-02, 2024-03-02.

Example Usage

Approve a Private Endpoint Connection under a disk access resource.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var diskAccessAPrivateEndpointConnection = new AzureNative.Compute.DiskAccessAPrivateEndpointConnection("diskAccessAPrivateEndpointConnection", new()
{
DiskAccessName = "myDiskAccess",
PrivateEndpointConnectionName = "myPrivateEndpointConnection",
PrivateLinkServiceConnectionState = new AzureNative.Compute.Inputs.PrivateLinkServiceConnectionStateArgs
{
Description = "Approving myPrivateEndpointConnection",
Status = AzureNative.Compute.PrivateEndpointServiceConnectionStatus.Approved,
},
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewDiskAccessAPrivateEndpointConnection(ctx, "diskAccessAPrivateEndpointConnection", &compute.DiskAccessAPrivateEndpointConnectionArgs{
DiskAccessName: pulumi.String("myDiskAccess"),
PrivateEndpointConnectionName: pulumi.String("myPrivateEndpointConnection"),
PrivateLinkServiceConnectionState: &compute.PrivateLinkServiceConnectionStateArgs{
Description: pulumi.String("Approving myPrivateEndpointConnection"),
Status: pulumi.String(compute.PrivateEndpointServiceConnectionStatusApproved),
},
ResourceGroupName: pulumi.String("myResourceGroup"),
})
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.compute.DiskAccessAPrivateEndpointConnection;
import com.pulumi.azurenative.compute.DiskAccessAPrivateEndpointConnectionArgs;
import com.pulumi.azurenative.compute.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 diskAccessAPrivateEndpointConnection = new DiskAccessAPrivateEndpointConnection("diskAccessAPrivateEndpointConnection", DiskAccessAPrivateEndpointConnectionArgs.builder()
.diskAccessName("myDiskAccess")
.privateEndpointConnectionName("myPrivateEndpointConnection")
.privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
.description("Approving myPrivateEndpointConnection")
.status("Approved")
.build())
.resourceGroupName("myResourceGroup")
.build());
}
}

Import

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

$ pulumi import azure-native:compute:DiskAccessAPrivateEndpointConnection myPrivateEndpointConnectionName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}

Constructors

Link copied to clipboard
constructor(diskAccessName: Output<String>? = null, privateEndpointConnectionName: Output<String>? = null, privateLinkServiceConnectionState: Output<PrivateLinkServiceConnectionStateArgs>? = null, resourceGroupName: Output<String>? = null)

Properties

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

The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.

Link copied to clipboard

The name of the private endpoint connection.

Link copied to clipboard

A collection of information about the state of the connection between DiskAccess and Virtual Network.

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

The name of the resource group.

Functions

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