PrivateEndpointConnectionArgs

data class PrivateEndpointConnectionArgs(val namespaceName: Output<String>? = null, val privateEndpoint: Output<PrivateEndpointArgs>? = null, val privateEndpointConnectionName: Output<String>? = null, val privateLinkServiceConnectionState: Output<ConnectionStateArgs>? = null, val provisioningState: Output<Either<String, EndPointProvisioningState>>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<PrivateEndpointConnectionArgs>

Properties of the PrivateEndpointConnection. Uses Azure REST API version 2021-11-01. In version 1.x of the Azure Native provider, it used API version 2018-01-01-preview. Other available API versions: 2018-01-01-preview, 2024-01-01.

Example Usage

NameSpacePrivateEndPointConnectionCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateEndpointConnection = new AzureNative.Relay.PrivateEndpointConnection("privateEndpointConnection", new()
{
NamespaceName = "example-RelayNamespace-5849",
PrivateEndpoint = new AzureNative.Relay.Inputs.PrivateEndpointArgs
{
Id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Network/privateEndpoints/ali-relay-pve-1",
},
PrivateEndpointConnectionName = "{privateEndpointConnection name}",
PrivateLinkServiceConnectionState = new AzureNative.Relay.Inputs.ConnectionStateArgs
{
Description = "You may pass",
Status = AzureNative.Relay.PrivateLinkConnectionStatus.Approved,
},
ResourceGroupName = "resourcegroup",
});
});
package main
import (
relay "github.com/pulumi/pulumi-azure-native-sdk/relay/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := relay.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &relay.PrivateEndpointConnectionArgs{
NamespaceName: pulumi.String("example-RelayNamespace-5849"),
PrivateEndpoint: &relay.PrivateEndpointArgs{
Id: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Network/privateEndpoints/ali-relay-pve-1"),
},
PrivateEndpointConnectionName: pulumi.String("{privateEndpointConnection name}"),
PrivateLinkServiceConnectionState: &relay.ConnectionStateArgs{
Description: pulumi.String("You may pass"),
Status: pulumi.String(relay.PrivateLinkConnectionStatusApproved),
},
ResourceGroupName: pulumi.String("resourcegroup"),
})
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.relay.PrivateEndpointConnection;
import com.pulumi.azurenative.relay.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.relay.inputs.PrivateEndpointArgs;
import com.pulumi.azurenative.relay.inputs.ConnectionStateArgs;
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()
.namespaceName("example-RelayNamespace-5849")
.privateEndpoint(PrivateEndpointArgs.builder()
.id("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Network/privateEndpoints/ali-relay-pve-1")
.build())
.privateEndpointConnectionName("{privateEndpointConnection name}")
.privateLinkServiceConnectionState(ConnectionStateArgs.builder()
.description("You may pass")
.status("Approved")
.build())
.resourceGroupName("resourcegroup")
.build());
}
}

Import

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

$ pulumi import azure-native:relay:PrivateEndpointConnection {privateEndpointConnection name} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}

Constructors

Link copied to clipboard
constructor(namespaceName: Output<String>? = null, privateEndpoint: Output<PrivateEndpointArgs>? = null, privateEndpointConnectionName: Output<String>? = null, privateLinkServiceConnectionState: Output<ConnectionStateArgs>? = null, provisioningState: Output<Either<String, EndPointProvisioningState>>? = null, resourceGroupName: Output<String>? = null)

Properties

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

The namespace name

Link copied to clipboard

The Private Endpoint resource for this Connection.

Link copied to clipboard

The PrivateEndpointConnection name

Link copied to clipboard

Details about the state of the connection.

Link copied to clipboard
val provisioningState: Output<Either<String, EndPointProvisioningState>>? = null

Provisioning state of the Private Endpoint Connection.

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

Name of the Resource group within the Azure subscription.

Functions

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