aws.chime.VoiceConnectorTermination
Explore with Pulumi AI
Enable Termination settings to control outbound calling from your SIP infrastructure.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const _default = new aws.chime.VoiceConnector("default", {
name: "vc-name-test",
requireEncryption: true,
});
const defaultVoiceConnectorTermination = new aws.chime.VoiceConnectorTermination("default", {
disabled: false,
cpsLimit: 1,
cidrAllowLists: ["50.35.78.96/31"],
callingRegions: [
"US",
"CA",
],
voiceConnectorId: _default.id,
});
import pulumi
import pulumi_aws as aws
default = aws.chime.VoiceConnector("default",
name="vc-name-test",
require_encryption=True)
default_voice_connector_termination = aws.chime.VoiceConnectorTermination("default",
disabled=False,
cps_limit=1,
cidr_allow_lists=["50.35.78.96/31"],
calling_regions=[
"US",
"CA",
],
voice_connector_id=default.id)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chime"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := chime.NewVoiceConnector(ctx, "default", &chime.VoiceConnectorArgs{
Name: pulumi.String("vc-name-test"),
RequireEncryption: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = chime.NewVoiceConnectorTermination(ctx, "default", &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: _default.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var @default = new Aws.Chime.VoiceConnector("default", new()
{
Name = "vc-name-test",
RequireEncryption = true,
});
var defaultVoiceConnectorTermination = new Aws.Chime.VoiceConnectorTermination("default", new()
{
Disabled = false,
CpsLimit = 1,
CidrAllowLists = new[]
{
"50.35.78.96/31",
},
CallingRegions = new[]
{
"US",
"CA",
},
VoiceConnectorId = @default.Id,
});
});
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 default_ = new VoiceConnector("default", VoiceConnectorArgs.builder()
.name("vc-name-test")
.requireEncryption(true)
.build());
var defaultVoiceConnectorTermination = new VoiceConnectorTermination("defaultVoiceConnectorTermination", VoiceConnectorTerminationArgs.builder()
.disabled(false)
.cpsLimit(1)
.cidrAllowLists("50.35.78.96/31")
.callingRegions(
"US",
"CA")
.voiceConnectorId(default_.id())
.build());
}
}
resources:
default:
type: aws:chime:VoiceConnector
properties:
name: vc-name-test
requireEncryption: true
defaultVoiceConnectorTermination:
type: aws:chime:VoiceConnectorTermination
name: default
properties:
disabled: false
cpsLimit: 1
cidrAllowLists:
- 50.35.78.96/31
callingRegions:
- US
- CA
voiceConnectorId: ${default.id}
Create VoiceConnectorTermination Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VoiceConnectorTermination(name: string, args: VoiceConnectorTerminationArgs, opts?: CustomResourceOptions);
@overload
def VoiceConnectorTermination(resource_name: str,
args: VoiceConnectorTerminationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VoiceConnectorTermination(resource_name: str,
opts: Optional[ResourceOptions] = None,
calling_regions: Optional[Sequence[str]] = None,
cidr_allow_lists: Optional[Sequence[str]] = None,
voice_connector_id: Optional[str] = None,
cps_limit: Optional[int] = None,
default_phone_number: Optional[str] = None,
disabled: Optional[bool] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var voiceConnectorTerminationResource = new Aws.Chime.VoiceConnectorTermination("voiceConnectorTerminationResource", new()
{
CallingRegions = new[]
{
"string",
},
CidrAllowLists = new[]
{
"string",
},
VoiceConnectorId = "string",
CpsLimit = 0,
DefaultPhoneNumber = "string",
Disabled = false,
});
example, err := chime.NewVoiceConnectorTermination(ctx, "voiceConnectorTerminationResource", &chime.VoiceConnectorTerminationArgs{
CallingRegions: pulumi.StringArray{
pulumi.String("string"),
},
CidrAllowLists: pulumi.StringArray{
pulumi.String("string"),
},
VoiceConnectorId: pulumi.String("string"),
CpsLimit: pulumi.Int(0),
DefaultPhoneNumber: pulumi.String("string"),
Disabled: pulumi.Bool(false),
})
var voiceConnectorTerminationResource = new VoiceConnectorTermination("voiceConnectorTerminationResource", VoiceConnectorTerminationArgs.builder()
.callingRegions("string")
.cidrAllowLists("string")
.voiceConnectorId("string")
.cpsLimit(0)
.defaultPhoneNumber("string")
.disabled(false)
.build());
voice_connector_termination_resource = aws.chime.VoiceConnectorTermination("voiceConnectorTerminationResource",
calling_regions=["string"],
cidr_allow_lists=["string"],
voice_connector_id="string",
cps_limit=0,
default_phone_number="string",
disabled=False)
const voiceConnectorTerminationResource = new aws.chime.VoiceConnectorTermination("voiceConnectorTerminationResource", {
callingRegions: ["string"],
cidrAllowLists: ["string"],
voiceConnectorId: "string",
cpsLimit: 0,
defaultPhoneNumber: "string",
disabled: false,
});
type: aws:chime:VoiceConnectorTermination
properties:
callingRegions:
- string
cidrAllowLists:
- string
cpsLimit: 0
defaultPhoneNumber: string
disabled: false
voiceConnectorId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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
Using pulumi import
, import Chime Voice Connector Termination using the voice_connector_id
. For example:
$ pulumi import aws:chime/voiceConnectorTermination:VoiceConnectorTermination default abcdef1ghij2klmno3pqr4
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.