Skip to content

Data Source: azurermKeyVaultAccessPolicy

Use this data source to access information about the permissions from the Management Key Vault Templates.

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.*/
const dataAzurermKeyVaultAccessPolicyContributor =
  new azurerm.dataAzurermKeyVaultAccessPolicy.DataAzurermKeyVaultAccessPolicy(
    this,
    "contributor",
    {
      name: "Key Management",
    }
  );
new cdktf.TerraformOutput(this, "access_policy_key_permissions", {
  value: dataAzurermKeyVaultAccessPolicyContributor.keyPermissions,
});

Argument Reference

  • name - Specifies the name of the Management Template. Possible values are: keyManagement, secretManagement, certificateManagement, key &SecretManagement, key &CertificateManagement, secret &CertificateManagement, key,Secret, &CertificateManagement

Attributes Reference

The following attributes are exported:

  • id - the ID of the Key Vault Access Policy

  • keyPermissions - the key permissions for the access policy

  • secretPermissions - the secret permissions for the access policy

  • certificatePermissions - the certificate permissions for the access policy

Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the Access Policy.