Package com.pulumi.aws.chime
Class VoiceConnectorGroup
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.chime.VoiceConnectorGroup
-
public class VoiceConnectorGroup extends com.pulumi.resources.CustomResource
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 ```java 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 Configuration Recorder can be imported using the name, e.g., ```sh $ pulumi import aws:chime/voiceConnectorGroup:VoiceConnectorGroup default example ```
-
-
Constructor Summary
Constructors Constructor Description VoiceConnectorGroup(java.lang.String name)
VoiceConnectorGroup(java.lang.String name, VoiceConnectorGroupArgs args)
VoiceConnectorGroup(java.lang.String name, VoiceConnectorGroupArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.util.List<VoiceConnectorGroupConnector>>>
connectors()
static VoiceConnectorGroup
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, VoiceConnectorGroupState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
name()
-
-
-
Constructor Detail
-
VoiceConnectorGroup
public VoiceConnectorGroup(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
VoiceConnectorGroup
public VoiceConnectorGroup(java.lang.String name, @Nullable VoiceConnectorGroupArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
VoiceConnectorGroup
public VoiceConnectorGroup(java.lang.String name, @Nullable VoiceConnectorGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
connectors
public com.pulumi.core.Output<java.util.Optional<java.util.List<VoiceConnectorGroupConnector>>> connectors()
- Returns:
- The Amazon Chime Voice Connectors to route inbound calls to.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the Amazon Chime Voice Connector group.
-
get
public static VoiceConnectorGroup get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable VoiceConnectorGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-