CommunicationsGatewayArgs

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",
},
},
},
},
});
});
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
})
}
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());
}
}

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

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
val apiBridge: Output<Any>? = null

Details of API bridge functionality, if required

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 location: Output<String>? = null

The geo-location where the resource lives

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.

Functions

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