import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * Manages an Azure SignalR service.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "my-signalr",
 *     location: "West US",
 * });
 * const exampleService = new azure.signalr.Service("example", {
 *     name: "tfex-signalr",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     sku: {
 *         name: "Free_F1",
 *         capacity: 1,
 *     },
 *     cors: [{
 *         allowedOrigins: ["http://www.example.com"],
 *     }],
 *     publicNetworkAccessEnabled: false,
 *     connectivityLogsEnabled: true,
 *     messagingLogsEnabled: true,
 *     serviceMode: "Default",
 *     upstreamEndpoints: [{
 *         categoryPatterns: [
 *             "connections",
 *             "messages",
 *         ],
 *         eventPatterns: ["*"],
 *         hubPatterns: ["hub1"],
 *         urlTemplate: "http://foo.com",
 *     }],
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.SignalRService` - 2024-03-01
 *
 * ## Import
 *
 * SignalR services can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:signalr/service:Service example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/terraform-signalr/providers/Microsoft.SignalRService/signalR/tfex-signalr
 * ```
 */
export declare class Service extends pulumi.CustomResource {
    /**
     * Get an existing Service 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<pulumi.ID>, state?: ServiceState, opts?: pulumi.CustomResourceOptions): Service;
    /**
     * Returns true if the given object is an instance of Service.  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 Service;
    /**
     * Whether to enable AAD auth? Defaults to `true`.
     */
    readonly aadAuthEnabled: pulumi.Output<boolean | undefined>;
    /**
     * Specifies if Connectivity Logs are enabled or not. Defaults to `false`.
     */
    readonly connectivityLogsEnabled: pulumi.Output<boolean | undefined>;
    /**
     * A `cors` block as documented below.
     */
    readonly cors: pulumi.Output<outputs.signalr.ServiceCor[]>;
    /**
     * The FQDN of the SignalR service.
     */
    readonly hostname: pulumi.Output<string>;
    /**
     * Specifies if Http Request Logs are enabled or not. Defaults to `false`.
     */
    readonly httpRequestLogsEnabled: pulumi.Output<boolean | undefined>;
    /**
     * An `identity` block as defined below.
     */
    readonly identity: pulumi.Output<outputs.signalr.ServiceIdentity | undefined>;
    /**
     * The publicly accessible IP of the SignalR service.
     */
    readonly ipAddress: pulumi.Output<string>;
    /**
     * A `liveTrace` block as defined below.
     */
    readonly liveTrace: pulumi.Output<outputs.signalr.ServiceLiveTrace | undefined>;
    /**
     * @deprecated `liveTraceEnabled` has been deprecated in favor of `liveTrace` and will be removed in 4.0.
     */
    readonly liveTraceEnabled: pulumi.Output<boolean | undefined>;
    /**
     * Whether to enable local auth? Defaults to `true`.
     */
    readonly localAuthEnabled: pulumi.Output<boolean | undefined>;
    /**
     * Specifies the supported Azure location where the SignalR service exists. Changing this forces a new resource to be created.
     */
    readonly location: pulumi.Output<string>;
    /**
     * Specifies if Messaging Logs are enabled or not. Defaults to `false`.
     */
    readonly messagingLogsEnabled: pulumi.Output<boolean | undefined>;
    /**
     * The name of the SignalR service. Changing this forces a new resource to be created.
     */
    readonly name: pulumi.Output<string>;
    /**
     * The primary access key for the SignalR service.
     */
    readonly primaryAccessKey: pulumi.Output<string>;
    /**
     * The primary connection string for the SignalR service.
     */
    readonly primaryConnectionString: pulumi.Output<string>;
    /**
     * Whether to enable public network access? Defaults to `true`.
     *
     * > **Note:** `publicNetworkAccessEnabled` cannot be set to `false` in `Free` sku tier.
     */
    readonly publicNetworkAccessEnabled: pulumi.Output<boolean | undefined>;
    /**
     * The publicly accessible port of the SignalR service which is designed for browser/client use.
     */
    readonly publicPort: pulumi.Output<number>;
    /**
     * The name of the resource group in which to create the SignalR service. Changing this forces a new resource to be created.
     */
    readonly resourceGroupName: pulumi.Output<string>;
    /**
     * The secondary access key for the SignalR service.
     */
    readonly secondaryAccessKey: pulumi.Output<string>;
    /**
     * The secondary connection string for the SignalR service.
     */
    readonly secondaryConnectionString: pulumi.Output<string>;
    /**
     * The publicly accessible port of the SignalR service which is designed for customer server side use.
     */
    readonly serverPort: pulumi.Output<number>;
    /**
     * Specifies the client connection timeout. Defaults to `30`.
     */
    readonly serverlessConnectionTimeoutInSeconds: pulumi.Output<number | undefined>;
    /**
     * Specifies the service mode. Possible values are `Classic`, `Default` and `Serverless`. Defaults to `Default`.
     */
    readonly serviceMode: pulumi.Output<string | undefined>;
    /**
     * A `sku` block as documented below.
     */
    readonly sku: pulumi.Output<outputs.signalr.ServiceSku>;
    /**
     * A mapping of tags to assign to the resource.
     */
    readonly tags: pulumi.Output<{
        [key: string]: string;
    } | undefined>;
    /**
     * Whether to request client certificate during TLS handshake? Defaults to `false`.
     *
     * > **Note:** `tlsClientCertEnabled` cannot be set to `true` in `Free` sku tier.
     */
    readonly tlsClientCertEnabled: pulumi.Output<boolean | undefined>;
    /**
     * An `upstreamEndpoint` block as documented below. Using this block requires the SignalR service to be Serverless. When creating multiple blocks they will be processed in the order they are defined in.
     */
    readonly upstreamEndpoints: pulumi.Output<outputs.signalr.ServiceUpstreamEndpoint[] | undefined>;
    /**
     * Create a Service 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: ServiceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering Service resources.
 */
export interface ServiceState {
    /**
     * Whether to enable AAD auth? Defaults to `true`.
     */
    aadAuthEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * Specifies if Connectivity Logs are enabled or not. Defaults to `false`.
     */
    connectivityLogsEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * A `cors` block as documented below.
     */
    cors?: pulumi.Input<pulumi.Input<inputs.signalr.ServiceCor>[] | undefined>;
    /**
     * The FQDN of the SignalR service.
     */
    hostname?: pulumi.Input<string | undefined>;
    /**
     * Specifies if Http Request Logs are enabled or not. Defaults to `false`.
     */
    httpRequestLogsEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * An `identity` block as defined below.
     */
    identity?: pulumi.Input<inputs.signalr.ServiceIdentity | undefined>;
    /**
     * The publicly accessible IP of the SignalR service.
     */
    ipAddress?: pulumi.Input<string | undefined>;
    /**
     * A `liveTrace` block as defined below.
     */
    liveTrace?: pulumi.Input<inputs.signalr.ServiceLiveTrace | undefined>;
    /**
     * @deprecated `liveTraceEnabled` has been deprecated in favor of `liveTrace` and will be removed in 4.0.
     */
    liveTraceEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * Whether to enable local auth? Defaults to `true`.
     */
    localAuthEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * Specifies the supported Azure location where the SignalR service exists. Changing this forces a new resource to be created.
     */
    location?: pulumi.Input<string | undefined>;
    /**
     * Specifies if Messaging Logs are enabled or not. Defaults to `false`.
     */
    messagingLogsEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * The name of the SignalR service. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The primary access key for the SignalR service.
     */
    primaryAccessKey?: pulumi.Input<string | undefined>;
    /**
     * The primary connection string for the SignalR service.
     */
    primaryConnectionString?: pulumi.Input<string | undefined>;
    /**
     * Whether to enable public network access? Defaults to `true`.
     *
     * > **Note:** `publicNetworkAccessEnabled` cannot be set to `false` in `Free` sku tier.
     */
    publicNetworkAccessEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * The publicly accessible port of the SignalR service which is designed for browser/client use.
     */
    publicPort?: pulumi.Input<number | undefined>;
    /**
     * The name of the resource group in which to create the SignalR service. Changing this forces a new resource to be created.
     */
    resourceGroupName?: pulumi.Input<string | undefined>;
    /**
     * The secondary access key for the SignalR service.
     */
    secondaryAccessKey?: pulumi.Input<string | undefined>;
    /**
     * The secondary connection string for the SignalR service.
     */
    secondaryConnectionString?: pulumi.Input<string | undefined>;
    /**
     * The publicly accessible port of the SignalR service which is designed for customer server side use.
     */
    serverPort?: pulumi.Input<number | undefined>;
    /**
     * Specifies the client connection timeout. Defaults to `30`.
     */
    serverlessConnectionTimeoutInSeconds?: pulumi.Input<number | undefined>;
    /**
     * Specifies the service mode. Possible values are `Classic`, `Default` and `Serverless`. Defaults to `Default`.
     */
    serviceMode?: pulumi.Input<string | undefined>;
    /**
     * A `sku` block as documented below.
     */
    sku?: pulumi.Input<inputs.signalr.ServiceSku | undefined>;
    /**
     * A mapping of tags to assign to the resource.
     */
    tags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * Whether to request client certificate during TLS handshake? Defaults to `false`.
     *
     * > **Note:** `tlsClientCertEnabled` cannot be set to `true` in `Free` sku tier.
     */
    tlsClientCertEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * An `upstreamEndpoint` block as documented below. Using this block requires the SignalR service to be Serverless. When creating multiple blocks they will be processed in the order they are defined in.
     */
    upstreamEndpoints?: pulumi.Input<pulumi.Input<inputs.signalr.ServiceUpstreamEndpoint>[] | undefined>;
}
/**
 * The set of arguments for constructing a Service resource.
 */
export interface ServiceArgs {
    /**
     * Whether to enable AAD auth? Defaults to `true`.
     */
    aadAuthEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * Specifies if Connectivity Logs are enabled or not. Defaults to `false`.
     */
    connectivityLogsEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * A `cors` block as documented below.
     */
    cors?: pulumi.Input<pulumi.Input<inputs.signalr.ServiceCor>[] | undefined>;
    /**
     * Specifies if Http Request Logs are enabled or not. Defaults to `false`.
     */
    httpRequestLogsEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * An `identity` block as defined below.
     */
    identity?: pulumi.Input<inputs.signalr.ServiceIdentity | undefined>;
    /**
     * A `liveTrace` block as defined below.
     */
    liveTrace?: pulumi.Input<inputs.signalr.ServiceLiveTrace | undefined>;
    /**
     * @deprecated `liveTraceEnabled` has been deprecated in favor of `liveTrace` and will be removed in 4.0.
     */
    liveTraceEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * Whether to enable local auth? Defaults to `true`.
     */
    localAuthEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * Specifies the supported Azure location where the SignalR service exists. Changing this forces a new resource to be created.
     */
    location?: pulumi.Input<string | undefined>;
    /**
     * Specifies if Messaging Logs are enabled or not. Defaults to `false`.
     */
    messagingLogsEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * The name of the SignalR service. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * Whether to enable public network access? Defaults to `true`.
     *
     * > **Note:** `publicNetworkAccessEnabled` cannot be set to `false` in `Free` sku tier.
     */
    publicNetworkAccessEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * The name of the resource group in which to create the SignalR service. Changing this forces a new resource to be created.
     */
    resourceGroupName: pulumi.Input<string>;
    /**
     * Specifies the client connection timeout. Defaults to `30`.
     */
    serverlessConnectionTimeoutInSeconds?: pulumi.Input<number | undefined>;
    /**
     * Specifies the service mode. Possible values are `Classic`, `Default` and `Serverless`. Defaults to `Default`.
     */
    serviceMode?: pulumi.Input<string | undefined>;
    /**
     * A `sku` block as documented below.
     */
    sku: pulumi.Input<inputs.signalr.ServiceSku>;
    /**
     * A mapping of tags to assign to the resource.
     */
    tags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
    /**
     * Whether to request client certificate during TLS handshake? Defaults to `false`.
     *
     * > **Note:** `tlsClientCertEnabled` cannot be set to `true` in `Free` sku tier.
     */
    tlsClientCertEnabled?: pulumi.Input<boolean | undefined>;
    /**
     * An `upstreamEndpoint` block as documented below. Using this block requires the SignalR service to be Serverless. When creating multiple blocks they will be processed in the order they are defined in.
     */
    upstreamEndpoints?: pulumi.Input<pulumi.Input<inputs.signalr.ServiceUpstreamEndpoint>[] | undefined>;
}
//# sourceMappingURL=service.d.ts.map