Class 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 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • 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()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.