SharedPrivateLinkResourceArgs

data class SharedPrivateLinkResourceArgs(val name: Output<String>? = null, val requestMessage: Output<String>? = null, val subresourceName: Output<String>? = null, val targetResourceId: Output<String>? = null, val webPubsubId: Output<String>? = null) : ConvertibleToJava<SharedPrivateLinkResourceArgs>

Manages the Shared Private Link Resource for a Web Pubsub service.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.keyvault.KeyVault;
import com.pulumi.azure.keyvault.KeyVaultArgs;
import com.pulumi.azure.keyvault.inputs.KeyVaultAccessPolicyArgs;
import com.pulumi.azure.webpubsub.Service;
import com.pulumi.azure.webpubsub.ServiceArgs;
import com.pulumi.azure.webpubsub.SharedPrivateLinkResource;
import com.pulumi.azure.webpubsub.SharedPrivateLinkResourceArgs;
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) {
final var current = CoreFunctions.getClientConfig();
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("east us")
.build());
var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.skuName("standard")
.softDeleteRetentionDays(7)
.accessPolicies(KeyVaultAccessPolicyArgs.builder()
.tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.objectId(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
.certificatePermissions("managecontacts")
.keyPermissions("create")
.secretPermissions("set")
.build())
.build());
var exampleService = new Service("exampleService", ServiceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("Standard_S1")
.capacity(1)
.build());
var exampleSharedPrivateLinkResource = new SharedPrivateLinkResource("exampleSharedPrivateLinkResource", SharedPrivateLinkResourceArgs.builder()
.webPubsubId(exampleService.id())
.subresourceName("vault")
.targetResourceId(exampleKeyVault.id())
.build());
}
}

Import

Web Pubsub Shared Private Link Resource can be imported using the resource id, e.g.

$ pulumi import azure:webpubsub/sharedPrivateLinkResource:SharedPrivateLinkResource example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.SignalRService/webPubSub/webPubSub1/sharedPrivateLinkResources/resource1

Constructors

Link copied to clipboard
fun SharedPrivateLinkResourceArgs(name: Output<String>? = null, requestMessage: Output<String>? = null, subresourceName: Output<String>? = null, targetResourceId: Output<String>? = null, webPubsubId: Output<String>? = null)

Functions

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

Properties

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

Specify the name of the Web Pubsub Shared Private Link Resource. Changing this forces a new resource to be created.

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

Specify the request message for requesting approval of the Shared Private Link Enabled Remote Resource.

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

Specify the sub resource name which the Web Pubsub Private Endpoint is able to connect to. Changing this forces a new resource to be created.

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

Specify the ID of the Shared Private Link Enabled Remote Resource which this Web Pubsub Private Endpoint should be connected to. Changing this forces a new resource to be created.

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

Specify the id of the Web Pubsub. Changing this forces a new resource to be created.