import * as pulumi from "@pulumi/pulumi"; /** * Manages a Hostname Binding within an App Service Slot. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "some-resource-group", * location: "West Europe", * }); * const examplePlan = new azure.appservice.Plan("example", { * name: "some-app-service-plan", * location: example.location, * resourceGroupName: example.name, * sku: { * tier: "Standard", * size: "S1", * }, * }); * const exampleAppService = new azure.appservice.AppService("example", { * name: "some-app-service", * location: example.location, * resourceGroupName: example.name, * appServicePlanId: examplePlan.id, * }); * const exampleSlot = new azure.appservice.Slot("example", { * name: "staging", * location: example.location, * resourceGroupName: example.name, * appServiceName: exampleAppService.name, * appServicePlanId: examplePlan.id, * }); * const exampleSlotCustomHostnameBinding = new azure.appservice.SlotCustomHostnameBinding("example", { * appServiceSlotId: exampleSlot.id, * hostname: "www.mywebsite.com", * }); * ``` * * ## Import * * App Service Custom Hostname Bindings can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appservice/slotCustomHostnameBinding:SlotCustomHostnameBinding mywebsite /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/instance1/slots/staging/hostNameBindings/mywebsite.com * ``` */ export declare class SlotCustomHostnameBinding extends pulumi.CustomResource { /** * Get an existing SlotCustomHostnameBinding 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?: SlotCustomHostnameBindingState, opts?: pulumi.CustomResourceOptions): SlotCustomHostnameBinding; /** * Returns true if the given object is an instance of SlotCustomHostnameBinding. 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 SlotCustomHostnameBinding; /** * The ID of the App Service Slot. Changing this forces a new resource to be created. */ readonly appServiceSlotId: pulumi.Output; /** * Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. * * > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. */ readonly hostname: pulumi.Output; /** * The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. */ readonly sslState: pulumi.Output; /** * The SSL certificate thumbprint. Changing this forces a new resource to be created. * * > **Note:** `thumbprint` must be specified when `sslState` is set. */ readonly thumbprint: pulumi.Output; /** * The virtual IP address assigned to the hostname if IP based SSL is enabled. */ readonly virtualIp: pulumi.Output; /** * Create a SlotCustomHostnameBinding 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: SlotCustomHostnameBindingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SlotCustomHostnameBinding resources. */ export interface SlotCustomHostnameBindingState { /** * The ID of the App Service Slot. Changing this forces a new resource to be created. */ appServiceSlotId?: pulumi.Input; /** * Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. * * > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. */ hostname?: pulumi.Input; /** * The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. */ sslState?: pulumi.Input; /** * The SSL certificate thumbprint. Changing this forces a new resource to be created. * * > **Note:** `thumbprint` must be specified when `sslState` is set. */ thumbprint?: pulumi.Input; /** * The virtual IP address assigned to the hostname if IP based SSL is enabled. */ virtualIp?: pulumi.Input; } /** * The set of arguments for constructing a SlotCustomHostnameBinding resource. */ export interface SlotCustomHostnameBindingArgs { /** * The ID of the App Service Slot. Changing this forces a new resource to be created. */ appServiceSlotId: pulumi.Input; /** * Specifies the Custom Hostname to use for the App Service, example `www.example.com`. Changing this forces a new resource to be created. * * > **Note:** A CNAME needs to be configured from this Hostname to the Azure Website - otherwise Azure will reject the Hostname Binding. */ hostname: pulumi.Input; /** * The SSL type. Possible values are `IpBasedEnabled` and `SniEnabled`. Changing this forces a new resource to be created. */ sslState?: pulumi.Input; /** * The SSL certificate thumbprint. Changing this forces a new resource to be created. * * > **Note:** `thumbprint` must be specified when `sslState` is set. */ thumbprint?: pulumi.Input; }