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 |
Updates the details of the specified SIP rule.
Synopsis
- data UpdateSipRule = UpdateSipRule' {}
- newUpdateSipRule :: Text -> Text -> UpdateSipRule
- updateSipRule_disabled :: Lens' UpdateSipRule (Maybe Bool)
- updateSipRule_targetApplications :: Lens' UpdateSipRule (Maybe (NonEmpty SipRuleTargetApplication))
- updateSipRule_sipRuleId :: Lens' UpdateSipRule Text
- updateSipRule_name :: Lens' UpdateSipRule Text
- data UpdateSipRuleResponse = UpdateSipRuleResponse' {
- sipRule :: Maybe SipRule
- httpStatus :: Int
- newUpdateSipRuleResponse :: Int -> UpdateSipRuleResponse
- updateSipRuleResponse_sipRule :: Lens' UpdateSipRuleResponse (Maybe SipRule)
- updateSipRuleResponse_httpStatus :: Lens' UpdateSipRuleResponse Int
Creating a Request
data UpdateSipRule Source #
See: newUpdateSipRule
smart constructor.
Instances
Create a value of UpdateSipRule
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:UpdateSipRule'
, updateSipRule_disabled
- The new value specified to indicate whether the rule is disabled.
$sel:targetApplications:UpdateSipRule'
, updateSipRule_targetApplications
- The new value of the list of target applications.
$sel:sipRuleId:UpdateSipRule'
, updateSipRule_sipRuleId
- The SIP rule ID.
$sel:name:UpdateSipRule'
, updateSipRule_name
- The new name for the specified SIP rule.
Request Lenses
updateSipRule_disabled :: Lens' UpdateSipRule (Maybe Bool) Source #
The new value specified to indicate whether the rule is disabled.
updateSipRule_targetApplications :: Lens' UpdateSipRule (Maybe (NonEmpty SipRuleTargetApplication)) Source #
The new value of the list of target applications.
updateSipRule_sipRuleId :: Lens' UpdateSipRule Text Source #
The SIP rule ID.
updateSipRule_name :: Lens' UpdateSipRule Text Source #
The new name for the specified SIP rule.
Destructuring the Response
data UpdateSipRuleResponse Source #
See: newUpdateSipRuleResponse
smart constructor.
UpdateSipRuleResponse' | |
|
Instances
newUpdateSipRuleResponse Source #
Create a value of UpdateSipRuleResponse
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:UpdateSipRuleResponse'
, updateSipRuleResponse_sipRule
- Updated SIP rule details.
$sel:httpStatus:UpdateSipRuleResponse'
, updateSipRuleResponse_httpStatus
- The response's http status code.
Response Lenses
updateSipRuleResponse_sipRule :: Lens' UpdateSipRuleResponse (Maybe SipRule) Source #
Updated SIP rule details.
updateSipRuleResponse_httpStatus :: Lens' UpdateSipRuleResponse Int Source #
The response's http status code.