Skip to content

Resource: awsChimeVoiceConnectorTerminationCredentials

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 dependsOn (as shown below) is recommended to avoid race conditions.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsChimeVoiceConnectorDefault =
  new aws.chimeVoiceConnector.ChimeVoiceConnector(this, "default", {
    name: "test",
    requireEncryption: true,
  });
const awsChimeVoiceConnectorTerminationDefault =
  new aws.chimeVoiceConnectorTermination.ChimeVoiceConnectorTermination(
    this,
    "default_1",
    {
      callingRegions: ["US", "CA"],
      cidrAllowList: ["50.35.78.96/31"],
      cpsLimit: 1,
      disabled: true,
      voiceConnectorId: awsChimeVoiceConnectorDefault.id,
    }
  );
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsChimeVoiceConnectorTerminationDefault.overrideLogicalId("default");
const awsChimeVoiceConnectorTerminationCredentialsDefault =
  new aws.chimeVoiceConnectorTerminationCredentials.ChimeVoiceConnectorTerminationCredentials(
    this,
    "default_2",
    {
      credentials: [
        {
          password: "test!",
          username: "test",
        },
      ],
      depends_on: [`\${${awsChimeVoiceConnectorTerminationDefault.fqn}}`],
      voiceConnectorId: awsChimeVoiceConnectorDefault.id,
    }
  );
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsChimeVoiceConnectorTerminationCredentialsDefault.overrideLogicalId(
  "default"
);

Argument Reference

The following arguments are supported:

  • voiceConnectorId - (Required) Amazon Chime Voice Connector ID.
  • credentials - (Required) List of termination SIP credentials.

credentials

The SIP credentials used to authenticate requests to your Amazon Chime Voice Connector.

  • username - (Required) RFC2617 compliant username associated with the SIP credentials.
  • password - (Required) RFC2617 compliant password associated with the SIP credentials.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - Amazon Chime Voice Connector ID.

Import

Chime Voice Connector Termination Credentials can be imported using the voiceConnectorId, e.g.,

$ terraform import aws_chime_voice_connector_termination_credentials.default abcdef1ghij2klmno3pqr4