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 |
Defines an action that can be applied to audit findings by using StartAuditMitigationActionsTask. Only certain types of mitigation actions can be applied to specific check names. For more information, see Mitigation actions. Each mitigation action can apply only one type of change.
Requires permission to access the CreateMitigationAction action.
Synopsis
- data CreateMitigationAction = CreateMitigationAction' {
- tags :: Maybe [Tag]
- actionName :: Text
- roleArn :: Text
- actionParams :: MitigationActionParams
- newCreateMitigationAction :: Text -> Text -> MitigationActionParams -> CreateMitigationAction
- createMitigationAction_tags :: Lens' CreateMitigationAction (Maybe [Tag])
- createMitigationAction_actionName :: Lens' CreateMitigationAction Text
- createMitigationAction_roleArn :: Lens' CreateMitigationAction Text
- createMitigationAction_actionParams :: Lens' CreateMitigationAction MitigationActionParams
- data CreateMitigationActionResponse = CreateMitigationActionResponse' {}
- newCreateMitigationActionResponse :: Int -> CreateMitigationActionResponse
- createMitigationActionResponse_actionId :: Lens' CreateMitigationActionResponse (Maybe Text)
- createMitigationActionResponse_actionArn :: Lens' CreateMitigationActionResponse (Maybe Text)
- createMitigationActionResponse_httpStatus :: Lens' CreateMitigationActionResponse Int
Creating a Request
data CreateMitigationAction Source #
See: newCreateMitigationAction
smart constructor.
CreateMitigationAction' | |
|
Instances
newCreateMitigationAction Source #
Create a value of CreateMitigationAction
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:tags:CreateMitigationAction'
, createMitigationAction_tags
- Metadata that can be used to manage the mitigation action.
$sel:actionName:CreateMitigationAction'
, createMitigationAction_actionName
- A friendly name for the action. Choose a friendly name that accurately
describes the action (for example, EnableLoggingAction
).
$sel:roleArn:CreateMitigationAction'
, createMitigationAction_roleArn
- The ARN of the IAM role that is used to apply the mitigation action.
$sel:actionParams:CreateMitigationAction'
, createMitigationAction_actionParams
- Defines the type of action and the parameters for that action.
Request Lenses
createMitigationAction_tags :: Lens' CreateMitigationAction (Maybe [Tag]) Source #
Metadata that can be used to manage the mitigation action.
createMitigationAction_actionName :: Lens' CreateMitigationAction Text Source #
A friendly name for the action. Choose a friendly name that accurately
describes the action (for example, EnableLoggingAction
).
createMitigationAction_roleArn :: Lens' CreateMitigationAction Text Source #
The ARN of the IAM role that is used to apply the mitigation action.
createMitigationAction_actionParams :: Lens' CreateMitigationAction MitigationActionParams Source #
Defines the type of action and the parameters for that action.
Destructuring the Response
data CreateMitigationActionResponse Source #
See: newCreateMitigationActionResponse
smart constructor.
Instances
newCreateMitigationActionResponse Source #
Create a value of CreateMitigationActionResponse
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:CreateMitigationActionResponse'
, createMitigationActionResponse_actionId
- A unique identifier for the new mitigation action.
$sel:actionArn:CreateMitigationActionResponse'
, createMitigationActionResponse_actionArn
- The ARN for the new mitigation action.
$sel:httpStatus:CreateMitigationActionResponse'
, createMitigationActionResponse_httpStatus
- The response's http status code.
Response Lenses
createMitigationActionResponse_actionId :: Lens' CreateMitigationActionResponse (Maybe Text) Source #
A unique identifier for the new mitigation action.
createMitigationActionResponse_actionArn :: Lens' CreateMitigationActionResponse (Maybe Text) Source #
The ARN for the new mitigation action.
createMitigationActionResponse_httpStatus :: Lens' CreateMitigationActionResponse Int Source #
The response's http status code.