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 |
Retrieves the details of a SIP rule, such as the rule ID, name, triggers, and target endpoints.
Synopsis
- data GetSipRule = GetSipRule' {}
- newGetSipRule :: Text -> GetSipRule
- getSipRule_sipRuleId :: Lens' GetSipRule Text
- data GetSipRuleResponse = GetSipRuleResponse' {
- sipRule :: Maybe SipRule
- httpStatus :: Int
- newGetSipRuleResponse :: Int -> GetSipRuleResponse
- getSipRuleResponse_sipRule :: Lens' GetSipRuleResponse (Maybe SipRule)
- getSipRuleResponse_httpStatus :: Lens' GetSipRuleResponse Int
Creating a Request
data GetSipRule Source #
See: newGetSipRule
smart constructor.
Instances
:: Text | |
-> GetSipRule |
Create a value of GetSipRule
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:
GetSipRule
, getSipRule_sipRuleId
- The SIP rule ID.
Request Lenses
getSipRule_sipRuleId :: Lens' GetSipRule Text Source #
The SIP rule ID.
Destructuring the Response
data GetSipRuleResponse Source #
See: newGetSipRuleResponse
smart constructor.
GetSipRuleResponse' | |
|
Instances
newGetSipRuleResponse Source #
Create a value of GetSipRuleResponse
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:GetSipRuleResponse'
, getSipRuleResponse_sipRule
- The SIP rule details.
$sel:httpStatus:GetSipRuleResponse'
, getSipRuleResponse_httpStatus
- The response's http status code.
Response Lenses
getSipRuleResponse_sipRule :: Lens' GetSipRuleResponse (Maybe SipRule) Source #
The SIP rule details.
getSipRuleResponse_httpStatus :: Lens' GetSipRuleResponse Int Source #
The response's http status code.