Skip to content

Data Source: azurermDataShareAccount

Use this data source to access information about an existing Data Share Account.

Example Usage

import * as cdktf from "cdktf";
/*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.*/
new azurerm.provider.AzurermProvider(this, "azurerm", {
  features: [{}],
});
const dataAzurermDataShareAccountExample =
  new azurerm.dataAzurermDataShareAccount.DataAzurermDataShareAccount(
    this,
    "example",
    {
      name: "example-account",
      resource_group_name: "example-resource-group",
    }
  );
new cdktf.TerraformOutput(this, "id", {
  value: dataAzurermDataShareAccountExample.id,
});

Arguments Reference

The following arguments are supported:

  • name - (Required) The name of this Data Share Account.

  • resourceGroupName - (Required) The name of the Resource Group where the Data Share Account exists.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the Data Share Account.

  • identity - An identity block as defined below.

  • tags - A mapping of tags assigned to the Data Share Account.


An identity block exports the following:

  • principalId - The Principal ID associated with this Managed Service Identity.

  • tenantId - The Tenant ID associated with this Managed Service Identity.

  • type - The identity type of this Managed Service Identity.

Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the Data Share Account.