| 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 |
Amazonka.IoT.UpdateMitigationAction
Description
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_actionArn :: Lens' UpdateMitigationActionResponse (Maybe Text)
- updateMitigationActionResponse_actionId :: Lens' UpdateMitigationActionResponse (Maybe Text)
- updateMitigationActionResponse_httpStatus :: Lens' UpdateMitigationActionResponse Int
Creating a Request
data UpdateMitigationAction Source #
See: newUpdateMitigationAction smart constructor.
Constructors
| UpdateMitigationAction' | |
Fields
| |
Instances
newUpdateMitigationAction Source #
Arguments
| :: Text | |
| -> UpdateMitigationAction |
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:
UpdateMitigationAction, updateMitigationAction_actionParams - Defines the type of action and the parameters for that action.
UpdateMitigationAction, updateMitigationAction_roleArn - The ARN of the IAM role that is used to apply the mitigation action.
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.
Constructors
| UpdateMitigationActionResponse' | |
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:
UpdateMitigationActionResponse, updateMitigationActionResponse_actionArn - The ARN for the new mitigation action.
UpdateMitigationActionResponse, updateMitigationActionResponse_actionId - A unique identifier for the mitigation action.
$sel:httpStatus:UpdateMitigationActionResponse', updateMitigationActionResponse_httpStatus - The response's http status code.
Response Lenses
updateMitigationActionResponse_actionArn :: Lens' UpdateMitigationActionResponse (Maybe Text) Source #
The ARN for the new mitigation action.
updateMitigationActionResponse_actionId :: Lens' UpdateMitigationActionResponse (Maybe Text) Source #
A unique identifier for the mitigation action.
updateMitigationActionResponse_httpStatus :: Lens' UpdateMitigationActionResponse Int Source #
The response's http status code.