CommunicationsGatewayArgs

data class CommunicationsGatewayArgs(val apiBridge: Output<Any>? = null, val autoGeneratedDomainNameLabelScope: Output<Either<String, AutoGeneratedDomainNameLabelScope>>? = null, val codecs: Output<List<Either<String, TeamsCodecs>>>? = null, val communicationsGatewayName: Output<String>? = null, val connectivity: Output<Either<String, Connectivity>>? = null, val e911Type: Output<Either<String, E911Type>>? = null, val emergencyDialStrings: Output<List<String>>? = null, val identity: Output<ManagedServiceIdentityArgs>? = null, val integratedMcpEnabled: Output<Boolean>? = null, val location: Output<String>? = null, val onPremMcpEnabled: Output<Boolean>? = null, val platforms: Output<List<Either<String, CommunicationsPlatform>>>? = null, val resourceGroupName: Output<String>? = null, val serviceLocations: Output<List<ServiceRegionPropertiesArgs>>? = null, val tags: Output<Map<String, String>>? = null, val teamsVoicemailPilotNumber: Output<String>? = null) : ConvertibleToJava<CommunicationsGatewayArgs>

A CommunicationsGateway resource Uses Azure REST API version 2023-04-03. In version 1.x of the Azure Native provider, it used API version 2022-12-01-preview. Other available API versions: 2023-09-01.

Example Usage

