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 |
Updates an action.
Synopsis
- data UpdateAction = UpdateAction' {
- description :: Maybe Text
- properties :: Maybe (HashMap Text Text)
- propertiesToRemove :: Maybe [Text]
- status :: Maybe ActionStatus
- actionName :: Text
- newUpdateAction :: Text -> UpdateAction
- updateAction_description :: Lens' UpdateAction (Maybe Text)
- updateAction_properties :: Lens' UpdateAction (Maybe (HashMap Text Text))
- updateAction_propertiesToRemove :: Lens' UpdateAction (Maybe [Text])
- updateAction_status :: Lens' UpdateAction (Maybe ActionStatus)
- updateAction_actionName :: Lens' UpdateAction Text
- data UpdateActionResponse = UpdateActionResponse' {
- actionArn :: Maybe Text
- httpStatus :: Int
- newUpdateActionResponse :: Int -> UpdateActionResponse
- updateActionResponse_actionArn :: Lens' UpdateActionResponse (Maybe Text)
- updateActionResponse_httpStatus :: Lens' UpdateActionResponse Int
Creating a Request
data UpdateAction Source #
See: newUpdateAction
smart constructor.
UpdateAction' | |
|
Instances
Create a value of UpdateAction
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:
UpdateAction
, updateAction_description
- The new description for the action.
UpdateAction
, updateAction_properties
- The new list of properties. Overwrites the current property list.
$sel:propertiesToRemove:UpdateAction'
, updateAction_propertiesToRemove
- A list of properties to remove.
UpdateAction
, updateAction_status
- The new status for the action.
UpdateAction
, updateAction_actionName
- The name of the action to update.
Request Lenses
updateAction_description :: Lens' UpdateAction (Maybe Text) Source #
The new description for the action.
updateAction_properties :: Lens' UpdateAction (Maybe (HashMap Text Text)) Source #
The new list of properties. Overwrites the current property list.
updateAction_propertiesToRemove :: Lens' UpdateAction (Maybe [Text]) Source #
A list of properties to remove.
updateAction_status :: Lens' UpdateAction (Maybe ActionStatus) Source #
The new status for the action.
updateAction_actionName :: Lens' UpdateAction Text Source #
The name of the action to update.
Destructuring the Response
data UpdateActionResponse Source #
See: newUpdateActionResponse
smart constructor.
UpdateActionResponse' | |
|
Instances
newUpdateActionResponse Source #
Create a value of UpdateActionResponse
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:
UpdateActionResponse
, updateActionResponse_actionArn
- The Amazon Resource Name (ARN) of the action.
$sel:httpStatus:UpdateActionResponse'
, updateActionResponse_httpStatus
- The response's http status code.
Response Lenses
updateActionResponse_actionArn :: Lens' UpdateActionResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the action.
updateActionResponse_httpStatus :: Lens' UpdateActionResponse Int Source #
The response's http status code.