Resource: aws_chimesdkvoice_sip_rule

A SIP rule associates your SIP media application with a phone number or a Request URI hostname. You can associate a SIP rule with more than one SIP media application. Each application then runs only that rule.

Example Usage

Basic Usage

resource "aws_chimesdkvoice_sip_rule" "example" {
  name          = "example-sip-rule"
  trigger_type  = "RequestUriHostname"
  trigger_value = aws_chime_voice_connector.example-voice-connector.outbound_host_name
  target_applications {
    priority                 = 1
    sip_media_application_id = aws_chimesdkvoice_sip_media_application.example-sma.id
    aws_region               = "us-east-1"
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

target_applications

List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import a ChimeSDKVoice SIP Rule using the id. For example:

import {
  to = aws_chimesdkvoice_sip_rule.example
  id = "abcdef123456"
}

Using terraform import, import a ChimeSDKVoice SIP Rule using the id. For example:

% terraform import aws_chimesdkvoice_sip_rule.example abcdef123456