azurermSourceControlToken
Manages an App Service Source Control Token.
\~> NOTE: This resource can only manage the token for the user currently running Terraform. Managing tokens for another user is not supported by the service.
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.*/
new azurerm.sourceControlToken.SourceControlToken(this, "example", {
token: "ghp_sometokenvaluesecretsauce",
type: "GitHub",
});
Arguments Reference
The following arguments are supported:
-
type
- (Required) The Token type. Possible values includebitbucket
,dropbox
,github
, andoneDrive
. -
token
- (Required) The Access Token. -
tokenSecret
- (Optional) The Access Token Secret.
\~> NOTE: The token used for deploying App Service needs the following permissions: repo
and workflow
.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the App Service Source GitHub Token.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 minutes) Used when creating the App Service Source GitHub Token.read
- (Defaults to 5 minutes) Used when retrieving the App Service Source GitHub Token.update
- (Defaults to 5 minutes) Used when updating the App Service Source GitHub Token.delete
- (Defaults to 5 minutes) Used when deleting the App Service Source GitHub Token.
Import
App Service Source GitHub Tokens can be imported using the resourceId
, e.g.