import * as pulumi from "@pulumi/pulumi"; /** * Manages the Shared Private Link Resource for a Web Pubsub service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const current = azure.core.getClientConfig({}); * const example = new azure.core.ResourceGroup("example", { * name: "terraform-webpubsub", * location: "east us", * }); * const exampleKeyVault = new azure.keyvault.KeyVault("example", { * name: "examplekeyvault", * location: example.location, * resourceGroupName: example.name, * tenantId: current.then(current => current.tenantId), * skuName: "standard", * softDeleteRetentionDays: 7, * accessPolicies: [{ * tenantId: current.then(current => current.tenantId), * objectId: current.then(current => current.objectId), * certificatePermissions: ["managecontacts"], * keyPermissions: ["create"], * secretPermissions: ["set"], * }], * }); * const exampleService = new azure.webpubsub.Service("example", { * name: "tfex-webpubsub", * location: example.location, * resourceGroupName: example.name, * sku: "Standard_S1", * capacity: 1, * }); * const exampleSharedPrivateLinkResource = new azure.webpubsub.SharedPrivateLinkResource("example", { * name: "tfex-webpubsub-splr", * webPubsubId: exampleService.id, * subresourceName: "vault", * targetResourceId: exampleKeyVault.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.SignalRService` - 2024-03-01 * * ## Import * * Web Pubsub Shared Private Link Resource can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:webpubsub/sharedPrivateLinkResource:SharedPrivateLinkResource example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.SignalRService/webPubSub/webPubSub1/sharedPrivateLinkResources/resource1 * ``` */ export declare class SharedPrivateLinkResource extends pulumi.CustomResource { /** * Get an existing SharedPrivateLinkResource resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SharedPrivateLinkResourceState, opts?: pulumi.CustomResourceOptions): SharedPrivateLinkResource; /** * Returns true if the given object is an instance of SharedPrivateLinkResource. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SharedPrivateLinkResource; /** * Specify the name of the Web Pubsub Shared Private Link Resource. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Specify the request message for requesting approval of the Shared Private Link Enabled Remote Resource. */ readonly requestMessage: pulumi.Output; /** * The status of a private endpoint connection. Possible values are Pending, Approved, Rejected or Disconnected. */ readonly status: pulumi.Output; /** * 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. * * > **Note:** The available sub resource can be retrieved by using `azure.webpubsub.getPrivateLinkResource` data source. */ readonly subresourceName: pulumi.Output; /** * 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. * * > **Note:** The sub resource name should match with the type of the target resource id that's being specified. */ readonly targetResourceId: pulumi.Output; /** * Specify the id of the Web Pubsub. Changing this forces a new resource to be created. */ readonly webPubsubId: pulumi.Output; /** * Create a SharedPrivateLinkResource resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SharedPrivateLinkResourceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SharedPrivateLinkResource resources. */ export interface SharedPrivateLinkResourceState { /** * Specify the name of the Web Pubsub Shared Private Link Resource. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specify the request message for requesting approval of the Shared Private Link Enabled Remote Resource. */ requestMessage?: pulumi.Input; /** * The status of a private endpoint connection. Possible values are Pending, Approved, Rejected or Disconnected. */ status?: pulumi.Input; /** * 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. * * > **Note:** The available sub resource can be retrieved by using `azure.webpubsub.getPrivateLinkResource` data source. */ subresourceName?: pulumi.Input; /** * 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. * * > **Note:** The sub resource name should match with the type of the target resource id that's being specified. */ targetResourceId?: pulumi.Input; /** * Specify the id of the Web Pubsub. Changing this forces a new resource to be created. */ webPubsubId?: pulumi.Input; } /** * The set of arguments for constructing a SharedPrivateLinkResource resource. */ export interface SharedPrivateLinkResourceArgs { /** * Specify the name of the Web Pubsub Shared Private Link Resource. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specify the request message for requesting approval of the Shared Private Link Enabled Remote Resource. */ requestMessage?: pulumi.Input; /** * 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. * * > **Note:** The available sub resource can be retrieved by using `azure.webpubsub.getPrivateLinkResource` data source. */ subresourceName: pulumi.Input; /** * 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. * * > **Note:** The sub resource name should match with the type of the target resource id that's being specified. */ targetResourceId: pulumi.Input; /** * Specify the id of the Web Pubsub. Changing this forces a new resource to be created. */ webPubsubId: pulumi.Input; }