{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iam-access-analyzer/refs/heads/main/json-schema/iam-access-analyzer-access-preview-finding-schema.json", "title": "AccessPreviewFinding", "description": "An access preview finding generated by the access preview.", "type": "object", "properties": { "id": { "allOf": [ { "$ref": "#/components/schemas/AccessPreviewFindingId" }, { "description": "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." } ] }, "existingFindingId": { "allOf": [ { "$ref": "#/components/schemas/FindingId" }, { "description": "The existing ID of the finding in IAM Access Analyzer, provided only for existing findings." } ] }, "existingFindingStatus": { "allOf": [ { "$ref": "#/components/schemas/FindingStatus" }, { "description": "The existing status of the finding, provided only for existing findings." } ] }, "principal": { "allOf": [ { "$ref": "#/components/schemas/PrincipalMap" }, { "description": "The external principal that has access to a resource within the zone of trust." } ] }, "action": { "allOf": [ { "$ref": "#/components/schemas/ActionList" }, { "description": "The action in the analyzed policy statement that an external principal has permission to perform." } ] }, "condition": { "allOf": [ { "$ref": "#/components/schemas/ConditionKeyMap" }, { "description": "The condition in the analyzed policy statement that resulted in a finding." } ] }, "resource": { "allOf": [ { "$ref": "#/components/schemas/String" }, { "description": "The resource that an external principal has access to. This is the resource associated with the access preview." } ] }, "isPublic": { "allOf": [ { "$ref": "#/components/schemas/Boolean" }, { "description": "Indicates whether the policy that generated the finding allows public access to the resource." } ] }, "resourceType": { "allOf": [ { "$ref": "#/components/schemas/ResourceType" }, { "description": "The type of the resource that can be accessed in the finding." } ] }, "createdAt": { "allOf": [ { "$ref": "#/components/schemas/Timestamp" }, { "description": "The time at which the access preview finding was created." } ] }, "changeType": { "allOf": [ { "$ref": "#/components/schemas/FindingChangeType" }, { "description": "

Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.

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.

" } ] }, "status": { "allOf": [ { "$ref": "#/components/schemas/FindingStatus" }, { "description": "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." } ] }, "resourceOwnerAccount": { "allOf": [ { "$ref": "#/components/schemas/String" }, { "description": "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." } ] }, "error": { "allOf": [ { "$ref": "#/components/schemas/String" }, { "description": "An error." } ] }, "sources": { "allOf": [ { "$ref": "#/components/schemas/FindingSourceList" }, { "description": "The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings." } ] } }, "required": [ "id", "resourceType", "createdAt", "changeType", "status", "resourceOwnerAccount" ] }