CmdID

CmdID / aws / aws accessanalyzer

aws accessanalyzer get-finding-v2

Retrieves information about the specified finding. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To retrieve information about the specified finding

The following get-finding-v2 example etrieves information about the specified finding in your AWS account.

aws accessanalyzer get-finding-v2 --analyzer-arn arn:aws:access-analyzer:us-west-2:123456789012:analyzer/ConsoleAnalyzer-organization --id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify
--analyzer-arnThe ARN of the analyzer that generated the finding.
--idThe ID of the finding to retrieve.
Its output
{
    "findingDetails": [
        {
            "externalAccessDetails": {
                "action": [
                    "sts:AssumeRoleWithWebIdentity"
                ],
                "condition": {
                    "cognito-identity.amazonaws.com:aud": "us-west-2:a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
                },
                "isPublic": false,
                "principal": {
                    "Federated": "cognito-identity.amazonaws.com"
                }
            }
        }
    ],
    "resource": "arn:aws:iam::123456789012:role/Cognito_testpoolAuth_Role",
    "status": "ACTIVE",
    "error": null,
    "createdAt": "2021-02-26T21:17:50.905000+00:00",
    "resourceType": "AWS::IAM::Role",
    "findingType": "ExternalAccess",
    "resourceOwnerAccount": "123456789012",
    "analyzedAt": "2024-02-16T18:17:47.888000+00:00",
    "id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
    "updatedAt": "2021-02-26T21:17:50.905000+00:00"
}

For more information, see Reviewing findings in the AWS IAM User Guide.

Options

4 in the AWS CLI reference
--analyzer-arnThe ARN of the analyzer that generated the finding.
--idThe ID of the finding to retrieve.
--max-resultsThe maximum number of results to return in the response.
--next-tokenA token used for pagination of results returned.