# NOT RUN {
# 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.
# }
# NOT RUN {
svc$register_cross_account_access_role(
roleArn = "arn:aws:iam::123456789012:role/inspector"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab