Try AWS Native preview for resources not in the classic version.
aws.chime.VoiceConnectorOrganization
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Enable origination settings to control inbound calling to 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 defaultVoiceConnectorOrganization = new Aws.Chime.VoiceConnectorOrganization("defaultVoiceConnectorOrganization", new()
{
Disabled = false,
VoiceConnectorId = defaultVoiceConnector.Id,
Routes = new[]
{
new Aws.Chime.Inputs.VoiceConnectorOrganizationRouteArgs
{
Host = "127.0.0.1",
Port = 8081,
Protocol = "TCP",
Priority = 1,
Weight = 1,
},
new Aws.Chime.Inputs.VoiceConnectorOrganizationRouteArgs
{
Host = "127.0.0.2",
Port = 8082,
Protocol = "TCP",
Priority = 2,
Weight = 10,
},
},
});
});
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.NewVoiceConnectorOrganization(ctx, "defaultVoiceConnectorOrganization", &chime.VoiceConnectorOrganizationArgs{
Disabled: pulumi.Bool(false),
VoiceConnectorId: defaultVoiceConnector.ID(),
Routes: chime.VoiceConnectorOrganizationRouteArray{
&chime.VoiceConnectorOrganizationRouteArgs{
Host: pulumi.String("127.0.0.1"),
Port: pulumi.Int(8081),
Protocol: pulumi.String("TCP"),
Priority: pulumi.Int(1),
Weight: pulumi.Int(1),
},
&chime.VoiceConnectorOrganizationRouteArgs{
Host: pulumi.String("127.0.0.2"),
Port: pulumi.Int(8082),
Protocol: pulumi.String("TCP"),
Priority: pulumi.Int(2),
Weight: pulumi.Int(10),
},
},
})
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.VoiceConnectorOrganization;
import com.pulumi.aws.chime.VoiceConnectorOrganizationArgs;
import com.pulumi.aws.chime.inputs.VoiceConnectorOrganizationRouteArgs;
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 defaultVoiceConnectorOrganization = new VoiceConnectorOrganization("defaultVoiceConnectorOrganization", VoiceConnectorOrganizationArgs.builder()
.disabled(false)
.voiceConnectorId(defaultVoiceConnector.id())
.routes(
VoiceConnectorOrganizationRouteArgs.builder()
.host("127.0.0.1")
.port(8081)
.protocol("TCP")
.priority(1)
.weight(1)
.build(),
VoiceConnectorOrganizationRouteArgs.builder()
.host("127.0.0.2")
.port(8082)
.protocol("TCP")
.priority(2)
.weight(10)
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
default_voice_connector = aws.chime.VoiceConnector("defaultVoiceConnector", require_encryption=True)
default_voice_connector_organization = aws.chime.VoiceConnectorOrganization("defaultVoiceConnectorOrganization",
disabled=False,
voice_connector_id=default_voice_connector.id,
routes=[
aws.chime.VoiceConnectorOrganizationRouteArgs(
host="127.0.0.1",
port=8081,
protocol="TCP",
priority=1,
weight=1,
),
aws.chime.VoiceConnectorOrganizationRouteArgs(
host="127.0.0.2",
port=8082,
protocol="TCP",
priority=2,
weight=10,
),
])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const defaultVoiceConnector = new aws.chime.VoiceConnector("defaultVoiceConnector", {requireEncryption: true});
const defaultVoiceConnectorOrganization = new aws.chime.VoiceConnectorOrganization("defaultVoiceConnectorOrganization", {
disabled: false,
voiceConnectorId: defaultVoiceConnector.id,
routes: [
{
host: "127.0.0.1",
port: 8081,
protocol: "TCP",
priority: 1,
weight: 1,
},
{
host: "127.0.0.2",
port: 8082,
protocol: "TCP",
priority: 2,
weight: 10,
},
],
});
resources:
defaultVoiceConnector:
type: aws:chime:VoiceConnector
properties:
requireEncryption: true
defaultVoiceConnectorOrganization:
type: aws:chime:VoiceConnectorOrganization
properties:
disabled: false
voiceConnectorId: ${defaultVoiceConnector.id}
routes:
- host: 127.0.0.1
port: 8081
protocol: TCP
priority: 1
weight: 1
- host: 127.0.0.2
port: 8082
protocol: TCP
priority: 2
weight: 10
Create VoiceConnectorOrganization Resource
new VoiceConnectorOrganization(name: string, args: VoiceConnectorOrganizationArgs, opts?: CustomResourceOptions);
@overload
def VoiceConnectorOrganization(resource_name: str,
opts: Optional[ResourceOptions] = None,
disabled: Optional[bool] = None,
routes: Optional[Sequence[VoiceConnectorOrganizationRouteArgs]] = None,
voice_connector_id: Optional[str] = None)
@overload
def VoiceConnectorOrganization(resource_name: str,
args: VoiceConnectorOrganizationArgs,
opts: Optional[ResourceOptions] = None)
func NewVoiceConnectorOrganization(ctx *Context, name string, args VoiceConnectorOrganizationArgs, opts ...ResourceOption) (*VoiceConnectorOrganization, error)
public VoiceConnectorOrganization(string name, VoiceConnectorOrganizationArgs args, CustomResourceOptions? opts = null)
public VoiceConnectorOrganization(String name, VoiceConnectorOrganizationArgs args)
public VoiceConnectorOrganization(String name, VoiceConnectorOrganizationArgs args, CustomResourceOptions options)
type: aws:chime:VoiceConnectorOrganization
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VoiceConnectorOrganizationArgs
- 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 VoiceConnectorOrganizationArgs
- 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 VoiceConnectorOrganizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VoiceConnectorOrganizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VoiceConnectorOrganizationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VoiceConnectorOrganization 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 VoiceConnectorOrganization resource accepts the following input properties:
- Routes
List<Voice
Connector Organization Route Args> Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
- Voice
Connector stringId The Amazon Chime Voice Connector ID.
- Disabled bool
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
- Routes
[]Voice
Connector Organization Route Args Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
- Voice
Connector stringId The Amazon Chime Voice Connector ID.
- Disabled bool
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
- routes
List<Voice
Connector Organization Route Args> Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
- voice
Connector StringId The Amazon Chime Voice Connector ID.
- disabled Boolean
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
- routes
Voice
Connector Organization Route Args[] Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
- voice
Connector stringId The Amazon Chime Voice Connector ID.
- disabled boolean
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
- routes
Sequence[Voice
Connector Organization Route Args] Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
- voice_
connector_ strid The Amazon Chime Voice Connector ID.
- disabled bool
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
- routes List<Property Map>
Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
- voice
Connector StringId The Amazon Chime Voice Connector ID.
- disabled Boolean
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
Outputs
All input properties are implicitly available as output properties. Additionally, the VoiceConnectorOrganization 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 VoiceConnectorOrganization Resource
Get an existing VoiceConnectorOrganization 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?: VoiceConnectorOrganizationState, opts?: CustomResourceOptions): VoiceConnectorOrganization
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
disabled: Optional[bool] = None,
routes: Optional[Sequence[VoiceConnectorOrganizationRouteArgs]] = None,
voice_connector_id: Optional[str] = None) -> VoiceConnectorOrganization
func GetVoiceConnectorOrganization(ctx *Context, name string, id IDInput, state *VoiceConnectorOrganizationState, opts ...ResourceOption) (*VoiceConnectorOrganization, error)
public static VoiceConnectorOrganization Get(string name, Input<string> id, VoiceConnectorOrganizationState? state, CustomResourceOptions? opts = null)
public static VoiceConnectorOrganization get(String name, Output<String> id, VoiceConnectorOrganizationState 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.
- Disabled bool
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
- Routes
List<Voice
Connector Organization Route Args> Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
- Voice
Connector stringId The Amazon Chime Voice Connector ID.
- Disabled bool
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
- Routes
[]Voice
Connector Organization Route Args Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
- Voice
Connector stringId The Amazon Chime Voice Connector ID.
- disabled Boolean
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
- routes
List<Voice
Connector Organization Route Args> Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
- voice
Connector StringId The Amazon Chime Voice Connector ID.
- disabled boolean
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
- routes
Voice
Connector Organization Route Args[] Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
- voice
Connector stringId The Amazon Chime Voice Connector ID.
- disabled bool
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
- routes
Sequence[Voice
Connector Organization Route Args] Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
- voice_
connector_ strid The Amazon Chime Voice Connector ID.
- disabled Boolean
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
- routes List<Property Map>
Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
- voice
Connector StringId The Amazon Chime Voice Connector ID.
Supporting Types
VoiceConnectorOrganizationRoute
- Host string
The FQDN or IP address to contact for origination traffic.
- Priority int
The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
- Protocol string
The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default.
- Weight int
The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight.
- Port int
The designated origination route port. Defaults to
5060
.
- Host string
The FQDN or IP address to contact for origination traffic.
- Priority int
The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
- Protocol string
The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default.
- Weight int
The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight.
- Port int
The designated origination route port. Defaults to
5060
.
- host String
The FQDN or IP address to contact for origination traffic.
- priority Integer
The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
- protocol String
The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default.
- weight Integer
The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight.
- port Integer
The designated origination route port. Defaults to
5060
.
- host string
The FQDN or IP address to contact for origination traffic.
- priority number
The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
- protocol string
The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default.
- weight number
The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight.
- port number
The designated origination route port. Defaults to
5060
.
- host str
The FQDN or IP address to contact for origination traffic.
- priority int
The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
- protocol str
The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default.
- weight int
The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight.
- port int
The designated origination route port. Defaults to
5060
.
- host String
The FQDN or IP address to contact for origination traffic.
- priority Number
The priority associated with the host, with 1 being the highest priority. Higher priority hosts are attempted first.
- protocol String
The protocol to use for the origination route. Encryption-enabled Amazon Chime Voice Connectors use TCP protocol by default.
- weight Number
The weight associated with the host. If hosts are equal in priority, calls are redistributed among them based on their relative weight.
- port Number
The designated origination route port. Defaults to
5060
.
Import
Chime Voice Connector Origination can be imported using the voice_connector_id
, e.g.,
$ pulumi import aws:chime/voiceConnectorOrganization:VoiceConnectorOrganization 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.
Try AWS Native preview for resources not in the classic version.