1. Packages
  2. Azure Native
  3. API Docs
  4. databasewatcher
  5. SharedPrivateLinkResource
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.databasewatcher.SharedPrivateLinkResource

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    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:

    GroupId string
    The group id from the provider of resource the shared private link resource is for.
    PrivateLinkResourceId string
    The resource id of the resource the shared private link resource is for.
    RequestMessage string
    The request message for requesting approval of the shared private link resource.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    WatcherName string
    The database watcher name.
    DnsZone string
    The DNS zone to be included in the DNS name of the shared private link. Value is service-specific.
    SharedPrivateLinkResourceName string
    The Shared Private Link resource name.
    GroupId string
    The group id from the provider of resource the shared private link resource is for.
    PrivateLinkResourceId string
    The resource id of the resource the shared private link resource is for.
    RequestMessage string
    The request message for requesting approval of the shared private link resource.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    WatcherName string
    The database watcher name.
    DnsZone string
    The DNS zone to be included in the DNS name of the shared private link. Value is service-specific.
    SharedPrivateLinkResourceName string
    The Shared Private Link resource name.
    groupId String
    The group id from the provider of resource the shared private link resource is for.
    privateLinkResourceId String
    The resource id of the resource the shared private link resource is for.
    requestMessage String
    The request message for requesting approval of the shared private link resource.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    watcherName String
    The database watcher name.
    dnsZone String
    The DNS zone to be included in the DNS name of the shared private link. Value is service-specific.
    sharedPrivateLinkResourceName String
    The Shared Private Link resource name.
    groupId string
    The group id from the provider of resource the shared private link resource is for.
    privateLinkResourceId string
    The resource id of the resource the shared private link resource is for.
    requestMessage string
    The request message for requesting approval of the shared private link resource.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    watcherName string
    The database watcher name.
    dnsZone string
    The DNS zone to be included in the DNS name of the shared private link. Value is service-specific.
    sharedPrivateLinkResourceName 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_resource_id str
    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_name str
    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.
    shared_private_link_resource_name str
    The Shared Private Link resource name.
    groupId String
    The group id from the provider of resource the shared private link resource is for.
    privateLinkResourceId String
    The resource id of the resource the shared private link resource is for.
    requestMessage String
    The request message for requesting approval of the shared private link resource.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    watcherName String
    The database watcher name.
    dnsZone String
    The DNS zone to be included in the DNS name of the shared private link. Value is service-specific.
    sharedPrivateLinkResourceName 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
    ProvisioningState string
    The provisioning state of the resource.
    Status string
    Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
    SystemData Pulumi.AzureNative.DatabaseWatcher.Outputs.SystemDataResponse
    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
    ProvisioningState string
    The provisioning state of the resource.
    Status string
    Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
    SystemData SystemDataResponse
    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
    provisioningState String
    The provisioning state of the resource.
    status String
    Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
    systemData SystemDataResponse
    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
    provisioningState string
    The provisioning state of the resource.
    status string
    Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
    systemData SystemDataResponse
    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 SystemDataResponse
    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
    provisioningState String
    The provisioning state of the resource.
    status String
    Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.
    systemData 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

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    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_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi