| 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 |
Amazonka.SecurityHub.CreateActionTarget
Description
Creates a custom action target in Security Hub.
You can use custom actions on findings and insights in Security Hub to trigger target actions in Amazon CloudWatch Events.
Synopsis
- data CreateActionTarget = CreateActionTarget' {}
- newCreateActionTarget :: Text -> Text -> Text -> CreateActionTarget
- createActionTarget_name :: Lens' CreateActionTarget Text
- createActionTarget_description :: Lens' CreateActionTarget Text
- createActionTarget_id :: Lens' CreateActionTarget Text
- data CreateActionTargetResponse = CreateActionTargetResponse' {
- httpStatus :: Int
- actionTargetArn :: Text
- newCreateActionTargetResponse :: Int -> Text -> CreateActionTargetResponse
- createActionTargetResponse_httpStatus :: Lens' CreateActionTargetResponse Int
- createActionTargetResponse_actionTargetArn :: Lens' CreateActionTargetResponse Text
Creating a Request
data CreateActionTarget Source #
See: newCreateActionTarget smart constructor.
Constructors
| CreateActionTarget' | |
Instances
newCreateActionTarget Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateActionTarget |
Create a value of CreateActionTarget 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:name:CreateActionTarget', createActionTarget_name - The name of the custom action target. Can contain up to 20 characters.
$sel:description:CreateActionTarget', createActionTarget_description - The description for the custom action target.
$sel:id:CreateActionTarget', createActionTarget_id - The ID for the custom action target. Can contain up to 20 alphanumeric
characters.
Request Lenses
createActionTarget_name :: Lens' CreateActionTarget Text Source #
The name of the custom action target. Can contain up to 20 characters.
createActionTarget_description :: Lens' CreateActionTarget Text Source #
The description for the custom action target.
createActionTarget_id :: Lens' CreateActionTarget Text Source #
The ID for the custom action target. Can contain up to 20 alphanumeric characters.
Destructuring the Response
data CreateActionTargetResponse Source #
See: newCreateActionTargetResponse smart constructor.
Constructors
| CreateActionTargetResponse' | |
Fields
| |
Instances
newCreateActionTargetResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> CreateActionTargetResponse |
Create a value of CreateActionTargetResponse 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:httpStatus:CreateActionTargetResponse', createActionTargetResponse_httpStatus - The response's http status code.
$sel:actionTargetArn:CreateActionTargetResponse', createActionTargetResponse_actionTargetArn - The ARN for the custom action target.
Response Lenses
createActionTargetResponse_httpStatus :: Lens' CreateActionTargetResponse Int Source #
The response's http status code.
createActionTargetResponse_actionTargetArn :: Lens' CreateActionTargetResponse Text Source #
The ARN for the custom action target.