SharedPrivateLinkResourceArgs

data class SharedPrivateLinkResourceArgs(val properties: Output<SharedPrivateLinkResourcePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val searchServiceName: Output<String>? = null, val sharedPrivateLinkResourceName: Output<String>? = null) : ConvertibleToJava<SharedPrivateLinkResourceArgs>

Describes a Shared Private Link Resource managed by the Azure Cognitive Search service. Uses Azure REST API version 2022-09-01. In version 1.x of the Azure Native provider, it used API version 2020-08-01. Other available API versions: 2023-11-01, 2024-03-01-preview, 2024-06-01-preview, 2025-02-01-preview.

Example Usage

SharedPrivateLinkResourceCreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sharedPrivateLinkResource = new AzureNative.Search.SharedPrivateLinkResource("sharedPrivateLinkResource", new()
{
Properties = new AzureNative.Search.Inputs.SharedPrivateLinkResourcePropertiesArgs
{
GroupId = "blob",
PrivateLinkResourceId = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName",
RequestMessage = "please approve",
},
ResourceGroupName = "rg1",
SearchServiceName = "mysearchservice",
SharedPrivateLinkResourceName = "testResource",
});
});
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.NewSharedPrivateLinkResource(ctx, "sharedPrivateLinkResource", &search.SharedPrivateLinkResourceArgs{
Properties: &search.SharedPrivateLinkResourcePropertiesArgs{
GroupId: pulumi.String("blob"),
PrivateLinkResourceId: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName"),
RequestMessage: pulumi.String("please approve"),
},
ResourceGroupName: pulumi.String("rg1"),
SearchServiceName: pulumi.String("mysearchservice"),
SharedPrivateLinkResourceName: pulumi.String("testResource"),
})
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.SharedPrivateLinkResource;
import com.pulumi.azurenative.search.SharedPrivateLinkResourceArgs;
import com.pulumi.azurenative.search.inputs.SharedPrivateLinkResourcePropertiesArgs;
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 sharedPrivateLinkResource = new SharedPrivateLinkResource("sharedPrivateLinkResource", SharedPrivateLinkResourceArgs.builder()
.properties(SharedPrivateLinkResourcePropertiesArgs.builder()
.groupId("blob")
.privateLinkResourceId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName")
.requestMessage("please approve")
.build())
.resourceGroupName("rg1")
.searchServiceName("mysearchservice")
.sharedPrivateLinkResourceName("testResource")
.build());
}
}

Import

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

$ pulumi import azure-native:search:SharedPrivateLinkResource testResource /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}

Constructors

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

Properties

Link copied to clipboard

Describes the properties of a Shared Private Link Resource managed by the Azure Cognitive 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 Azure Cognitive Search service associated with the specified resource group.

Link copied to clipboard

The name of the shared private link resource managed by the Azure Cognitive Search service within the specified resource group.

Functions

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