SharedPrivateLinkResourceArgs

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

Concrete proxy resource types can be created by aliasing this type using a specific property type. Uses Azure REST API version 2024-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-09-01-preview. Other available API versions: 2023-09-01-preview, 2024-07-19-preview, 2025-01-02. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native databasewatcher [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

SharedPrivateLinkResources_Create - generated by MaximumSet rule

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sharedPrivateLinkResource = new AzureNative.DatabaseWatcher.SharedPrivateLinkResource("sharedPrivateLinkResource", new()
{
DnsZone = "ec3ae9d410ba",
GroupId = "vault",
PrivateLinkResourceId = "/subscriptions/49e0fbd3-75e8-44e7-96fd-5b64d9ad818d/resourceGroups/apiTest-ddat4p/providers/Microsoft.KeyVault/vaults/kvmo3ej9ih",
RequestMessage = "request message",
ResourceGroupName = "apiTest-ddat4p",
SharedPrivateLinkResourceName = "monitoringh22eed",
WatcherName = "databasemo3ej9ih",
});
});
package main
import (
databasewatcher "github.com/pulumi/pulumi-azure-native-sdk/databasewatcher/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databasewatcher.NewSharedPrivateLinkResource(ctx, "sharedPrivateLinkResource", &databasewatcher.SharedPrivateLinkResourceArgs{
DnsZone: pulumi.String("ec3ae9d410ba"),
GroupId: pulumi.String("vault"),
PrivateLinkResourceId: pulumi.String("/subscriptions/49e0fbd3-75e8-44e7-96fd-5b64d9ad818d/resourceGroups/apiTest-ddat4p/providers/Microsoft.KeyVault/vaults/kvmo3ej9ih"),
RequestMessage: pulumi.String("request message"),
ResourceGroupName: pulumi.String("apiTest-ddat4p"),
SharedPrivateLinkResourceName: pulumi.String("monitoringh22eed"),
WatcherName: pulumi.String("databasemo3ej9ih"),
})
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.databasewatcher.SharedPrivateLinkResource;
import com.pulumi.azurenative.databasewatcher.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) {
var sharedPrivateLinkResource = new SharedPrivateLinkResource("sharedPrivateLinkResource", SharedPrivateLinkResourceArgs.builder()
.dnsZone("ec3ae9d410ba")
.groupId("vault")
.privateLinkResourceId("/subscriptions/49e0fbd3-75e8-44e7-96fd-5b64d9ad818d/resourceGroups/apiTest-ddat4p/providers/Microsoft.KeyVault/vaults/kvmo3ej9ih")
.requestMessage("request message")
.resourceGroupName("apiTest-ddat4p")
.sharedPrivateLinkResourceName("monitoringh22eed")
.watcherName("databasemo3ej9ih")
.build());
}
}

Import

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

$ pulumi import azure-native:databasewatcher:SharedPrivateLinkResource monitoringh22eed /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}

Constructors

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

Properties

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

The DNS zone segment to be included in the DNS name of the shared private link. Value is required for Azure Data Explorer clusters and SQL managed instances, and must be omitted for SQL logical servers and key vaults. The value is the second segment of the host FQDN name of the resource that the shared private link resource is for. For example: if the host name is 'adx-cluster-21187695.eastus.kusto.windows.net', then the value is 'eastus'; if the host name is 'sql-mi-23961134.767d5869f605.database.windows.net', then the value is '767d5869f605'.

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. The name is case insensitive.

Link copied to clipboard

The Shared Private Link resource name.

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

The database watcher name.

Functions

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