Sdkvoice Sip Rule Args
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
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.chime.SdkvoiceSipRule;
import com.pulumi.aws.chime.SdkvoiceSipRuleArgs;
import com.pulumi.aws.chime.inputs.SdkvoiceSipRuleTargetApplicationArgs;
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 example = new SdkvoiceSipRule("example", SdkvoiceSipRuleArgs.builder()
.triggerType("RequestUriHostname")
.triggerValue(aws_chime_voice_connector.example-voice-connector().outbound_host_name())
.targetApplications(SdkvoiceSipRuleTargetApplicationArgs.builder()
.priority(1)
.sipMediaApplicationId(aws_chimesdkvoice_sip_media_application.example-sma().id())
.awsRegion("us-east-1")
.build())
.build());
}
}
Import
Using pulumi import
, import a ChimeSDKVoice SIP Rule using the id
. For example:
$ pulumi import aws:chime/sdkvoiceSipRule:SdkvoiceSipRule example abcdef123456
Constructors
Functions
Properties
If trigger_type
is RequestUriHostname
, the value can be the outbound host name of an Amazon Chime Voice Connector. If trigger_type
is ToPhoneNumber
, the value can be a customer-owned phone number in the E164 format. The Sip Media Application specified in the Sip Rule is triggered if the request URI in an incoming SIP request matches the RequestUriHostname
, or if the "To" header in the incoming SIP request matches the ToPhoneNumber
value. The following arguments are optional: