CmdID / aws / aws accessanalyzer
aws accessanalyzer list-analyzers
Retrieves a list of analyzers. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To retrieve a list of analyzers
The following list-analyzers example retrieves a list of analyzers in your AWS account.
aws accessanalyzer list-analyzersIdentifyIts output, shortened
{
"analyzers": [
{
"arn": "arn:aws:access-analyzer:us-west-2:123456789012:analyzer/UnusedAccess-ConsoleAnalyzer-organization",
"createdAt": "2024-02-15T00:46:40+00:00",
"name": "UnusedAccess-ConsoleAnalyzer-organization",
"status": "ACTIVE",
"tags": {
"auto-delete": "no"
},
"type": "ORGANIZATION_UNUSED_ACCESS"
},
{
"arn": "arn:aws:access-analyzer:us-west-2:123456789012:analyzer/ConsoleAnalyzer-organization",
"createdAt": "2020-04-25T07:43:28+00:00",
"lastResourceAnalyzed": "arn:aws:s3:::amzn-s3-demo-bucket",
"lastResourceAnalyzedAt": "2024-02-15T21:51:56.517000+00:00",
"name": "ConsoleAnalyzer-organization",
"status": "ACTIVE",
"tags": {
"auto-delete": "no"
},
"type": "ORGANIZATION"
},
{
"arn": "arn:aws:access-analyzer:us-west-2:123456789012:analyzer/ConsoleAnalyzer-account",
"createdAt": "2019-12-03T07:28:17+00:00",
"lastResourceAnalyzed": "arn:aws:sns:us-west-2:123456789012:config-topic",
"lastResourceAnalyzedAt": "2024-02-15T18:01:53.003000+00:00",
"name": "ConsoleAnalyzer-account",
… 8 more linesFor more information, see Using AWS Identity and Access Management Access Analyzer in the AWS IAM User Guide.
Options
--max-resultsThe maximum number of results to return in the response.--next-tokenA token used for pagination of results returned.--typeThe type of analyzer.