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 |
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
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:
$sel:sipRuleId: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.