Try AWS Native preview for resources not in the classic version.
aws.chime.VoiceConnectorGroup
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Creates an Amazon Chime Voice Connector group under the administrator’s AWS account. You can associate Amazon Chime Voice Connectors with the Amazon Chime Voice Connector group by including VoiceConnectorItems in the request.
You can include Amazon Chime Voice Connectors from different AWS Regions in your group. This creates a fault tolerant mechanism for fallback in case of availability events.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var vc1 = new Aws.Chime.VoiceConnector("vc1", new()
{
RequireEncryption = true,
AwsRegion = "us-east-1",
});
var vc2 = new Aws.Chime.VoiceConnector("vc2", new()
{
RequireEncryption = true,
AwsRegion = "us-west-2",
});
var @group = new Aws.Chime.VoiceConnectorGroup("group", new()
{
Connectors = new[]
{
new Aws.Chime.Inputs.VoiceConnectorGroupConnectorArgs
{
VoiceConnectorId = vc1.Id,
Priority = 1,
},
new Aws.Chime.Inputs.VoiceConnectorGroupConnectorArgs
{
VoiceConnectorId = vc2.Id,
Priority = 3,
},
},
});
});
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 {
vc1, err := chime.NewVoiceConnector(ctx, "vc1", &chime.VoiceConnectorArgs{
RequireEncryption: pulumi.Bool(true),
AwsRegion: pulumi.String("us-east-1"),
})
if err != nil {
return err
}
vc2, err := chime.NewVoiceConnector(ctx, "vc2", &chime.VoiceConnectorArgs{
RequireEncryption: pulumi.Bool(true),
AwsRegion: pulumi.String("us-west-2"),
})
if err != nil {
return err
}
_, err = chime.NewVoiceConnectorGroup(ctx, "group", &chime.VoiceConnectorGroupArgs{
Connectors: chime.VoiceConnectorGroupConnectorArray{
&chime.VoiceConnectorGroupConnectorArgs{
VoiceConnectorId: vc1.ID(),
Priority: pulumi.Int(1),
},
&chime.VoiceConnectorGroupConnectorArgs{
VoiceConnectorId: vc2.ID(),
Priority: pulumi.Int(3),
},
},
})
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.VoiceConnectorGroup;
import com.pulumi.aws.chime.VoiceConnectorGroupArgs;
import com.pulumi.aws.chime.inputs.VoiceConnectorGroupConnectorArgs;
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 vc1 = new VoiceConnector("vc1", VoiceConnectorArgs.builder()
.requireEncryption(true)
.awsRegion("us-east-1")
.build());
var vc2 = new VoiceConnector("vc2", VoiceConnectorArgs.builder()
.requireEncryption(true)
.awsRegion("us-west-2")
.build());
var group = new VoiceConnectorGroup("group", VoiceConnectorGroupArgs.builder()
.connectors(
VoiceConnectorGroupConnectorArgs.builder()
.voiceConnectorId(vc1.id())
.priority(1)
.build(),
VoiceConnectorGroupConnectorArgs.builder()
.voiceConnectorId(vc2.id())
.priority(3)
.build())
.build());
}
}
import pulumi
import pulumi_aws as aws
vc1 = aws.chime.VoiceConnector("vc1",
require_encryption=True,
aws_region="us-east-1")
vc2 = aws.chime.VoiceConnector("vc2",
require_encryption=True,
aws_region="us-west-2")
group = aws.chime.VoiceConnectorGroup("group", connectors=[
aws.chime.VoiceConnectorGroupConnectorArgs(
voice_connector_id=vc1.id,
priority=1,
),
aws.chime.VoiceConnectorGroupConnectorArgs(
voice_connector_id=vc2.id,
priority=3,
),
])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const vc1 = new aws.chime.VoiceConnector("vc1", {
requireEncryption: true,
awsRegion: "us-east-1",
});
const vc2 = new aws.chime.VoiceConnector("vc2", {
requireEncryption: true,
awsRegion: "us-west-2",
});
const group = new aws.chime.VoiceConnectorGroup("group", {connectors: [
{
voiceConnectorId: vc1.id,
priority: 1,
},
{
voiceConnectorId: vc2.id,
priority: 3,
},
]});
resources:
vc1:
type: aws:chime:VoiceConnector
properties:
requireEncryption: true
awsRegion: us-east-1
vc2:
type: aws:chime:VoiceConnector
properties:
requireEncryption: true
awsRegion: us-west-2
group:
type: aws:chime:VoiceConnectorGroup
properties:
connectors:
- voiceConnectorId: ${vc1.id}
priority: 1
- voiceConnectorId: ${vc2.id}
priority: 3
Create VoiceConnectorGroup Resource
new VoiceConnectorGroup(name: string, args?: VoiceConnectorGroupArgs, opts?: CustomResourceOptions);
@overload
def VoiceConnectorGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
connectors: Optional[Sequence[VoiceConnectorGroupConnectorArgs]] = None,
name: Optional[str] = None)
@overload
def VoiceConnectorGroup(resource_name: str,
args: Optional[VoiceConnectorGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewVoiceConnectorGroup(ctx *Context, name string, args *VoiceConnectorGroupArgs, opts ...ResourceOption) (*VoiceConnectorGroup, error)
public VoiceConnectorGroup(string name, VoiceConnectorGroupArgs? args = null, CustomResourceOptions? opts = null)
public VoiceConnectorGroup(String name, VoiceConnectorGroupArgs args)
public VoiceConnectorGroup(String name, VoiceConnectorGroupArgs args, CustomResourceOptions options)
type: aws:chime:VoiceConnectorGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VoiceConnectorGroupArgs
- 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 VoiceConnectorGroupArgs
- 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 VoiceConnectorGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VoiceConnectorGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VoiceConnectorGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VoiceConnectorGroup 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 VoiceConnectorGroup resource accepts the following input properties:
- Connectors
List<Voice
Connector Group Connector Args> The Amazon Chime Voice Connectors to route inbound calls to.
- Name string
The name of the Amazon Chime Voice Connector group.
- Connectors
[]Voice
Connector Group Connector Args The Amazon Chime Voice Connectors to route inbound calls to.
- Name string
The name of the Amazon Chime Voice Connector group.
- connectors
List<Voice
Connector Group Connector Args> The Amazon Chime Voice Connectors to route inbound calls to.
- name String
The name of the Amazon Chime Voice Connector group.
- connectors
Voice
Connector Group Connector Args[] The Amazon Chime Voice Connectors to route inbound calls to.
- name string
The name of the Amazon Chime Voice Connector group.
- connectors
Sequence[Voice
Connector Group Connector Args] The Amazon Chime Voice Connectors to route inbound calls to.
- name str
The name of the Amazon Chime Voice Connector group.
- connectors List<Property Map>
The Amazon Chime Voice Connectors to route inbound calls to.
- name String
The name of the Amazon Chime Voice Connector group.
Outputs
All input properties are implicitly available as output properties. Additionally, the VoiceConnectorGroup 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 VoiceConnectorGroup Resource
Get an existing VoiceConnectorGroup 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?: VoiceConnectorGroupState, opts?: CustomResourceOptions): VoiceConnectorGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
connectors: Optional[Sequence[VoiceConnectorGroupConnectorArgs]] = None,
name: Optional[str] = None) -> VoiceConnectorGroup
func GetVoiceConnectorGroup(ctx *Context, name string, id IDInput, state *VoiceConnectorGroupState, opts ...ResourceOption) (*VoiceConnectorGroup, error)
public static VoiceConnectorGroup Get(string name, Input<string> id, VoiceConnectorGroupState? state, CustomResourceOptions? opts = null)
public static VoiceConnectorGroup get(String name, Output<String> id, VoiceConnectorGroupState 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.
- Connectors
List<Voice
Connector Group Connector Args> The Amazon Chime Voice Connectors to route inbound calls to.
- Name string
The name of the Amazon Chime Voice Connector group.
- Connectors
[]Voice
Connector Group Connector Args The Amazon Chime Voice Connectors to route inbound calls to.
- Name string
The name of the Amazon Chime Voice Connector group.
- connectors
List<Voice
Connector Group Connector Args> The Amazon Chime Voice Connectors to route inbound calls to.
- name String
The name of the Amazon Chime Voice Connector group.
- connectors
Voice
Connector Group Connector Args[] The Amazon Chime Voice Connectors to route inbound calls to.
- name string
The name of the Amazon Chime Voice Connector group.
- connectors
Sequence[Voice
Connector Group Connector Args] The Amazon Chime Voice Connectors to route inbound calls to.
- name str
The name of the Amazon Chime Voice Connector group.
- connectors List<Property Map>
The Amazon Chime Voice Connectors to route inbound calls to.
- name String
The name of the Amazon Chime Voice Connector group.
Supporting Types
VoiceConnectorGroupConnector
- Priority int
The priority associated with the Amazon Chime Voice Connector, with 1 being the highest priority. Higher priority Amazon Chime Voice Connectors are attempted first.
- Voice
Connector stringId The Amazon Chime Voice Connector ID.
- Priority int
The priority associated with the Amazon Chime Voice Connector, with 1 being the highest priority. Higher priority Amazon Chime Voice Connectors are attempted first.
- Voice
Connector stringId The Amazon Chime Voice Connector ID.
- priority Integer
The priority associated with the Amazon Chime Voice Connector, with 1 being the highest priority. Higher priority Amazon Chime Voice Connectors are attempted first.
- voice
Connector StringId The Amazon Chime Voice Connector ID.
- priority number
The priority associated with the Amazon Chime Voice Connector, with 1 being the highest priority. Higher priority Amazon Chime Voice Connectors are attempted first.
- voice
Connector stringId The Amazon Chime Voice Connector ID.
- priority int
The priority associated with the Amazon Chime Voice Connector, with 1 being the highest priority. Higher priority Amazon Chime Voice Connectors are attempted first.
- voice_
connector_ strid The Amazon Chime Voice Connector ID.
- priority Number
The priority associated with the Amazon Chime Voice Connector, with 1 being the highest priority. Higher priority Amazon Chime Voice Connectors are attempted first.
- voice
Connector StringId The Amazon Chime Voice Connector ID.
Import
Configuration Recorder can be imported using the name, e.g.,
$ pulumi import aws:chime/voiceConnectorGroup:VoiceConnectorGroup default example
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.