addAttributesToFindings
inline suspend fun InspectorClient.addAttributesToFindings(crossinline block: AddAttributesToFindingsRequest.Builder.() -> Unit): AddAttributesToFindingsResponse
Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
Samples
import aws.sdk.kotlin.services.inspector.model.Attribute
fun main() {
//sampleStart
// Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the
// findings.
val resp = inspectorClient.addAttributesToFindings {
findingArns = listOf<String>(
"arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-8l1VIE0D/run/0-Z02cjjug/finding/0-T8yM9mEU"
)
attributes = listOf<Attribute>(
Attribute {
key = "Example"
value = "example"
}
)
}
//sampleEnd
}