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's metadata. The description attribute can be updated.
Synopsis
- data UpdateRuleMetadata = UpdateRuleMetadata' {
- rule :: Rule
- description :: Text
- newUpdateRuleMetadata :: Rule -> Text -> UpdateRuleMetadata
- updateRuleMetadata_rule :: Lens' UpdateRuleMetadata Rule
- updateRuleMetadata_description :: Lens' UpdateRuleMetadata Text
- data UpdateRuleMetadataResponse = UpdateRuleMetadataResponse' {
- httpStatus :: Int
- newUpdateRuleMetadataResponse :: Int -> UpdateRuleMetadataResponse
- updateRuleMetadataResponse_httpStatus :: Lens' UpdateRuleMetadataResponse Int
Creating a Request
data UpdateRuleMetadata Source #
See: newUpdateRuleMetadata
smart constructor.
UpdateRuleMetadata' | |
|
Instances
newUpdateRuleMetadata Source #
:: Rule | |
-> Text | |
-> UpdateRuleMetadata |
Create a value of UpdateRuleMetadata
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:UpdateRuleMetadata'
, updateRuleMetadata_rule
- The rule to update.
$sel:description:UpdateRuleMetadata'
, updateRuleMetadata_description
- The rule description.
Request Lenses
updateRuleMetadata_rule :: Lens' UpdateRuleMetadata Rule Source #
The rule to update.
updateRuleMetadata_description :: Lens' UpdateRuleMetadata Text Source #
The rule description.
Destructuring the Response
data UpdateRuleMetadataResponse Source #
See: newUpdateRuleMetadataResponse
smart constructor.
UpdateRuleMetadataResponse' | |
|
Instances
newUpdateRuleMetadataResponse Source #
Create a value of UpdateRuleMetadataResponse
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:httpStatus:UpdateRuleMetadataResponse'
, updateRuleMetadataResponse_httpStatus
- The response's http status code.
Response Lenses
updateRuleMetadataResponse_httpStatus :: Lens' UpdateRuleMetadataResponse Int Source #
The response's http status code.