Skip to content

Data Source: azurermSourceControlToken

Use this data source to access information about an existing App Service Source Control Token.

\~> Note: This value can only be queried for the user or service principal that is executing Terraform. It is not possible to retrieve for another user.

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 cdktf.TerraformOutput(this, "id", {
  value: "${data.azurerm_app_service_github_token.example.id}",
});
new azurerm.dataAzurermSourceControlToken.DataAzurermSourceControlToken(
  this,
  "example",
  {
    type: "GitHub",
  }
);

Arguments Reference

The following arguments are supported:

  • type - (Required) The Token type. Possible values include bitbucket, dropbox, github, and oneDrive.

Attributes Reference

The following Attributes are exported:

  • id - The ID of the App Service Source GitHub Token.

  • token - The GitHub Token value.

Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the App Service Source GitHub Token.