import * as pulumi from "@pulumi/pulumi"; /** * Manages an App Service Hybrid Connection for an existing App Service, Relay and Service Bus. * * !> **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.FunctionAppHybridConnection` and `azure.appservice.WebAppHybridConnection` resources instead. * * ## Example Usage * * This example provisions an App Service, a Relay Hybrid Connection, and a Service Bus using their outputs to create the App Service Hybrid Connection. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "exampleResourceGroup1", * location: "West Europe", * }); * const examplePlan = new azure.appservice.Plan("example", { * name: "exampleAppServicePlan1", * location: example.location, * resourceGroupName: example.name, * sku: { * tier: "Standard", * size: "S1", * }, * }); * const exampleAppService = new azure.appservice.AppService("example", { * name: "exampleAppService1", * location: example.location, * resourceGroupName: example.name, * appServicePlanId: examplePlan.id, * }); * const exampleNamespace = new azure.relay.Namespace("example", { * name: "exampleRN1", * location: example.location, * resourceGroupName: example.name, * skuName: "Standard", * }); * const exampleHybridConnection = new azure.relay.HybridConnection("example", { * name: "exampleRHC1", * resourceGroupName: example.name, * relayNamespaceName: exampleNamespace.name, * userMetadata: "examplemetadata", * }); * const exampleHybridConnection2 = new azure.appservice.HybridConnection("example", { * appServiceName: exampleAppService.name, * resourceGroupName: example.name, * relayId: exampleHybridConnection.id, * hostname: "testhostname.example", * port: 8080, * sendKeyName: "exampleSharedAccessKey", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Relay` - 2021-11-01 * * ## Import * * App Service Hybrid Connections can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appservice/hybridConnection:HybridConnection example /subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/exampleResourceGroup1/providers/Microsoft.Web/sites/exampleAppService1/hybridConnectionNamespaces/exampleRN1/relays/exampleRHC1 * ``` */ export declare class HybridConnection extends pulumi.CustomResource { /** * Get an existing HybridConnection 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?: HybridConnectionState, opts?: pulumi.CustomResourceOptions): HybridConnection; /** * Returns true if the given object is an instance of HybridConnection. 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 HybridConnection; /** * Specifies the name of the App Service. Changing this forces a new resource to be created. */ readonly appServiceName: pulumi.Output; /** * The hostname of the endpoint. */ readonly hostname: pulumi.Output; /** * The name of the Relay Namespace. */ readonly namespaceName: pulumi.Output; /** * The port of the endpoint. */ readonly port: pulumi.Output; /** * The ID of the Service Bus Relay. Changing this forces a new resource to be created. */ readonly relayId: pulumi.Output; readonly relayName: pulumi.Output; /** * The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The name of the Service Bus key which has Send permissions. Defaults to `RootManageSharedAccessKey`. */ readonly sendKeyName: pulumi.Output; /** * The value of the Service Bus Primary Access key. */ readonly sendKeyValue: pulumi.Output; /** * The name of the Service Bus namespace. */ readonly serviceBusNamespace: pulumi.Output; /** * The suffix for the service bus endpoint. */ readonly serviceBusSuffix: pulumi.Output; /** * Create a HybridConnection 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: HybridConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HybridConnection resources. */ export interface HybridConnectionState { /** * Specifies the name of the App Service. Changing this forces a new resource to be created. */ appServiceName?: pulumi.Input; /** * The hostname of the endpoint. */ hostname?: pulumi.Input; /** * The name of the Relay Namespace. */ namespaceName?: pulumi.Input; /** * The port of the endpoint. */ port?: pulumi.Input; /** * The ID of the Service Bus Relay. Changing this forces a new resource to be created. */ relayId?: pulumi.Input; relayName?: pulumi.Input; /** * The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The name of the Service Bus key which has Send permissions. Defaults to `RootManageSharedAccessKey`. */ sendKeyName?: pulumi.Input; /** * The value of the Service Bus Primary Access key. */ sendKeyValue?: pulumi.Input; /** * The name of the Service Bus namespace. */ serviceBusNamespace?: pulumi.Input; /** * The suffix for the service bus endpoint. */ serviceBusSuffix?: pulumi.Input; } /** * The set of arguments for constructing a HybridConnection resource. */ export interface HybridConnectionArgs { /** * Specifies the name of the App Service. Changing this forces a new resource to be created. */ appServiceName: pulumi.Input; /** * The hostname of the endpoint. */ hostname: pulumi.Input; /** * The port of the endpoint. */ port: pulumi.Input; /** * The ID of the Service Bus Relay. Changing this forces a new resource to be created. */ relayId: pulumi.Input; /** * The name of the resource group in which to create the App Service. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The name of the Service Bus key which has Send permissions. Defaults to `RootManageSharedAccessKey`. */ sendKeyName?: pulumi.Input; }