Skip to content

Data Source: azurermWebPubsubPrivateLinkResource

Use this data source to access information about the Private Link Resource supported by the Web Pubsub Resource.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupTest = new azurerm.resourceGroup.ResourceGroup(
  this,
  "test",
  {
    location: "east us",
    name: "terraform-webpubsub",
  }
);
const azurermWebPubsubTest = new azurerm.webPubsub.WebPubsub(this, "test_1", {
  capacity: 1,
  location: azurermResourceGroupTest.location,
  name: "tfex-webpubsub",
  resource_group_name: azurermResourceGroupTest.name,
  sku: "Standard_S1",
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermWebPubsubTest.overrideLogicalId("test");
const dataAzurermWebPubsubPrivateLinkResourceTest =
  new azurerm.dataAzurermWebPubsubPrivateLinkResource.DataAzurermWebPubsubPrivateLinkResource(
    this,
    "test_2",
    {
      web_pubsub_id: azurermWebPubsubTest.id,
    }
  );
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
dataAzurermWebPubsubPrivateLinkResourceTest.overrideLogicalId("test");

Argument Reference

  • webPubsubId - The ID of an existing Web Pubsub Resource which Private Link Resource should be retrieved for.

Attributes Reference

  • id - The ID of an existing Web Pubsub Resource which supports the retrieved Private Link Resource list.

  • sharedPrivateLinkResourceTypes - A sharedPrivateLinkResourceTypes block as defined below.


A sharedPrivateLinkResourceTypes block exports the following:

  • subresourceName - The name for the resource that has been onboarded to private link service.

  • description - The description of the resource type that has been onboarded to private link service.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Private Link Resource.