previewAgents
inline suspend fun InspectorClient.previewAgents(crossinline block: PreviewAgentsRequest.Builder.() -> Unit): PreviewAgentsResponse
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
Samples
fun main() {
//sampleStart
// Previews the agents installed on the EC2 instances that are part of the specified assessment target.
val resp = inspectorClient.previewAgents {
previewAgentsArn = "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq"
maxResults = 123
}
//sampleEnd
}