WebPubSubSharedPrivateLinkResourceArgs

data class WebPubSubSharedPrivateLinkResourceArgs(val groupId: Output<String>? = null, val privateLinkResourceId: Output<String>? = null, val requestMessage: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val sharedPrivateLinkResourceName: Output<String>? = null) : ConvertibleToJava<WebPubSubSharedPrivateLinkResourceArgs>

Describes a Shared Private Link Resource Uses Azure REST API version 2023-02-01. In version 1.x of the Azure Native provider, it used API version 2021-04-01-preview. Other available API versions: 2023-03-01-preview, 2023-06-01-preview, 2023-08-01-preview, 2024-01-01-preview, 2024-03-01, 2024-04-01-preview, 2024-08-01-preview, 2024-10-01-preview.

Example Usage

WebPubSubSharedPrivateLinkResources_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var webPubSubSharedPrivateLinkResource = new AzureNative.WebPubSub.WebPubSubSharedPrivateLinkResource("webPubSubSharedPrivateLinkResource", new()
{
GroupId = "sites",
PrivateLinkResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp",
RequestMessage = "Please approve",
ResourceGroupName = "myResourceGroup",
ResourceName = "myWebPubSubService",
SharedPrivateLinkResourceName = "upstream",
});
});
package main
import (
webpubsub "github.com/pulumi/pulumi-azure-native-sdk/webpubsub/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := webpubsub.NewWebPubSubSharedPrivateLinkResource(ctx, "webPubSubSharedPrivateLinkResource", &webpubsub.WebPubSubSharedPrivateLinkResourceArgs{
GroupId: pulumi.String("sites"),
PrivateLinkResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp"),
RequestMessage: pulumi.String("Please approve"),
ResourceGroupName: pulumi.String("myResourceGroup"),
ResourceName: pulumi.String("myWebPubSubService"),
SharedPrivateLinkResourceName: pulumi.String("upstream"),
})
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.webpubsub.WebPubSubSharedPrivateLinkResource;
import com.pulumi.azurenative.webpubsub.WebPubSubSharedPrivateLinkResourceArgs;
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 webPubSubSharedPrivateLinkResource = new WebPubSubSharedPrivateLinkResource("webPubSubSharedPrivateLinkResource", WebPubSubSharedPrivateLinkResourceArgs.builder()
.groupId("sites")
.privateLinkResourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp")
.requestMessage("Please approve")
.resourceGroupName("myResourceGroup")
.resourceName("myWebPubSubService")
.sharedPrivateLinkResourceName("upstream")
.build());
}
}

Import

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

$ pulumi import azure-native:webpubsub:WebPubSubSharedPrivateLinkResource upstream /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}

Constructors

Link copied to clipboard
constructor(groupId: Output<String>? = null, privateLinkResourceId: Output<String>? = null, requestMessage: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, sharedPrivateLinkResourceName: Output<String>? = null)

Properties

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

The group id from the provider of resource the shared private link resource is for

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

The resource id of the resource the shared private link resource is for

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

The request message for requesting approval of the shared private link resource

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

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

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

The name of the resource.

Link copied to clipboard

The name of the shared private link resource

Functions

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