import * as pulumi from "@pulumi/pulumi"; /** * Promotes an App Service Slot to Production within an App Service. * * !> **NOTE:** This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use `azure.appservice.WebAppActiveSlot` resource instead. * * > **Note:** When using Slots - the `appSettings`, `connectionString` and `siteConfig` blocks on the `azure.appservice.AppService` resource will be overwritten when promoting a Slot using the `azure.appservice.ActiveSlot` resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * import * as random from "@pulumi/random"; * * const server = new random.index.Id("server", {}); * const example = new azure.core.ResourceGroup("example", {}); * const examplePlan = new azure.appservice.Plan("example", {}); * const exampleAppService = new azure.appservice.AppService("example", {}); * const exampleSlot = new azure.appservice.Slot("example", {}); * const exampleActiveSlot = new azure.appservice.ActiveSlot("example", { * resourceGroupName: example.name, * appServiceName: exampleAppService.name, * appServiceSlotName: exampleSlot.name, * }); * ``` */ export declare class ActiveSlot extends pulumi.CustomResource { /** * Get an existing ActiveSlot 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?: ActiveSlotState, opts?: pulumi.CustomResourceOptions): ActiveSlot; /** * Returns true if the given object is an instance of ActiveSlot. 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 ActiveSlot; /** * The name of the App Service within which the Slot exists. Changing this forces a new resource to be created. */ readonly appServiceName: pulumi.Output; /** * The name of the App Service Slot which should be promoted to the Production Slot within the App Service. */ readonly appServiceSlotName: pulumi.Output; /** * The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * Create a ActiveSlot 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: ActiveSlotArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ActiveSlot resources. */ export interface ActiveSlotState { /** * The name of the App Service within which the Slot exists. Changing this forces a new resource to be created. */ appServiceName?: pulumi.Input; /** * The name of the App Service Slot which should be promoted to the Production Slot within the App Service. */ appServiceSlotName?: pulumi.Input; /** * The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; } /** * The set of arguments for constructing a ActiveSlot resource. */ export interface ActiveSlotArgs { /** * The name of the App Service within which the Slot exists. Changing this forces a new resource to be created. */ appServiceName: pulumi.Input; /** * The name of the App Service Slot which should be promoted to the Production Slot within the App Service. */ appServiceSlotName: pulumi.Input; /** * The name of the resource group in which the App Service exists. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; }