Learn R Programming

paws.security.identity (version 0.1.0)

inspector_register_cross_account_access_role: 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.

Request syntax

svc$register_cross_account_access_role(
  roleArn = "string"
)

Examples

Run this code
# 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