CmdID / aws / aws accessanalyzer
aws accessanalyzer start-resource-scan
Immediately starts a scan of the policies applied to the specified resource. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To immediately start a scan of the policies applied to the specified resource
The following start-resource-scan example mmediately starts a scan of the policies applied to the specified resource in your AWS account.
aws accessanalyzer start-resource-scan --analyzer-arn arn:aws:access-analyzer:us-west-2:123456789012:analyzer/ConsoleAnalyzer-account --resource-arn arn:aws:iam::123456789012:role/Cognito_testpoolAuth_RoleIdentify--analyzer-arnThe ARN of the analyzer to use to scan the policies applied to the specified resource.--resource-arnThe ARN of the resource to scan.This command produces no output.
For more information, see IAM Access Analyzer policy generation in the AWS IAM User Guide.
Options
--analyzer-arnThe ARN of the analyzer to use to scan the policies applied to the specified resource.--resource-arnThe ARN of the resource to scan.--resource-owner-accountThe Amazon Web Services account ID that owns the resource.