com.pulumi.aws.chime.VoiceConnectorTerminationCredentials Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.chime;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.chime.VoiceConnectorTerminationCredentialsArgs;
import com.pulumi.aws.chime.inputs.VoiceConnectorTerminationCredentialsState;
import com.pulumi.aws.chime.outputs.VoiceConnectorTerminationCredentialsCredential;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;
/**
* 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
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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 default_ = new VoiceConnector("default", VoiceConnectorArgs.builder()
* .name("test")
* .requireEncryption(true)
* .build());
*
* var defaultVoiceConnectorTermination = new VoiceConnectorTermination("defaultVoiceConnectorTermination", VoiceConnectorTerminationArgs.builder()
* .disabled(true)
* .cpsLimit(1)
* .cidrAllowLists("50.35.78.96/31")
* .callingRegions(
* "US",
* "CA")
* .voiceConnectorId(default_.id())
* .build());
*
* var defaultVoiceConnectorTerminationCredentials = new VoiceConnectorTerminationCredentials("defaultVoiceConnectorTerminationCredentials", VoiceConnectorTerminationCredentialsArgs.builder()
* .voiceConnectorId(default_.id())
* .credentials(VoiceConnectorTerminationCredentialsCredentialArgs.builder()
* .username("test")
* .password("test!")
* .build())
* .build(), CustomResourceOptions.builder()
* .dependsOn(defaultVoiceConnectorTermination)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import Chime Voice Connector Termination Credentials using the `voice_connector_id`. For example:
*
* ```sh
* $ pulumi import aws:chime/voiceConnectorTerminationCredentials:VoiceConnectorTerminationCredentials default abcdef1ghij2klmno3pqr4
* ```
*
*/
@ResourceType(type="aws:chime/voiceConnectorTerminationCredentials:VoiceConnectorTerminationCredentials")
public class VoiceConnectorTerminationCredentials extends com.pulumi.resources.CustomResource {
/**
* List of termination SIP credentials.
*
*/
@Export(name="credentials", refs={List.class,VoiceConnectorTerminationCredentialsCredential.class}, tree="[0,1]")
private Output> credentials;
/**
* @return List of termination SIP credentials.
*
*/
public Output> credentials() {
return this.credentials;
}
/**
* Amazon Chime Voice Connector ID.
*
*/
@Export(name="voiceConnectorId", refs={String.class}, tree="[0]")
private Output voiceConnectorId;
/**
* @return Amazon Chime Voice Connector ID.
*
*/
public Output voiceConnectorId() {
return this.voiceConnectorId;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public VoiceConnectorTerminationCredentials(java.lang.String name) {
this(name, VoiceConnectorTerminationCredentialsArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public VoiceConnectorTerminationCredentials(java.lang.String name, VoiceConnectorTerminationCredentialsArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public VoiceConnectorTerminationCredentials(java.lang.String name, VoiceConnectorTerminationCredentialsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:chime/voiceConnectorTerminationCredentials:VoiceConnectorTerminationCredentials", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private VoiceConnectorTerminationCredentials(java.lang.String name, Output id, @Nullable VoiceConnectorTerminationCredentialsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:chime/voiceConnectorTerminationCredentials:VoiceConnectorTerminationCredentials", name, state, makeResourceOptions(options, id), false);
}
private static VoiceConnectorTerminationCredentialsArgs makeArgs(VoiceConnectorTerminationCredentialsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? VoiceConnectorTerminationCredentialsArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static VoiceConnectorTerminationCredentials get(java.lang.String name, Output id, @Nullable VoiceConnectorTerminationCredentialsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new VoiceConnectorTerminationCredentials(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy