Skip to content

Register Cross Account Access Role

inspector_register_cross_account_access_role R Documentation

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

Description

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

Usage

inspector_register_cross_account_access_role(roleArn)

Arguments

roleArn

[required] The ARN of the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.

Value

An empty list.

Request syntax

svc$register_cross_account_access_role(
  roleArn = "string"
)

Examples

## 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.
svc$register_cross_account_access_role(
  roleArn = "arn:aws:iam::123456789012:role/inspector"
)

## End(Not run)