PrivateEndpointConnectionArgs

data class PrivateEndpointConnectionArgs(val mongoClusterName: Output<String>? = null, val privateEndpointConnectionName: Output<String>? = null, val properties: Output<PrivateEndpointConnectionPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<PrivateEndpointConnectionArgs>

Concrete proxy resource types can be created by aliasing this type using a specific property type. Uses Azure REST API version 2024-07-01. Other available API versions: 2024-03-01-preview, 2024-06-01-preview, 2024-10-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native mongocluster [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Approves a private endpoint connection on a Mongo Cluster resource.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateEndpointConnection = new AzureNative.MongoCluster.PrivateEndpointConnection("privateEndpointConnection", new()
{
MongoClusterName = "myMongoCluster",
PrivateEndpointConnectionName = "pecTest",
Properties = new AzureNative.MongoCluster.Inputs.PrivateEndpointConnectionPropertiesArgs
{
PrivateLinkServiceConnectionState = new AzureNative.MongoCluster.Inputs.PrivateLinkServiceConnectionStateArgs
{
Description = "Auto-Approved",
Status = AzureNative.MongoCluster.PrivateEndpointServiceConnectionStatus.Approved,
},
},
ResourceGroupName = "TestGroup",
});
});
package main
import (
mongocluster "github.com/pulumi/pulumi-azure-native-sdk/mongocluster/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mongocluster.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &mongocluster.PrivateEndpointConnectionArgs{
MongoClusterName: pulumi.String("myMongoCluster"),
PrivateEndpointConnectionName: pulumi.String("pecTest"),
Properties: &mongocluster.PrivateEndpointConnectionPropertiesArgs{
PrivateLinkServiceConnectionState: &mongocluster.PrivateLinkServiceConnectionStateArgs{
Description: pulumi.String("Auto-Approved"),
Status: pulumi.String(mongocluster.PrivateEndpointServiceConnectionStatusApproved),
},
},
ResourceGroupName: pulumi.String("TestGroup"),
})
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.mongocluster.PrivateEndpointConnection;
import com.pulumi.azurenative.mongocluster.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.mongocluster.inputs.PrivateEndpointConnectionPropertiesArgs;
import com.pulumi.azurenative.mongocluster.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()
.mongoClusterName("myMongoCluster")
.privateEndpointConnectionName("pecTest")
.properties(PrivateEndpointConnectionPropertiesArgs.builder()
.privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
.description("Auto-Approved")
.status("Approved")
.build())
.build())
.resourceGroupName("TestGroup")
.build());
}
}

Import

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

$ pulumi import azure-native:mongocluster:PrivateEndpointConnection pecTest.5d393f64-ef64-46d0-9959-308321c44ac0 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}/privateEndpointConnections/{privateEndpointConnectionName}

Constructors

Link copied to clipboard
constructor(mongoClusterName: Output<String>? = null, privateEndpointConnectionName: Output<String>? = null, properties: Output<PrivateEndpointConnectionPropertiesArgs>? = null, resourceGroupName: Output<String>? = null)

Properties

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

The name of the mongo cluster.

Link copied to clipboard

The name of the private endpoint connection associated with the Azure resource.

Link copied to clipboard

The resource-specific properties for this resource.

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

The name of the resource group. The name is case insensitive.

Functions

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