import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an App Service Source Control Slot. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleServicePlan = new azure.appservice.ServicePlan("example", { * name: "example-plan", * resourceGroupName: example.name, * location: example.location, * osType: "Linux", * skuName: "P1v2", * }); * const exampleLinuxWebApp = new azure.appservice.LinuxWebApp("example", { * name: "example-web-app", * resourceGroupName: example.name, * location: exampleServicePlan.location, * servicePlanId: exampleServicePlan.id, * siteConfig: {}, * }); * const exampleLinuxWebAppSlot = new azure.appservice.LinuxWebAppSlot("example", { * name: "example-slot", * appServiceId: exampleLinuxWebApp.id, * siteConfig: {}, * }); * const exampleSourceControlSlot = new azure.appservice.SourceControlSlot("example", { * slotId: exampleLinuxWebAppSlot.id, * repoUrl: "https://github.com/Azure-Samples/python-docs-hello-world", * branch: "master", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Web` - 2023-12-01 * * ## Import * * an App Service Source Control Slot can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appservice/sourceControlSlot:SourceControlSlot example "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Web/sites/site1/slots/slot1" * ``` */ export declare class SourceControlSlot extends pulumi.CustomResource { /** * Get an existing SourceControlSlot 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?: SourceControlSlotState, opts?: pulumi.CustomResourceOptions): SourceControlSlot; /** * Returns true if the given object is an instance of SourceControlSlot. 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 SourceControlSlot; /** * The URL for the repository. Changing this forces a new resource to be created. */ readonly branch: pulumi.Output; /** * A `githubActionConfiguration` block as detailed below. Changing this forces a new resource to be created. */ readonly githubActionConfiguration: pulumi.Output; /** * The branch name to use for deployments. Changing this forces a new resource to be created. */ readonly repoUrl: pulumi.Output; /** * Should the Deployment Rollback be enabled? Defaults to `false` Changing this forces a new resource to be created. */ readonly rollbackEnabled: pulumi.Output; /** * The SCM Type in use. This value is decoded by the service from the repository information supplied. */ readonly scmType: pulumi.Output; /** * The ID of the Linux or Windows Web App Slot. Changing this forces a new resource to be created. * * > **Note:** Function App Slots are not supported at this time. */ readonly slotId: pulumi.Output; /** * Should the Slot use local Git configuration. Changing this forces a new resource to be created. */ readonly useLocalGit: pulumi.Output; /** * Should code be deployed manually. Set to `true` to disable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. */ readonly useManualIntegration: pulumi.Output; /** * The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. */ readonly useMercurial: pulumi.Output; /** * Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied. */ readonly usesGithubAction: pulumi.Output; /** * Create a SourceControlSlot 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: SourceControlSlotArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SourceControlSlot resources. */ export interface SourceControlSlotState { /** * The URL for the repository. Changing this forces a new resource to be created. */ branch?: pulumi.Input; /** * A `githubActionConfiguration` block as detailed below. Changing this forces a new resource to be created. */ githubActionConfiguration?: pulumi.Input; /** * The branch name to use for deployments. Changing this forces a new resource to be created. */ repoUrl?: pulumi.Input; /** * Should the Deployment Rollback be enabled? Defaults to `false` Changing this forces a new resource to be created. */ rollbackEnabled?: pulumi.Input; /** * The SCM Type in use. This value is decoded by the service from the repository information supplied. */ scmType?: pulumi.Input; /** * The ID of the Linux or Windows Web App Slot. Changing this forces a new resource to be created. * * > **Note:** Function App Slots are not supported at this time. */ slotId?: pulumi.Input; /** * Should the Slot use local Git configuration. Changing this forces a new resource to be created. */ useLocalGit?: pulumi.Input; /** * Should code be deployed manually. Set to `true` to disable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. */ useManualIntegration?: pulumi.Input; /** * The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. */ useMercurial?: pulumi.Input; /** * Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied. */ usesGithubAction?: pulumi.Input; } /** * The set of arguments for constructing a SourceControlSlot resource. */ export interface SourceControlSlotArgs { /** * The URL for the repository. Changing this forces a new resource to be created. */ branch?: pulumi.Input; /** * A `githubActionConfiguration` block as detailed below. Changing this forces a new resource to be created. */ githubActionConfiguration?: pulumi.Input; /** * The branch name to use for deployments. Changing this forces a new resource to be created. */ repoUrl?: pulumi.Input; /** * Should the Deployment Rollback be enabled? Defaults to `false` Changing this forces a new resource to be created. */ rollbackEnabled?: pulumi.Input; /** * The ID of the Linux or Windows Web App Slot. Changing this forces a new resource to be created. * * > **Note:** Function App Slots are not supported at this time. */ slotId: pulumi.Input; /** * Should the Slot use local Git configuration. Changing this forces a new resource to be created. */ useLocalGit?: pulumi.Input; /** * Should code be deployed manually. Set to `true` to disable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created. */ useManualIntegration?: pulumi.Input; /** * The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created. */ useMercurial?: pulumi.Input; }