CmdID / aws / aws accessanalyzer
aws accessanalyzer list-access-previews
Retrieves a list of access previews for the specified analyzer. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To retrieve a list of access previews for the specified analyzer
The following list-access-previews example retrieves a list of access previews for the specified analyzer in your AWS account.
aws accessanalyzer list-access-previews --analyzer-arn arn:aws:access-analyzer:us-west-2:123456789012:analyzer/ConsoleAnalyzer-accountIdentify--analyzer-arnThe ARN of the analyzer used to generate the access preview.Its output
{
"accessPreviews": [
{
"id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"analyzerArn": "arn:aws:access-analyzer:us-west-2:123456789012:analyzer/ConsoleAnalyzer-account",
"createdAt": "2024-02-17T00:18:44+00:00",
"status": "COMPLETED"
}
]
}For more information, see Previewing access with IAM Access Analyzer APIs in the AWS IAM User Guide.
Options
--analyzer-arnThe ARN of the analyzer used to generate the access preview.--max-resultsThe maximum number of results to return in the response.--next-tokenA token used for pagination of results returned.