CmdID

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

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

Examples

from aws-cli, each command read by CmdID

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

4 in the AWS CLI reference
--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.