PrivateEndpointConnectionArgs

data class PrivateEndpointConnectionArgs(val accountName: Output<String>? = null, val privateEndpoint: Output<PrivateEndpointArgs>? = null, val privateEndpointConnectionName: Output<String>? = null, val privateLinkServiceConnectionState: Output<PrivateLinkServiceConnectionStateArgs>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<PrivateEndpointConnectionArgs>

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

Example Usage

PrivateEndpointConnections_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateEndpointConnection = new AzureNative.Purview.PrivateEndpointConnection("privateEndpointConnection", new()
{
AccountName = "account1",
PrivateEndpointConnectionName = "privateEndpointConnection1",
PrivateLinkServiceConnectionState = new AzureNative.Purview.Inputs.PrivateLinkServiceConnectionStateArgs
{
Description = "Approved by johndoe@company.com",
Status = AzureNative.Purview.PrivateEndpointConnectionStatus.Approved,
},
ResourceGroupName = "SampleResourceGroup",
});
});
package main
import (
purview "github.com/pulumi/pulumi-azure-native-sdk/purview/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := purview.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &purview.PrivateEndpointConnectionArgs{
AccountName: pulumi.String("account1"),
PrivateEndpointConnectionName: pulumi.String("privateEndpointConnection1"),
PrivateLinkServiceConnectionState: &purview.PrivateLinkServiceConnectionStateArgs{
Description: pulumi.String("Approved by johndoe@company.com"),
Status: pulumi.String(purview.PrivateEndpointConnectionStatusApproved),
},
ResourceGroupName: pulumi.String("SampleResourceGroup"),
})
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.purview.PrivateEndpointConnection;
import com.pulumi.azurenative.purview.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.purview.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 privateEndpointConnection = new PrivateEndpointConnection("privateEndpointConnection", PrivateEndpointConnectionArgs.builder()
.accountName("account1")
.privateEndpointConnectionName("privateEndpointConnection1")
.privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
.description("Approved by johndoe@company.com")
.status("Approved")
.build())
.resourceGroupName("SampleResourceGroup")
.build());
}
}

Import

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

$ pulumi import azure-native:purview:PrivateEndpointConnection privateEndpointConnection1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}

Constructors

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

Properties

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

The name of the account.

Link copied to clipboard

The private endpoint information.

Link copied to clipboard

Name of the private endpoint connection.

Link copied to clipboard

The private link service connection state.

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

The resource group name.

Functions

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