import * as pulumi from "@pulumi/pulumi"; /** * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.appservice.SourceControlToken("example", { * type: "GitHub", * token: "ghp_sometokenvaluesecretsauce", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Web` - 2023-01-01 * * ## Import * * App Service Source GitHub Tokens can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appservice/sourceControlToken:SourceControlToken example /providers/Microsoft.Web/sourceControls/GitHub * ``` */ export declare class SourceControlToken extends pulumi.CustomResource { /** * Get an existing SourceControlToken resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SourceControlTokenState, opts?: pulumi.CustomResourceOptions): SourceControlToken; /** * Returns true if the given object is an instance of SourceControlToken. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SourceControlToken; /** * The Access Token. */ readonly token: pulumi.Output; /** * The Access Token Secret. * * > **Note:** The token used for deploying App Service needs the following permissions: `repo` and `workflow`. */ readonly tokenSecret: pulumi.Output; /** * The Token type. Possible values include `Bitbucket`, `Dropbox`, `Github`, and `OneDrive`. */ readonly type: pulumi.Output; /** * Create a SourceControlToken resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SourceControlTokenArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SourceControlToken resources. */ export interface SourceControlTokenState { /** * The Access Token. */ token?: pulumi.Input; /** * The Access Token Secret. * * > **Note:** The token used for deploying App Service needs the following permissions: `repo` and `workflow`. */ tokenSecret?: pulumi.Input; /** * The Token type. Possible values include `Bitbucket`, `Dropbox`, `Github`, and `OneDrive`. */ type?: pulumi.Input; } /** * The set of arguments for constructing a SourceControlToken resource. */ export interface SourceControlTokenArgs { /** * The Access Token. */ token: pulumi.Input; /** * The Access Token Secret. * * > **Note:** The token used for deploying App Service needs the following permissions: `repo` and `workflow`. */ tokenSecret?: pulumi.Input; /** * The Token type. Possible values include `Bitbucket`, `Dropbox`, `Github`, and `OneDrive`. */ type: pulumi.Input; }