Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Deleting a custom insight
In Amazon Security Hub CSPM, custom insights can be used to collect a specific set of findings and track issues that are unique
to your environment. For background information about custom insights, see Understanding custom insights in Security Hub CSPM.
To delete a custom insight, choose your preferred method, and follow the instructions. You can't delete a managed insight.
- Security Hub CSPM console
-
To delete a custom insight (console)
Open the Amazon Security Hub CSPM console at https://console.amazonaws.cn/securityhub/.
-
In the navigation pane, choose Insights.
-
Locate the custom insight to delete.
-
For that insight, choose the more options icon (the three dots in the top-right corner
of the card).
-
Choose Delete.
- Security Hub CSPM API
-
To delete a custom insight (API)
Use the DeleteInsight
operation of the Security Hub CSPM API. If you use the Amazon CLI run the
delete-insight command.
To identify the custom insight to delete, provide the insight's ARN. To get the ARN of a custom insight, use the
GetInsights
operation or get-insights command.
The following example deletes the specified insight. This example is formatted for Linux, macOS, or Unix,
and it uses the backslash (\) line-continuation character to improve
readability.
$
aws securityhub delete-insight --insight-arn "arn:aws-cn:securityhub:us-west-1:123456789012:insight/123456789012/custom/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111
"
- PowerShell
-
To delete a custom insight (PowerShell)
Use the Remove-SHUBInsight
cmdlet.
To identify the custom insight, provide the insight's ARN. To get the ARN
of a custom insight, use the Get-SHUBInsight
cmdlet.
Example
-InsightArn "arn:aws:securityhub:us-west-1:123456789012:insight/123456789012/custom/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"