aws logo
AWS Classic v5.41.0, May 15 23

aws.chime.VoiceConnectorTermination

Explore with Pulumi AI

Enable Termination settings to control outbound calling from your SIP infrastructure.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var defaultVoiceConnector = new Aws.Chime.VoiceConnector("defaultVoiceConnector", new()
    {
        RequireEncryption = true,
    });

    var defaultVoiceConnectorTermination = new Aws.Chime.VoiceConnectorTermination("defaultVoiceConnectorTermination", new()
    {
        Disabled = false,
        CpsLimit = 1,
        CidrAllowLists = new[]
        {
            "50.35.78.96/31",
        },
        CallingRegions = new[]
        {
            "US",
            "CA",
        },
        VoiceConnectorId = defaultVoiceConnector.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/chime"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultVoiceConnector, err := chime.NewVoiceConnector(ctx, "defaultVoiceConnector", &chime.VoiceConnectorArgs{
			RequireEncryption: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = chime.NewVoiceConnectorTermination(ctx, "defaultVoiceConnectorTermination", &chime.VoiceConnectorTerminationArgs{
			Disabled: pulumi.Bool(false),
			CpsLimit: pulumi.Int(1),
			CidrAllowLists: pulumi.StringArray{
				pulumi.String("50.35.78.96/31"),
			},
			CallingRegions: pulumi.StringArray{
				pulumi.String("US"),
				pulumi.String("CA"),
			},
			VoiceConnectorId: defaultVoiceConnector.ID(),
		})
		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.aws.chime.VoiceConnector;
import com.pulumi.aws.chime.VoiceConnectorArgs;
import com.pulumi.aws.chime.VoiceConnectorTermination;
import com.pulumi.aws.chime.VoiceConnectorTerminationArgs;
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 defaultVoiceConnector = new VoiceConnector("defaultVoiceConnector", VoiceConnectorArgs.builder()        
            .requireEncryption(true)
            .build());

        var defaultVoiceConnectorTermination = new VoiceConnectorTermination("defaultVoiceConnectorTermination", VoiceConnectorTerminationArgs.builder()        
            .disabled(false)
            .cpsLimit(1)
            .cidrAllowLists("50.35.78.96/31")
            .callingRegions(            
                "US",
                "CA")
            .voiceConnectorId(defaultVoiceConnector.id())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

default_voice_connector = aws.chime.VoiceConnector("defaultVoiceConnector", require_encryption=True)
default_voice_connector_termination = aws.chime.VoiceConnectorTermination("defaultVoiceConnectorTermination",
    disabled=False,
    cps_limit=1,
    cidr_allow_lists=["50.35.78.96/31"],
    calling_regions=[
        "US",
        "CA",
    ],
    voice_connector_id=default_voice_connector.id)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const defaultVoiceConnector = new aws.chime.VoiceConnector("defaultVoiceConnector", {requireEncryption: true});
const defaultVoiceConnectorTermination = new aws.chime.VoiceConnectorTermination("defaultVoiceConnectorTermination", {
    disabled: false,
    cpsLimit: 1,
    cidrAllowLists: ["50.35.78.96/31"],
    callingRegions: [
        "US",
        "CA",
    ],
    voiceConnectorId: defaultVoiceConnector.id,
});
resources:
  defaultVoiceConnector:
    type: aws:chime:VoiceConnector
    properties:
      requireEncryption: true
  defaultVoiceConnectorTermination:
    type: aws:chime:VoiceConnectorTermination
    properties:
      disabled: false
      cpsLimit: 1
      cidrAllowLists:
        - 50.35.78.96/31
      callingRegions:
        - US
        - CA
      voiceConnectorId: ${defaultVoiceConnector.id}

Create VoiceConnectorTermination Resource

new VoiceConnectorTermination(name: string, args: VoiceConnectorTerminationArgs, opts?: CustomResourceOptions);
@overload
def VoiceConnectorTermination(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              calling_regions: Optional[Sequence[str]] = None,
                              cidr_allow_lists: Optional[Sequence[str]] = None,
                              cps_limit: Optional[int] = None,
                              default_phone_number: Optional[str] = None,
                              disabled: Optional[bool] = None,
                              voice_connector_id: Optional[str] = None)
@overload
def VoiceConnectorTermination(resource_name: str,
                              args: VoiceConnectorTerminationArgs,
                              opts: Optional[ResourceOptions] = None)
func NewVoiceConnectorTermination(ctx *Context, name string, args VoiceConnectorTerminationArgs, opts ...ResourceOption) (*VoiceConnectorTermination, error)
public VoiceConnectorTermination(string name, VoiceConnectorTerminationArgs args, CustomResourceOptions? opts = null)
public VoiceConnectorTermination(String name, VoiceConnectorTerminationArgs args)
public VoiceConnectorTermination(String name, VoiceConnectorTerminationArgs args, CustomResourceOptions options)
type: aws:chime:VoiceConnectorTermination
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args VoiceConnectorTerminationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args VoiceConnectorTerminationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args VoiceConnectorTerminationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VoiceConnectorTerminationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args VoiceConnectorTerminationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

VoiceConnectorTermination Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The VoiceConnectorTermination resource accepts the following input properties:

CallingRegions List<string>

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.

CidrAllowLists List<string>

The IP addresses allowed to make calls, in CIDR format.

VoiceConnectorId string

The Amazon Chime Voice Connector ID.

CpsLimit int

The limit on calls per second. Max value based on account service quota. Default value of 1.

DefaultPhoneNumber string

The default caller ID phone number.

Disabled bool

When termination settings are disabled, outbound calls can not be made.

CallingRegions []string

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.

CidrAllowLists []string

The IP addresses allowed to make calls, in CIDR format.

VoiceConnectorId string

The Amazon Chime Voice Connector ID.

CpsLimit int

The limit on calls per second. Max value based on account service quota. Default value of 1.

DefaultPhoneNumber string

The default caller ID phone number.

Disabled bool

When termination settings are disabled, outbound calls can not be made.

callingRegions List<String>

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.

cidrAllowLists List<String>

The IP addresses allowed to make calls, in CIDR format.

voiceConnectorId String

The Amazon Chime Voice Connector ID.

cpsLimit Integer

The limit on calls per second. Max value based on account service quota. Default value of 1.

defaultPhoneNumber String

The default caller ID phone number.

disabled Boolean

When termination settings are disabled, outbound calls can not be made.

callingRegions string[]

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.

cidrAllowLists string[]

The IP addresses allowed to make calls, in CIDR format.

voiceConnectorId string

The Amazon Chime Voice Connector ID.

cpsLimit number

The limit on calls per second. Max value based on account service quota. Default value of 1.

defaultPhoneNumber string

The default caller ID phone number.

disabled boolean

When termination settings are disabled, outbound calls can not be made.

calling_regions Sequence[str]

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.

cidr_allow_lists Sequence[str]

The IP addresses allowed to make calls, in CIDR format.

voice_connector_id str

The Amazon Chime Voice Connector ID.

cps_limit int

The limit on calls per second. Max value based on account service quota. Default value of 1.

default_phone_number str

The default caller ID phone number.

disabled bool

When termination settings are disabled, outbound calls can not be made.

callingRegions List<String>

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.

cidrAllowLists List<String>

The IP addresses allowed to make calls, in CIDR format.

voiceConnectorId String

The Amazon Chime Voice Connector ID.

cpsLimit Number

The limit on calls per second. Max value based on account service quota. Default value of 1.

defaultPhoneNumber String

The default caller ID phone number.

disabled Boolean

When termination settings are disabled, outbound calls can not be made.

Outputs

All input properties are implicitly available as output properties. Additionally, the VoiceConnectorTermination resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing VoiceConnectorTermination Resource

Get an existing VoiceConnectorTermination resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: VoiceConnectorTerminationState, opts?: CustomResourceOptions): VoiceConnectorTermination
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        calling_regions: Optional[Sequence[str]] = None,
        cidr_allow_lists: Optional[Sequence[str]] = None,
        cps_limit: Optional[int] = None,
        default_phone_number: Optional[str] = None,
        disabled: Optional[bool] = None,
        voice_connector_id: Optional[str] = None) -> VoiceConnectorTermination
func GetVoiceConnectorTermination(ctx *Context, name string, id IDInput, state *VoiceConnectorTerminationState, opts ...ResourceOption) (*VoiceConnectorTermination, error)
public static VoiceConnectorTermination Get(string name, Input<string> id, VoiceConnectorTerminationState? state, CustomResourceOptions? opts = null)
public static VoiceConnectorTermination get(String name, Output<String> id, VoiceConnectorTerminationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CallingRegions List<string>

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.

CidrAllowLists List<string>

The IP addresses allowed to make calls, in CIDR format.

CpsLimit int

The limit on calls per second. Max value based on account service quota. Default value of 1.

DefaultPhoneNumber string

The default caller ID phone number.

Disabled bool

When termination settings are disabled, outbound calls can not be made.

VoiceConnectorId string

The Amazon Chime Voice Connector ID.

CallingRegions []string

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.

CidrAllowLists []string

The IP addresses allowed to make calls, in CIDR format.

CpsLimit int

The limit on calls per second. Max value based on account service quota. Default value of 1.

DefaultPhoneNumber string

The default caller ID phone number.

Disabled bool

When termination settings are disabled, outbound calls can not be made.

VoiceConnectorId string

The Amazon Chime Voice Connector ID.

callingRegions List<String>

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.

cidrAllowLists List<String>

The IP addresses allowed to make calls, in CIDR format.

cpsLimit Integer

The limit on calls per second. Max value based on account service quota. Default value of 1.

defaultPhoneNumber String

The default caller ID phone number.

disabled Boolean

When termination settings are disabled, outbound calls can not be made.

voiceConnectorId String

The Amazon Chime Voice Connector ID.

callingRegions string[]

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.

cidrAllowLists string[]

The IP addresses allowed to make calls, in CIDR format.

cpsLimit number

The limit on calls per second. Max value based on account service quota. Default value of 1.

defaultPhoneNumber string

The default caller ID phone number.

disabled boolean

When termination settings are disabled, outbound calls can not be made.

voiceConnectorId string

The Amazon Chime Voice Connector ID.

calling_regions Sequence[str]

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.

cidr_allow_lists Sequence[str]

The IP addresses allowed to make calls, in CIDR format.

cps_limit int

The limit on calls per second. Max value based on account service quota. Default value of 1.

default_phone_number str

The default caller ID phone number.

disabled bool

When termination settings are disabled, outbound calls can not be made.

voice_connector_id str

The Amazon Chime Voice Connector ID.

callingRegions List<String>

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.

cidrAllowLists List<String>

The IP addresses allowed to make calls, in CIDR format.

cpsLimit Number

The limit on calls per second. Max value based on account service quota. Default value of 1.

defaultPhoneNumber String

The default caller ID phone number.

disabled Boolean

When termination settings are disabled, outbound calls can not be made.

voiceConnectorId String

The Amazon Chime Voice Connector ID.

Import

Chime Voice Connector Termination can be imported using the voice_connector_id, e.g.,

 $ pulumi import aws:chime/voiceConnectorTermination:VoiceConnectorTermination default abcdef1ghij2klmno3pqr4

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.