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. Azure REST API version: 2023-09-01-preview.

Example Usage

SharedPrivateLinkResources_Create

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/6f53185c-ea09-4fc3-9075-318dec805303/resourceGroups/apiTest-ddat4p/providers/Microsoft.KeyVault/vaults/kvmo3ej9ih",
RequestMessage = "request message",
ResourceGroupName = "apiTest-ddat4p",
SharedPrivateLinkResourceName = "monitoringh22eed",
WatcherName = "databasemo3ej9ih",
});
});
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/databasewatcher/v2"
"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/6f53185c-ea09-4fc3-9075-318dec805303/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/6f53185c-ea09-4fc3-9075-318dec805303/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 to be included in the DNS name of the shared private link. Value is service-specific.

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