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 an action.
Synopsis
- data UpdateAction = UpdateAction' {
- status :: Maybe ActionStatus
- propertiesToRemove :: Maybe [Text]
- description :: Maybe Text
- properties :: Maybe (HashMap Text Text)
- actionName :: Text
- newUpdateAction :: Text -> UpdateAction
- updateAction_status :: Lens' UpdateAction (Maybe ActionStatus)
- updateAction_propertiesToRemove :: Lens' UpdateAction (Maybe [Text])
- updateAction_description :: Lens' UpdateAction (Maybe Text)
- updateAction_properties :: Lens' UpdateAction (Maybe (HashMap Text Text))
- 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:
$sel:status:UpdateAction'
, updateAction_status
- The new status for the action.
$sel:propertiesToRemove:UpdateAction'
, updateAction_propertiesToRemove
- A list of properties to remove.
$sel:description:UpdateAction'
, updateAction_description
- The new description for the action.
$sel:properties:UpdateAction'
, updateAction_properties
- The new list of properties. Overwrites the current property list.
$sel:actionName:UpdateAction'
, updateAction_actionName
- The name of the action to update.
Request Lenses
updateAction_status :: Lens' UpdateAction (Maybe ActionStatus) Source #
The new status for the action.
updateAction_propertiesToRemove :: Lens' UpdateAction (Maybe [Text]) Source #
A list of properties to remove.
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_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:
$sel:actionArn: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.