voice

package
v5.78.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServicesCommunicationsGateway

type ServicesCommunicationsGateway struct {
	pulumi.CustomResourceState

	// Details of API bridge functionality, if required.
	ApiBridge pulumi.StringPtrOutput `pulumi:"apiBridge"`
	// 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.StringPtrOutput `pulumi:"autoGeneratedDomainNameLabelScope"`
	// The voice codecs expected for communication with Teams. Possible values are `PCMA`, `PCMU`,`G722`,`G722_2`,`SILK_8` and `SILK_16`.
	Codecs pulumi.StringOutput `pulumi:"codecs"`
	// 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.StringOutput `pulumi:"connectivity"`
	// How to handle 911 calls. Possible values are `Standard` and `DirectToEsrp`.
	E911Type pulumi.StringOutput `pulumi:"e911Type"`
	// A list of dial strings used for emergency calling.
	EmergencyDialStrings pulumi.StringArrayOutput `pulumi:"emergencyDialStrings"`
	// Specifies the Azure Region where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer.
	MicrosoftTeamsVoicemailPilotNumber pulumi.StringPtrOutput `pulumi:"microsoftTeamsVoicemailPilotNumber"`
	// Specifies the name which should be used for this Voice Services Communications Gateways. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Whether an on-premises Mobile Control Point is in use.
	OnPremMcpEnabled pulumi.BoolPtrOutput `pulumi:"onPremMcpEnabled"`
	// The Voice Services Communications GatewaysAvailable supports platform types. Possible values are `OperatorConnect`, `TeamsPhoneMobile`.
	Platforms pulumi.StringArrayOutput `pulumi:"platforms"`
	// 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.StringOutput `pulumi:"resourceGroupName"`
	// A `serviceLocation` block as defined below.
	ServiceLocations ServicesCommunicationsGatewayServiceLocationArrayOutput `pulumi:"serviceLocations"`
	// A mapping of tags which should be assigned to the Voice Services Communications Gateways.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

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

```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
	})
}

```

## 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 ```

func GetServicesCommunicationsGateway

func GetServicesCommunicationsGateway(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServicesCommunicationsGatewayState, opts ...pulumi.ResourceOption) (*ServicesCommunicationsGateway, error)

GetServicesCommunicationsGateway gets an existing ServicesCommunicationsGateway resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewServicesCommunicationsGateway

func NewServicesCommunicationsGateway(ctx *pulumi.Context,
	name string, args *ServicesCommunicationsGatewayArgs, opts ...pulumi.ResourceOption) (*ServicesCommunicationsGateway, error)

NewServicesCommunicationsGateway registers a new resource with the given unique name, arguments, and options.

func (*ServicesCommunicationsGateway) ElementType

func (*ServicesCommunicationsGateway) ToServicesCommunicationsGatewayOutput

func (i *ServicesCommunicationsGateway) ToServicesCommunicationsGatewayOutput() ServicesCommunicationsGatewayOutput

func (*ServicesCommunicationsGateway) ToServicesCommunicationsGatewayOutputWithContext

func (i *ServicesCommunicationsGateway) ToServicesCommunicationsGatewayOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayOutput

type ServicesCommunicationsGatewayArgs

type ServicesCommunicationsGatewayArgs struct {
	// Details of API bridge functionality, if required.
	ApiBridge pulumi.StringPtrInput
	// 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.StringPtrInput
	// The voice codecs expected for communication with Teams. Possible values are `PCMA`, `PCMU`,`G722`,`G722_2`,`SILK_8` and `SILK_16`.
	Codecs pulumi.StringInput
	// 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.StringInput
	// How to handle 911 calls. Possible values are `Standard` and `DirectToEsrp`.
	E911Type pulumi.StringInput
	// A list of dial strings used for emergency calling.
	EmergencyDialStrings pulumi.StringArrayInput
	// Specifies the Azure Region where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer.
	MicrosoftTeamsVoicemailPilotNumber pulumi.StringPtrInput
	// Specifies the name which should be used for this Voice Services Communications Gateways. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Whether an on-premises Mobile Control Point is in use.
	OnPremMcpEnabled pulumi.BoolPtrInput
	// The Voice Services Communications GatewaysAvailable supports platform types. Possible values are `OperatorConnect`, `TeamsPhoneMobile`.
	Platforms pulumi.StringArrayInput
	// 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.StringInput
	// A `serviceLocation` block as defined below.
	ServiceLocations ServicesCommunicationsGatewayServiceLocationArrayInput
	// A mapping of tags which should be assigned to the Voice Services Communications Gateways.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a ServicesCommunicationsGateway resource.

func (ServicesCommunicationsGatewayArgs) ElementType

type ServicesCommunicationsGatewayArray

type ServicesCommunicationsGatewayArray []ServicesCommunicationsGatewayInput

func (ServicesCommunicationsGatewayArray) ElementType

func (ServicesCommunicationsGatewayArray) ToServicesCommunicationsGatewayArrayOutput

func (i ServicesCommunicationsGatewayArray) ToServicesCommunicationsGatewayArrayOutput() ServicesCommunicationsGatewayArrayOutput

func (ServicesCommunicationsGatewayArray) ToServicesCommunicationsGatewayArrayOutputWithContext

func (i ServicesCommunicationsGatewayArray) ToServicesCommunicationsGatewayArrayOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayArrayOutput

type ServicesCommunicationsGatewayArrayInput

type ServicesCommunicationsGatewayArrayInput interface {
	pulumi.Input

	ToServicesCommunicationsGatewayArrayOutput() ServicesCommunicationsGatewayArrayOutput
	ToServicesCommunicationsGatewayArrayOutputWithContext(context.Context) ServicesCommunicationsGatewayArrayOutput
}

ServicesCommunicationsGatewayArrayInput is an input type that accepts ServicesCommunicationsGatewayArray and ServicesCommunicationsGatewayArrayOutput values. You can construct a concrete instance of `ServicesCommunicationsGatewayArrayInput` via:

ServicesCommunicationsGatewayArray{ ServicesCommunicationsGatewayArgs{...} }

type ServicesCommunicationsGatewayArrayOutput

type ServicesCommunicationsGatewayArrayOutput struct{ *pulumi.OutputState }

func (ServicesCommunicationsGatewayArrayOutput) ElementType

func (ServicesCommunicationsGatewayArrayOutput) Index

func (ServicesCommunicationsGatewayArrayOutput) ToServicesCommunicationsGatewayArrayOutput

func (o ServicesCommunicationsGatewayArrayOutput) ToServicesCommunicationsGatewayArrayOutput() ServicesCommunicationsGatewayArrayOutput

func (ServicesCommunicationsGatewayArrayOutput) ToServicesCommunicationsGatewayArrayOutputWithContext

func (o ServicesCommunicationsGatewayArrayOutput) ToServicesCommunicationsGatewayArrayOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayArrayOutput

type ServicesCommunicationsGatewayInput

type ServicesCommunicationsGatewayInput interface {
	pulumi.Input

	ToServicesCommunicationsGatewayOutput() ServicesCommunicationsGatewayOutput
	ToServicesCommunicationsGatewayOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayOutput
}

type ServicesCommunicationsGatewayMap

type ServicesCommunicationsGatewayMap map[string]ServicesCommunicationsGatewayInput

func (ServicesCommunicationsGatewayMap) ElementType

func (ServicesCommunicationsGatewayMap) ToServicesCommunicationsGatewayMapOutput

func (i ServicesCommunicationsGatewayMap) ToServicesCommunicationsGatewayMapOutput() ServicesCommunicationsGatewayMapOutput

func (ServicesCommunicationsGatewayMap) ToServicesCommunicationsGatewayMapOutputWithContext

func (i ServicesCommunicationsGatewayMap) ToServicesCommunicationsGatewayMapOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayMapOutput

type ServicesCommunicationsGatewayMapInput

type ServicesCommunicationsGatewayMapInput interface {
	pulumi.Input

	ToServicesCommunicationsGatewayMapOutput() ServicesCommunicationsGatewayMapOutput
	ToServicesCommunicationsGatewayMapOutputWithContext(context.Context) ServicesCommunicationsGatewayMapOutput
}

ServicesCommunicationsGatewayMapInput is an input type that accepts ServicesCommunicationsGatewayMap and ServicesCommunicationsGatewayMapOutput values. You can construct a concrete instance of `ServicesCommunicationsGatewayMapInput` via:

ServicesCommunicationsGatewayMap{ "key": ServicesCommunicationsGatewayArgs{...} }

type ServicesCommunicationsGatewayMapOutput

type ServicesCommunicationsGatewayMapOutput struct{ *pulumi.OutputState }

func (ServicesCommunicationsGatewayMapOutput) ElementType

func (ServicesCommunicationsGatewayMapOutput) MapIndex

func (ServicesCommunicationsGatewayMapOutput) ToServicesCommunicationsGatewayMapOutput

func (o ServicesCommunicationsGatewayMapOutput) ToServicesCommunicationsGatewayMapOutput() ServicesCommunicationsGatewayMapOutput

func (ServicesCommunicationsGatewayMapOutput) ToServicesCommunicationsGatewayMapOutputWithContext

func (o ServicesCommunicationsGatewayMapOutput) ToServicesCommunicationsGatewayMapOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayMapOutput

type ServicesCommunicationsGatewayOutput

type ServicesCommunicationsGatewayOutput struct{ *pulumi.OutputState }

func (ServicesCommunicationsGatewayOutput) ApiBridge

Details of API bridge functionality, if required.

func (ServicesCommunicationsGatewayOutput) AutoGeneratedDomainNameLabelScope

func (o ServicesCommunicationsGatewayOutput) AutoGeneratedDomainNameLabelScope() pulumi.StringPtrOutput

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`.

func (ServicesCommunicationsGatewayOutput) Codecs

The voice codecs expected for communication with Teams. Possible values are `PCMA`, `PCMU`,`G722`,`G722_2`,`SILK_8` and `SILK_16`.

func (ServicesCommunicationsGatewayOutput) 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.

func (ServicesCommunicationsGatewayOutput) E911Type

How to handle 911 calls. Possible values are `Standard` and `DirectToEsrp`.

func (ServicesCommunicationsGatewayOutput) ElementType

func (ServicesCommunicationsGatewayOutput) EmergencyDialStrings

A list of dial strings used for emergency calling.

func (ServicesCommunicationsGatewayOutput) Location

Specifies the Azure Region where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created.

func (ServicesCommunicationsGatewayOutput) MicrosoftTeamsVoicemailPilotNumber

func (o ServicesCommunicationsGatewayOutput) MicrosoftTeamsVoicemailPilotNumber() pulumi.StringPtrOutput

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

func (ServicesCommunicationsGatewayOutput) Name

Specifies the name which should be used for this Voice Services Communications Gateways. Changing this forces a new resource to be created.

func (ServicesCommunicationsGatewayOutput) OnPremMcpEnabled

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

func (ServicesCommunicationsGatewayOutput) Platforms

The Voice Services Communications GatewaysAvailable supports platform types. Possible values are `OperatorConnect`, `TeamsPhoneMobile`.

func (ServicesCommunicationsGatewayOutput) 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.

func (ServicesCommunicationsGatewayOutput) ServiceLocations

A `serviceLocation` block as defined below.

func (ServicesCommunicationsGatewayOutput) Tags

A mapping of tags which should be assigned to the Voice Services Communications Gateways.

func (ServicesCommunicationsGatewayOutput) ToServicesCommunicationsGatewayOutput

func (o ServicesCommunicationsGatewayOutput) ToServicesCommunicationsGatewayOutput() ServicesCommunicationsGatewayOutput

func (ServicesCommunicationsGatewayOutput) ToServicesCommunicationsGatewayOutputWithContext

func (o ServicesCommunicationsGatewayOutput) ToServicesCommunicationsGatewayOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayOutput

type ServicesCommunicationsGatewayServiceLocation

type ServicesCommunicationsGatewayServiceLocation struct {
	// Specifies the allowed source IP address or CIDR ranges for media.
	AllowedMediaSourceAddressPrefixes []string `pulumi:"allowedMediaSourceAddressPrefixes"`
	// Specifies the allowed source IP address or CIDR ranges for signaling.
	AllowedSignalingSourceAddressPrefixes []string `pulumi:"allowedSignalingSourceAddressPrefixes"`
	// IP address to use to contact the ESRP from this region.
	//
	// !> **NOTE:** The `esrpAddresses` must be specified for each `serviceLocation` when the`e911Type` is set to `DirectToEsrp`.  The `esrpAddresses` must not be specified for each `serviceLocation` when the`e911Type` is set to `Standard`.
	EsrpAddresses []string `pulumi:"esrpAddresses"`
	// Specifies the region in which the resources needed for Teams Calling will be deployed.
	Location string `pulumi:"location"`
	// IP address to use to contact the operator network from this region.
	OperatorAddresses []string `pulumi:"operatorAddresses"`
}

type ServicesCommunicationsGatewayServiceLocationArgs

type ServicesCommunicationsGatewayServiceLocationArgs struct {
	// Specifies the allowed source IP address or CIDR ranges for media.
	AllowedMediaSourceAddressPrefixes pulumi.StringArrayInput `pulumi:"allowedMediaSourceAddressPrefixes"`
	// Specifies the allowed source IP address or CIDR ranges for signaling.
	AllowedSignalingSourceAddressPrefixes pulumi.StringArrayInput `pulumi:"allowedSignalingSourceAddressPrefixes"`
	// IP address to use to contact the ESRP from this region.
	//
	// !> **NOTE:** The `esrpAddresses` must be specified for each `serviceLocation` when the`e911Type` is set to `DirectToEsrp`.  The `esrpAddresses` must not be specified for each `serviceLocation` when the`e911Type` is set to `Standard`.
	EsrpAddresses pulumi.StringArrayInput `pulumi:"esrpAddresses"`
	// Specifies the region in which the resources needed for Teams Calling will be deployed.
	Location pulumi.StringInput `pulumi:"location"`
	// IP address to use to contact the operator network from this region.
	OperatorAddresses pulumi.StringArrayInput `pulumi:"operatorAddresses"`
}

func (ServicesCommunicationsGatewayServiceLocationArgs) ElementType

func (ServicesCommunicationsGatewayServiceLocationArgs) ToServicesCommunicationsGatewayServiceLocationOutput

func (i ServicesCommunicationsGatewayServiceLocationArgs) ToServicesCommunicationsGatewayServiceLocationOutput() ServicesCommunicationsGatewayServiceLocationOutput

func (ServicesCommunicationsGatewayServiceLocationArgs) ToServicesCommunicationsGatewayServiceLocationOutputWithContext

func (i ServicesCommunicationsGatewayServiceLocationArgs) ToServicesCommunicationsGatewayServiceLocationOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayServiceLocationOutput

type ServicesCommunicationsGatewayServiceLocationArray

type ServicesCommunicationsGatewayServiceLocationArray []ServicesCommunicationsGatewayServiceLocationInput

func (ServicesCommunicationsGatewayServiceLocationArray) ElementType

func (ServicesCommunicationsGatewayServiceLocationArray) ToServicesCommunicationsGatewayServiceLocationArrayOutput

func (i ServicesCommunicationsGatewayServiceLocationArray) ToServicesCommunicationsGatewayServiceLocationArrayOutput() ServicesCommunicationsGatewayServiceLocationArrayOutput

func (ServicesCommunicationsGatewayServiceLocationArray) ToServicesCommunicationsGatewayServiceLocationArrayOutputWithContext

func (i ServicesCommunicationsGatewayServiceLocationArray) ToServicesCommunicationsGatewayServiceLocationArrayOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayServiceLocationArrayOutput

type ServicesCommunicationsGatewayServiceLocationArrayInput

type ServicesCommunicationsGatewayServiceLocationArrayInput interface {
	pulumi.Input

	ToServicesCommunicationsGatewayServiceLocationArrayOutput() ServicesCommunicationsGatewayServiceLocationArrayOutput
	ToServicesCommunicationsGatewayServiceLocationArrayOutputWithContext(context.Context) ServicesCommunicationsGatewayServiceLocationArrayOutput
}

ServicesCommunicationsGatewayServiceLocationArrayInput is an input type that accepts ServicesCommunicationsGatewayServiceLocationArray and ServicesCommunicationsGatewayServiceLocationArrayOutput values. You can construct a concrete instance of `ServicesCommunicationsGatewayServiceLocationArrayInput` via:

ServicesCommunicationsGatewayServiceLocationArray{ ServicesCommunicationsGatewayServiceLocationArgs{...} }

type ServicesCommunicationsGatewayServiceLocationArrayOutput

type ServicesCommunicationsGatewayServiceLocationArrayOutput struct{ *pulumi.OutputState }

func (ServicesCommunicationsGatewayServiceLocationArrayOutput) ElementType

func (ServicesCommunicationsGatewayServiceLocationArrayOutput) Index

func (ServicesCommunicationsGatewayServiceLocationArrayOutput) ToServicesCommunicationsGatewayServiceLocationArrayOutput

func (ServicesCommunicationsGatewayServiceLocationArrayOutput) ToServicesCommunicationsGatewayServiceLocationArrayOutputWithContext

func (o ServicesCommunicationsGatewayServiceLocationArrayOutput) ToServicesCommunicationsGatewayServiceLocationArrayOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayServiceLocationArrayOutput

type ServicesCommunicationsGatewayServiceLocationInput

type ServicesCommunicationsGatewayServiceLocationInput interface {
	pulumi.Input

	ToServicesCommunicationsGatewayServiceLocationOutput() ServicesCommunicationsGatewayServiceLocationOutput
	ToServicesCommunicationsGatewayServiceLocationOutputWithContext(context.Context) ServicesCommunicationsGatewayServiceLocationOutput
}

ServicesCommunicationsGatewayServiceLocationInput is an input type that accepts ServicesCommunicationsGatewayServiceLocationArgs and ServicesCommunicationsGatewayServiceLocationOutput values. You can construct a concrete instance of `ServicesCommunicationsGatewayServiceLocationInput` via:

ServicesCommunicationsGatewayServiceLocationArgs{...}

type ServicesCommunicationsGatewayServiceLocationOutput

type ServicesCommunicationsGatewayServiceLocationOutput struct{ *pulumi.OutputState }

func (ServicesCommunicationsGatewayServiceLocationOutput) AllowedMediaSourceAddressPrefixes

func (o ServicesCommunicationsGatewayServiceLocationOutput) AllowedMediaSourceAddressPrefixes() pulumi.StringArrayOutput

Specifies the allowed source IP address or CIDR ranges for media.

func (ServicesCommunicationsGatewayServiceLocationOutput) AllowedSignalingSourceAddressPrefixes

func (o ServicesCommunicationsGatewayServiceLocationOutput) AllowedSignalingSourceAddressPrefixes() pulumi.StringArrayOutput

Specifies the allowed source IP address or CIDR ranges for signaling.

func (ServicesCommunicationsGatewayServiceLocationOutput) ElementType

func (ServicesCommunicationsGatewayServiceLocationOutput) EsrpAddresses

IP address to use to contact the ESRP from this region.

!> **NOTE:** The `esrpAddresses` must be specified for each `serviceLocation` when the`e911Type` is set to `DirectToEsrp`. The `esrpAddresses` must not be specified for each `serviceLocation` when the`e911Type` is set to `Standard`.

func (ServicesCommunicationsGatewayServiceLocationOutput) Location

Specifies the region in which the resources needed for Teams Calling will be deployed.

func (ServicesCommunicationsGatewayServiceLocationOutput) OperatorAddresses

IP address to use to contact the operator network from this region.

func (ServicesCommunicationsGatewayServiceLocationOutput) ToServicesCommunicationsGatewayServiceLocationOutput

func (o ServicesCommunicationsGatewayServiceLocationOutput) ToServicesCommunicationsGatewayServiceLocationOutput() ServicesCommunicationsGatewayServiceLocationOutput

func (ServicesCommunicationsGatewayServiceLocationOutput) ToServicesCommunicationsGatewayServiceLocationOutputWithContext

func (o ServicesCommunicationsGatewayServiceLocationOutput) ToServicesCommunicationsGatewayServiceLocationOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayServiceLocationOutput

type ServicesCommunicationsGatewayState

type ServicesCommunicationsGatewayState struct {
	// Details of API bridge functionality, if required.
	ApiBridge pulumi.StringPtrInput
	// 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.StringPtrInput
	// The voice codecs expected for communication with Teams. Possible values are `PCMA`, `PCMU`,`G722`,`G722_2`,`SILK_8` and `SILK_16`.
	Codecs pulumi.StringPtrInput
	// 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.StringPtrInput
	// How to handle 911 calls. Possible values are `Standard` and `DirectToEsrp`.
	E911Type pulumi.StringPtrInput
	// A list of dial strings used for emergency calling.
	EmergencyDialStrings pulumi.StringArrayInput
	// Specifies the Azure Region where the Voice Services Communications Gateways should exist. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// This number is used in Teams Phone Mobile scenarios for access to the voicemail IVR from the native dialer.
	MicrosoftTeamsVoicemailPilotNumber pulumi.StringPtrInput
	// Specifies the name which should be used for this Voice Services Communications Gateways. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Whether an on-premises Mobile Control Point is in use.
	OnPremMcpEnabled pulumi.BoolPtrInput
	// The Voice Services Communications GatewaysAvailable supports platform types. Possible values are `OperatorConnect`, `TeamsPhoneMobile`.
	Platforms pulumi.StringArrayInput
	// 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.StringPtrInput
	// A `serviceLocation` block as defined below.
	ServiceLocations ServicesCommunicationsGatewayServiceLocationArrayInput
	// A mapping of tags which should be assigned to the Voice Services Communications Gateways.
	Tags pulumi.StringMapInput
}

func (ServicesCommunicationsGatewayState) ElementType

type ServicesCommunicationsGatewayTestLine added in v5.40.0

type ServicesCommunicationsGatewayTestLine struct {
	pulumi.CustomResourceState

	// Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the phone number.
	PhoneNumber pulumi.StringOutput `pulumi:"phoneNumber"`
	// The purpose of the Voice Services Communications Gateway Test Line. Possible values are `Automated` or `Manual`.
	Purpose pulumi.StringOutput `pulumi:"purpose"`
	// A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
	VoiceServicesCommunicationsGatewayId pulumi.StringOutput `pulumi:"voiceServicesCommunicationsGatewayId"`
}

Manages a Voice Services Communications Gateway Test Line.

## Example Usage

```go package main

import (

"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 Central US"),
		})
		if err != nil {
			return err
		}
		exampleServicesCommunicationsGateway, err := voice.NewServicesCommunicationsGateway(ctx, "example", &voice.ServicesCommunicationsGatewayArgs{
			Name:              pulumi.String("example-vcg"),
			ResourceGroupName: example.Name,
		})
		if err != nil {
			return err
		}
		_, err = voice.NewServicesCommunicationsGatewayTestLine(ctx, "example", &voice.ServicesCommunicationsGatewayTestLineArgs{
			Name:                                 pulumi.String("example-vtl"),
			Location:                             pulumi.String("West Central US"),
			VoiceServicesCommunicationsGatewayId: exampleServicesCommunicationsGateway.ID(),
			PhoneNumber:                          pulumi.String("123456789"),
			Purpose:                              pulumi.String("Automated"),
			Tags: pulumi.StringMap{
				"key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Voice Services Communications Gateway Test Line can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:voice/servicesCommunicationsGatewayTestLine:ServicesCommunicationsGatewayTestLine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.VoiceServices/communicationsGateways/communicationsGateway1/testLines/testLine1 ```

func GetServicesCommunicationsGatewayTestLine added in v5.40.0

func GetServicesCommunicationsGatewayTestLine(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServicesCommunicationsGatewayTestLineState, opts ...pulumi.ResourceOption) (*ServicesCommunicationsGatewayTestLine, error)

GetServicesCommunicationsGatewayTestLine gets an existing ServicesCommunicationsGatewayTestLine resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewServicesCommunicationsGatewayTestLine added in v5.40.0

func NewServicesCommunicationsGatewayTestLine(ctx *pulumi.Context,
	name string, args *ServicesCommunicationsGatewayTestLineArgs, opts ...pulumi.ResourceOption) (*ServicesCommunicationsGatewayTestLine, error)

NewServicesCommunicationsGatewayTestLine registers a new resource with the given unique name, arguments, and options.

func (*ServicesCommunicationsGatewayTestLine) ElementType added in v5.40.0

func (*ServicesCommunicationsGatewayTestLine) ToServicesCommunicationsGatewayTestLineOutput added in v5.40.0

func (i *ServicesCommunicationsGatewayTestLine) ToServicesCommunicationsGatewayTestLineOutput() ServicesCommunicationsGatewayTestLineOutput

func (*ServicesCommunicationsGatewayTestLine) ToServicesCommunicationsGatewayTestLineOutputWithContext added in v5.40.0

func (i *ServicesCommunicationsGatewayTestLine) ToServicesCommunicationsGatewayTestLineOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayTestLineOutput

type ServicesCommunicationsGatewayTestLineArgs added in v5.40.0

type ServicesCommunicationsGatewayTestLineArgs struct {
	// Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Specifies the phone number.
	PhoneNumber pulumi.StringInput
	// The purpose of the Voice Services Communications Gateway Test Line. Possible values are `Automated` or `Manual`.
	Purpose pulumi.StringInput
	// A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
	Tags pulumi.StringMapInput
	// Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
	VoiceServicesCommunicationsGatewayId pulumi.StringInput
}

The set of arguments for constructing a ServicesCommunicationsGatewayTestLine resource.

func (ServicesCommunicationsGatewayTestLineArgs) ElementType added in v5.40.0

type ServicesCommunicationsGatewayTestLineArray added in v5.40.0

type ServicesCommunicationsGatewayTestLineArray []ServicesCommunicationsGatewayTestLineInput

func (ServicesCommunicationsGatewayTestLineArray) ElementType added in v5.40.0

func (ServicesCommunicationsGatewayTestLineArray) ToServicesCommunicationsGatewayTestLineArrayOutput added in v5.40.0

func (i ServicesCommunicationsGatewayTestLineArray) ToServicesCommunicationsGatewayTestLineArrayOutput() ServicesCommunicationsGatewayTestLineArrayOutput

func (ServicesCommunicationsGatewayTestLineArray) ToServicesCommunicationsGatewayTestLineArrayOutputWithContext added in v5.40.0

func (i ServicesCommunicationsGatewayTestLineArray) ToServicesCommunicationsGatewayTestLineArrayOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayTestLineArrayOutput

type ServicesCommunicationsGatewayTestLineArrayInput added in v5.40.0

type ServicesCommunicationsGatewayTestLineArrayInput interface {
	pulumi.Input

	ToServicesCommunicationsGatewayTestLineArrayOutput() ServicesCommunicationsGatewayTestLineArrayOutput
	ToServicesCommunicationsGatewayTestLineArrayOutputWithContext(context.Context) ServicesCommunicationsGatewayTestLineArrayOutput
}

ServicesCommunicationsGatewayTestLineArrayInput is an input type that accepts ServicesCommunicationsGatewayTestLineArray and ServicesCommunicationsGatewayTestLineArrayOutput values. You can construct a concrete instance of `ServicesCommunicationsGatewayTestLineArrayInput` via:

ServicesCommunicationsGatewayTestLineArray{ ServicesCommunicationsGatewayTestLineArgs{...} }

type ServicesCommunicationsGatewayTestLineArrayOutput added in v5.40.0

type ServicesCommunicationsGatewayTestLineArrayOutput struct{ *pulumi.OutputState }

func (ServicesCommunicationsGatewayTestLineArrayOutput) ElementType added in v5.40.0

func (ServicesCommunicationsGatewayTestLineArrayOutput) Index added in v5.40.0

func (ServicesCommunicationsGatewayTestLineArrayOutput) ToServicesCommunicationsGatewayTestLineArrayOutput added in v5.40.0

func (o ServicesCommunicationsGatewayTestLineArrayOutput) ToServicesCommunicationsGatewayTestLineArrayOutput() ServicesCommunicationsGatewayTestLineArrayOutput

func (ServicesCommunicationsGatewayTestLineArrayOutput) ToServicesCommunicationsGatewayTestLineArrayOutputWithContext added in v5.40.0

func (o ServicesCommunicationsGatewayTestLineArrayOutput) ToServicesCommunicationsGatewayTestLineArrayOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayTestLineArrayOutput

type ServicesCommunicationsGatewayTestLineInput added in v5.40.0

type ServicesCommunicationsGatewayTestLineInput interface {
	pulumi.Input

	ToServicesCommunicationsGatewayTestLineOutput() ServicesCommunicationsGatewayTestLineOutput
	ToServicesCommunicationsGatewayTestLineOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayTestLineOutput
}

type ServicesCommunicationsGatewayTestLineMap added in v5.40.0

type ServicesCommunicationsGatewayTestLineMap map[string]ServicesCommunicationsGatewayTestLineInput

func (ServicesCommunicationsGatewayTestLineMap) ElementType added in v5.40.0

func (ServicesCommunicationsGatewayTestLineMap) ToServicesCommunicationsGatewayTestLineMapOutput added in v5.40.0

func (i ServicesCommunicationsGatewayTestLineMap) ToServicesCommunicationsGatewayTestLineMapOutput() ServicesCommunicationsGatewayTestLineMapOutput

func (ServicesCommunicationsGatewayTestLineMap) ToServicesCommunicationsGatewayTestLineMapOutputWithContext added in v5.40.0

func (i ServicesCommunicationsGatewayTestLineMap) ToServicesCommunicationsGatewayTestLineMapOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayTestLineMapOutput

type ServicesCommunicationsGatewayTestLineMapInput added in v5.40.0

type ServicesCommunicationsGatewayTestLineMapInput interface {
	pulumi.Input

	ToServicesCommunicationsGatewayTestLineMapOutput() ServicesCommunicationsGatewayTestLineMapOutput
	ToServicesCommunicationsGatewayTestLineMapOutputWithContext(context.Context) ServicesCommunicationsGatewayTestLineMapOutput
}

ServicesCommunicationsGatewayTestLineMapInput is an input type that accepts ServicesCommunicationsGatewayTestLineMap and ServicesCommunicationsGatewayTestLineMapOutput values. You can construct a concrete instance of `ServicesCommunicationsGatewayTestLineMapInput` via:

ServicesCommunicationsGatewayTestLineMap{ "key": ServicesCommunicationsGatewayTestLineArgs{...} }

type ServicesCommunicationsGatewayTestLineMapOutput added in v5.40.0

type ServicesCommunicationsGatewayTestLineMapOutput struct{ *pulumi.OutputState }

func (ServicesCommunicationsGatewayTestLineMapOutput) ElementType added in v5.40.0

func (ServicesCommunicationsGatewayTestLineMapOutput) MapIndex added in v5.40.0

func (ServicesCommunicationsGatewayTestLineMapOutput) ToServicesCommunicationsGatewayTestLineMapOutput added in v5.40.0

func (o ServicesCommunicationsGatewayTestLineMapOutput) ToServicesCommunicationsGatewayTestLineMapOutput() ServicesCommunicationsGatewayTestLineMapOutput

func (ServicesCommunicationsGatewayTestLineMapOutput) ToServicesCommunicationsGatewayTestLineMapOutputWithContext added in v5.40.0

func (o ServicesCommunicationsGatewayTestLineMapOutput) ToServicesCommunicationsGatewayTestLineMapOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayTestLineMapOutput

type ServicesCommunicationsGatewayTestLineOutput added in v5.40.0

type ServicesCommunicationsGatewayTestLineOutput struct{ *pulumi.OutputState }

func (ServicesCommunicationsGatewayTestLineOutput) ElementType added in v5.40.0

func (ServicesCommunicationsGatewayTestLineOutput) Location added in v5.40.0

Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.

func (ServicesCommunicationsGatewayTestLineOutput) Name added in v5.40.0

Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.

func (ServicesCommunicationsGatewayTestLineOutput) PhoneNumber added in v5.40.0

Specifies the phone number.

func (ServicesCommunicationsGatewayTestLineOutput) Purpose added in v5.40.0

The purpose of the Voice Services Communications Gateway Test Line. Possible values are `Automated` or `Manual`.

func (ServicesCommunicationsGatewayTestLineOutput) Tags added in v5.40.0

A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.

func (ServicesCommunicationsGatewayTestLineOutput) ToServicesCommunicationsGatewayTestLineOutput added in v5.40.0

func (o ServicesCommunicationsGatewayTestLineOutput) ToServicesCommunicationsGatewayTestLineOutput() ServicesCommunicationsGatewayTestLineOutput

func (ServicesCommunicationsGatewayTestLineOutput) ToServicesCommunicationsGatewayTestLineOutputWithContext added in v5.40.0

func (o ServicesCommunicationsGatewayTestLineOutput) ToServicesCommunicationsGatewayTestLineOutputWithContext(ctx context.Context) ServicesCommunicationsGatewayTestLineOutput

func (ServicesCommunicationsGatewayTestLineOutput) VoiceServicesCommunicationsGatewayId added in v5.40.0

func (o ServicesCommunicationsGatewayTestLineOutput) VoiceServicesCommunicationsGatewayId() pulumi.StringOutput

Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.

type ServicesCommunicationsGatewayTestLineState added in v5.40.0

type ServicesCommunicationsGatewayTestLineState struct {
	// Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Specifies the phone number.
	PhoneNumber pulumi.StringPtrInput
	// The purpose of the Voice Services Communications Gateway Test Line. Possible values are `Automated` or `Manual`.
	Purpose pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
	Tags pulumi.StringMapInput
	// Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
	VoiceServicesCommunicationsGatewayId pulumi.StringPtrInput
}

func (ServicesCommunicationsGatewayTestLineState) ElementType added in v5.40.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL