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 definition for the specified mitigation action.
Requires permission to access the UpdateMitigationAction action.
Synopsis
- data UpdateMitigationAction = UpdateMitigationAction' {}
- newUpdateMitigationAction :: Text -> UpdateMitigationAction
- updateMitigationAction_actionParams :: Lens' UpdateMitigationAction (Maybe MitigationActionParams)
- updateMitigationAction_roleArn :: Lens' UpdateMitigationAction (Maybe Text)
- updateMitigationAction_actionName :: Lens' UpdateMitigationAction Text
- data UpdateMitigationActionResponse = UpdateMitigationActionResponse' {}
- newUpdateMitigationActionResponse :: Int -> UpdateMitigationActionResponse
- updateMitigationActionResponse_actionId :: Lens' UpdateMitigationActionResponse (Maybe Text)
- updateMitigationActionResponse_actionArn :: Lens' UpdateMitigationActionResponse (Maybe Text)
- updateMitigationActionResponse_httpStatus :: Lens' UpdateMitigationActionResponse Int
Creating a Request
data UpdateMitigationAction Source #
See: newUpdateMitigationAction
smart constructor.
UpdateMitigationAction' | |
|
Instances
newUpdateMitigationAction Source #
Create a value of UpdateMitigationAction
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:actionParams:UpdateMitigationAction'
, updateMitigationAction_actionParams
- Defines the type of action and the parameters for that action.
$sel:roleArn:UpdateMitigationAction'
, updateMitigationAction_roleArn
- The ARN of the IAM role that is used to apply the mitigation action.
$sel:actionName:UpdateMitigationAction'
, updateMitigationAction_actionName
- The friendly name for the mitigation action. You cannot change the name
by using UpdateMitigationAction
. Instead, you must delete and recreate
the mitigation action with the new name.
Request Lenses
updateMitigationAction_actionParams :: Lens' UpdateMitigationAction (Maybe MitigationActionParams) Source #
Defines the type of action and the parameters for that action.
updateMitigationAction_roleArn :: Lens' UpdateMitigationAction (Maybe Text) Source #
The ARN of the IAM role that is used to apply the mitigation action.
updateMitigationAction_actionName :: Lens' UpdateMitigationAction Text Source #
The friendly name for the mitigation action. You cannot change the name
by using UpdateMitigationAction
. Instead, you must delete and recreate
the mitigation action with the new name.
Destructuring the Response
data UpdateMitigationActionResponse Source #
See: newUpdateMitigationActionResponse
smart constructor.
Instances
newUpdateMitigationActionResponse Source #
Create a value of UpdateMitigationActionResponse
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:actionId:UpdateMitigationActionResponse'
, updateMitigationActionResponse_actionId
- A unique identifier for the mitigation action.
$sel:actionArn:UpdateMitigationActionResponse'
, updateMitigationActionResponse_actionArn
- The ARN for the new mitigation action.
$sel:httpStatus:UpdateMitigationActionResponse'
, updateMitigationActionResponse_httpStatus
- The response's http status code.
Response Lenses
updateMitigationActionResponse_actionId :: Lens' UpdateMitigationActionResponse (Maybe Text) Source #
A unique identifier for the mitigation action.
updateMitigationActionResponse_actionArn :: Lens' UpdateMitigationActionResponse (Maybe Text) Source #
The ARN for the new mitigation action.
updateMitigationActionResponse_httpStatus :: Lens' UpdateMitigationActionResponse Int Source #
The response's http status code.