Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a SIP rule which can be used to run a SIP media application as a target for a specific trigger type.
Synopsis
- data CreateSipRule = CreateSipRule' {}
- newCreateSipRule :: Text -> SipRuleTriggerType -> Text -> NonEmpty SipRuleTargetApplication -> CreateSipRule
- createSipRule_disabled :: Lens' CreateSipRule (Maybe Bool)
- createSipRule_name :: Lens' CreateSipRule Text
- createSipRule_triggerType :: Lens' CreateSipRule SipRuleTriggerType
- createSipRule_triggerValue :: Lens' CreateSipRule Text
- createSipRule_targetApplications :: Lens' CreateSipRule (NonEmpty SipRuleTargetApplication)
- data CreateSipRuleResponse = CreateSipRuleResponse' {
- sipRule :: Maybe SipRule
- httpStatus :: Int
- newCreateSipRuleResponse :: Int -> CreateSipRuleResponse
- createSipRuleResponse_sipRule :: Lens' CreateSipRuleResponse (Maybe SipRule)
- createSipRuleResponse_httpStatus :: Lens' CreateSipRuleResponse Int
Creating a Request
data CreateSipRule Source #
See: newCreateSipRule
smart constructor.
CreateSipRule' | |
|
Instances
Create a value of CreateSipRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:disabled:CreateSipRule'
, createSipRule_disabled
- Enables or disables a rule. You must disable rules before you can delete
them.
$sel:name:CreateSipRule'
, createSipRule_name
- The name of the SIP rule.
$sel:triggerType:CreateSipRule'
, createSipRule_triggerType
- The type of trigger assigned to the SIP rule in TriggerValue
,
currently RequestUriHostname
or ToPhoneNumber
.
$sel:triggerValue:CreateSipRule'
, createSipRule_triggerValue
- If TriggerType
is RequestUriHostname
, the value can be the outbound
host name of an Amazon Chime Voice Connector. If TriggerType
is
ToPhoneNumber
, the value can be a customer-owned phone number in the
E164 format. The SipMediaApplication
specified in the SipRule
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.
$sel:targetApplications:CreateSipRule'
, createSipRule_targetApplications
- List of SIP media applications with priority and AWS Region. Only one
SIP application per AWS Region can be used.
Request Lenses
createSipRule_disabled :: Lens' CreateSipRule (Maybe Bool) Source #
Enables or disables a rule. You must disable rules before you can delete them.
createSipRule_name :: Lens' CreateSipRule Text Source #
The name of the SIP rule.
createSipRule_triggerType :: Lens' CreateSipRule SipRuleTriggerType Source #
The type of trigger assigned to the SIP rule in TriggerValue
,
currently RequestUriHostname
or ToPhoneNumber
.
createSipRule_triggerValue :: Lens' CreateSipRule Text Source #
If TriggerType
is RequestUriHostname
, the value can be the outbound
host name of an Amazon Chime Voice Connector. If TriggerType
is
ToPhoneNumber
, the value can be a customer-owned phone number in the
E164 format. The SipMediaApplication
specified in the SipRule
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.
createSipRule_targetApplications :: Lens' CreateSipRule (NonEmpty SipRuleTargetApplication) Source #
List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.
Destructuring the Response
data CreateSipRuleResponse Source #
See: newCreateSipRuleResponse
smart constructor.
CreateSipRuleResponse' | |
|
Instances
newCreateSipRuleResponse Source #
Create a value of CreateSipRuleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:sipRule:CreateSipRuleResponse'
, createSipRuleResponse_sipRule
- Returns the SIP rule information, including the rule ID, triggers, and
target applications.
$sel:httpStatus:CreateSipRuleResponse'
, createSipRuleResponse_httpStatus
- The response's http status code.
Response Lenses
createSipRuleResponse_sipRule :: Lens' CreateSipRuleResponse (Maybe SipRule) Source #
Returns the SIP rule information, including the rule ID, triggers, and target applications.
createSipRuleResponse_httpStatus :: Lens' CreateSipRuleResponse Int Source #
The response's http status code.