CmdID / aws / aws accessanalyzer
aws accessanalyzer list-analyzed-resources
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To list the available widgets
The following list-analyzed-resources example lists the available widgets in your AWS account.
aws accessanalyzer list-analyzed-resources --analyzer-arn arn:aws:access-analyzer:us-west-2:123456789012:analyzer/ConsoleAnalyzer-account --resource-type AWS::IAM::RoleIdentify--analyzer-arnThe ARN of the analyzer to retrieve a list of analyzed resources from.--resource-typeThe type of resource.Its output
{
"analyzedResources": [
{
"resourceArn": "arn:aws:sns:us-west-2:123456789012:Validation-Email",
"resourceOwnerAccount": "123456789012",
"resourceType": "AWS::SNS::Topic"
},
{
"resourceArn": "arn:aws:sns:us-west-2:123456789012:admin-alerts",
"resourceOwnerAccount": "123456789012",
"resourceType": "AWS::SNS::Topic"
},
{
"resourceArn": "arn:aws:sns:us-west-2:123456789012:config-topic",
"resourceOwnerAccount": "123456789012",
"resourceType": "AWS::SNS::Topic"
},
{
"resourceArn": "arn:aws:sns:us-west-2:123456789012:inspector-topic",
"resourceOwnerAccount": "123456789012",
"resourceType": "AWS::SNS::Topic"
}
]
}For more information, see Using AWS Identity and Access Management Access Analyzer in the AWS IAM User Guide.
Options
--analyzer-arnThe ARN of the analyzer to retrieve a list of analyzed resources from.--max-resultsThe maximum number of results to return in the response.--next-tokenA token used for pagination of results returned.--resource-typeThe type of resource.