sendFeedback
inline suspend fun SecurityIrClient.sendFeedback(crossinline block: SendFeedbackRequest.Builder.() -> Unit): SendFeedbackResponse
Send feedback based on response investigation action
Samples
import aws.sdk.kotlin.services.securityir.model.UsefulnessRating
fun main() {
//sampleStart
// Send positive feedback for investigation result
val resp = securityIrClient.sendFeedback {
caseId = "8403556009"
resultId = "inv-polkjhyuty"
usefulness = UsefulnessRating.fromValue("USEFUL")
comment = "The CloudTrail analysis was very helpful in identifying the root cause of the security incident."
}
//sampleEnd
}import aws.sdk.kotlin.services.securityir.model.UsefulnessRating
fun main() {
//sampleStart
// Send negative feedback with detailed comment
val resp = securityIrClient.sendFeedback {
caseId = "8403556009"
resultId = "inv-irutjfhgjk"
usefulness = UsefulnessRating.fromValue("NOT_USEFUL")
comment = "The investigation results were too generic and didn't provide actionable insights for our specific incident."
}
//sampleEnd
}