Communications Gateway Args
data class CommunicationsGatewayArgs(val apiBridge: Output<Any>? = 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 location: Output<String>? = 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) : ConvertibleToJava<CommunicationsGatewayArgs>
A CommunicationsGateway resource API Version: 2022-12-01-preview.
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()
{
Codecs = new[]
{
"PCMA",
},
CommunicationsGatewayName = "myname",
Connectivity = "PublicAddress",
E911Type = "Standard",
Location = "useast",
Platforms = new[]
{
"OperatorConnect",
},
ResourceGroupName = "testrg",
ServiceLocations = new[]
{
new AzureNative.VoiceServices.Inputs.ServiceRegionPropertiesArgs
{
Name = "useast",
PrimaryRegionProperties = new AzureNative.VoiceServices.Inputs.PrimaryRegionPropertiesArgs
{
OperatorAddresses = new[]
{
"198.51.100.1",
},
},
},
new AzureNative.VoiceServices.Inputs.ServiceRegionPropertiesArgs
{
Name = "useast2",
PrimaryRegionProperties = new AzureNative.VoiceServices.Inputs.PrimaryRegionPropertiesArgs
{
OperatorAddresses = new[]
{
"198.51.100.2",
},
},
},
},
});
});
Content copied to clipboard
package main
import (
voiceservices "github.com/pulumi/pulumi-azure-native-sdk/voiceservices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := voiceservices.NewCommunicationsGateway(ctx, "communicationsGateway", &voiceservices.CommunicationsGatewayArgs{
Codecs: pulumi.StringArray{
pulumi.String("PCMA"),
},
CommunicationsGatewayName: pulumi.String("myname"),
Connectivity: pulumi.String("PublicAddress"),
E911Type: pulumi.String("Standard"),
Location: pulumi.String("useast"),
Platforms: pulumi.StringArray{
pulumi.String("OperatorConnect"),
},
ResourceGroupName: pulumi.String("testrg"),
ServiceLocations: []voiceservices.ServiceRegionPropertiesArgs{
{
Name: pulumi.String("useast"),
PrimaryRegionProperties: {
OperatorAddresses: pulumi.StringArray{
pulumi.String("198.51.100.1"),
},
},
},
{
Name: pulumi.String("useast2"),
PrimaryRegionProperties: {
OperatorAddresses: pulumi.StringArray{
pulumi.String("198.51.100.2"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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 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()
.codecs("PCMA")
.communicationsGatewayName("myname")
.connectivity("PublicAddress")
.e911Type("Standard")
.location("useast")
.platforms("OperatorConnect")
.resourceGroupName("testrg")
.serviceLocations(
Map.ofEntries(
Map.entry("name", "useast"),
Map.entry("primaryRegionProperties", Map.of("operatorAddresses", "198.51.100.1"))
),
Map.ofEntries(
Map.entry("name", "useast2"),
Map.entry("primaryRegionProperties", Map.of("operatorAddresses", "198.51.100.2"))
))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:voiceservices:CommunicationsGateway myname /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateway/myname
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(apiBridge: Output<Any>? = null, codecs: Output<List<Either<String, TeamsCodecs>>>? = null, communicationsGatewayName: Output<String>? = null, connectivity: Output<Either<String, Connectivity>>? = null, e911Type: Output<Either<String, E911Type>>? = null, location: Output<String>? = null, platforms: Output<List<Either<String, CommunicationsPlatform>>>? = null, resourceGroupName: Output<String>? = null, serviceLocations: Output<List<ServiceRegionPropertiesArgs>>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
Voice codecs to support
Link copied to clipboard
Unique identifier for this deployment
Link copied to clipboard
How to connect back to the operator network, e.g. MAPS
Link copied to clipboard
What platforms to support
Link copied to clipboard
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