CmdID / aws / aws accessanalyzer
aws accessanalyzer list-access-preview-findings
Retrieves a list of access preview findings generated by the specified access preview. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To retrieve a list of access preview findings generated by the specified access preview
The following list-access-preview-findings example retrieves a list of access preview findings generated by the specified access preview in your AWS account.
aws accessanalyzer list-access-preview-findings --access-preview-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --analyzer-arn arn:aws:access-analyzer:us-west-2:123456789012:analyzer/ConsoleAnalyzer-accountIdentify--access-preview-idThe unique ID for the access preview.--analyzer-arnThe ARN of the analyzer used to generate the access.Its output
{
"findings": [
{
"id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"principal": {
"AWS": "123456789012"
},
"action": [
"s3:PutObject",
"s3:PutObjectAcl"
],
"condition": {},
"resource": "arn:aws:s3:::amzn-s3-demo-bucket",
"isPublic": false,
"resourceType": "AWS::S3::Bucket",
"createdAt": "2024-02-17T00:18:46+00:00",
"changeType": "NEW",
"status": "ACTIVE",
"resourceOwnerAccount": "123456789012",
"sources": [
{
"type": "POLICY"
}
]
}
]
}For more information, see Previewing access with IAM Access Analyzer APIs in the AWS IAM User Guide.
Options
--access-preview-idThe unique ID for the access preview.--analyzer-arnThe ARN of the analyzer used to generate the access.--filterCriteria to filter the returned findings.--max-resultsThe maximum number of results to return in the response.--next-tokenA token used for pagination of results returned.