Package com.pulumi.aws.chime
Class VoiceConnectorTerminationCredentials
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.chime.VoiceConnectorTerminationCredentials
-
public class VoiceConnectorTerminationCredentials extends com.pulumi.resources.CustomResource
Adds termination SIP credentials for the specified Amazon Chime Voice Connector. > **Note:** Voice Connector Termination Credentials requires a Voice Connector Termination to be present. Use of `depends_on` (as shown below) is recommended to avoid race conditions. ## 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.VoiceConnectorTermination; import com.pulumi.aws.chime.VoiceConnectorTerminationArgs; import com.pulumi.aws.chime.VoiceConnectorTerminationCredentials; import com.pulumi.aws.chime.VoiceConnectorTerminationCredentialsArgs; import com.pulumi.aws.chime.inputs.VoiceConnectorTerminationCredentialsCredentialArgs; import com.pulumi.resources.CustomResourceOptions; 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 defaultVoiceConnectorTermination = new VoiceConnectorTermination("defaultVoiceConnectorTermination", VoiceConnectorTerminationArgs.builder() .disabled(true) .cpsLimit(1) .cidrAllowLists("50.35.78.96/31") .callingRegions( "US", "CA") .voiceConnectorId(defaultVoiceConnector.id()) .build()); var defaultVoiceConnectorTerminationCredentials = new VoiceConnectorTerminationCredentials("defaultVoiceConnectorTerminationCredentials", VoiceConnectorTerminationCredentialsArgs.builder() .voiceConnectorId(defaultVoiceConnector.id()) .credentials(VoiceConnectorTerminationCredentialsCredentialArgs.builder() .username("test") .password("test!") .build()) .build(), CustomResourceOptions.builder() .dependsOn(defaultVoiceConnectorTermination) .build()); } } ``` ## Import Chime Voice Connector Termination Credentials can be imported using the `voice_connector_id`, e.g., ```sh $ pulumi import aws:chime/voiceConnectorTerminationCredentials:VoiceConnectorTerminationCredentials default abcdef1ghij2klmno3pqr4 ```
-
-
Constructor Summary
Constructors Constructor Description VoiceConnectorTerminationCredentials(java.lang.String name)
VoiceConnectorTerminationCredentials(java.lang.String name, VoiceConnectorTerminationCredentialsArgs args)
VoiceConnectorTerminationCredentials(java.lang.String name, VoiceConnectorTerminationCredentialsArgs 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.List<VoiceConnectorTerminationCredentialsCredential>>
credentials()
static VoiceConnectorTerminationCredentials
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, VoiceConnectorTerminationCredentialsState 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>
voiceConnectorId()
-
-
-
Constructor Detail
-
VoiceConnectorTerminationCredentials
public VoiceConnectorTerminationCredentials(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
VoiceConnectorTerminationCredentials
public VoiceConnectorTerminationCredentials(java.lang.String name, VoiceConnectorTerminationCredentialsArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
VoiceConnectorTerminationCredentials
public VoiceConnectorTerminationCredentials(java.lang.String name, VoiceConnectorTerminationCredentialsArgs 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
-
credentials
public com.pulumi.core.Output<java.util.List<VoiceConnectorTerminationCredentialsCredential>> credentials()
- Returns:
- List of termination SIP credentials.
-
voiceConnectorId
public com.pulumi.core.Output<java.lang.String> voiceConnectorId()
- Returns:
- Amazon Chime Voice Connector ID.
-
get
public static VoiceConnectorTerminationCredentials get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable VoiceConnectorTerminationCredentialsState 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.
-
-