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 a rule version resulting in a new rule version. Updates a rule version resulting in a new rule version (version 1, 2, 3 ...).
Synopsis
- data UpdateRuleVersion = UpdateRuleVersion' {}
- newUpdateRuleVersion :: Rule -> Text -> Language -> NonEmpty Text -> UpdateRuleVersion
- updateRuleVersion_description :: Lens' UpdateRuleVersion (Maybe Text)
- updateRuleVersion_tags :: Lens' UpdateRuleVersion (Maybe [Tag])
- updateRuleVersion_rule :: Lens' UpdateRuleVersion Rule
- updateRuleVersion_expression :: Lens' UpdateRuleVersion Text
- updateRuleVersion_language :: Lens' UpdateRuleVersion Language
- updateRuleVersion_outcomes :: Lens' UpdateRuleVersion (NonEmpty Text)
- data UpdateRuleVersionResponse = UpdateRuleVersionResponse' {
- rule :: Maybe Rule
- httpStatus :: Int
- newUpdateRuleVersionResponse :: Int -> UpdateRuleVersionResponse
- updateRuleVersionResponse_rule :: Lens' UpdateRuleVersionResponse (Maybe Rule)
- updateRuleVersionResponse_httpStatus :: Lens' UpdateRuleVersionResponse Int
Creating a Request
data UpdateRuleVersion Source #
See: newUpdateRuleVersion
smart constructor.
Instances
Create a value of UpdateRuleVersion
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:description:UpdateRuleVersion'
, updateRuleVersion_description
- The description.
$sel:tags:UpdateRuleVersion'
, updateRuleVersion_tags
- The tags to assign to the rule version.
$sel:rule:UpdateRuleVersion'
, updateRuleVersion_rule
- The rule to update.
$sel:expression:UpdateRuleVersion'
, updateRuleVersion_expression
- The rule expression.
$sel:language:UpdateRuleVersion'
, updateRuleVersion_language
- The language.
$sel:outcomes:UpdateRuleVersion'
, updateRuleVersion_outcomes
- The outcomes.
Request Lenses
updateRuleVersion_description :: Lens' UpdateRuleVersion (Maybe Text) Source #
The description.
updateRuleVersion_tags :: Lens' UpdateRuleVersion (Maybe [Tag]) Source #
The tags to assign to the rule version.
updateRuleVersion_rule :: Lens' UpdateRuleVersion Rule Source #
The rule to update.
updateRuleVersion_expression :: Lens' UpdateRuleVersion Text Source #
The rule expression.
updateRuleVersion_language :: Lens' UpdateRuleVersion Language Source #
The language.
updateRuleVersion_outcomes :: Lens' UpdateRuleVersion (NonEmpty Text) Source #
The outcomes.
Destructuring the Response
data UpdateRuleVersionResponse Source #
See: newUpdateRuleVersionResponse
smart constructor.
UpdateRuleVersionResponse' | |
|
Instances
newUpdateRuleVersionResponse Source #
Create a value of UpdateRuleVersionResponse
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:rule:UpdateRuleVersion'
, updateRuleVersionResponse_rule
- The new rule version that was created.
$sel:httpStatus:UpdateRuleVersionResponse'
, updateRuleVersionResponse_httpStatus
- The response's http status code.
Response Lenses
updateRuleVersionResponse_rule :: Lens' UpdateRuleVersionResponse (Maybe Rule) Source #
The new rule version that was created.
updateRuleVersionResponse_httpStatus :: Lens' UpdateRuleVersionResponse Int Source #
The response's http status code.