import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Voice Services Communications Gateways. * * !> **Note:** You must have signed an Operator Connect agreement with Microsoft to use this resource. For more information, see [`Prerequisites`](https://learn.microsoft.com/en-us/azure/communications-gateway/prepare-to-deploy#prerequisites). * * !> **Note:** Access to Azure Communications Gateway is restricted, see [`Get access to Azure Communications Gateway for your Azure subscription`](https://learn.microsoft.com/en-us/azure/communications-gateway/prepare-to-deploy#9-get-access-to-azure-communications-gateway-for-your-azure-subscription) for details. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleServicesCommunicationsGateway = new azure.voice.ServicesCommunicationsGateway("example", { * name: "example-vcg", * location: "West Europe", * resourceGroupName: example.name, * connectivity: "PublicAddress", * codecs: "PCMA", * e911Type: "DirectToEsrp", * platforms: [ * "OperatorConnect", * "TeamsPhoneMobile", * ], * serviceLocations: [ * { * location: "eastus", * allowedMediaSourceAddressPrefixes: ["10.1.2.0/24"], * allowedSignalingSourceAddressPrefixes: ["10.1.1.0/24"], * esrpAddresses: ["198.51.100.3"], * operatorAddresses: ["198.51.100.1"], * }, * { * location: "eastus2", * allowedMediaSourceAddressPrefixes: ["10.2.2.0/24"], * allowedSignalingSourceAddressPrefixes: ["10.2.1.0/24"], * esrpAddresses: ["198.51.100.4"], * operatorAddresses: ["198.51.100.2"], * }, * ], * autoGeneratedDomainNameLabelScope: "SubscriptionReuse", * apiBridge: JSON.stringify({}), * emergencyDialStrings: [ * "911", * "933", * ], * onPremMcpEnabled: false, * tags: { * key: "value", * }, * microsoftTeamsVoicemailPilotNumber: "1", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.VoiceServices` - 2023-04-03 * * ## Import * * Voice Services Communications Gateways can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:voice/servicesCommunicationsGateway:ServicesCommunicationsGateway example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.VoiceServices/communicationsGateways/communicationsGateway1 * ``` */ export declare class ServicesCommunicationsGateway extends pulumi.CustomResource { /** * Get an existing ServicesCommunicationsGateway 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?: ServicesCommunicationsGatewayState, opts?: pulumi.CustomResourceOptions): ServicesCommunicationsGateway; /** * Returns true if the given object is an instance of ServicesCommunicationsGateway. 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 ServicesCommunicationsGateway; /** * Details of API bridge functionality, if required. */ readonly apiBridge: pulumi.Output; /** * Specifies the scope at which the auto-generated domain name can be re-used. Possible values are `TenantReuse`, `SubscriptionReuse`, `ResourceGroupReuse` and `NoReuse` . Changing this forces a new resource to be created. Defaults to `TenantReuse`. */ readonly autoGeneratedDomainNameLabelScope: pulumi.Output; /** * The voice codecs expected for communication with Teams. Possible values are `PCMA`, `PCMU`,`G722`,`G722_2`,`SILK_8` and `SILK_16`. */ readonly codecs: pulumi.Output; /** * How to connect back to the operator network, e.g. MAPS. Possible values is `PublicAddress`. Changing this forces a new Voice Services Communications Gateways to be created. */ readonly connectivity: pulumi.Output; /** * How to handle 911 calls. Possible values are `Standard` and `DirectToEsrp`. */ readonly e911Type: pulumi.Output; /** * A list of dial strings used for emergency calling. */ readonly emergencyDialStrings: pulumi.Output; /** * Specifies the Azure Region where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer. */ readonly microsoftTeamsVoicemailPilotNumber: pulumi.Output; /** * Specifies the name which should be used for this Voice Services Communications Gateways. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Whether an on-premises Mobile Control Point is in use. */ readonly onPremMcpEnabled: pulumi.Output; /** * The Voice Services Communications GatewaysAvailable supports platform types. Possible values are `OperatorConnect`, `TeamsPhoneMobile`. */ readonly platforms: pulumi.Output; /** * Specifies the name of the Resource Group where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A `serviceLocation` block as defined below. */ readonly serviceLocations: pulumi.Output; /** * A mapping of tags which should be assigned to the Voice Services Communications Gateways. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a ServicesCommunicationsGateway 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: ServicesCommunicationsGatewayArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ServicesCommunicationsGateway resources. */ export interface ServicesCommunicationsGatewayState { /** * Details of API bridge functionality, if required. */ apiBridge?: pulumi.Input; /** * Specifies the scope at which the auto-generated domain name can be re-used. Possible values are `TenantReuse`, `SubscriptionReuse`, `ResourceGroupReuse` and `NoReuse` . Changing this forces a new resource to be created. Defaults to `TenantReuse`. */ autoGeneratedDomainNameLabelScope?: pulumi.Input; /** * The voice codecs expected for communication with Teams. Possible values are `PCMA`, `PCMU`,`G722`,`G722_2`,`SILK_8` and `SILK_16`. */ codecs?: pulumi.Input; /** * How to connect back to the operator network, e.g. MAPS. Possible values is `PublicAddress`. Changing this forces a new Voice Services Communications Gateways to be created. */ connectivity?: pulumi.Input; /** * How to handle 911 calls. Possible values are `Standard` and `DirectToEsrp`. */ e911Type?: pulumi.Input; /** * A list of dial strings used for emergency calling. */ emergencyDialStrings?: pulumi.Input[]>; /** * Specifies the Azure Region where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer. */ microsoftTeamsVoicemailPilotNumber?: pulumi.Input; /** * Specifies the name which should be used for this Voice Services Communications Gateways. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Whether an on-premises Mobile Control Point is in use. */ onPremMcpEnabled?: pulumi.Input; /** * The Voice Services Communications GatewaysAvailable supports platform types. Possible values are `OperatorConnect`, `TeamsPhoneMobile`. */ platforms?: pulumi.Input[]>; /** * Specifies the name of the Resource Group where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A `serviceLocation` block as defined below. */ serviceLocations?: pulumi.Input[]>; /** * A mapping of tags which should be assigned to the Voice Services Communications Gateways. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a ServicesCommunicationsGateway resource. */ export interface ServicesCommunicationsGatewayArgs { /** * Details of API bridge functionality, if required. */ apiBridge?: pulumi.Input; /** * Specifies the scope at which the auto-generated domain name can be re-used. Possible values are `TenantReuse`, `SubscriptionReuse`, `ResourceGroupReuse` and `NoReuse` . Changing this forces a new resource to be created. Defaults to `TenantReuse`. */ autoGeneratedDomainNameLabelScope?: pulumi.Input; /** * The voice codecs expected for communication with Teams. Possible values are `PCMA`, `PCMU`,`G722`,`G722_2`,`SILK_8` and `SILK_16`. */ codecs: pulumi.Input; /** * How to connect back to the operator network, e.g. MAPS. Possible values is `PublicAddress`. Changing this forces a new Voice Services Communications Gateways to be created. */ connectivity: pulumi.Input; /** * How to handle 911 calls. Possible values are `Standard` and `DirectToEsrp`. */ e911Type: pulumi.Input; /** * A list of dial strings used for emergency calling. */ emergencyDialStrings?: pulumi.Input[]>; /** * Specifies the Azure Region where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer. */ microsoftTeamsVoicemailPilotNumber?: pulumi.Input; /** * Specifies the name which should be used for this Voice Services Communications Gateways. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Whether an on-premises Mobile Control Point is in use. */ onPremMcpEnabled?: pulumi.Input; /** * The Voice Services Communications GatewaysAvailable supports platform types. Possible values are `OperatorConnect`, `TeamsPhoneMobile`. */ platforms: pulumi.Input[]>; /** * Specifies the name of the Resource Group where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A `serviceLocation` block as defined below. */ serviceLocations: pulumi.Input[]>; /** * A mapping of tags which should be assigned to the Voice Services Communications Gateways. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }