Skip to main content

analyzed_resources

Creates, updates, deletes, gets or lists an analyzed_resources resource.

Overview

Nameanalyzed_resources
TypeResource
Idaws.accessanalyzer.analyzed_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actionsarrayThe actions that an external principal is granted permission to use by the policy that generated the finding.
analyzed_atstring (date-time)The time at which the resource was analyzed.
created_atstring (date-time)The time at which the finding was created.
errorstringAn error message.
is_publicbooleanIndicates whether the policy that generated the finding grants public access to the resource.
resource_arnstringThe ARN of the resource that was analyzed. (pattern: <code>arn:[^:]:[^:]:[^:]:[^:]:.*</code>)
resource_owner_accountstringThe Amazon Web Services account ID that owns the resource.
resource_typestringThe type of the resource that was analyzed. (AWS::S3::Bucket, AWS::IAM::Role, AWS::SQS::Queue, AWS::Lambda::Function, AWS::Lambda::LayerVersion, AWS::KMS::Key, AWS::SecretsManager::Secret, AWS::EFS::FileSystem, AWS::EC2::Snapshot, AWS::ECR::Repository, AWS::RDS::DBSnapshot, AWS::RDS::DBClusterSnapshot, AWS::SNS::Topic, AWS::S3Express::DirectoryBucket, AWS::DynamoDB::Table, AWS::DynamoDB::Stream, AWS::IAM::User)
shared_viaarrayIndicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
statusstringThe current status of the finding generated from the analyzed resource. (ACTIVE, ARCHIVED, RESOLVED)
updated_atstring (date-time)The time at which the finding was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_analyzed_resourceselectanalyzerArn, resourceArn, regionRetrieves information about a resource that was analyzed. This action is supported only for external access analyzers.
list_analyzed_resourcesselectregionRetrieves a list of resources of the specified type that have been analyzed by the specified analyzer.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
analyzerArnstringThe ARN of the analyzer to retrieve information from.
regionstringAWS region (default: us-east-1)
resourceArnstringThe ARN of the resource to retrieve information about.

SELECT examples

Retrieves information about a resource that was analyzed. This action is supported only for external access analyzers.

SELECT
actions,
analyzed_at,
created_at,
error,
is_public,
resource_arn,
resource_owner_account,
resource_type,
shared_via,
status,
updated_at
FROM aws.accessanalyzer.analyzed_resources
WHERE analyzerArn = '{{ analyzerArn }}' -- required
AND resourceArn = '{{ resourceArn }}' -- required
AND region = '{{ region }}' -- required
;