CreateCommunicationsGatewayResource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var communicationsGateway = new AzureNative.VoiceServices.CommunicationsGateway("communicationsGateway", new()
{
AutoGeneratedDomainNameLabelScope = AzureNative.VoiceServices.AutoGeneratedDomainNameLabelScope.NoReuse,
Codecs = new[]
{
AzureNative.VoiceServices.TeamsCodecs.PCMA,
},
CommunicationsGatewayName = "myname",
Connectivity = AzureNative.VoiceServices.Connectivity.PublicAddress,
E911Type = AzureNative.VoiceServices.E911Type.Standard,
Location = "useast",
Platforms = new[]
{
AzureNative.VoiceServices.CommunicationsPlatform.OperatorConnect,
},
ResourceGroupName = "testrg",
ServiceLocations = new[]
{
new AzureNative.VoiceServices.Inputs.ServiceRegionPropertiesArgs
{
Name = "useast",
PrimaryRegionProperties = new AzureNative.VoiceServices.Inputs.PrimaryRegionPropertiesArgs
{
AllowedMediaSourceAddressPrefixes = new[]
{
"10.1.2.0/24",
},
AllowedSignalingSourceAddressPrefixes = new[]
{
"10.1.1.0/24",
},
OperatorAddresses = new[]
{
"198.51.100.1",
},
},
},
new AzureNative.VoiceServices.Inputs.ServiceRegionPropertiesArgs
{
Name = "useast2",
PrimaryRegionProperties = new AzureNative.VoiceServices.Inputs.PrimaryRegionPropertiesArgs
{
AllowedMediaSourceAddressPrefixes = new[]
{
"10.2.2.0/24",
},
AllowedSignalingSourceAddressPrefixes = new[]
{
"10.2.1.0/24",
},
OperatorAddresses = new[]
{
"198.51.100.2",
},
},
},
},
TeamsVoicemailPilotNumber = "1234567890",
});
});
package main
import (
voiceservices "github.com/pulumi/pulumi-azure-native-sdk/voiceservices/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := voiceservices.NewCommunicationsGateway(ctx, "communicationsGateway", &voiceservices.CommunicationsGatewayArgs{
AutoGeneratedDomainNameLabelScope: pulumi.String(voiceservices.AutoGeneratedDomainNameLabelScopeNoReuse),
Codecs: pulumi.StringArray{
pulumi.String(voiceservices.TeamsCodecsPCMA),
},
CommunicationsGatewayName: pulumi.String("myname"),
Connectivity: pulumi.String(voiceservices.ConnectivityPublicAddress),
E911Type: pulumi.String(voiceservices.E911TypeStandard),
Location: pulumi.String("useast"),
Platforms: pulumi.StringArray{
pulumi.String(voiceservices.CommunicationsPlatformOperatorConnect),
},
ResourceGroupName: pulumi.String("testrg"),
ServiceLocations: voiceservices.ServiceRegionPropertiesArray{
&voiceservices.ServiceRegionPropertiesArgs{
Name: pulumi.String("useast"),
PrimaryRegionProperties: &voiceservices.PrimaryRegionPropertiesArgs{
AllowedMediaSourceAddressPrefixes: pulumi.StringArray{
pulumi.String("10.1.2.0/24"),
},
AllowedSignalingSourceAddressPrefixes: pulumi.StringArray{
pulumi.String("10.1.1.0/24"),
},
OperatorAddresses: pulumi.StringArray{
pulumi.String("198.51.100.1"),
},
},
},
&voiceservices.ServiceRegionPropertiesArgs{
Name: pulumi.String("useast2"),
PrimaryRegionProperties: &voiceservices.PrimaryRegionPropertiesArgs{
AllowedMediaSourceAddressPrefixes: pulumi.StringArray{
pulumi.String("10.2.2.0/24"),
},
AllowedSignalingSourceAddressPrefixes: pulumi.StringArray{
pulumi.String("10.2.1.0/24"),
},
OperatorAddresses: pulumi.StringArray{
pulumi.String("198.51.100.2"),
},
},
},
},
TeamsVoicemailPilotNumber: pulumi.String("1234567890"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.voiceservices.CommunicationsGateway;
import com.pulumi.azurenative.voiceservices.CommunicationsGatewayArgs;
import com.pulumi.azurenative.voiceservices.inputs.ServiceRegionPropertiesArgs;
import com.pulumi.azurenative.voiceservices.inputs.PrimaryRegionPropertiesArgs;
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 communicationsGateway = new CommunicationsGateway("communicationsGateway", CommunicationsGatewayArgs.builder()
.autoGeneratedDomainNameLabelScope("NoReuse")
.codecs("PCMA")
.communicationsGatewayName("myname")
.connectivity("PublicAddress")
.e911Type("Standard")
.location("useast")
.platforms("OperatorConnect")
.resourceGroupName("testrg")
.serviceLocations(
ServiceRegionPropertiesArgs.builder()
.name("useast")
.primaryRegionProperties(PrimaryRegionPropertiesArgs.builder()
.allowedMediaSourceAddressPrefixes("10.1.2.0/24")
.allowedSignalingSourceAddressPrefixes("10.1.1.0/24")
.operatorAddresses("198.51.100.1")
.build())
.build(),
ServiceRegionPropertiesArgs.builder()
.name("useast2")
.primaryRegionProperties(PrimaryRegionPropertiesArgs.builder()
.allowedMediaSourceAddressPrefixes("10.2.2.0/24")
.allowedSignalingSourceAddressPrefixes("10.2.1.0/24")
.operatorAddresses("198.51.100.2")
.build())
.build())
.teamsVoicemailPilotNumber("1234567890")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:voiceservices:CommunicationsGateway myname /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}

Constructors

Link copied to clipboard
constructor(apiBridge: Output<Any>? = null, autoGeneratedDomainNameLabelScope: Output<Either<String, AutoGeneratedDomainNameLabelScope>>? = null, codecs: Output<List<Either<String, TeamsCodecs>>>? = null, communicationsGatewayName: Output<String>? = null, connectivity: Output<Either<String, Connectivity>>? = null, e911Type: Output<Either<String, E911Type>>? = null, emergencyDialStrings: Output<List<String>>? = null, identity: Output<ManagedServiceIdentityArgs>? = null, integratedMcpEnabled: Output<Boolean>? = null, location: Output<String>? = null, onPremMcpEnabled: Output<Boolean>? = null, platforms: Output<List<Either<String, CommunicationsPlatform>>>? = null, resourceGroupName: Output<String>? = null, serviceLocations: Output<List<ServiceRegionPropertiesArgs>>? = null, tags: Output<Map<String, String>>? = null, teamsVoicemailPilotNumber: Output<String>? = null)

Properties

Link copied to clipboard
val apiBridge: Output<Any>? = null

Details of API bridge functionality, if required

Link copied to clipboard

The scope at which the auto-generated domain name can be re-used

Link copied to clipboard
val codecs: Output<List<Either<String, TeamsCodecs>>>? = null

Voice codecs to support

Link copied to clipboard
val communicationsGatewayName: Output<String>? = null

Unique identifier for this deployment

Link copied to clipboard
val connectivity: Output<Either<String, Connectivity>>? = null

How to connect back to the operator network, e.g. MAPS

Link copied to clipboard
val e911Type: Output<Either<String, E911Type>>? = null

How to handle 911 calls

Link copied to clipboard
val emergencyDialStrings: Output<List<String>>? = null

A list of dial strings used for emergency calling.

Link copied to clipboard

The managed service identities assigned to this resource.

Link copied to clipboard
val integratedMcpEnabled: Output<Boolean>? = null

Whether an integrated Mobile Control Point is in use.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val onPremMcpEnabled: Output<Boolean>? = null

Whether an on-premises Mobile Control Point is in use.

Link copied to clipboard
val platforms: Output<List<Either<String, CommunicationsPlatform>>>? = null

What platforms to support

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard

The regions in which to deploy the resources needed for Teams Calling

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard
val teamsVoicemailPilotNumber: Output<String>? = null

This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer.

Functions

Link copied to clipboard
open override fun toJava(): CommunicationsGatewayArgs