| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Chime.CreateSipRule
Description
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.
Constructors
| CreateSipRule' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> SipRuleTriggerType | |
| -> Text | |
| -> NonEmpty SipRuleTargetApplication | |
| -> CreateSipRule |
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:
CreateSipRule, createSipRule_disabled - Enables or disables a rule. You must disable rules before you can delete
them.
CreateSipRule, createSipRule_name - The name of the SIP rule.
CreateSipRule, createSipRule_triggerType - The type of trigger assigned to the SIP rule in TriggerValue,
currently RequestUriHostname or ToPhoneNumber.
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.
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.
Constructors
| CreateSipRuleResponse' | |
Fields
| |
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.