create_sip_rule
¶
create_sip_rule(
name: SipRuleName,
trigger_type: SipRuleTriggerType,
trigger_value: NonEmptyString,
target_applications: SipRuleTargetApplicationList,
*,
config_overrides: Optional[ChimeSDKVoiceClientConfig] = None,
disabled: Optional[NullableBoolean] = None,
) -> CreateSipRuleResponse
Creates a SIP rule, which can be used to run a SIP media application as a target for a specific trigger type. For more information about SIP rules, see Managing SIP media applications and rules in the Amazon Chime SDK Administrator Guide.
Parameters:
-
name(SipRuleName) –The name of the SIP rule.
-
trigger_type(SipRuleTriggerType) –The type of trigger assigned to the SIP rule in
TriggerValue, currentlyRequestUriHostnameorToPhoneNumber. -
trigger_value(NonEmptyString) –If
TriggerTypeisRequestUriHostname, the value can be the outbound host name of a Voice Connector. IfTriggerTypeisToPhoneNumber, the value can be a customer-owned phone number in the E164 format. TheSipMediaApplicationspecified in theSipRuleis triggered if the request URI in an incoming SIP request matches theRequestUriHostname, or if theToheader in the incoming SIP request matches theToPhoneNumbervalue. -
disabled(Optional[NullableBoolean], default:None) –Disables or enables a SIP rule. You must disable SIP rules before you can delete them.
-
target_applications(SipRuleTargetApplicationList) –List of SIP media applications, with priority and AWS Region. Only one SIP application per AWS Region can be used.
Raises:
-
AccessDeniedException–You don't have the permissions needed to run this action.
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ConflictException–Multiple instances of the same request were made simultaneously.
-
ForbiddenException–The client is permanently forbidden from making the request.
-
ResourceLimitExceededException–The request exceeds the resource limit.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The number of customer requests exceeds the request rate limit.
-
UnauthorizedClientException–The client isn't authorized to request a resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chime_sdk_voice/_services/chime_sdk_voice.py
1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 | |