Skip to main content

access_preview_findings

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

Overview

Nameaccess_preview_findings
TypeResource
Idaws.accessanalyzer.access_preview_findings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the access preview finding. This ID uniquely identifies the element in the list of access preview findings and is not related to the finding ID in Access Analyzer.
actionarrayThe action in the analyzed policy statement that an external principal has permission to perform.
change_typestringProvides context on how the access preview finding compares to existing access identified in IAM Access Analyzer. New - The finding is for newly-introduced access. Unchanged - The preview finding is an existing finding that would remain unchanged. Changed - The preview finding is an existing finding with a change in status. For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change. (CHANGED, NEW, UNCHANGED)
conditionobjectThe condition in the analyzed policy statement that resulted in a finding.
created_atstring (date-time)The time at which the access preview finding was created.
errorstringAn error.
existing_finding_idstringThe existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
existing_finding_statusstringThe existing status of the finding, provided only for existing findings. (ACTIVE, ARCHIVED, RESOLVED)
is_publicbooleanIndicates whether the policy that generated the finding allows public access to the resource.
principalobjectThe external principal that has access to a resource within the zone of trust.
resourcestringThe resource that an external principal has access to. This is the resource associated with the access preview.
resource_control_policy_restrictionstringThe type of restriction applied to the finding by the resource owner with an Organizations resource control policy (RCP). (APPLICABLE, FAILED_TO_EVALUATE_RCP, NOT_APPLICABLE, APPLIED)
resource_owner_accountstringThe Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created.
resource_typestringThe type of the resource that can be accessed in the finding. (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)
sourcesarrayThe sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
statusstringThe preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change. (ACTIVE, ARCHIVED, RESOLVED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_access_preview_findingsselectaccess_preview_id, regionRetrieves a list of access preview findings generated by the specified access preview.

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
access_preview_idstringThe unique ID for the access preview.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves a list of access preview findings generated by the specified access preview.

SELECT
id,
action,
change_type,
condition,
created_at,
error,
existing_finding_id,
existing_finding_status,
is_public,
principal,
resource,
resource_control_policy_restriction,
resource_owner_account,
resource_type,
sources,
status
FROM aws.accessanalyzer.access_preview_findings
WHERE access_preview_id = '{{ access_preview_id }}' -- required
AND region = '{{ region }}' -- required
;