PrivateEndpointConnectionArgs

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

Describes an existing private endpoint connection to the search service. Uses Azure REST API version 2023-11-01. In version 2.x of the Azure Native provider, it used API version 2022-09-01. Other available API versions: 2022-09-01, 2024-03-01-preview, 2024-06-01-preview, 2025-02-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native search [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

PrivateEndpointConnectionUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateEndpointConnection = new AzureNative.Search.PrivateEndpointConnection("privateEndpointConnection", new()
{
PrivateEndpointConnectionName = "testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546",
Properties = new AzureNative.Search.Inputs.PrivateEndpointConnectionPropertiesArgs
{
PrivateLinkServiceConnectionState = new AzureNative.Search.Inputs.PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateArgs
{
Description = "Rejected for some reason",
Status = AzureNative.Search.PrivateLinkServiceConnectionStatus.Rejected,
},
},
ResourceGroupName = "rg1",
SearchServiceName = "mysearchservice",
});
});
package main
import (
search "github.com/pulumi/pulumi-azure-native-sdk/search/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := search.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &search.PrivateEndpointConnectionArgs{
PrivateEndpointConnectionName: pulumi.String("testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546"),
Properties: &search.PrivateEndpointConnectionPropertiesArgs{
PrivateLinkServiceConnectionState: &search.PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateArgs{
Description: pulumi.String("Rejected for some reason"),
Status: search.PrivateLinkServiceConnectionStatusRejected,
},
},
ResourceGroupName: pulumi.String("rg1"),
SearchServiceName: pulumi.String("mysearchservice"),
})
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.search.PrivateEndpointConnection;
import com.pulumi.azurenative.search.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.search.inputs.PrivateEndpointConnectionPropertiesArgs;
import com.pulumi.azurenative.search.inputs.PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateArgs;
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()
.privateEndpointConnectionName("testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546")
.properties(PrivateEndpointConnectionPropertiesArgs.builder()
.privateLinkServiceConnectionState(PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateArgs.builder()
.description("Rejected for some reason")
.status("Rejected")
.build())
.build())
.resourceGroupName("rg1")
.searchServiceName("mysearchservice")
.build());
}
}

Import

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

$ pulumi import azure-native:search:PrivateEndpointConnection testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}

Constructors

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

Properties

Link copied to clipboard

The name of the private endpoint connection to the search service with the specified resource group.

Link copied to clipboard

Describes the properties of an existing private endpoint connection to the search service.

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

The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.

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

The name of the search service associated with the specified resource group.

Functions

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