AccessPreviewFinding
¶
Source code in docs_src/capo_accessanalyzer/types/access_preview_finding.py
action
instance-attribute
¶
action: NotRequired[ActionList]
The action in the analyzed policy statement that an external principal has permission to perform.
change_type
instance-attribute
¶
change_type: FindingChangeType
Provides 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.
condition
instance-attribute
¶
condition: NotRequired[ConditionKeyMap]
The condition in the analyzed policy statement that resulted in a finding.
created_at
instance-attribute
¶
created_at: Timestamp
The time at which the access preview finding was created.
existing_finding_id
instance-attribute
¶
existing_finding_id: NotRequired[FindingId]
The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
existing_finding_status
instance-attribute
¶
existing_finding_status: NotRequired[FindingStatus]
The existing status of the finding, provided only for existing findings.
id
instance-attribute
¶
The 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.
is_public
instance-attribute
¶
is_public: NotRequired[bool]
Indicates whether the policy that generated the finding allows public access to the resource.
principal
instance-attribute
¶
principal: NotRequired[PrincipalMap]
The external principal that has access to a resource within the zone of trust.
resource
instance-attribute
¶
resource: NotRequired[str]
The resource that an external principal has access to. This is the resource associated with the access preview.
resource_control_policy_restriction
instance-attribute
¶
resource_control_policy_restriction: NotRequired[ResourceControlPolicyRestriction]
The type of restriction applied to the finding by the resource owner with an Organizations resource control policy (RCP).
resource_owner_account
instance-attribute
¶
resource_owner_account: str
The 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_type
instance-attribute
¶
resource_type: ResourceType
The type of the resource that can be accessed in the finding.
sources
instance-attribute
¶
sources: NotRequired[FindingSourceList]
The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
status
instance-attribute
¶
status: FindingStatus
The 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.