updateAssessmentTarget
inline suspend fun InspectorClient.updateAssessmentTarget(crossinline block: UpdateAssessmentTargetRequest.Builder.() -> Unit): UpdateAssessmentTargetResponse
Updates the assessment target that is specified by the ARN of the assessment target.
If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
Samples
fun main() {
//sampleStart
// Updates the assessment target that is specified by the ARN of the assessment target.
inspectorClient.updateAssessmentTarget {
assessmentTargetArn = "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX"
assessmentTargetName = "Example"
resourceGroupArn = "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-yNbgL5Pt"
}
//sampleEnd
}