import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Azure Web PubSub Service. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "terraform-webpubsub", * location: "east us", * }); * const exampleService = new azure.webpubsub.Service("example", { * name: "tfex-webpubsub", * location: example.location, * resourceGroupName: example.name, * sku: "Standard_S1", * capacity: 1, * publicNetworkAccessEnabled: false, * liveTrace: { * enabled: true, * messagingLogsEnabled: true, * connectivityLogsEnabled: false, * }, * identity: { * type: "SystemAssigned", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.SignalRService` - 2024-03-01 * * ## Import * * Web PubSub services can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:webpubsub/service:Service example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.SignalRService/webPubSub/pubsub1 * ``` */ 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, 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; /** * Specifies the number of units associated with this Web PubSub resource. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `90`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` and `1000`. * * > **Note:** The valid capacity range for sku `Free_F1` is `1`, for sku `Premium_P2` is from `100` to `1000`, and from `1` to `100` for sku `Standard_S1` and `Premium_P1`. */ readonly capacity: pulumi.Output; /** * The publicly accessible IP of the Web PubSub service. */ readonly externalIp: pulumi.Output; /** * The FQDN of the Web PubSub service. */ readonly hostname: pulumi.Output; /** * An `identity` block as defined below. */ readonly identity: pulumi.Output; /** * A `liveTrace` block as defined below. */ readonly liveTrace: pulumi.Output; /** * Whether to enable local auth? Defaults to `true`. */ readonly localAuthEnabled: pulumi.Output; /** * Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The name of the Web PubSub service. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The primary access key for the Web PubSub service. */ readonly primaryAccessKey: pulumi.Output; /** * The primary connection string for the Web PubSub service. */ readonly primaryConnectionString: pulumi.Output; /** * Whether to enable public network access? Defaults to `true`. */ readonly publicNetworkAccessEnabled: pulumi.Output; /** * The publicly accessible port of the Web PubSub service which is designed for browser/client use. */ readonly publicPort: pulumi.Output; /** * The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The secondary access key for the Web PubSub service. */ readonly secondaryAccessKey: pulumi.Output; /** * The secondary connection string for the Web PubSub service. */ readonly secondaryConnectionString: pulumi.Output; /** * The publicly accessible port of the Web PubSub service which is designed for customer server side use. */ readonly serverPort: pulumi.Output; /** * Specifies which SKU to use. Possible values are `Free_F1`, `Standard_S1`, `Premium_P1` and `Premium_P2`. */ readonly sku: pulumi.Output; /** * 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`. */ readonly tlsClientCertEnabled: pulumi.Output; readonly version: pulumi.Output; /** * 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; /** * Specifies the number of units associated with this Web PubSub resource. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `90`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` and `1000`. * * > **Note:** The valid capacity range for sku `Free_F1` is `1`, for sku `Premium_P2` is from `100` to `1000`, and from `1` to `100` for sku `Standard_S1` and `Premium_P1`. */ capacity?: pulumi.Input; /** * The publicly accessible IP of the Web PubSub service. */ externalIp?: pulumi.Input; /** * The FQDN of the Web PubSub service. */ hostname?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * A `liveTrace` block as defined below. */ liveTrace?: pulumi.Input; /** * Whether to enable local auth? Defaults to `true`. */ localAuthEnabled?: pulumi.Input; /** * Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name of the Web PubSub service. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The primary access key for the Web PubSub service. */ primaryAccessKey?: pulumi.Input; /** * The primary connection string for the Web PubSub service. */ primaryConnectionString?: pulumi.Input; /** * Whether to enable public network access? Defaults to `true`. */ publicNetworkAccessEnabled?: pulumi.Input; /** * The publicly accessible port of the Web PubSub service which is designed for browser/client use. */ publicPort?: pulumi.Input; /** * The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The secondary access key for the Web PubSub service. */ secondaryAccessKey?: pulumi.Input; /** * The secondary connection string for the Web PubSub service. */ secondaryConnectionString?: pulumi.Input; /** * The publicly accessible port of the Web PubSub service which is designed for customer server side use. */ serverPort?: pulumi.Input; /** * Specifies which SKU to use. Possible values are `Free_F1`, `Standard_S1`, `Premium_P1` and `Premium_P2`. */ sku?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Whether to request client certificate during TLS handshake? Defaults to `false`. */ tlsClientCertEnabled?: pulumi.Input; version?: pulumi.Input; } /** * The set of arguments for constructing a Service resource. */ export interface ServiceArgs { /** * Whether to enable AAD auth? Defaults to `true`. */ aadAuthEnabled?: pulumi.Input; /** * Specifies the number of units associated with this Web PubSub resource. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `20`, `30`, `40`, `50`, `60`, `70`, `80`, `90`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` and `1000`. * * > **Note:** The valid capacity range for sku `Free_F1` is `1`, for sku `Premium_P2` is from `100` to `1000`, and from `1` to `100` for sku `Standard_S1` and `Premium_P1`. */ capacity?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * A `liveTrace` block as defined below. */ liveTrace?: pulumi.Input; /** * Whether to enable local auth? Defaults to `true`. */ localAuthEnabled?: pulumi.Input; /** * Specifies the supported Azure location where the Web PubSub service exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name of the Web PubSub service. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Whether to enable public network access? Defaults to `true`. */ publicNetworkAccessEnabled?: pulumi.Input; /** * The name of the resource group in which to create the Web PubSub service. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * Specifies which SKU to use. Possible values are `Free_F1`, `Standard_S1`, `Premium_P1` and `Premium_P2`. */ sku: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Whether to request client certificate during TLS handshake? Defaults to `false`. */ tlsClientCertEnabled?: pulumi.Input; }