registerCrossAccountAccessRole

Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.

Samples


fun main() { 
   //sampleStart 
   // Registers the IAM role that Amazon Inspector uses to list your EC2 instances at the start of the
// assessment run or when you call the PreviewAgents action.
inspectorClient.registerCrossAccountAccessRole {
    roleArn = "arn:aws:iam::123456789012:role/inspector"
} 
   //sampleEnd
}