azure-native.databasewatcher.SharedPrivateLinkResource
Explore with Pulumi AI
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 (
databasewatcher "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 pulumi
import pulumi_azure_native as azure_native
shared_private_link_resource = azure_native.databasewatcher.SharedPrivateLinkResource("sharedPrivateLinkResource",
dns_zone="ec3ae9d410ba",
group_id="vault",
private_link_resource_id="/subscriptions/6f53185c-ea09-4fc3-9075-318dec805303/resourceGroups/apiTest-ddat4p/providers/Microsoft.KeyVault/vaults/kvmo3ej9ih",
request_message="request message",
resource_group_name="apiTest-ddat4p",
shared_private_link_resource_name="monitoringh22eed",
watcher_name="databasemo3ej9ih")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sharedPrivateLinkResource = new azure_native.databasewatcher.SharedPrivateLinkResource("sharedPrivateLinkResource", {
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",
});
resources:
sharedPrivateLinkResource:
type: azure-native:databasewatcher:SharedPrivateLinkResource
properties:
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
Create SharedPrivateLinkResource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SharedPrivateLinkResource(name: string, args: SharedPrivateLinkResourceArgs, opts?: CustomResourceOptions);
@overload
def SharedPrivateLinkResource(resource_name: str,
args: SharedPrivateLinkResourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SharedPrivateLinkResource(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_id: Optional[str] = None,
private_link_resource_id: Optional[str] = None,
request_message: Optional[str] = None,
resource_group_name: Optional[str] = None,
watcher_name: Optional[str] = None,
dns_zone: Optional[str] = None,
shared_private_link_resource_name: Optional[str] = None)
func NewSharedPrivateLinkResource(ctx *Context, name string, args SharedPrivateLinkResourceArgs, opts ...ResourceOption) (*SharedPrivateLinkResource, error)
public SharedPrivateLinkResource(string name, SharedPrivateLinkResourceArgs args, CustomResourceOptions? opts = null)
public SharedPrivateLinkResource(String name, SharedPrivateLinkResourceArgs args)
public SharedPrivateLinkResource(String name, SharedPrivateLinkResourceArgs args, CustomResourceOptions options)
type: azure-native:databasewatcher:SharedPrivateLinkResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SharedPrivateLinkResourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SharedPrivateLinkResourceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SharedPrivateLinkResourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SharedPrivateLinkResourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SharedPrivateLinkResourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sharedPrivateLinkResourceResource = new AzureNative.DatabaseWatcher.SharedPrivateLinkResource("sharedPrivateLinkResourceResource", new()
{
GroupId = "string",
PrivateLinkResourceId = "string",
RequestMessage = "string",
ResourceGroupName = "string",
WatcherName = "string",
DnsZone = "string",
SharedPrivateLinkResourceName = "string",
});
example, err := databasewatcher.NewSharedPrivateLinkResource(ctx, "sharedPrivateLinkResourceResource", &databasewatcher.SharedPrivateLinkResourceArgs{
GroupId: pulumi.String("string"),
PrivateLinkResourceId: pulumi.String("string"),
RequestMessage: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
WatcherName: pulumi.String("string"),
DnsZone: pulumi.String("string"),
SharedPrivateLinkResourceName: pulumi.String("string"),
})
var sharedPrivateLinkResourceResource = new SharedPrivateLinkResource("sharedPrivateLinkResourceResource", SharedPrivateLinkResourceArgs.builder()
.groupId("string")
.privateLinkResourceId("string")
.requestMessage("string")
.resourceGroupName("string")
.watcherName("string")
.dnsZone("string")
.sharedPrivateLinkResourceName("string")
.build());
shared_private_link_resource_resource = azure_native.databasewatcher.SharedPrivateLinkResource("sharedPrivateLinkResourceResource",
group_id="string",
private_link_resource_id="string",
request_message="string",
resource_group_name="string",
watcher_name="string",
dns_zone="string",
shared_private_link_resource_name="string")
const sharedPrivateLinkResourceResource = new azure_native.databasewatcher.SharedPrivateLinkResource("sharedPrivateLinkResourceResource", {
groupId: "string",
privateLinkResourceId: "string",
requestMessage: "string",
resourceGroupName: "string",
watcherName: "string",
dnsZone: "string",
sharedPrivateLinkResourceName: "string",
});
type: azure-native:databasewatcher:SharedPrivateLinkResource
properties:
dnsZone: string
groupId: string
privateLinkResourceId: string
requestMessage: string
resourceGroupName: string
sharedPrivateLinkResourceName: string
watcherName: string
SharedPrivateLinkResource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SharedPrivateLinkResource resource accepts the following input properties:
- Group
Id string - The group id from the provider of resource the shared private link resource is for.
- Private
Link stringResource Id - The resource id of the resource the shared private link resource is for.
- Request
Message string - The request message for requesting approval of the shared private link resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Watcher
Name string - The database watcher name.
- Dns
Zone string - The DNS zone to be included in the DNS name of the shared private link. Value is service-specific.
- string
- The Shared Private Link resource name.
- Group
Id string - The group id from the provider of resource the shared private link resource is for.
- Private
Link stringResource Id - The resource id of the resource the shared private link resource is for.
- Request
Message string - The request message for requesting approval of the shared private link resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Watcher
Name string - The database watcher name.
- Dns
Zone string - The DNS zone to be included in the DNS name of the shared private link. Value is service-specific.
- string
- The Shared Private Link resource name.
- group
Id String - The group id from the provider of resource the shared private link resource is for.
- private
Link StringResource Id - The resource id of the resource the shared private link resource is for.
- request
Message String - The request message for requesting approval of the shared private link resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- watcher
Name String - The database watcher name.
- dns
Zone String - The DNS zone to be included in the DNS name of the shared private link. Value is service-specific.
- String
- The Shared Private Link resource name.
- group
Id string - The group id from the provider of resource the shared private link resource is for.
- private
Link stringResource Id - The resource id of the resource the shared private link resource is for.
- request
Message string - The request message for requesting approval of the shared private link resource.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- watcher
Name string - The database watcher name.
- dns
Zone string - The DNS zone to be included in the DNS name of the shared private link. Value is service-specific.
- string
- The Shared Private Link resource name.
- group_
id str - The group id from the provider of resource the shared private link resource is for.
- private_
link_ strresource_ id - The resource id of the resource the shared private link resource is for.
- request_
message str - The request message for requesting approval of the shared private link resource.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- watcher_
name str - The database watcher name.
- dns_
zone str - The DNS zone to be included in the DNS name of the shared private link. Value is service-specific.
- str
- The Shared Private Link resource name.
- group
Id String - The group id from the provider of resource the shared private link resource is for.
- private
Link StringResource Id - The resource id of the resource the shared private link resource is for.
- request
Message String - The request message for requesting approval of the shared private link resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- watcher
Name String - The database watcher name.
- dns
Zone String - The DNS zone to be included in the DNS name of the shared private link. Value is service-specific.
- String
- The Shared Private Link resource name.
Outputs
All input properties are implicitly available as output properties. Additionally, the SharedPrivateLinkResource resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the resource.
- Status string
- Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
- System
Data Pulumi.Azure Native. Database Watcher. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the resource.
- Status string
- Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the resource.
- status String
- Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - The provisioning state of the resource.
- status string
- Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - The provisioning state of the resource.
- status str
- Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the resource.
- status String
- Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0