All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.voice.kotlin.ServicesCommunicationsGatewayArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.voice.kotlin

import com.pulumi.azure.voice.ServicesCommunicationsGatewayArgs.builder
import com.pulumi.azure.voice.kotlin.inputs.ServicesCommunicationsGatewayServiceLocationArgs
import com.pulumi.azure.voice.kotlin.inputs.ServicesCommunicationsGatewayServiceLocationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * 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",
 * });
 * ```
 * ```python
 * import pulumi
 * import json
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_services_communications_gateway = azure.voice.ServicesCommunicationsGateway("example",
 *     name="example-vcg",
 *     location="West Europe",
 *     resource_group_name=example.name,
 *     connectivity="PublicAddress",
 *     codecs="PCMA",
 *     e911_type="DirectToEsrp",
 *     platforms=[
 *         "OperatorConnect",
 *         "TeamsPhoneMobile",
 *     ],
 *     service_locations=[
 *         azure.voice.ServicesCommunicationsGatewayServiceLocationArgs(
 *             location="eastus",
 *             allowed_media_source_address_prefixes=["10.1.2.0/24"],
 *             allowed_signaling_source_address_prefixes=["10.1.1.0/24"],
 *             esrp_addresses=["198.51.100.3"],
 *             operator_addresses=["198.51.100.1"],
 *         ),
 *         azure.voice.ServicesCommunicationsGatewayServiceLocationArgs(
 *             location="eastus2",
 *             allowed_media_source_address_prefixes=["10.2.2.0/24"],
 *             allowed_signaling_source_address_prefixes=["10.2.1.0/24"],
 *             esrp_addresses=["198.51.100.4"],
 *             operator_addresses=["198.51.100.2"],
 *         ),
 *     ],
 *     auto_generated_domain_name_label_scope="SubscriptionReuse",
 *     api_bridge=json.dumps({}),
 *     emergency_dial_strings=[
 *         "911",
 *         "933",
 *     ],
 *     on_prem_mcp_enabled=False,
 *     tags={
 *         "key": "value",
 *     },
 *     microsoft_teams_voicemail_pilot_number="1")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using System.Text.Json;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleServicesCommunicationsGateway = new Azure.Voice.ServicesCommunicationsGateway("example", new()
 *     {
 *         Name = "example-vcg",
 *         Location = "West Europe",
 *         ResourceGroupName = example.Name,
 *         Connectivity = "PublicAddress",
 *         Codecs = "PCMA",
 *         E911Type = "DirectToEsrp",
 *         Platforms = new[]
 *         {
 *             "OperatorConnect",
 *             "TeamsPhoneMobile",
 *         },
 *         ServiceLocations = new[]
 *         {
 *             new Azure.Voice.Inputs.ServicesCommunicationsGatewayServiceLocationArgs
 *             {
 *                 Location = "eastus",
 *                 AllowedMediaSourceAddressPrefixes = new[]
 *                 {
 *                     "10.1.2.0/24",
 *                 },
 *                 AllowedSignalingSourceAddressPrefixes = new[]
 *                 {
 *                     "10.1.1.0/24",
 *                 },
 *                 EsrpAddresses = new[]
 *                 {
 *                     "198.51.100.3",
 *                 },
 *                 OperatorAddresses = new[]
 *                 {
 *                     "198.51.100.1",
 *                 },
 *             },
 *             new Azure.Voice.Inputs.ServicesCommunicationsGatewayServiceLocationArgs
 *             {
 *                 Location = "eastus2",
 *                 AllowedMediaSourceAddressPrefixes = new[]
 *                 {
 *                     "10.2.2.0/24",
 *                 },
 *                 AllowedSignalingSourceAddressPrefixes = new[]
 *                 {
 *                     "10.2.1.0/24",
 *                 },
 *                 EsrpAddresses = new[]
 *                 {
 *                     "198.51.100.4",
 *                 },
 *                 OperatorAddresses = new[]
 *                 {
 *                     "198.51.100.2",
 *                 },
 *             },
 *         },
 *         AutoGeneratedDomainNameLabelScope = "SubscriptionReuse",
 *         ApiBridge = JsonSerializer.Serialize(new Dictionary
 *         {
 *         }),
 *         EmergencyDialStrings = new[]
 *         {
 *             "911",
 *             "933",
 *         },
 *         OnPremMcpEnabled = false,
 *         Tags =
 *         {
 *             { "key", "value" },
 *         },
 *         MicrosoftTeamsVoicemailPilotNumber = "1",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"encoding/json"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/voice"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		tmpJSON0, err := json.Marshal(nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		json0 := string(tmpJSON0)
 * 		_, err = voice.NewServicesCommunicationsGateway(ctx, "example", &voice.ServicesCommunicationsGatewayArgs{
 * 			Name:              pulumi.String("example-vcg"),
 * 			Location:          pulumi.String("West Europe"),
 * 			ResourceGroupName: example.Name,
 * 			Connectivity:      pulumi.String("PublicAddress"),
 * 			Codecs:            pulumi.String("PCMA"),
 * 			E911Type:          pulumi.String("DirectToEsrp"),
 * 			Platforms: pulumi.StringArray{
 * 				pulumi.String("OperatorConnect"),
 * 				pulumi.String("TeamsPhoneMobile"),
 * 			},
 * 			ServiceLocations: voice.ServicesCommunicationsGatewayServiceLocationArray{
 * 				&voice.ServicesCommunicationsGatewayServiceLocationArgs{
 * 					Location: pulumi.String("eastus"),
 * 					AllowedMediaSourceAddressPrefixes: pulumi.StringArray{
 * 						pulumi.String("10.1.2.0/24"),
 * 					},
 * 					AllowedSignalingSourceAddressPrefixes: pulumi.StringArray{
 * 						pulumi.String("10.1.1.0/24"),
 * 					},
 * 					EsrpAddresses: pulumi.StringArray{
 * 						pulumi.String("198.51.100.3"),
 * 					},
 * 					OperatorAddresses: pulumi.StringArray{
 * 						pulumi.String("198.51.100.1"),
 * 					},
 * 				},
 * 				&voice.ServicesCommunicationsGatewayServiceLocationArgs{
 * 					Location: pulumi.String("eastus2"),
 * 					AllowedMediaSourceAddressPrefixes: pulumi.StringArray{
 * 						pulumi.String("10.2.2.0/24"),
 * 					},
 * 					AllowedSignalingSourceAddressPrefixes: pulumi.StringArray{
 * 						pulumi.String("10.2.1.0/24"),
 * 					},
 * 					EsrpAddresses: pulumi.StringArray{
 * 						pulumi.String("198.51.100.4"),
 * 					},
 * 					OperatorAddresses: pulumi.StringArray{
 * 						pulumi.String("198.51.100.2"),
 * 					},
 * 				},
 * 			},
 * 			AutoGeneratedDomainNameLabelScope: pulumi.String("SubscriptionReuse"),
 * 			ApiBridge:                         pulumi.String(json0),
 * 			EmergencyDialStrings: pulumi.StringArray{
 * 				pulumi.String("911"),
 * 				pulumi.String("933"),
 * 			},
 * 			OnPremMcpEnabled: pulumi.Bool(false),
 * 			Tags: pulumi.StringMap{
 * 				"key": pulumi.String("value"),
 * 			},
 * 			MicrosoftTeamsVoicemailPilotNumber: pulumi.String("1"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.voice.ServicesCommunicationsGateway;
 * import com.pulumi.azure.voice.ServicesCommunicationsGatewayArgs;
 * import com.pulumi.azure.voice.inputs.ServicesCommunicationsGatewayServiceLocationArgs;
 * import static com.pulumi.codegen.internal.Serialization.*;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleServicesCommunicationsGateway = new ServicesCommunicationsGateway("exampleServicesCommunicationsGateway", ServicesCommunicationsGatewayArgs.builder()
 *             .name("example-vcg")
 *             .location("West Europe")
 *             .resourceGroupName(example.name())
 *             .connectivity("PublicAddress")
 *             .codecs("PCMA")
 *             .e911Type("DirectToEsrp")
 *             .platforms(
 *                 "OperatorConnect",
 *                 "TeamsPhoneMobile")
 *             .serviceLocations(
 *                 ServicesCommunicationsGatewayServiceLocationArgs.builder()
 *                     .location("eastus")
 *                     .allowedMediaSourceAddressPrefixes("10.1.2.0/24")
 *                     .allowedSignalingSourceAddressPrefixes("10.1.1.0/24")
 *                     .esrpAddresses("198.51.100.3")
 *                     .operatorAddresses("198.51.100.1")
 *                     .build(),
 *                 ServicesCommunicationsGatewayServiceLocationArgs.builder()
 *                     .location("eastus2")
 *                     .allowedMediaSourceAddressPrefixes("10.2.2.0/24")
 *                     .allowedSignalingSourceAddressPrefixes("10.2.1.0/24")
 *                     .esrpAddresses("198.51.100.4")
 *                     .operatorAddresses("198.51.100.2")
 *                     .build())
 *             .autoGeneratedDomainNameLabelScope("SubscriptionReuse")
 *             .apiBridge(serializeJson(
 *                 jsonObject(
 *                 )))
 *             .emergencyDialStrings(
 *                 "911",
 *                 "933")
 *             .onPremMcpEnabled(false)
 *             .tags(Map.of("key", "value"))
 *             .microsoftTeamsVoicemailPilotNumber("1")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleServicesCommunicationsGateway:
 *     type: azure:voice:ServicesCommunicationsGateway
 *     name: example
 *     properties:
 *       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:
 *         fn::toJSON: {}
 *       emergencyDialStrings:
 *         - '911'
 *         - '933'
 *       onPremMcpEnabled: false
 *       tags:
 *         key: value
 *       microsoftTeamsVoicemailPilotNumber: '1'
 * ```
 * 
 * ## 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
 * ```
 * @property apiBridge Details of API bridge functionality, if required.
 * @property autoGeneratedDomainNameLabelScope 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`.
 * @property codecs The voice codecs expected for communication with Teams. Possible values are `PCMA`, `PCMU`,`G722`,`G722_2`,`SILK_8` and `SILK_16`.
 * @property connectivity 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.
 * @property e911Type How to handle 911 calls. Possible values are `Standard` and `DirectToEsrp`.
 * @property emergencyDialStrings A list of dial strings used for emergency calling.
 * @property location Specifies the Azure Region where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created.
 * @property microsoftTeamsVoicemailPilotNumber This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer.
 * @property name Specifies the name which should be used for this Voice Services Communications Gateways. Changing this forces a new resource to be created.
 * @property onPremMcpEnabled Whether an on-premises Mobile Control Point is in use.
 * @property platforms The Voice Services Communications GatewaysAvailable supports platform types. Possible values are `OperatorConnect`, `TeamsPhoneMobile`.
 * @property resourceGroupName Specifies the name of the Resource Group where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created.
 * @property serviceLocations A `service_location` block as defined below.
 * @property tags A mapping of tags which should be assigned to the Voice Services Communications Gateways.
 */
public data class ServicesCommunicationsGatewayArgs(
    public val apiBridge: Output? = null,
    public val autoGeneratedDomainNameLabelScope: Output? = null,
    public val codecs: Output? = null,
    public val connectivity: Output? = null,
    public val e911Type: Output? = null,
    public val emergencyDialStrings: Output>? = null,
    public val location: Output? = null,
    public val microsoftTeamsVoicemailPilotNumber: Output? = null,
    public val name: Output? = null,
    public val onPremMcpEnabled: Output? = null,
    public val platforms: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val serviceLocations: Output>? =
        null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.voice.ServicesCommunicationsGatewayArgs =
        com.pulumi.azure.voice.ServicesCommunicationsGatewayArgs.builder()
            .apiBridge(apiBridge?.applyValue({ args0 -> args0 }))
            .autoGeneratedDomainNameLabelScope(
                autoGeneratedDomainNameLabelScope?.applyValue({ args0 ->
                    args0
                }),
            )
            .codecs(codecs?.applyValue({ args0 -> args0 }))
            .connectivity(connectivity?.applyValue({ args0 -> args0 }))
            .e911Type(e911Type?.applyValue({ args0 -> args0 }))
            .emergencyDialStrings(emergencyDialStrings?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .microsoftTeamsVoicemailPilotNumber(
                microsoftTeamsVoicemailPilotNumber?.applyValue({ args0 ->
                    args0
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .onPremMcpEnabled(onPremMcpEnabled?.applyValue({ args0 -> args0 }))
            .platforms(platforms?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .serviceLocations(
                serviceLocations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ServicesCommunicationsGatewayArgs].
 */
@PulumiTagMarker
public class ServicesCommunicationsGatewayArgsBuilder internal constructor() {
    private var apiBridge: Output? = null

    private var autoGeneratedDomainNameLabelScope: Output? = null

    private var codecs: Output? = null

    private var connectivity: Output? = null

    private var e911Type: Output? = null

    private var emergencyDialStrings: Output>? = null

    private var location: Output? = null

    private var microsoftTeamsVoicemailPilotNumber: Output? = null

    private var name: Output? = null

    private var onPremMcpEnabled: Output? = null

    private var platforms: Output>? = null

    private var resourceGroupName: Output? = null

    private var serviceLocations: Output>? =
        null

    private var tags: Output>? = null

    /**
     * @param value Details of API bridge functionality, if required.
     */
    @JvmName("bucgclojbfqbacvh")
    public suspend fun apiBridge(`value`: Output) {
        this.apiBridge = value
    }

    /**
     * @param value 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`.
     */
    @JvmName("rvjsosxegihjrhwq")
    public suspend fun autoGeneratedDomainNameLabelScope(`value`: Output) {
        this.autoGeneratedDomainNameLabelScope = value
    }

    /**
     * @param value The voice codecs expected for communication with Teams. Possible values are `PCMA`, `PCMU`,`G722`,`G722_2`,`SILK_8` and `SILK_16`.
     */
    @JvmName("ihqmcvyqegebafag")
    public suspend fun codecs(`value`: Output) {
        this.codecs = value
    }

    /**
     * @param value 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.
     */
    @JvmName("bmgufxbckoiuyupg")
    public suspend fun connectivity(`value`: Output) {
        this.connectivity = value
    }

    /**
     * @param value How to handle 911 calls. Possible values are `Standard` and `DirectToEsrp`.
     */
    @JvmName("jgbbccfjotraqdvs")
    public suspend fun e911Type(`value`: Output) {
        this.e911Type = value
    }

    /**
     * @param value A list of dial strings used for emergency calling.
     */
    @JvmName("rsvsrlqbqtvfyjsa")
    public suspend fun emergencyDialStrings(`value`: Output>) {
        this.emergencyDialStrings = value
    }

    @JvmName("yniluoensgsgpdtg")
    public suspend fun emergencyDialStrings(vararg values: Output) {
        this.emergencyDialStrings = Output.all(values.asList())
    }

    /**
     * @param values A list of dial strings used for emergency calling.
     */
    @JvmName("dbdxiesnlpeuefeh")
    public suspend fun emergencyDialStrings(values: List>) {
        this.emergencyDialStrings = Output.all(values)
    }

    /**
     * @param value Specifies the Azure Region where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created.
     */
    @JvmName("nfmflkabqgqpttrj")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer.
     */
    @JvmName("gaecbkikwirrrksv")
    public suspend fun microsoftTeamsVoicemailPilotNumber(`value`: Output) {
        this.microsoftTeamsVoicemailPilotNumber = value
    }

    /**
     * @param value Specifies the name which should be used for this Voice Services Communications Gateways. Changing this forces a new resource to be created.
     */
    @JvmName("ogeumbxqhevjvrgu")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Whether an on-premises Mobile Control Point is in use.
     */
    @JvmName("fqadndwifmtdlkit")
    public suspend fun onPremMcpEnabled(`value`: Output) {
        this.onPremMcpEnabled = value
    }

    /**
     * @param value The Voice Services Communications GatewaysAvailable supports platform types. Possible values are `OperatorConnect`, `TeamsPhoneMobile`.
     */
    @JvmName("pumbkydvbpdwlwil")
    public suspend fun platforms(`value`: Output>) {
        this.platforms = value
    }

    @JvmName("umnjtlcutvtsvhxe")
    public suspend fun platforms(vararg values: Output) {
        this.platforms = Output.all(values.asList())
    }

    /**
     * @param values The Voice Services Communications GatewaysAvailable supports platform types. Possible values are `OperatorConnect`, `TeamsPhoneMobile`.
     */
    @JvmName("dgqllxguqbvvdlid")
    public suspend fun platforms(values: List>) {
        this.platforms = Output.all(values)
    }

    /**
     * @param value Specifies the name of the Resource Group where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created.
     */
    @JvmName("sxnggqvjvkfofckm")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A `service_location` block as defined below.
     */
    @JvmName("blmkirnhbouhuhfw")
    public suspend
    fun serviceLocations(`value`: Output>) {
        this.serviceLocations = value
    }

    @JvmName("nxwtkxflutwngaoc")
    public suspend fun serviceLocations(
        vararg
        values: Output,
    ) {
        this.serviceLocations = Output.all(values.asList())
    }

    /**
     * @param values A `service_location` block as defined below.
     */
    @JvmName("mstlaukvmgqonjvj")
    public suspend
    fun serviceLocations(values: List>) {
        this.serviceLocations = Output.all(values)
    }

    /**
     * @param value A mapping of tags which should be assigned to the Voice Services Communications Gateways.
     */
    @JvmName("dyfylocvmacgfklt")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Details of API bridge functionality, if required.
     */
    @JvmName("htfwxcjpsurbxkbd")
    public suspend fun apiBridge(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiBridge = mapped
    }

    /**
     * @param value 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`.
     */
    @JvmName("dfvhiguojhwxkluo")
    public suspend fun autoGeneratedDomainNameLabelScope(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoGeneratedDomainNameLabelScope = mapped
    }

    /**
     * @param value The voice codecs expected for communication with Teams. Possible values are `PCMA`, `PCMU`,`G722`,`G722_2`,`SILK_8` and `SILK_16`.
     */
    @JvmName("onepvcjyrnygtfty")
    public suspend fun codecs(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.codecs = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("mrovgpnmpfssalhc")
    public suspend fun connectivity(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectivity = mapped
    }

    /**
     * @param value How to handle 911 calls. Possible values are `Standard` and `DirectToEsrp`.
     */
    @JvmName("fshpnfgpceifpbdf")
    public suspend fun e911Type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.e911Type = mapped
    }

    /**
     * @param value A list of dial strings used for emergency calling.
     */
    @JvmName("ivyxevpkrwgxnhky")
    public suspend fun emergencyDialStrings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.emergencyDialStrings = mapped
    }

    /**
     * @param values A list of dial strings used for emergency calling.
     */
    @JvmName("pqhhrforfoqxfqos")
    public suspend fun emergencyDialStrings(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.emergencyDialStrings = mapped
    }

    /**
     * @param value Specifies the Azure Region where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created.
     */
    @JvmName("bkjmgsmctbxguroy")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer.
     */
    @JvmName("clefkyopwfpbbqwe")
    public suspend fun microsoftTeamsVoicemailPilotNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.microsoftTeamsVoicemailPilotNumber = mapped
    }

    /**
     * @param value Specifies the name which should be used for this Voice Services Communications Gateways. Changing this forces a new resource to be created.
     */
    @JvmName("gvwnicpkjvnemnff")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Whether an on-premises Mobile Control Point is in use.
     */
    @JvmName("uuowtvelndsqhkfl")
    public suspend fun onPremMcpEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.onPremMcpEnabled = mapped
    }

    /**
     * @param value The Voice Services Communications GatewaysAvailable supports platform types. Possible values are `OperatorConnect`, `TeamsPhoneMobile`.
     */
    @JvmName("watkempgcgnrpusg")
    public suspend fun platforms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.platforms = mapped
    }

    /**
     * @param values The Voice Services Communications GatewaysAvailable supports platform types. Possible values are `OperatorConnect`, `TeamsPhoneMobile`.
     */
    @JvmName("vrqkaaaupvpcwoyk")
    public suspend fun platforms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.platforms = mapped
    }

    /**
     * @param value Specifies the name of the Resource Group where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created.
     */
    @JvmName("gadrbtjnfahyvoxb")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A `service_location` block as defined below.
     */
    @JvmName("yregarwffvnpowce")
    public suspend
    fun serviceLocations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceLocations = mapped
    }

    /**
     * @param argument A `service_location` block as defined below.
     */
    @JvmName("ycdeofcitycthlwy")
    public suspend
    fun serviceLocations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServicesCommunicationsGatewayServiceLocationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.serviceLocations = mapped
    }

    /**
     * @param argument A `service_location` block as defined below.
     */
    @JvmName("ccbherksxgtkvpbw")
    public suspend fun serviceLocations(
        vararg
        argument: suspend ServicesCommunicationsGatewayServiceLocationArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            ServicesCommunicationsGatewayServiceLocationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.serviceLocations = mapped
    }

    /**
     * @param argument A `service_location` block as defined below.
     */
    @JvmName("jroxdtjkiodctdsh")
    public suspend
    fun serviceLocations(argument: suspend ServicesCommunicationsGatewayServiceLocationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ServicesCommunicationsGatewayServiceLocationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.serviceLocations = mapped
    }

    /**
     * @param values A `service_location` block as defined below.
     */
    @JvmName("gxlpqkmmaofkhqxw")
    public suspend fun serviceLocations(
        vararg
        values: ServicesCommunicationsGatewayServiceLocationArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceLocations = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the Voice Services Communications Gateways.
     */
    @JvmName("jsnbofnwgrqrarmm")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to the Voice Services Communications Gateways.
     */
    @JvmName("aihfrqxvfgmxymkv")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ServicesCommunicationsGatewayArgs = ServicesCommunicationsGatewayArgs(
        apiBridge = apiBridge,
        autoGeneratedDomainNameLabelScope = autoGeneratedDomainNameLabelScope,
        codecs = codecs,
        connectivity = connectivity,
        e911Type = e911Type,
        emergencyDialStrings = emergencyDialStrings,
        location = location,
        microsoftTeamsVoicemailPilotNumber = microsoftTeamsVoicemailPilotNumber,
        name = name,
        onPremMcpEnabled = onPremMcpEnabled,
        platforms = platforms,
        resourceGroupName = resourceGroupName,
        serviceLocations = serviceLocations,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy