CmdID

CmdID / aws / aws accessanalyzer

aws accessanalyzer get-analyzed-resource

Retrieves information about a resource that was analyzed. AWS CLI reference

1 example 2 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 a resource that was analyzed

The following get-analyzed-resource example retrieves information about a resource that was analyzed in your AWS account.

aws accessanalyzer get-analyzed-resource --analyzer-arn arn:aws:access-analyzer:us-west-2:123456789012:analyzer/ConsoleAnalyzer-account --resource-arn arn:aws:s3:::amzn-s3-demo-bucketIdentify
--analyzer-arnThe ARN of the analyzer to retrieve information from.
--resource-arnThe ARN of the resource to retrieve information about.
Its output
{
    "resource": {
        "analyzedAt": "2024-02-15T18:01:53.002000+00:00",
        "isPublic": false,
        "resourceArn": "arn:aws:s3:::amzn-s3-demo-bucket",
        "resourceOwnerAccount": "123456789012",
        "resourceType": "AWS::S3::Bucket"
    }
}

For more information, see Using AWS Identity and Access Management Access Analyzer in the AWS IAM User Guide.

Options

2 in the AWS CLI reference
--analyzer-arnThe ARN of the analyzer to retrieve information from.
--resource-arnThe ARN of the resource to retrieve information about.