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:
- Calling
Regions List<string> The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
- Cidr
Allow List<string>Lists The IP addresses allowed to make calls, in CIDR format.
- Voice
Connector stringId 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 stringNumber The default caller ID phone number.
- Disabled bool
When termination settings are disabled, outbound calls can not be made.
- Calling
Regions []string The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
- Cidr
Allow []stringLists The IP addresses allowed to make calls, in CIDR format.
- Voice
Connector stringId 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 stringNumber The default caller ID phone number.
- Disabled bool
When termination settings are disabled, outbound calls can not be made.
- calling
Regions List<String> The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
- cidr
Allow List<String>Lists The IP addresses allowed to make calls, in CIDR format.
- voice
Connector StringId The Amazon Chime Voice Connector ID.
- cps
Limit Integer The limit on calls per second. Max value based on account service quota. Default value of
1
.- default
Phone StringNumber The default caller ID phone number.
- disabled Boolean
When termination settings are disabled, outbound calls can not be made.
- calling
Regions string[] The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
- cidr
Allow string[]Lists The IP addresses allowed to make calls, in CIDR format.
- voice
Connector stringId The Amazon Chime Voice Connector ID.
- cps
Limit number The limit on calls per second. Max value based on account service quota. Default value of
1
.- default
Phone stringNumber 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_ Sequence[str]lists The IP addresses allowed to make calls, in CIDR format.
- voice_
connector_ strid 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_ strnumber The default caller ID phone number.
- disabled bool
When termination settings are disabled, outbound calls can not be made.
- calling
Regions List<String> The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
- cidr
Allow List<String>Lists The IP addresses allowed to make calls, in CIDR format.
- voice
Connector StringId The Amazon Chime Voice Connector ID.
- cps
Limit Number The limit on calls per second. Max value based on account service quota. Default value of
1
.- default
Phone StringNumber 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.
- Calling
Regions List<string> The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
- Cidr
Allow List<string>Lists 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 stringNumber The default caller ID phone number.
- Disabled bool
When termination settings are disabled, outbound calls can not be made.
- Voice
Connector stringId The Amazon Chime Voice Connector ID.
- Calling
Regions []string The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
- Cidr
Allow []stringLists 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 stringNumber The default caller ID phone number.
- Disabled bool
When termination settings are disabled, outbound calls can not be made.
- Voice
Connector stringId The Amazon Chime Voice Connector ID.
- calling
Regions List<String> The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
- cidr
Allow List<String>Lists The IP addresses allowed to make calls, in CIDR format.
- cps
Limit Integer The limit on calls per second. Max value based on account service quota. Default value of
1
.- default
Phone StringNumber The default caller ID phone number.
- disabled Boolean
When termination settings are disabled, outbound calls can not be made.
- voice
Connector StringId The Amazon Chime Voice Connector ID.
- calling
Regions string[] The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
- cidr
Allow string[]Lists The IP addresses allowed to make calls, in CIDR format.
- cps
Limit number The limit on calls per second. Max value based on account service quota. Default value of
1
.- default
Phone stringNumber The default caller ID phone number.
- disabled boolean
When termination settings are disabled, outbound calls can not be made.
- voice
Connector stringId 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_ Sequence[str]lists 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_ strnumber The default caller ID phone number.
- disabled bool
When termination settings are disabled, outbound calls can not be made.
- voice_
connector_ strid The Amazon Chime Voice Connector ID.
- calling
Regions List<String> The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
- cidr
Allow List<String>Lists The IP addresses allowed to make calls, in CIDR format.
- cps
Limit Number The limit on calls per second. Max value based on account service quota. Default value of
1
.- default
Phone StringNumber The default caller ID phone number.
- disabled Boolean
When termination settings are disabled, outbound calls can not be made.
- voice
Connector StringId 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.