startAssessmentRun
inline suspend fun InspectorClient.startAssessmentRun(crossinline block: StartAssessmentRunRequest.Builder.() -> Unit): StartAssessmentRunResponse
Starts the assessment run specified by the ARN of the assessment template. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.
Samples
fun main() {
//sampleStart
// Starts the assessment run specified by the ARN of the assessment template. For this API to function
// properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.
val resp = inspectorClient.startAssessmentRun {
assessmentTemplateArn = "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T"
assessmentRunName = "examplerun"
}
//sampleEnd
}