getInsights
inline suspend fun SecurityHubClient.getInsights(crossinline block: GetInsightsRequest.Builder.() -> Unit): GetInsightsResponse
Lists and describes insights for the specified insight ARNs.
Samples
fun main() {
//sampleStart
// The following example returns details of the Security Hub insight with the specified ARN.
val resp = securityHubClient.getInsights {
insightArns = listOf<String>(
"arn:aws:securityhub:us-west-1:123456789012:insight/123456789012/custom/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
)
}
//sampleEnd
}