Private Endpoint Connection Args
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 Azure Cognitive Search service. API Version: 2020-08-01.
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",
});
});
Content copied to clipboard
package main
import (
search "github.com/pulumi/pulumi-azure-native-sdk/search"
"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.PrivateEndpointConnectionPropertiesResponse{
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
})
}
Content copied to clipboard
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 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(Map.of("privateLinkServiceConnectionState", Map.ofEntries(
Map.entry("description", "Rejected for some reason"),
Map.entry("status", "Rejected")
)))
.resourceGroupName("rg1")
.searchServiceName("mysearchservice")
.build());
}
}
Content copied to clipboard
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/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice/privateEndpointConnections/testEndpoint.50bf4fbe-d7c1-4b48-a642-4f5892642546
Content copied to clipboard
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 Azure Cognitive Search service with the specified resource group.
Link copied to clipboard
Describes the properties of an existing Private Endpoint connection to the Azure Cognitive Search service.
Link copied to clipboard
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
The name of the Azure Cognitive Search service associated with the specified resource group.