createActionTarget
abstract suspend fun createActionTarget(input: CreateActionTargetRequest): CreateActionTargetResponse
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.
Samples
fun main() {
//sampleStart
// The following example creates a custom action target in Security Hub. Custom actions on findings and
// insights automatically trigger actions in Amazon CloudWatch Events.
val resp = securityHubClient.createActionTarget {
name = "Send to remediation"
description = "Action to send the finding for remediation tracking"
id = "Remediation"
}
//sampleEnd
}