createActionTarget

Creates a custom action target in Security Hub CSPM.

You can use custom actions on findings and insights in Security Hub CSPM 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
}